vLLM tensor parallelism across GPUs in one node

Tensor parallelism splits one model across the GPUs of a single server, which helps when a model or its cache does not fit on one GPU or when per-user latency matters. This page covers when to use it, how to configure it, and what to confirm before you buy the hardware.

On this page

When vLLM tensor parallelism across GPUs in one node is worth using

Tensor parallelism in vLLM splits each layer of a model across the GPUs in one server, and you set the degree with tensor-parallel-size. Teams need it when the model's weights and the memory needed for the KV cache do not fit on a single accelerator, or when a single GPU cannot meet the per-user latency a product requires. Before you choose a GPU count, confirm the model's memory footprint at your intended precision and context length against the GPUs you can actually buy or lease, because that number, not preference, usually decides whether you need more than one card.

vLLM is Apache-2.0 open source with no paid edition, so the cost of this decision sits in accelerator capacity, the server and network around it, and the people who size, run and patch it. Each extra GPU in a tensor-parallel group adds hardware cost that recurs for as long as the server runs, and it also adds communication between cards on every token. Ask your hardware vendor or cloud provider for the quoted price per GPU-hour or per server, and ask your engineers to estimate the operating hours per month, so you can compare one large server against several smaller ones under the same budget.

The vLLM recipes for Llama 3.3 70B and Llama 4 Scout state that tensor-parallel-size 1 gives the best throughput per GPU, while 2, 4 or 8 favor per-user latency. That means a larger group is a latency choice that costs throughput, so write down which metric your service-level target depends on before you pick a value. Confirm the recipe for your exact model and GPU type in the vLLM recipes repository, and benchmark the settings on your own prompts, because the recipe numbers do not reflect your traffic shape.

How one request flows across tensor-parallel GPUs in one server

A request enters through the OpenAI-compatible API endpoint that vllm serve exposes, which is the only component reachable from outside the host. The engine hands the work to worker processes, one per GPU, each holding a shard of the model's weights. The workers exchange intermediate results through a shared memory segment (/dev/shm) on the host, and the combined output returns to the client through the same endpoint. Check that the host boundary holds: no worker port should be reachable from outside, and the shared memory size must be set for the container.

One request fanned out to tensor-parallel GPU workers on one host.

Which tensor-parallel-size fits which goal

This table compares tensor-parallel-size values of 1, 2, 4 and 8 against the goal each one tends to serve, then lists the hardware and model checks to confirm before choosing. Read the TP rows as a starting point for benchmarking your own model and traffic, not as a final setting.

Setting or checkWhat it favors or requiresWhat to confirm before choosing
TP 1 (one GPU per model replica)Best throughput per GPU, according to vLLM recipes for Llama 3.3 70B and Llama 4 ScoutWhether the full model and its KV cache fit on one GPU at your context length and concurrency
TP 2Lower per-user latency than TP 1, at a lower throughput per GPUWhether your latency target justifies the GPUs it consumes compared with extra replicas
TP 4Lower per-user latency for models too large for fewer GPUsWhether the GPUs in the server are fully connected at the speed TP traffic needs
TP 8Lowest per-user latency among the listed sizes, for the largest models on one serverWhether the server has eight GPUs of the same type and whether traffic is light enough to justify them
Model fit per GPU memorySets the minimum TP size, since weights are split across GPUsWeights, activations and KV cache per GPU at your maximum sequence length, measured on your model
GPU count per serverCaps the TP size you can run inside one nodeNumber of GPUs in each server and whether other workloads share them
GPU vendor interconnectDetermines how fast GPUs exchange data during each layer, so it affects the latency gain from higher TPThe interconnect type in your servers and the vendor's guidance on peer-to-peer communication for your GPU generation
Shared memory in the containervLLM needs host shared memory for tensor parallel inference, mounted at /dev/shm in KubernetesWhether your container runtime or pod spec sets a shared memory size large enough for the chosen TP

What drives the choice of GPU count per model

The GPU count for a model is rarely a single number. Memory fit, latency targets, cost per token, hardware topology, replica count and model size all pull in different directions, and the right tensor-parallel size comes from weighing them against the workload. Check each driver in order before you buy or reserve hardware.

Whether weights and KV cache fit

Start by checking whether the model weights and the KV cache for your expected context length and concurrency fit in the memory of one GPU. If they do not, you need tensor parallelism or a smaller or quantized checkpoint. Confirm the figures for your exact model, precision and context settings with the model card and the vLLM documentation, since the KV cache grows with concurrent requests and sequence length.

Parallelism docs

Per-user latency targets

The vLLM recipes for Llama 3.3 70B and Llama 4 Scout say that tensor-parallel sizes of 2, 4 or 8 favor per-user latency. If your application is interactive, such as a chat assistant or a coding tool, measure time to first token and inter-token latency at your expected concurrency before you settle on a size. Latency targets are often the reason a team moves from TP 1 to a larger group.

Latency-favoring TP sizes
2, 4, 8

Throughput per GPU and cost

The same recipes say TP 1 gives the best throughput per GPU. Every additional GPU in a tensor-parallel group adds communication work on each decoding step, so cost per token can rise as the group grows. Ask for benchmark results at each candidate size on your hardware, and compare cost per million tokens at the latency you actually need, not at peak load.

GPU generation and interconnect

The speed of links between GPUs in one server decides how much tensor parallelism costs. A server with NVLink or a comparable high-bandwidth fabric handles the per-step all-reduce traffic far better than one where GPUs talk over PCIe. Record the GPU generation, the interconnect topology reported by the driver and the NCCL transport in your logs, then benchmark the candidate TP sizes on that exact server.

Replicas needed for load

If one model copy can serve your peak load, a larger tensor-parallel group may be unnecessary. When traffic needs several copies, running more single-GPU or smaller-TP replicas often beats one large group, because each replica handles its own requests. Work out the number of replicas from your expected request rate and latency budget, then decide whether one large group or several small ones fits the server and the load balancing you plan to run.

Scaling docs

Whether the model needs more than one node

A model that cannot fit in the GPUs of one server needs a different layout. vLLM uses tensor parallelism within a node and pipeline parallelism across nodes, so a model larger than one server calls for a combined layout. Read the sibling topic on pipeline parallelism across nodes before you commit to a multi-server design, because it adds network requirements and security work that a single-node setup does not carry.

How to configure tensor parallelism on one server

This sequence takes a single multi-GPU server from a checked driver stack to a running vLLM endpoint that spreads one model across its GPUs and answers a test request. Each step ends with a check you can record before moving on.

  1. Confirm the accelerator vendor and driver stack

    The infrastructure or platform team confirms which GPU vendor and driver stack the server uses, such as NVIDIA CUDA, AMD ROCm or Intel XPU, and that the driver, runtime and container toolkit versions match what the vLLM installation docs list for that platform. Check every GPU is listed by the driver's device query tool and that the GPUs share the same model and memory size. Done when the device list shows the expected count and the runtime reports no errors.

  2. Install vLLM from the installation docs

    The platform engineer installs vLLM using the method the installation guide gives for the chosen accelerator, either a Python environment or a container image, and pins the exact release so the deployment can be reproduced and upgraded later. Record the release tag from the vLLM GitHub releases page. Done when the vLLM version command prints the pinned release and imports the GPU backend without errors.

  3. Start vllm serve with tensor-parallel-size set

    The platform engineer starts the server with vllm serve and sets --tensor-parallel-size to the value chosen for the workload. Use 1 when throughput per GPU matters most and a larger value when per-user latency matters, and confirm the value equals or divides the number of GPUs available. Bind the server to an internal address, and set the model path and any chat template the model needs. Done when the startup log reports the model loaded across the expected number of workers.

  4. Confirm all GPUs are visible and used

    The platform engineer checks that every GPU in the tensor-parallel group shows memory allocated for the model while the server is idle and under load, using the vendor monitoring tool, such as nvidia-smi on NVIDIA systems. Review the startup log for communication backend messages and for any warning that a worker failed to start. Done when each GPU in the group reports the model weights in memory and no worker has exited.

  5. Provision shared memory for the container

    If vLLM runs in a container, the platform engineer gives it access to host shared memory for tensor-parallel communication. In Kubernetes, the vLLM guide mounts an in-memory emptyDir at /dev/shm, and Docker deployments need an equivalent shared memory setting in the run configuration. Confirm the size is large enough for the workers and the model, and check the startup log for shared memory allocation errors. Done when the container starts all workers without a shared memory error.

  6. Send a test request to the OpenAI-compatible endpoint

    The application or platform engineer sends a short request to the chat completions endpoint on the server's OpenAI-compatible API, using the model name the server reports. Confirm the response is a valid completion with token counts. Done when the request returns HTTP 200 with generated text and the metrics endpoint shows the request counted.

  7. Check that the chat template exists

    Before any chat application relies on the server, the platform engineer confirms the model has a chat template, either bundled with the model or supplied with the --chat-template option. Without one, the chat completions API cannot format messages. Send a multi-turn chat request to confirm the template renders correctly. Done when the chat request returns a sensible reply and the template source is recorded in the deployment notes.

