LLMs Across Multiple GPUs: Tensor Parallelism and Replicas

Vladimir Lomtev•
LLMs Across Multiple GPUs: Tensor Parallelism and Replicas

Multiple GPUs are used for two different reasons: to fit a single model or to serve more independent requests. For the first task, you study sharding compute and layers; for the second, additional replicas. The choice affects memory, communication, latency, and failover, so total VRAM and the number of accelerators do not provide a complete answer.

Prepared by Vladimir Lomtev’s AI Studio November 14, 2026, for developers and infrastructure teams. This is a process for choosing and validating a deployment scheme based on engine documentation. No in-house multi-GPU benchmarks were run, and linear scaling is not promised. The examples are limited to text LLMs; specific model and topology support should be verified in the pinned runtime version.

Contents

First, determine why you are scaling

If the weights and required state do not fit on one device, you need to find a way to distribute execution or choose a different artifact. If the model fits but the queue is too long, the problem may be solved with additional replicas. If latency is caused by external retrieval, adding GPUs will not remove the application bottleneck.

Record the actual limitation you observed: OOM, queue growth, prefill taking too long, or slow decode. Tie it to input and output lengths and the agreed SLO. Without this starting point, it is hard to tell whether architectural complexity helped.

A general map of approaches is available in the vLLM Parallelism and Scaling guide. The documentation describes the options, but it does not replace testing your model on the selected interconnect.

Core deployment patterns

Pattern What is distributed When to consider it
Tensor parallelism Parts of the model’s operations and tensors Placement and joint execution of one copy
Pipeline parallelism Stages or groups of layers Split across devices or nodes when supported by the runtime
Independent replicas Full model copies Growth in total independent workload
Expert parallelism MoE experts Supported MoE architectures
Phase splitting Prefill and decode Managing different workload profiles after measurement

These approaches can be combined, but support for combinations depends on the engine. Do not start with the most complex combination. You first need a clear minimal setup that you can reproduce and recover.

How tensor parallelism works

With tensor parallelism, parts of one layer’s computations run on multiple accelerators. To produce a consistent result, the devices exchange data. That makes the interconnect part of performance, not just an extra server detail.

Sharding can help fit the weights and process one model jointly. But it adds communication operations. For a small model that already fits on a single GPU, those costs may be noticeable relative to the useful work. That is a hypothesis to test, not a universal prohibition.

Memory on each device is not necessarily equal to the total size divided by the number of GPUs. Replicated data, architectural details, and extra buffers are all possible. Plan resources based on runtime estimates and actual peaks, not just weight arithmetic.

When replicas are needed

A replica is a separate instance of the model handling its own work. If requests are independent and the model fits on a device, replicas help spread the load. The ingress router must account for instance readiness, limits, and queues.

Do not assume simple round-robin routing is enough for every scenario. Requests of different lengths can create uneven load. Repeated context can also affect cache efficiency and routing.

A failure of one replica requires a rule for unfinished operations. Regenerating may be acceptable, while repeating an external agent action can create duplicates. Retry handling and operation IDs belong in the application; they are not solved automatically by an extra GPU copy.

Pipeline parallelism and its limitations

Pipeline parallelism distributes sequential stages of the model. The output of one stage is passed to the next. With multiple units of work, the pipeline can overlap computation, but actual efficiency depends on scheduling and stage balance.

If one stage is much slower than the others, it limits overall throughput. A small amount of work may not fill the pipeline well enough. For each scheme, measure not only total generation, but also single-request latency.

Support for pipeline parallelism, combinations with tensor parallelism, and multi-node launches varies by runtime. Check the documentation for the exact version and architecture you need. Manually spreading model files across servers does not create a working pipeline.

MoE and expert parallelism

In MoE, part of the computation is routed to selected experts. The number of activated parameters helps describe the compute profile, but it does not replace the total weight size or the requirements for hosting them. When experts are distributed, the corresponding communication appears as well.

Do not compare MoE and a dense model only by the number of active parameters. Consider the architecture, request pattern, state placement, and the runtime implementation itself. Technical details can change the balance between memory and communication.

Expert parallelism scenarios and related settings are described in the SGLang documentation and in the relevant sections of the selected engine. For a production decision, document the exact supported configuration, not just the name of the mechanism.

Interconnects differ in bandwidth, latency, and topology. The mere presence of multiple GPUs does not mean the data exchange path is the same for every pair. The result depends on the specific platform and settings.

For NVIDIA, a first check is useful:

nvidia-smi
nvidia-smi topo -m

These commands help you see the devices and topology, but they do not replace a communication test. In distributed environments, you also need to check the network and supported collective operations. The official NVIDIA NCCL tests suite can be used in a suitable authorized environment; parameters and interpretation should be chosen according to the documentation.

Compare the planned setup with the actual server. Two GPUs on one board, several devices in different slots, and multiple network nodes are different configurations. You cannot transfer numbers between them without verification.

How to set up a minimal experiment

