Boosting Throughput by 50% on 8-GPU Domestic Accelerators: A Practical Guide

    This article explains how to achieve roughly 50% higher total throughput on an 8-GPU domestic accelerator setup while keeping service quality within target. It covers why scaling from one GPU to eight does not deliver linear gains, how to define acceptable latency constraints, how to build a credible baseline, and three optimization paths: parallel strategy redesign, sequence parallelism with communication compression, and graph execution with operator compilation. It also breaks down where the gains come from, outlines a reusable tuning workflow, and lists common pitfalls to avoid.

    1. Background: Why Throughput Gains Get Harder on 8 GPUs

    When deploying large generative models on domestic accelerators, teams commonly see the same pattern: a single GPU is already close to compute saturation, yet scaling from one GPU to eight does not increase throughput linearly. Under higher concurrency, noticeable jitter can even appear. The causes fall into three categories.

    The first is a rising share of communication overhead. As tensor parallelism increases, collective communication is inserted into every layer’s forward pass, and whether that overhead can be hidden behind computation depends directly on inter-GPU bandwidth and topology.

    The second is a mismatch between the parallel partitioning scheme and the workload shape. Generative inference has two phases: prefill, which is compute-intensive, and decode, which is memory- and communication-intensive. If the parallel strategy is tuned for only one phase, the other becomes the bottleneck.

    The third is that the runtime does not fully exploit hardware features. If capabilities such as graph execution mode, operator fusion, and communication compression along the sequence dimension are left disabled by default, effective compute is reduced even on higher-spec hardware.

    Optimizing an 8-GPU setup is therefore not single-point parameter tuning. It is a joint design across three areas: parallel strategy, communication optimization, and compilation/execution optimization.

    2. Goals and Constraints: Define “Acceptable Service Quality” First

    Any throughput number is meaningful only when bound to constraints. In practice, constraints are usually split into three layers:

    • Time to first token: determines interactive responsiveness, driven mainly by prefill compute and batching strategy;
    • Inter-token latency: determines the smoothness of streaming output, affected mainly by memory access and communication during decode;
    • End-to-end timeout and error rate: determine whether the service is usable, and must be measured together with the first two.

    Comparing throughput under a fixed service level objective is equivalent to comparing how much concurrency the system can serve without violating latency bounds. This is also the correct way to read the conclusion that total throughput improves by roughly 50% under constraints: the gain comes from serving more requests per unit time, not from loosening latency in exchange for inflated numbers.

    3. Baseline Design: Make the Comparison Credible

    The purpose of a baseline is not “the lowest performance” but “a trustworthy reference.” Fix the following variables:

    1. Identical hardware and driver versions, with the GPU count fixed at eight;
    2. Identical model precision and quantization scheme, so quantization gains are not mixed into parallel gains;
    3. Identical inference engine and image versions;
    4. Identical input/output length distributions, preferably sampled from real business traffic rather than purely random lengths;
    5. Identical load-testing tool, concurrency gradient, and measurement window.

    The baseline parallel configuration uses pure tensor parallelism with a single data-parallel replica, so all eight GPUs serve one request stream as a single unit. This configuration is simple to implement and balances memory usage, but it tends to stall on communication waits during high-concurrency decode.

    Illustrative startup parameters (showing configuration structure only, not a specific product interface):

    1. # Baseline: tensor parallel 8, data parallel 1
    2. --tensor-parallel-size 8 \
    3. --data-parallel-size 1 \
    4. --max-num-seqs 128 \
    5. --gpu-memory-utilization 0.90

    4. Optimization Path 1: From Deep Sharding to Replicas Plus Expert Parallelism

    The core idea is to turn eight GPUs from “one larger model shard” into “multiple request pipelines that can advance independently, while retaining the necessary intra-model parallelism.”

    Lowering tensor parallelism to 2 and raising data parallelism to 4 means four replicas run concurrently, with two GPUs inside each replica handling the model split. The gains come from three sources:

    • Collective communication participants drop from eight GPUs to two, significantly shortening per-call synchronization waits;
    • Replicas have no communication dependency on each other, so the scheduler can spread requests across replicas and serve more concurrency;
    • For mixture-of-experts structures, combining with expert parallelism distributes expert weights across GPUs, balancing per-GPU load and reducing long-tail latency caused by “hot experts.”

    Illustrative configuration:

    1. # Optimized: tensor parallel 2, data parallel 4, with expert parallelism enabled
    2. --tensor-parallel-size 2 \
    3. --data-parallel-size 4 \
    4. --enable-expert-parallel \
    5. --max-num-seqs 256

    More replicas is not always better. Increasing the replica count amplifies duplicated weight and cache memory usage. If a single GPU cannot hold the weights plus enough key-value cache, insufficient cache forces smaller batch sizes and actually lowers throughput. The parallel degree should therefore be chosen with a quantitative estimate against the memory budget, not by trial and error.

    5. Optimization Path 2: Sequence Parallelism and Communication Compression

    Inside a tensor-parallel group, beyond the usual communication for sharded matrix multiplications, operations along the sequence dimension such as normalization, residual addition, and positional encoding generate many small messages. Sequence parallelism splits these operations along the sequence dimension, decoupling communication volume from sequence length, and compresses communication payloads when conditions allow.

    Three practical rules:

    • Merge small messages: aggregate fragmented communication into larger transfers to reduce launch overhead;
    • Overlap computation and communication: run communication and subsequent computation on different streams to hide latency;
    • Controlled-precision compression: reduce communication data volume within an acceptable error range, validated against business metrics.

    These optimizations pay off most for long-input scenarios, because the longer the sequence, the higher the repeated communication cost along the sequence dimension.

    6. Optimization Path 3: Graph Execution and Operator Compilation

    Default operator-by-operator interpreted execution introduces substantial scheduling and launch overhead. With graph mode enabled, the engine freezes a block of computation into a graph, and the compiler applies operator fusion, memory reuse, and instruction scheduling. Combined with operator compilation targeting the specific hardware, common gains include:

    • Fusing normalization and activation to reduce intermediate tensor reads and writes;
    • Reusing buffers to lower peak memory usage, which allows larger batch sizes;
    • Fixing graph shapes to reduce recompilation jitter from dynamic shapes.

    The practical recommendation is “shape bucketing plus warmup”: divide common input/output lengths into a few buckets and complete warmup compilation at service startup, so the first live requests do not bear the compilation cost.

    7. Reading the Results: Where the 50% Comes From

    Stacking the three optimization categories yields roughly 50% higher total throughput under the same service level objective. The composition breaks down approximately as follows:

    • Reduced communication waits from parallel restructuring contribute the main increment;
    • Load balancing from expert parallelism improves long-tail behavior and overall utilization;
    • Sequence parallelism and communication compression amplify gains further for long inputs;
    • Graph and compilation optimizations raise effective per-GPU compute and free memory for larger batches.

    This ratio depends heavily on model structure, input/output length distribution, and inter-GPU interconnect conditions, and cannot be extrapolated directly to other models or smaller GPU counts. Treat it as an order-of-magnitude reference for optimization direction, not a committed figure.

    8. A Reusable Tuning Workflow

    1. Define the service level objective and measurement methodology, including latency percentiles and error-rate thresholds;
    2. Establish a single-variable baseline and save the full configuration and load-test scripts;
    3. Estimate the memory budget first to determine the feasible range of parallel degrees;
    4. Validate parallel restructuring, communication optimization, and compilation/execution optimization in sequence, with a separate report for each step;
    5. Recheck with real traffic replay, observing percentile latency rather than averages alone;
    6. Freeze validated configurations as deployment templates under version control.

    9. Common Pitfalls

    • Looking only at average throughput while ignoring percentile latency degradation under high concurrency;
    • Mixing quantization gains with parallel gains in the same measurement, making conclusions irreproducible;
    • Blindly increasing parallel degree while ignoring hard memory and cache constraints;
    • Skipping warmup and charging compilation cost to steady-state performance;
    • Load-testing with a length distribution that differs from production, so results cannot be applied in practice.

    10. Conclusion

    Throughput optimization on 8-GPU domestic compute is fundamentally about balancing communication, memory, and computation. Shifting the parallel strategy from deep sharding to replicas with expert parallelism, layered with sequence parallelism and graph compilation, is a general path to meaningful throughput gains under a fixed service quality target. For engineering teams, the more important outcome is a reproducible baseline and validation process, so every optimization can be measured, reused, and rolled back.