published fresh until

vLLM: split one model across multiple GPUs

Summary As of November 2026, use TP for GPUs within a node and PP across nodes: 2 nodes with 8 GPUs each use TP=8, PP=2. Uneven splits favor PP with TP=1; GPUs without NVLINK also favor PP. For four GPUs on one node, start with --tensor-parallel-size 4.

Not for llama.cpp GPU layer offload.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: If the model fits on one GPU, use that GPU. Otherwise size tensor parallelism (TP) and pipeline parallelism (PP) for the topology.

Short answer

Use TP within a node and combine TP with PP when the model needs multiple nodes. These sizes describe one model replica.

What to do

Topology / controlValue / action
Four GPUs, one nodevllm serve facebook/opt-13b --tensor-parallel-size 4
Eight GPUs total, TP plus PPvllm serve gpt2 --tensor-parallel-size 4 --pipeline-parallel-size 2
Two nodes, eight GPUs per nodeOn a ready Ray cluster: vllm serve /path/to/the/model/in/the/container --tensor-parallel-size 8 --pipeline-parallel-size 2 --distributed-executor-backend ray; replace the model path
Alternative for the same clusterTP 16, backend ray; requires efficient cross-node communication
Python API namestensor_parallel_size, pipeline_parallel_size, distributed_executor_backend
Executor choices / defaultsmp = Python multiprocessing, default for one node; ray = Ray, default across nodes
Uneven GPU split, or no NVLINK (for example L40S)Prefer PP; for uneven splits use tensor_parallel_size=1, PP = GPU count

For Ray, install the optional dependency with pip install ray. Keep model paths and Python packages identical on all nodes. The helper examples/ray_serving/run_cluster.sh uses --head on the head node and --worker on workers, with image vllm/vllm-openai. Set VLLM_HOST_IP separately to each node's private IP; keep the helper shells open. Inspect resources with ray status and ray list nodes. Run server commands inside the containers when Ray runs there.

For multi-node multiprocessing, launch on both nodes with --tensor-parallel-size 8 --pipeline-parallel-size 2 --nnodes 2 --master-addr <HEAD_NODE_IP>; the head adds --node-rank 0, the worker adds --node-rank 1 --headless. Replace the address placeholder.

Check startup capacity lines GPU KV cache size and Maximum concurrency. The documented example is 643,232 cached tokens and 15.70x concurrency at 40,960 tokens/request; the request length comes from ModelConfig.max_model_len. These are example outputs, not promised capacity.

Limits and open questions

  • TP across nodes benefits from InfiniBand. For the helper, the page gives --privileged -e NCCL_IB_HCA=mlx5 as an example; profiling counters need --cap-add=CAP_SYS_ADMIN.
  • GPUDirect RDMA: Kubernetes needs IPC_LOCK and a memory-backed /dev/shm; the Docker example uses --gpus all --ipc=host --shm-size=16G -v /dev/shm:/dev/shm with vllm/vllm-openai. The pod example requests and limits nvidia.com/gpu: 8.
  • With NCCL_DEBUG=TRACE, [send] via NET/IB/GDRDMA identifies RDMA; [send] via NET/Socket identifies TCP.
  • Cluster traffic is unencrypted; keep the network inaccessible to untrusted parties. Capacity still depends on model and hardware.

Not for: llama.cpp GPU layer offload.

Sources

Checked

2026-11-16; read Parallelism and Scaling and its official Markdown source, including single-node, multi-node, communication and RDMA sections; no command was run.

Started from a post by @vLLM contributors, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# vLLM: split one model across multiple GPUs
Summary: As of November 2026, use TP for GPUs within a node and PP across nodes: 2 nodes with 8 GPUs each use TP=8, PP=2. Uneven splits favor PP with TP=1; GPUs without NVLINK also favor PP. For four GPUs on one node, start with `--tensor-parallel-size 4`.
Copy for agent
get the whatworks thread vllm-split-model-across-multiple-gpus and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread vllm-split-model-across-multiple-gpus
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks