Why adding GPUs doesn’t always make LLM inference faster

Engineering November 26, 2026 9 min read

When a large language model (LLM) application needs faster responses or capacity to handle more users, adding GPUs can help. But spreading the model across more devices may deliver less improvement than you expect.

One way to use extra GPUs is tensor parallelism, which divides the calculations inside a model layer among them. Each GPU has less to compute, so a single response can finish sooner. The speedup depends on how long the GPUs spend exchanging results.

Another option is model replication. A replica is a separate copy of the model that can serve requests independently. That increases the system’s serving capacity. Spreading traffic across those copies can reduce how long users wait for their requests to start.

This article explains how tensor and pipeline parallelism split the work, when GPU communication limits the gains, and how to test whether a larger tensor-parallel group or more replicas works better for your workload.

Should the extra GPUs add memory, speed or capacity?

Before adding more GPUs, identify what your application needs: enough memory to run the workload, faster responses, or the ability to serve more requests. Each of these needs points to a different configuration.

  • If your workload does not fit in GPU memory: Splitting the model across GPUs can make it possible to run. However, memory requirements include more than model weights. The serving engine also needs working memory and a KV cache. The KV cache stores the attention keys and values the model has already computed for each active request, so the model does not recompute them for every new token. The cache grows with longer contexts and more concurrent requests, so the weights can fit on one GPU while the full workload requires additional memory. vLLM’s scaling guide recommends checking KV-cache capacity and supported concurrency.
  • If your individual responses are too slow: Identify which latency measurement needs to improve. An application may take too long to produce its first token, generate subsequent tokens too slowly, or take too long to finish the response. Tensor parallelism lets GPUs cooperate on the same model execution, potentially reducing execution time. Whether it helps depends on the work saved and the communication it introduces.
  • If your capacity cannot keep up with demand: Responses may be fast enough during quiet periods, but requests queue during busy periods. Then the goal is to increase throughput while meeting latency requirements. Additional model replicas can handle separate requests and reduce that waiting. A replica can itself span several GPUs. Adding replicas does not automatically shorten the model’s execution time for one request.

Knowing what your application needs most tells you how to use the extra GPUs. To understand when tensor parallelism helps, the next section follows one operation across the GPUs and shows what each device computes, what it exchanges and which work must wait.

How do tensor and pipeline parallelism split a model across multiple GPUs?

Consider an LLM built from a stack of transformer layers, and each layer passes its output to the next. Each layer runs attention, and a multilayer perceptron (MLP) block. Tensor parallelism splits calculations like these across GPUs so they can share the work within a layer while pipeline parallelism splits the stack of layers themselves.

Tensor parallelism splits each layer and exchanges results inside it

A linear projection can divide its weight matrix by columns across two GPUs. Both GPUs read the same input to calculate a different slice of the output. An all-gather collects those slices when a later operation needs the complete output on every GPU, otherwise the output can stay split. The weight matrix can also be divided by rows, so each GPU receives only the matching input features and produces a partial result. An all-reduce sums the partial results and gives every GPU the complete output, as the figure shows.

Animated diagram of one linear layer split across two GPUs, where column parallelism joins output slices and row parallelism sums partial results into the same output.
Splitting one linear projection across two GPUs. Column parallelism gives each GPU the full input and produces output slices, while row parallelism gives each GPU half the input and produces partial sums that an all-reduce adds together. Both give the same result, [12, 5, 8, 8].

Megatron-LM is open-source software from NVIDIA for training large transformer models across multiple GPUs. Its original tensor-parallel layout pairs a column-split projection with a row-split output projection in both the attention block and the MLP block. Each GPU works on its own slice in between. An all-reduce combines the partial results at the output of each block, so the GPUs perform two all-reduces per transformer layer in each forward pass.

Pipeline parallelism splits the model into groups of layers