Why tensor parallel inference needs shared memory in containers

Tensor parallel inference needs access to the host's shared memory, and the containers that run vLLM must be configured to provide it. The vLLM Kubernetes guide states this requirement and handles it by mounting an in-memory emptyDir volume at /dev/shm. The GPU workers in a tensor-parallel group exchange intermediate results on every forward pass, and the shared memory segment is where that exchange happens on the same host. The Kubernetes guide is the vLLM on Kubernetes reference for this manifest detail.

Outside Kubernetes, the equivalent is to give the container a shared memory allocation large enough for the worker processes. With Docker, that means setting the shared memory size on the run command (for example, with the --shm-size flag) or using the host IPC namespace, depending on what your security team allows. Other runtimes and orchestrators expose similar settings under different names. Confirm three things in your own environment: the size your runtime applies by default, whether your platform overrides it, and whether the same container image runs with the same allocation on every node that hosts a tensor-parallel group.

The symptom of missing or undersized shared memory is usually a worker that fails during startup or during the first multi-GPU requests, often with an error that points to shared memory or to the communication library rather than to the model. Because the failure appears only when tensor-parallel-size is greater than 1, a single-GPU smoke test can pass while the production layout fails. Include a two-GPU or larger startup test in your acceptance checks, and record the shared memory size in the deployment manifest so that a later change to the runtime defaults does not silently break inference.

Security and operational considerations for a multi-GPU server

A tensor-parallel vLLM server exposes one endpoint, one set of metrics and one host shared by every GPU worker. The cards below cover the four areas that most often leave a multi-GPU deployment weaker than its single-GPU prototype, and each one names what to check before the server takes real traffic.

Limit which endpoints users reach

The --api-key option does not protect /metrics, /health, /invocations or the pause and abort endpoints, so a key alone leaves operational routes open. The vLLM security docs recommend a reverse proxy that allowlists only the endpoints meant for users, such as /v1/chat/completions and /v1/completions. Check the proxy rules from outside the network, not only from the proxy's configuration file.

vLLM security docs

Keep metrics off public routes

The server publishes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use. These figures show per-GPU load and queue behavior, which helps capacity planning but also reveals usage patterns to anyone who can read them. Scrape them from a monitoring network, and confirm that the reverse proxy blocks the path for end users.

vLLM metrics docs

Isolate shared memory between tenants

Tensor parallel inference needs access to the host's shared memory, which the Kubernetes guide provides as an in-memory emptyDir at /dev/shm. In a container, that mount is visible to every process that shares the same pod or namespace. If several teams or models share one host, decide whether they get separate hosts, separate GPUs with strict device assignment, or separate namespaces, and confirm the memory limit before sizing the mount.

vLLM Kubernetes docs

Plan patching on a fast release cycle

vLLM ships new minor releases about every two weeks, with v0.28.0 on August 26, v0.29.0 on September 9, v0.30.0 on September 22 and v0.31.0 on October 5, 2026. A tensor-parallel layout that works on one release may need retesting on the next, and each upgrade changes the engine your security review covers. Set a written cadence for reviewing release notes, testing on a staging node with the same GPU count, and rolling changes to production.

vLLM releases

Protect the node network between GPUs

Multi-node deployments are insecure by default, with no authorization or encryption between nodes, so they must sit on an isolated network. A single-node tensor-parallel server avoids that inter-node channel, but it still runs worker processes that talk to each other over local interfaces. Confirm that no worker port is reachable from the user network, and record the host firewall rules as part of the deployment evidence.

Trade-offs between throughput per GPU and latency per user

The core decision is whether one model instance should spread across more GPUs to answer each user faster, or stay on fewer GPUs so that more independent replicas serve traffic. The vLLM recipes for Llama 3.3 70B and Llama 4 Scout make this trade explicit: tensor-parallel-size set to 1 gives the best throughput per GPU, while 2, 4 or 8 favor per-user latency. Set --tensor-parallel-size to match the GPU count you intend to dedicate to one copy of the model, and treat the recipe values as starting points for your hardware, not as settled answers.