Lock in one model and one baseline workload. Start with the baseline mode that already works. If the model does not fit on one GPU, the baseline may be another valid placement option; that must be stated clearly instead of pretending the conditions are identical.

To verify the syntax for the chosen vLLM, use:

vllm serve --help

The flag --tensor-parallel-size refers to the size of the corresponding partition. Its value must match the available devices and the supported architecture. The specific command is formed after selecting the model, context, and image; a universal string for any multi-GPU server would hide important conditions.

After startup, check the actual placement and logs. Then run a short prompt, a long input, and several concurrent requests. Do not jump straight to maximum load: first you need to confirm the routing is correct.

What to measure when comparing architectures

For the same workload, record TTFT, total latency, output throughput, errors, memory on each GPU, and queue behavior. Specify the number of clients, input and output lengths, and cache rules. Separately record the cost of the dedicated resource in the chosen accounting system.

You can compare two architectures: one copy of the model across multiple devices and several copies on available devices, if both are compatible with the artifact. The goal is to find the option that meets the task at the required SLO. Do not declare a winner based only on the best single generation.

For the measurement procedure, use vLLM Benchmark CLI. If the number of instances changes, make sure the client is actually distributing work across them and is not bottlenecked on a single address or gateway limit.

Common reasons for weak scaling

A small workload may not give the devices enough useful work. Long and short requests in the same stream can create imbalance. Communication can take up a significant part of each step. An unsuitable backend, incorrect topology, and insufficient memory on an individual device are also possible.

Also check the client side separately. If the generator sends one request and waits for completion, additional replicas may sit idle. If the load balancer keeps the entire stream on one instance, the panel of total available memory will not explain the problem.

Do not leave quality out of the comparison. Changing precision or format to make placement possible changes the conditions. An artifact that became easier to distribute must pass benchmark tasks again. Basic format differences are covered in a practical article on quantization.

Recovery and updates

In a split-model architecture, failure of one participant can affect the entire corresponding copy. With independent replicas, other failure boundaries are possible. This must be tested in a staging environment and considered when planning availability.

Describe the shutdown, restart, and traffic return process. Process readiness and model readiness are different states. If requests start arriving before loading is complete, the client will see errors even when all containers are formally running.

For updates, keep compatible artifacts and configurations. Repeat the benchmark set and load test after a major change to the runtime, model, or topology. The overall system design around the model is shown in a case study on an in-house LLM at a company.

Multi-GPU architecture selection sheet

Reason for scaling and target SLO:
Model, revision, format:
Engine, version, parallelism type:
Number of GPUs and interconnect topology:
Memory on each device:
Input, output, and request rate:
TTFT, total latency, throughput, errors:
Quality check:
Failure boundary and recovery:
Resource cost and decision:

Copy the sheet for each candidate. If the starting conditions differ, include them in the conclusion. This makes it possible to decide on the configuration, rather than argue about the abstract usefulness of multiple GPUs.

The mechanisms behind server settings are covered in the guide to engines and inference acceleration. Before choosing hardware, it is useful to review a comparison of self-hosted inference and APIs.

Frequently asked questions

Are two GPUs always twice as fast as one?

No. The result depends on work partitioning, interconnect, the model, and the workload. You may see a gain, a small effect, or a deterioration in the chosen metric.

Can you pool the VRAM of different cards?

Only in the sense of a supported placement scheme, not as universal shared memory. Different device capacities and speeds can create limits and imbalance.

What should you choose for a large number of short requests?

If the model fits, test independent replicas and traffic distribution. Then compare them with a split copy against your SLO and quality.

When do you need multi-node?

When the task truly exceeds the capacity of the selected node and the supported distributed option passes validation. Network and operational complexity become separate parts of the decision.

How Vladimir Lomtev’s AI studio helps choose a deployment setup

Vladimir Lomtev’s AI studio can connect LLM deployment with data preparation, integration, and testing. For scaling, that means defining the workflow, checking the appropriate execution option, and aligning the launch criteria within the system.

The first step is to define a single process, its current latency, volume, and the constraint that needs to be removed. Discuss the project.

How to choose a setup for multiple GPUs

First determine whether you need to host one model or increase the amount of independent work. Then check compatibility and topology, and measure latency, memory, and errors on the same workload. Preserve the configuration and recovery procedure: scaling should improve the managed production service, not just bring more devices online.

Request an audit

Share your contact details and we will follow up.

← All articles

Comments (0)

Loading comments…

Leave a comment
No registration required

Book a strategy call
for agentic operations

Tell us which workflow you want to improve. We will map feasibility, risks, and the fastest MVP path.

By submitting, you agree to our privacy policy

Contacts

Global Operations

Serving U.S. clients remotely
with private cloud and on-prem options

Strategy calls by request

We respond after reviewing your workflow context.

info@agentsunrise.pro

For partnership inquiries

Have a proposal?

Write to us in messengers

© 2026 AgentSunrise