Pipeline parallelism places consecutive layers of the model on different GPUs. Each GPU’s group of layers is called a stage. In a 64-layer model split across two GPUs, GPU 0 runs layers 0–31 and sends the output of layer 31 to GPU 1, which continues from layer 32. That transfer happens once per forward pass at the boundary between the two stages, and it repeats for every token during decoding. Tensor parallelism exchanges results inside every layer, so pipeline parallelism communicates less often.

A batch can also be divided into smaller groups, called microbatches. GPU 0 can process one microbatch while GPU 1 processes another, as the figure shows. Each microbatch still passes through the stages in order, so pipeline parallelism does not make one request finish sooner by itself.

Animated diagram of two GPUs running a four-layer model, where pipeline parallelism passes microbatches A and B between stages and tensor parallelism has both GPUs share every layer.
With pipeline parallelism, each GPU owns two layers, so GPU 0 can start microbatch B while GPU 1 is still working on microbatch A. With tensor parallelism, both GPUs work on every layer and exchange results inside each one.

Choosing between tensor and pipeline parallelism comes down to how many GPUs the model needs and how fast those GPUs can exchange data. NVIDIA’s model-sharding guide gives a starting point for each case.

If the model fits on one GPU, start there to avoid communication overhead. If it needs several GPUs within one node, meaning one server, the connection between those GPUs decides the split. Start with tensor parallelism when the connections are fast, such as NVLink, NVIDIA’s direct GPU-to-GPU connection.

Start with pipeline parallelism when the connections are slow. If the model needs multiple nodes, use tensor parallelism within each node and pipeline parallelism between nodes, since connections between nodes are usually slower. NVIDIA’s NVL36 and NVL72 rack systems are exceptions. They connect 36 or 72 GPUs over NVLink, which supports tensor parallelism across all of them.

Communication can consume the time saved on each GPU

Adding GPUs divides the local calculations, but it does not divide every part of execution equally. For example, moving a matrix multiplication from two GPUs to four may shorten each GPU’s calculation, but the all-reduce that follows still moves a full-size result, and now has to coordinate four GPUs instead of two. The operation that needs their combined result must still wait for the required contributions. The critical path is the longest chain of dependent calculations and waits, and it determines completion time. As each GPU’s share of the work shrinks, communication takes up a larger part of that path.

Small messages can still be expensive. As NVIDIA explains in its article on low-latency communication, starting communication and coordinating GPUs can dominate small tensor exchanges. Launching GPU operations, called kernels, also takes time. For larger messages, transfer bandwidth becomes more important. An algorithm that works well for large transfers may therefore perform poorly for small ones.

The connections between GPUs matter. A tensor-parallel configuration using fast NVLink connections can behave differently when its communication crosses a slower connection. Adding GPUs may reduce local computation while introducing a more expensive communication path.

The NVIDIA JAX/XLA example illustrates this tradeoff. During Gemma2 decoding across eight H100 GPUs connected through NVLink, small-message all-reduces became a bottleneck. Independent work can usually run while GPUs exchange data and hide part of the communication time. Here the neighboring operations needed the all-reduce results, so data dependencies prevented that overlap and left the communication on the critical path. How much communication stays exposed this way depends on the implementation and on how much independent work is available.

The team reduced overhead using a custom all-reduce, fused neighboring operations, and CUDA Graphs. CUDA Graphs record a sequence of GPU operations once and launch it as one unit, which cuts kernel launch overhead. This demonstrates that the communication implementation matters even with fast GPU connections.

The same GPU configuration performs differently as your workload changes

Request lengths and traffic change how much computation, memory and communication each GPU handles.

Long prompts and short answers. During prefill, the model processes the prompt tokens to prepare the first output token. Prefill multiplies large matrices across every prompt token, so each GPU’s share of the work stays large and the all-reduce is a small cost beside it. A document summarizer may spend much of its model execution here, so compare time to first token when changing tensor parallelism.