Every GPU added to one model instance is a GPU not available for another copy. If a model fits on a single GPU at your context length and precision, raising TP does not create extra capacity, it removes capacity from the replica count. Each replica also pays communication cost between GPUs on every generated token, so per-GPU efficiency usually falls as TP grows. Ask your team to state the target in writing: a per-user token rate for interactive use, or total tokens per hour for batch work, because those targets point to different layouts.

Measure both before committing. Build a test set from prompts and output lengths that match your real traffic, then run the same workload at TP 1 and at the larger TP values you are considering, recording time to first token, inter-token latency, tokens per second per GPU and behavior under concurrent load. The metrics endpoint at /metrics exposes request counts, token throughput and latency histograms that help with this comparison. Tuning batching, memory and caching settings changes these numbers substantially, so run that work on the sibling performance and GPU sizing page before you fix the layout.

Limits to confirm in your environment

Tensor parallelism looks simple in a flag, but its fit depends on details that change by model, GPU and container runtime. The cards below cover the items to verify directly rather than assume from documentation or a recipe.

Recipe coverage for your model

The published recipes for Llama 3.3 70B and Llama 4 Scout give tensor-parallel-size 1 as the best throughput per GPU, with 2, 4 or 8 favoring per-user latency. Those recipes do not automatically cover your model family, quantization or context length. Confirm the exact checkpoint, the TP values you intend to run, and whether your target release has a recipe or whether you must benchmark the layout yourself.

Best throughput per GPU
TP 1
Llama 3.3 70B recipe

GPU vendor and version support

vLLM runs on NVIDIA CUDA, AMD ROCm and Intel XPU GPUs, but support for a specific GPU generation, driver stack or CUDA and ROCm version is a release-level question. Confirm that your exact accelerator model and driver versions are supported in the vLLM release you plan to pin, and check the hardware notes for that release before procurement.

GPU platforms named
3
vLLM installation docs

Shared memory in your container runtime

Tensor parallel inference needs access to the host's shared memory. On Kubernetes, the vLLM guide mounts an in-memory emptyDir at /dev/shm for this purpose. Docker and other runtimes default to a small shared memory size, so confirm the --shm-size setting or equivalent in your runtime and check that the limit is not set below what the chosen TP size needs.

vLLM Kubernetes guide

GPU count and interconnect match

The TP value must divide the number of GPUs the server exposes to the container, and every GPU in the group should be visible and healthy. Check the topology with your vendor's tooling, because GPUs connected over PCIe rather than a higher-bandwidth link can slow tensor-parallel communication. Confirm the layout on the actual hardware rather than the spec sheet.

Parallelism and scaling docs

Memory fit at the chosen TP

Splitting weights across GPUs reduces the memory each card holds, but the KV cache, activations and CUDA overhead still must fit on every device. Confirm that the model weights, the context length you need and the concurrency target fit at the TP value you select, and test the headroom under load rather than at idle.

vLLM metrics docs

Chat template and API readiness

A chat completions endpoint requires a chat template, either bundled with the model or supplied with --chat-template. This is independent of TP, but it affects whether the server you tune for latency can serve the applications that depend on it. Confirm the template for your model and test the API path your applications use before choosing a layout.

Online serving docs

Questions buyers ask about tensor parallelism in vLLM

What does tensor parallelism in vLLM cost if the software is free?

vLLM has no paid edition, so the cost of running tensor parallelism comes from the accelerators that hold the model, the server and networking around them, and the people who install, configure and operate the setup. The GPU count is the main driver. Tensor parallel size sets how many GPUs share each layer of one model, so a larger size means more accelerator capacity reserved for every replica. Recipes for Llama 3.3 70B and Llama 4 Scout favor a tensor parallel size of 1 for throughput per GPU, which means that a larger size is usually a choice made for latency, and it costs more hardware per served replica. Ask any partner to price accelerator capacity separately from implementation, and to show which parts are one-time (installation, tuning, benchmarking) and which recur (hardware rental or depreciation, monitoring, upgrades).

How long does a tensor parallel setup take, and what makes it longer?

