When vLLM pipeline parallelism across nodes is the right layout
vLLM splits a model with tensor parallelism inside a node and pipeline parallelism across nodes. Pipeline parallelism is the layout to consider when the model weights and the KV cache cannot fit in the accelerator memory of one node, even after every GPU in that node is used. Each node holds a contiguous group of layers, and the nodes pass activations to each other in sequence. Before you choose this layout, confirm the model's weight size, the precision you plan to serve it at, and the memory left for the KV cache on each GPU type you own. If one node can hold the model with room for the cache your concurrency needs, a multi-node layout adds network traffic and failure points without a benefit.
Two alternatives are often simpler. A single-node layout with tensor parallelism is the first check, since it keeps all GPU communication on fast local links. If the model fits but your traffic does not, running several independent replicas behind a load balancer scales throughput with less coordination between nodes. Pipeline parallelism across nodes is the choice when capacity for one model instance is the constraint. The engine is open source under Apache-2.0 and has no paid edition, so the cost of this layout comes from the accelerators, the network and storage around them, the implementation work, and the staff who operate a multi-node cluster for the life of the service.
The cost is not only hardware. Multi-node serving adds a cluster to run: a head and worker layout, a coordination backend, and nodes that must stay in step through restarts and upgrades. The vLLM security documentation states that communication between nodes is insecure by default, so the nodes must sit on an isolated network. Ask your team to confirm, before committing hardware, who will own that network, how node failures are detected and recovered, and whether the operations staff can support the chosen backend. Those answers decide whether the multi-node layout is the right one for your organization.
Layout rules for combining tensor and pipeline parallelism
Tensor and pipeline parallelism multiply together, so the layout starts with how many GPUs each node has and how many nodes you can dedicate to one model. The cards below cover the arithmetic, the constraints the model itself imposes, and the checks to run before you order hardware.
Tensor size follows GPUs per node
Set tensor-parallel-size to the number of GPUs you will use inside each node, since tensor parallelism is the layer that runs within a node in vLLM. Tensor parallel traffic is frequent and latency-sensitive, so keeping it on the fast intra-node links is the first rule. Confirm how many GPUs each server exposes to the container and whether all of them are visible to the same process group.
Pipeline size follows node count
Set pipeline-parallel-size to the number of nodes that will hold consecutive slices of the model's layers. Each pipeline stage passes activations to the next stage over the network, so this value controls how many cross-node hops a token takes. Adding stages lets a model larger than one node fit, but it adds hops, so use the smallest count that holds the weights and KV cache.
Total GPUs equal the product
The GPU count for the deployment is tensor size multiplied by pipeline size, so 4 GPUs per node across 2 nodes gives 8 GPUs in total (illustrative). Count the total before procurement, and check that the scheduler or Ray placement can give each stage a full node of GPUs. A partially allocated node usually fails at startup rather than running slowly.
Attention heads constrain tensor size
The tensor-parallel size must divide evenly into the model's attention head count and, for many architectures, its key-value head count, because heads are split across GPUs. A GPU count that works for one model family can fail for another with different head counts. Read the head configuration from the model's config file and confirm the valid sizes against the vLLM docs for your release.
Layers constrain pipeline size
Pipeline stages split the transformer layers into contiguous groups, so the layer count must be divisible into the chosen number of stages, or stages will be uneven. Uneven stages leave some nodes idle and push memory limits onto the heaviest one. Check the layer count in the model config, the expected memory per stage, and whether the vLLM release you run balances stages automatically.
Confirm constraints for your version
The exact divisibility and layout rules change with model architectures and vLLM releases, so treat this page as a planning guide, not a reference. Before ordering hardware, test the planned layout in a non-production environment on your target release, and record the chosen sizes with the model revision. Ask your vendor or DeployOpen engineer to validate the layout against the release you will deploy.
Which parallelism settings fit which layout
This table compares the settings that shape a multi-node vLLM layout: tensor and pipeline sizes, the distributed executor backend, and the node-level flags. Read each row against your hardware, then confirm exact flag names in the vLLM version you install, since the parallelism docs describe the behavior and names can change between releases.
| Setting | What it controls | When it fits |
|---|---|---|
| --tensor-parallel-size | Splits each layer's weights across the GPUs in one node, so the GPUs must share fast local links | Use it to fit the model in the memory of a single node's GPUs; keep it at the GPU count per node |
| --pipeline-parallel-size | Splits the model's layers into sequential stages placed across nodes, passing activations between stages | Use it when the model still does not fit after tensor parallelism uses every GPU in a node |
| Ray executor backend | Manages workers and placement across nodes through a Ray cluster that you start and secure | Fits teams already running Ray, or needing its placement tooling; adds a cluster to operate |
| Multiprocessing executor backend | Launches workers across nodes with vLLM's own multiprocessing support, without a Ray cluster | Fits teams that want fewer moving parts and a smaller attack surface; confirm the backend option name in your version |
| Node-level flags (nnodes, node-rank, master-addr) | Define how many nodes participate, each node's rank, and the address where the head node coordinates | Set on every node in the layout; a mismatch between nodes is a common cause of failed startup |
| VLLM_HOST_IP per node | Sets the IP address each node advertises to the others for cross-node traffic | Set on each worker when a node has several interfaces, so traffic uses the intended network |
| Total GPUs (TP times PP) | Determines how many GPUs the layout consumes and must match the cluster's allocated GPUs | Check that the product of tensor and pipeline sizes equals the GPUs you have reserved |
| Pipeline stages with fast cross-node links | Pipeline stages exchange data at every token step, so latency depends on the network between nodes | Plan InfiniBand or equivalent networking before going to production; slow links shift the bottleneck to the network |
How tensor and pipeline stages map onto nodes
The diagram starts at the API endpoint on the head node, where requests enter one OpenAI-compatible server. Pipeline stages are assigned to successive nodes, and within each node the layers in that stage are split across the local GPUs with tensor parallelism. Hand-offs between stages cross the inter-node network, which is the trust boundary: vLLM documents that node-to-node traffic is unauthenticated and unencrypted by default, so it must sit on an isolated network. Check that every stage has the same GPU count per node and that the boundary is enforced at the network level.
Requests enter one head node, pass through pipeline stages, and return across an isolated network.
Why interconnect speed decides whether cross-node serving works
Pipeline parallelism sends activations between nodes on every forward step, so the speed and latency of the link between nodes set how fast tokens come out. Each stage hands its output tensors to the next stage as the model runs, and that handoff happens for every generated token, across every request in the batch. A link that is slow or jittery adds delay to each step, and the delay compounds across the stages a request must pass through. Inside a node, tensor parallelism relies on the GPU-to-GPU links of that server, which are usually much faster than what connects servers. Across nodes, the network becomes the path the model is most sensitive to, so the interconnect should be treated as part of the model's serving design rather than as general data center plumbing.
DeployOpen does not assume a particular fabric. Ask the hardware vendor and your network team to confirm the bandwidth and latency of the inter-node network in writing, and check that the nodes you plan to pair have a path that meets those figures without crossing a shared, oversubscribed switch layer. Whether InfiniBand or RDMA-capable Ethernet is needed, and how the container runtime must be configured to use it, is covered in the vLLM documentation on parallelism and scaling and in the sibling topic on multi-node networking with InfiniBand and GPUDirect RDMA. Keep the design decision here focused on whether your network is fast enough for the layout you intend to run.
Measure the chosen fabric before you commit to a layout. Run a point-to-point throughput and latency test between the planned head and worker nodes, using the same network interfaces, MTU and container settings that vLLM will use, and record the results alongside the target latency for your workload. Then start a small multi-node test and confirm in the startup logs which transport NCCL selected. If the logs show fallback to TCP sockets where you expected RDMA, the layout will likely miss its latency goal even though it starts successfully. Put the measurements in the acceptance record so that a later change to switches, NICs or firmware triggers a repeat test.
Features that do not combine with pipeline parallelism
Pipeline parallelism across nodes changes how requests move through the model, so some serving features that work on a single node may be unsupported or limited in a multi-node layout. Each card below is an item to confirm in the vLLM docs for the exact version you plan to deploy, before you fix the layout and build the cluster.
Speculative decoding support
Speculative decoding uses a draft model or draft method to propose tokens that the target model then verifies. Its interaction with pipeline stages can differ from single-node tensor parallelism, and the set of supported draft methods may change between releases. Confirm in the parallelism and speculative decoding notes for your target version whether your draft method runs with pipeline parallel size greater than one, and measure acceptance and latency on your own cluster before relying on it.
Parallelism docsScheduling and chunked prefill modes
Scheduler options such as chunked prefill and prefix caching change how work is batched across pipeline stages. Some combinations are restricted when pipeline parallelism is enabled, and defaults can differ by model architecture. Ask the team to list every scheduler flag in the planned launch command, then check each against the version's documented limits for pipeline parallel size greater than one.
Disaggregated prefill and decode
Disaggregated prefill separates prompt processing from token generation across instances and relies on KV connectors to move cache between them. Layouts that already split a model across nodes add a second partitioning axis, so the combination may be unsupported or require specific connector support. Confirm the status of this mode with pipeline parallelism in the docs for your version, and treat it as experimental until your own tests pass.
Data parallel and expert parallel combinations
Adding data parallel replicas or expert parallelism for mixture-of-experts models on top of pipeline stages changes how ranks communicate and how the cluster is laid out. Not every combination is documented as supported, and the launch arguments differ between backends. Confirm the exact supported combinations for your model family and version, and write down the rank layout each one needs before you size nodes.
Multimodal and encoder features
Vision and audio inputs run an encoder stage in addition to the language model, and that stage must be placed and synchronized with the pipeline. Support for multimodal inputs across pipeline stages depends on the model and the release. Confirm with the model's entry in the docs whether the encoder runs on every stage or one, and test an image or audio request end to end on the target layout.
Backend and platform restrictions
The multi-node backend choice, Ray or the native multiprocessing backend, and the accelerator platform can each limit which features are available. A feature that works with Ray on NVIDIA GPUs may be absent on another backend or hardware plugin. Record the backend, accelerator and version together, then confirm the feature matrix for that exact combination with the vLLM docs and your own smoke tests.
Installation docsSetting up a multi-node pipeline-parallel vLLM deployment
This sequence takes a model that does not fit on one node from a go or no-go fit check through a running multi-node vLLM server that answers requests from every node in the cluster. Each step closes with a check, so a failure is caught before the next layer is added.
Confirm model and hardware fit
Before any node is touched, confirm that the model's weights and the KV cache fit across the planned GPUs, with tensor parallelism sized to the GPUs inside each node and pipeline parallelism sized to the number of nodes. Check the model's documented support in the vLLM release you plan to run, and confirm that its chat template is available, since chat completions need one. Your infrastructure team and the implementation lead sign off together. Done means a written layout that names the node count, GPUs per node, tensor-parallel size and pipeline-parallel size, with the model and vLLM version pinned.
Prepare the isolated network and node images
Place all cluster nodes on a dedicated network segment, because the vLLM security documentation states that communication between nodes is insecure by default, with no authorization or encryption. Block inter-node traffic from user networks and allow only the ports the chosen backend needs. Build identical images on every node with the same vLLM version, CUDA or ROCm stack, driver, Python packages and model path, and set a per-worker host IP for each node. Done means every node reports the same versions and can reach every other node on the cluster network, and the user-facing network cannot reach the inter-node ports.
Start the cluster with the chosen backend
Start the multi-node runtime before the serving command. If you use Ray, bring up a head node and attach workers according to the vLLM parallelism guidance. If you use the native multiprocessing backend, start the headless nodes with their node rank and the master address so they wait for the leader. Your platform team runs this step, with the container runtime, GPU access and shared memory configured the same way on each node. Done means the cluster reports the expected count of nodes and GPUs before any model is loaded.
Launch vllm serve with the parallel sizes
From the head node, start vllm serve with the model path, the tensor-parallel size set to the GPUs per node, and the pipeline-parallel size set to the node count. Keep the API server on the user-facing interface only if the endpoint is protected by a reverse proxy, and set --api-key as one layer, not the only one. Watch the startup log for weight loading on every stage and for NCCL transport lines that show the expected interconnect. Done means the log shows all stages loaded and the server reports that it is ready to accept requests.
Verify every node joined the cluster
Check that each node appears in the runtime and that each pipeline stage holds its share of the layers and GPU memory. Read the NCCL logs on each node to confirm the transport matches your design, and note any fallback to TCP sockets, which points to a networking problem rather than a model problem. Run a short inference on each stage path if your team can trigger it. Done means every node and GPU is accounted for in the cluster view and the logs match the planned layout.
Confirm the endpoint answers and the metrics flow
Send a test request to /v1/chat/completions and /v1/completions through the reverse proxy, and confirm that the proxy blocks paths meant for internal use, such as /metrics, /pause, /resume and /abort_requests, from user networks. Check that /metrics returns Prometheus-format data with request counts and KV cache use, and that your monitoring system scrapes it. Done means a valid response from the user path, a denied response from a blocked path, and metrics visible in your monitoring stack.
Record the baseline and hand over
Save the final layout, versions, flags, network rules and the output of the verification checks in the runbook, and record the first measured latency and throughput numbers for the workload as the baseline for later tuning. Confirm who on your team owns restarts, upgrades and node replacement, since a change to any node means re-running the verification steps. Done means the runbook is in your document system, the owners are named, and the baseline is recorded for comparison.
Securing inter-node traffic and the API endpoint
A pipeline-parallel vLLM deployment spans several nodes, and the traffic between them carries model execution state that vLLM does not protect by default. The cards below cover the network isolation that must come first, the limits of the API key, and the operational endpoints that need to be kept away from users.
Inter-node traffic is unprotected by default
The vLLM security documentation states that communication between nodes in a multi-node deployment has no authorization or encryption by default. Every worker that joins a pipeline-parallel run is a network peer that can reach the others, so the cluster must sit on a dedicated, isolated network segment with no route from user networks. Confirm with your network team that the inter-node subnet is not reachable from application or office networks, and that firewall rules limit traffic to the ports your chosen backend uses.
vLLM security docsIsolation is the main control
Because vLLM does not add authentication or encryption between nodes, the network boundary carries most of the security load. Treat the inter-node network as a restricted management zone: place only GPU nodes on it, restrict access to administrators and automation, and log connections where your platform allows. Ask whether your Ray or multiprocessing setup depends on any service that would be exposed outside this zone, since each such service widens the attack surface.
The API key covers only some endpoints
The --api-key option protects the endpoints under /v1, /v2, /inference and /cohere. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health. The documentation warns against relying on the key alone. Before go-live, list every route the server exposes and test each one without a key to confirm which are reachable.
Security docsAllowlist user endpoints at a reverse proxy
The vLLM documentation recommends placing a reverse proxy in front of the API server and allowlisting only the endpoints intended for users, such as the /v1 routes your applications call. Everything else, including pause, resume and abort controls, is denied at the proxy by default. The proxy is also where you attach TLS, client authentication and request size limits, which the server does not handle for you. Test the allowlist with requests to each blocked path and confirm they return refusals.
Restrict admin and control endpoints
Pause, resume and abort_requests change server state, and an unauthenticated caller who reaches them can disrupt serving. Limit these endpoints to an administrative network or to named operator identities, and record who used them. The health endpoint is needed by load balancers and orchestrators, so keep it reachable from those components only. Document the owner of each route so that changes to the allowlist go through review.
Protect the Prometheus metrics endpoint
The API server publishes Prometheus-format metrics at /metrics, including request counts, token throughput, latency histograms and KV cache use. These figures reveal load patterns and capacity limits, so they should be scraped over the monitoring network rather than exposed to users. Confirm which Prometheus instance scrapes each node, restrict that path at the proxy, and review histogram bucket settings with your monitoring team so that scrape size and retention match your plan.
vLLM metrics docsQuestions teams ask before running vLLM across nodes
What drives the cost of running vLLM across nodes?
vLLM itself has no license fee, since it is open source under Apache-2.0, so the cost comes from four places: accelerator capacity, the surrounding infrastructure, implementation work and the people who operate the cluster. Accelerators are usually the largest line, and a model that does not fit in one node means you pay for more GPUs across more servers. Infrastructure adds the inter-node network, storage for model weights, load balancers and monitoring. Implementation is a one-time cost, while accelerator capacity, network and on-call operations recur every month. Ask any quote to separate these components so you can see which ones your own team already pays for.
How long does a multi-node vLLM setup take?
Duration depends mostly on the environment, not on vLLM's configuration flags. A team with nodes already provisioned, a working GPU driver stack and a private network between servers has less to build than a team starting from bare metal or from a network that has not been designed for cross-node traffic. Validation takes time too: confirming the model loads at the chosen layout, checking that the inter-node link carries traffic as expected and testing the endpoint under realistic load. Ask any partner for a duration tied to a written scope, and confirm with your own infrastructure team which hardware, network and access approvals are already in place.
What does the work need from our team?
The work needs owners for four areas: the accelerator nodes and their drivers, the network between them, identity and access for the serving endpoint, and the model and release process. Your platform team must confirm that nodes can sit on an isolated network, because vLLM's security documentation states that communication between nodes is insecure by default, without authorization or encryption. Your security team needs to decide how users reach the API, since the documented --api-key option does not protect every endpoint. Someone also needs to own the change process for vLLM releases, which ship about every two weeks.
Can our own team set up pipeline parallelism across nodes?
Yes, a team with experience running GPU servers, container platforms and private networks can build it, and the vLLM documentation covers the layout rules. The harder parts are usually not the launch command. They are checking the interconnect, keeping every node on the same vLLM version and model files, and proving the cluster behaves correctly under failure and load. Teams that have not operated multi-node GPU systems before often underestimate the verification work. A practical approach is to have your engineers build a small test layout first, then decide which parts to run in-house and which to scope out to a partner.
Does the network between nodes change the cost and effort?
Yes, the inter-node network is one of the main drivers. Pipeline parallelism passes activations between nodes, so slow or congested links reduce the throughput you pay accelerators to deliver. Faster fabrics such as InfiniBand with GPUDirect RDMA cost more to buy and configure, but they can matter for latency-sensitive serving. Before you size hardware, confirm with your network team which links are available between the nodes, what the bandwidth and latency are, and whether the container runtime can reach the transport your cluster uses. Those answers determine whether a plain Ethernet design is acceptable for your workload.
When do KubeRay or LeaderWorkerSet change the approach?
They change the approach when your organization already runs Kubernetes and wants the cluster lifecycle managed by the platform. The vLLM Kubernetes documentation lists options including KubeRay, LeaderWorkerSet, native manifests and Helm, and each one changes how the head and worker pods are scheduled, restarted and scaled. KubeRay fits teams that already use Ray on Kubernetes, while LeaderWorkerSet suits a leader and worker grouping model. Choosing one adds platform components to operate and moves some networking and identity decisions into the cluster layer. Compare these options against a bare-metal or virtual machine layout before committing, and confirm the chosen option against the current vLLM Kubernetes guide.
What should we ask for in a written scope?
Ask for a written scope that names the model, the target layout, the node count and accelerator type, the network design, the identity and endpoint protection approach, the monitoring plan and the acceptance tests. Also ask what is delivered as documentation and runbooks, what the handover covers and what is excluded, such as hardware procurement or model selection. Most engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts. Request a quote that breaks out implementation, any retainer for upgrades and support, and the assumptions it depends on, so changes to the environment can be priced against those assumptions.
How DeployOpen scopes multi-node vLLM work
DeployOpen plans, implements, hardens and documents self-hosted vLLM inside your own infrastructure, whether that is your cloud accounts, your data centers or an air-gapped network. For a pipeline parallelism project, the scope has to settle the questions that decide the build: how many nodes, how many GPUs per node, which interconnect links them, which backend coordinates the workers, and which features your applications depend on. Most engagements are fixed-scope, so these items, the deliverables and the timelines are agreed in writing before any cluster work starts. A quote follows from that written scope, which is why the scoping conversation names the model, the target context lengths and the endpoints your users call, not just the number of servers.
The written scope also settles the security boundary. vLLM's security documentation states that node-to-node communication in a multi-node deployment is insecure by default, so the scope should name the isolated network the nodes will sit on, how the --api-key option and a reverse proxy will limit exposed endpoints, and how /metrics and /health are reached. These controls are part of the deliverable, not an afterthought, and they change the effort of the work. Ask whether your environment already has a private network segment for inference traffic, a secrets path for keys, and a change process for the proxy configuration, because each one either shortens or lengthens the engagement.
Ongoing support is available as a retainer for work that continues after go-live, such as moving to a newer vLLM release, re-testing parallelism layouts after a hardware change, or reviewing metrics and logs during incidents. Ask any provider, DeployOpen included, to separate the one-time build from the recurring operation in the quote, and to state what the handover includes: runbooks, configuration in version control, and a tested procedure for restarting a node. Your own team still pays for the accelerator capacity and the staff who operate the cluster, so the written scope should say who owns each of those costs after handover.