Short prompts and long answers. During decoding, each request generates one token per step. At small batch sizes, adding GPUs shrinks that per-token matrix work while the all-reduce latency stays roughly fixed, so more tensor parallelism can return less here than in prefill. A code generator producing a long response repeats these steps many times. Measure time between tokens as well as end-to-end latency, which is the total time to complete a response. Faster prefill alone may make little difference to that total.

Small versus larger batch. With a small batch size, calculations and communication messages can be small, making launch and communication overhead take up more of each step. Larger batches reuse loaded weights across more requests, which can improve GPU utilization and makes each all-reduce message larger relative to its fixed overhead. A configuration chosen for one user may behave differently during busy periods, so compare both conditions.

Long contexts and limited memory. Longer prompts and generated responses grow the transformer’s KV cache, and every active request needs its own cache space. A model that serves short conversations comfortably may support fewer long conversations at once. Check vLLM’s reported KV-cache capacity and estimated concurrency.

Should you use more GPUs for tensor parallelism or add replicas?

Snowflake AI Research’s Shift Parallelism study compared two ways to use the same 8 GPUs for Llama-70B. One configuration uses tensor parallelism (TP) to split a single copy of the model across all 8 GPUs as one tensor-parallel group. The other uses data parallelism (DP) to run 8 independent replicas, one per GPU. The table shows both static vLLM configurations under bursty traffic.

Static vLLM layouts on the same 8 H200 GPUs serving Llama-70B in FP8 under bursty coding traffic (Snowflake AI Research)
Static vLLM layouts on the same 8 H200 GPUs serving Llama-70B in FP8 under bursty coding traffic (Snowflake AI Research)

Layout

TP

DP

Median time to first token (TTFT, ms)

Median time per output token (TPOT, ms)

Peak combined throughput (tokens/s)

1 TP group

8

1

3,930

85

51,162

8 replicas

1

8

1,355

83

75,535

The benchmark used 8-bit floating-point (FP8) precision and vLLM 0.9.2 on 8 NVIDIA H200 GPUs all linked to each other over NVLink, with mixed coding requests and simulated traffic bursts.

Combined throughput includes input and output tokens. Requests mixed two real-world datasets, so the paper reports no fixed input lengths, output lengths or batch size for this run. Each replica needs enough memory for its own workload, and the 8-replica layout works here because the FP8 model fits on a single H200.

In this bursty workload, 8 replicas delivered 48% higher peak combined throughput and 66% lower median TTFT than the single TP group, while median TPOT changed from 85 to 83 ms. The same paper reports that tensor parallelism gives lower TPOT than data parallelism at low traffic, so the layout that wins depends on your traffic.

To test this on your own workload, keep the GPU budget and GPU types, model, runtime version, precision, request mix, and arrival pattern the same. Record the GPU connections and any other configuration differences.

How do you measure if extra GPUs helped?

Before you start, set your response-time target, the peak traffic you need to support, and your cost limit. Run the same benchmark on both a larger tensor-parallel group and more replicas on the same GPUs. For each configuration, measure TTFT, TPOT and end-to-end latency at the percentiles your application requires. Measure these from the client so queueing and network time are included, and use consistent metric definitions across tools. Rule out options with unacceptable errors or rejections, even when their throughput looks impressive. Then check each configuration against your response-time target first, your peak traffic second, and your cost last.

If only one configuration meets the response-time target: Choose it. Higher total throughput from the other configuration does not make up for missing your response-time target.

If both configurations meet the response-time target: Choose the one that also supports your required peak traffic while still meeting that target. Use results from your expected prompt lengths and traffic, because a winner at light load may not stay ahead during busy periods.

If both configurations meet all requirements: Choose the one with the lower cost of serving the same demand, including idle capacity.

The right configuration is the one that meets your latency targets at the traffic you expect, at the lowest cost of serving that demand. Adding GPUs is one way to get there. For the rest of the tuning and evaluation workflow, see how to increase LLM inference throughput without breaking your latency budget.

Related blog posts

Blog

Start building today

Instantly run any open model — popular or specialized.