The duration depends mostly on how many models, GPU configurations and clients are in scope, and on whether the target hardware is already provisioned and tested. A single model on one node with a known tensor parallel size is a small job. Longer work comes from choosing the tensor parallel size against measured latency and throughput targets, confirming that the chosen GPUs and drivers match the vLLM release in use, validating shared memory in the container runtime, and load testing under realistic request sizes. Procurement and access to GPUs often set the start date more than the configuration does. No fixed duration is stated here; ask for a timeline that lists each milestone and the dependency it waits on.

What does the work need from our own team?

The work needs named owners for four things: the GPU servers and their drivers, the container runtime and its shared memory settings, the network that carries API traffic, and the model weights and their storage. Someone must also decide the acceptance criteria, such as the latency and throughput the business needs for each workload, and approve the model and vLLM versions that go into production. Your team will be asked for server access, change windows, a test environment that matches production hardware, and a decision on who receives monitoring alerts. Agree these responsibilities in writing before the start of the work so that gaps are visible early.

Can our own engineers set up tensor parallelism without a partner?

Yes, if your engineers already run GPU workloads in containers and can read vLLM's logs, benchmarks and release notes. The configuration itself is small: a tensor parallel size flag, a shared memory mount such as an in-memory emptyDir at /dev/shm on Kubernetes, and a correct model choice. The difficult part is measurement. Your team has to define latency and throughput targets, run load tests at realistic concurrency, compare tensor parallel sizes on the same hardware, and repeat the tests after each vLLM upgrade. If nobody on the team has done this before, a partner can shorten the learning curve, but the decision on how to size the deployment should stay with your team.

When should we choose pipeline parallelism instead of more tensor parallelism?

Choose pipeline parallelism when the model does not fit within the GPUs of one server, even at the largest tensor parallel size that the node offers. vLLM uses tensor parallelism within a node and pipeline parallelism across nodes, so the question usually arrives after a single node is full. Pipeline parallelism brings network traffic between nodes, requires an isolated network because inter-node communication is insecure by default, and adds a multi-node backend to operate. Tensor parallelism inside one node is simpler and should be the first option tested. Ask the engineers to show the memory calculation for the model, the tensor parallel size tested, and the reason one node cannot serve the workload before adding a second node.

What should a partner's written quote include for this work?

A written quote should list each deliverable and the environment it applies to: the GPU hardware and driver versions, the vLLM version and release channel, the model and precision, the target tensor parallel size and the reason for it, the container image and shared memory configuration, and the benchmark method. It should separate one-time work from recurring work, name who provides the hardware and who pays for it, and state what is excluded, such as model fine-tuning, application changes or multi-node networking. Ask for the acceptance tests and the handover material, including runbooks for upgrades. DeployOpen plans most engagements as fixed-scope work, with scope, deliverables and timelines agreed in writing before work starts, and that agreement is where these items should appear.

Does a high tensor parallel size always mean better performance?

No. Recipes for Llama 3.3 70B and Llama 4 Scout describe tensor parallel size 1 as the setting that gives the best throughput per GPU, while sizes of 2, 4 or 8 favor per-user latency. A larger size can make one request faster for a user but uses more GPUs for the same number of served requests. The right value depends on your latency target, your concurrency and the hardware cost you accept. Measure both settings on your own workload and hardware before you commit, and record the results so that a later upgrade can be compared with the same test.

How DeployOpen scopes and delivers tensor-parallel vLLM

DeployOpen plans, implements, hardens, documents and supports self-hosted vLLM inside your own infrastructure, whether that is your cloud accounts, your data center or an air-gapped network. Most engagements are fixed-scope: the scope, deliverables and timeline are agreed in writing before work starts, and the quote follows from that written scope. Ongoing support, upgrades and continuous testing are available as a retainer once the initial deployment is live. DeployOpen does not publish a price list, so the useful preparation is making the scope inputs concrete enough that a quote can be produced from them.

The scoping inputs for a single-node tensor-parallel deployment are specific. Start with the model: its name, precision, weight size and whether it needs a chat template for the chat completions API. Next, the GPU server inventory: the number of GPUs per server, their memory, the interconnect between them and whether the host has enough shared memory for tensor parallel inference. Then the targets, stated as per-user latency and aggregate throughput, since these decide whether the design uses a larger tensor-parallel-size or a replica layout. Finally, the network isolation requirements, including who may reach the /v1 endpoints and whether the metrics and health paths sit on a separate network. Ask for a written list of which of these are confirmed and which are assumptions, because open items are the most common cause of scope changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.