vLLM on L40S and other GPUs without NVLink

How to split a model across PCIe-only GPUs such as the L40S with vLLM, what the docs suggest, the throughput trade-off, and when a larger single GPU is the cheaper choice to run.

On this page

Running vLLM on L40S when one model does not fit on one card

If your model is too large for one L40S but your servers only have PCIe-connected GPUs, the vLLM documentation suggests pipeline parallelism with tensor_parallel_size=1. Pipeline parallelism splits the model by layers rather than by slicing every weight matrix across cards, which means it does not need the heavy GPU-to-GPU traffic that tensor parallelism generates on each forward pass, and it handles uneven divisions of layers more gracefully. The vLLM parallelism and scaling docs list this as the suggested route for uneven splits and for GPUs without NVLink, such as the L40S. Teams need this topic when a model's weights and KV cache exceed a single card's memory, and the hardware they already own or have been quoted is PCIe-only.

Before you commit, confirm three things with your hardware vendor and against the current vLLM parallelism and scaling docs: how many GPUs share each server, whether any of them are linked by NVLink, and which pipeline parallel size the model's layer count supports in your vLLM version. Check the PCIe topology on each host with the vendor's tools, because the same card can be wired differently across chassis. Also confirm that the model's chat template and quantization format work with the pipeline setup you choose, since those are checked at serving time rather than at planning time.

vLLM is licensed under Apache-2.0 and has no paid edition, so the cost of this design is not a license fee. It comes from the GPUs and servers you buy or rent, the surrounding network and storage, the implementation work, and the people who operate and upgrade the deployment. Pipeline parallelism across PCIe cards usually means more cards and more hosts for the same model than a single larger GPU would need, so the trade-off is hardware and operations against throughput. Ask any implementation partner for a quote that breaks out hardware, implementation, testing and ongoing operations as separate lines, and state which of those recur each year.

Which parallelism setting fits which GPU layout

When the GPUs in a node are linked by NVLink, the high-bandwidth connection makes tensor parallelism the usual choice inside that node. Tensor parallelism splits each layer's weights across GPUs, so every forward pass exchanges activations between devices several times. NVLink carries that traffic fast enough that the cost is usually acceptable, and it keeps latency low for interactive workloads.

  • Typical setting: set --tensor-parallel-size to the number of GPUs that hold one model replica, and keep the model's attention head count divisible by that number.
  • Latency: per-token latency generally benefits from tensor parallelism when the link is fast.
  • Uneven splits: tensor parallelism works best when the layer dimensions divide evenly across the GPUs, so check the model card before choosing a count.
  • Replicas: if the model fits on fewer GPUs than the node holds, run several replicas instead of one wide replica to raise total throughput.
  • Memory: each GPU holds a shard of weights plus its own KV cache, so leave headroom for the cache on every device.

Before relying on this layout, confirm the link with nvidia-smi topo -m on your own servers, since NVLink presence varies by SKU and chassis.

Configuration options for PCIe GPU layouts and when each fits

This table compares the main ways to lay out a model on PCIe-only GPUs such as the L40S, with the setting each uses, when it fits and what it gives up. Read each row as a candidate layout, then check the trade-off column against your model size, concurrency targets and the GPU count you can actually provision.

LayoutSetting to confirmWhen it fitsTrade-off to weigh
Single larger GPU, no shardingtensor_parallel_size=1 on one card with enough memory for weights and KV cacheModel and context fit on one card, so no cross-GPU traffic is neededFewer GPUs to buy and operate, but the card must have enough memory for the model you plan to serve
Tensor parallelism within one nodetensor_parallel_size set to the GPU count on the nodeModel does not fit on one card and you need lower per-token latencyShards every layer across cards, so each step relies on inter-GPU communication, which is weaker without NVLink; confirm the measured result on your hardware
Pipeline parallelism, tensor size 1pipeline_parallel_size set to the number of stages, tensor_parallel_size=1Uneven splits or PCIe-only GPUs such as the L40S, as the parallelism docs suggestSplits by layers and tolerates uneven divisions, but adds pipeline latency and bubbles, so throughput per request can drop
Pipeline parallelism across nodespipeline_parallel_size spanning nodes, with Ray or the multiprocessing backendModel spans more cards than one node holds and nodes are on an isolated networkInter-node links become the bottleneck, and node-to-node traffic is unauthenticated and unencrypted by default
Data parallel replicasSeparate vLLM instances per GPU or per group, each with its own copy of the modelModel fits per card and the goal is more total requests per secondEvery replica holds full weights, so memory per card limits model size; the parallelism docs tie data parallel mainly to mixture-of-experts models
Mixed or unusual layoutsCombination settings, to be confirmed against the current parallelism docs for your vLLM releaseModel family or GPU count does not match the standard patternsLess tested for PCIe-only hardware; plan a benchmark and retest before committing to hardware

The throughput trade-off of splitting a model across PCIe cards

Splitting a model across PCIe-only cards such as the L40S trades memory capacity for communication cost. When tensor parallelism shards each layer across GPUs, every forward pass needs the GPUs to exchange partial results, often several times per layer. Without NVLink, that exchange travels over the PCIe bus, which is slower and carries more latency per transfer. The result is usually higher time per token and lower total throughput than the same model would reach on cards with a fast direct link, and the gap grows with the number of GPUs in the group. This is why the parallelism guidance favors a different layout on these cards, and why the cost of the split should be understood before the hardware is bought.

Pipeline parallelism reduces the amount of traffic between cards because each GPU holds a contiguous block of layers and passes only the activations at the boundary. The trade-off is scheduling. In a pipeline, one stage can only work on a request once the previous stage has finished it, so devices sit idle while others are busy, and the idle share depends on how many requests are in flight. A single request at low concurrency can leave most cards waiting, while a busy server with many concurrent sequences keeps stages fuller. Your team should ask which concurrency level the workload actually reaches, since that determines whether pipeline stages stay occupied or spend much of their time idle.

Neither effect can be estimated reliably from the hardware specification alone. Run a benchmark on your own model, prompt and output length distribution, and concurrency profile, and record time to first token, inter-token latency and output tokens per second at several request rates on each candidate layout. Compare that against a single-GPU or larger-memory option where the model fits. For sizing the number of cards and the batching and memory settings that go with them, use the vLLM performance tuning and GPU sizing guidance in this series, and confirm the current recommendations for your vLLM version before you commit to a topology.

How pipeline stages sit across PCIe GPUs in one node

The diagram starts at the client request reaching the vLLM API server on the node. The server hands the request to the engine, which runs the first range of layers on GPU 0. Activations then cross the PCIe link to GPU 1, which runs the remaining layers and returns the response along the same path. Check that the trust boundary wraps every hop, since traffic between stages stays inside the node, and confirm how the --pipeline-parallel-size and --tensor-parallel-size settings map to your own GPU layout.

Pipeline stages on two PCIe-only GPUs inside one node, with the trust boundary drawn around the node.

Setting up a pipeline-parallel vLLM server on PCIe GPUs

This sequence takes a PCIe-only GPU host from hardware check to a running OpenAI-compatible vLLM server, with pipeline parallelism set up and measured. Each step ends with a check so the team knows whether to move on.

  1. Confirm GPU topology and driver state

    The platform or infrastructure team runs the GPU inventory and topology commands on the host, such as nvidia-smi and its topology view, to confirm every L40S is visible, that the driver and CUDA runtime match what the chosen vLLM release expects, and that GPUs do not share NVLink links. Record the PCIe layout and the NUMA placement, because pipeline stages communicate over PCIe. Done when every expected GPU is listed with its full memory, the driver version is recorded, and the topology output matches the hardware order the team plans to use.

  2. Install vLLM from the installation docs

    The engineer installs vLLM into an isolated Python environment or container, following the installation documentation for the NVIDIA CUDA path and the version pinned for the environment. Confirm the release against the vLLM GitHub releases page and record the exact version in the change record, because minor releases ship about every two weeks. Done when the package imports, the vllm command reports the pinned version, and a trivial GPU tensor operation runs on each device.

  3. Set pipeline parallel size and tensor parallel size 1

    The engineer starts the server with vllm serve and sets the pipeline parallel size to the number of GPUs in the host, with tensor_parallel_size=1. The vLLM docs suggest this layout for uneven splits and for GPUs without NVLink, because pipeline parallelism splits the model by layers and does not need the per-layer all-reduce traffic that tensor parallelism generates. Keep the settings in a versioned launch script so reruns are identical. Done when the startup log shows one worker per GPU and no fatal errors about communication or memory.

  4. Load the model and set its chat template

    The engineer loads the chosen model weights from storage the team controls and confirms that the model fits across the pipeline stages with room for the KV cache. If the model lacks a chat template, the engineer supplies one with the chat-template option so the chat completions endpoint works. Confirm the model license and the source of the weights before loading. Done when the server log reports the model as loaded on all stages and the log shows the context length and cache size the team expected.

  5. Check the OpenAI-compatible endpoints

    The engineer sends test requests to /v1/completions, /v1/chat/completions and, if the team uses them, /v1/embeddings and /v1/responses, using a standard OpenAI-compatible client pointed at the internal address. Confirm that responses return valid JSON, that streaming works, and that the model name matches what client applications will send. If the server runs with an API key, test both an authorized and an unauthorized request. Done when each endpoint the applications need returns the expected status and structure in the test log.

  6. Protect and expose only intended endpoints

    The security or platform engineer confirms that the server listens only on the intended network interface and that a reverse proxy in front of it allowlists the endpoints users need. The vLLM security docs note that the API key option does not cover every endpoint, including /metrics and /health, so those must be restricted at the proxy or network layer. Done when a scan from a user network can reach only the allowlisted paths and the internal metrics path is reachable only from the monitoring network.

  7. Measure latency and throughput

    The performance engineer runs a load test with a representative prompt length, output length and concurrency, and records time to first token, per-request latency, and tokens per second. Scrape the Prometheus metrics at /metrics during the run to correlate throughput with KV cache use and queueing. Repeat the test with the same workload on the chosen GPU configuration and any alternative layout under consideration, so results are comparable. Done when the team has a written baseline with the workload definition, the vLLM version, the launch settings and the measured numbers, and the results are filed with the change record.

Security and operations for multi-GPU vLLM nodes

Splitting one model across PCIe-only GPUs adds traffic between processes and changes how the server behaves under load. The cards below cover the network, endpoint and monitoring decisions that follow from a multi-GPU layout, and the checks to run after the layout changes.

Isolate inter-node traffic

The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. If a layout spans more than one host, place those nodes on a network that only they can reach, and confirm which backend (Ray or the multiprocessing backend) carries the traffic. Within one node, confirm that the GPU layout does not expose worker communication to other hosts or tenants.

vLLM security docs

Do not rely on API keys alone

The --api-key option protects only the /v1, /v2, /inference and /cohere endpoints. Endpoints such as /metrics, /health, /pause, /resume and /abort_requests stay open to anyone who can reach the port. Place a reverse proxy in front of the server and allowlist only the paths your users need, then test from outside the network that the other paths return errors.

vLLM security docs

Watch KV cache and latency

vLLM exposes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use. On PCIe-only GPUs, KV cache pressure and latency tails are the first signs that a split layout is limiting the workload. Record a baseline before serving traffic, and set alerts on cache usage and time-to-first-token so a saturated node is visible before users report it.

vLLM metrics docs

Re-measure capacity after layout changes

Moving from one GPU to a pipeline-parallel split changes memory headroom, batch behavior and per-request latency, even when the model is unchanged. Repeat the load test after every change to GPU count, parallel settings or vLLM version, and compare throughput and latency histograms against the baseline. Ask whether the workload still meets its target at peak concurrency, not only at idle.

Scrape metrics without exposing them

Because /metrics is outside the --api-key check, the scraper needs a network path that users do not share. Limit the scrape to the monitoring server's address and keep the public proxy from forwarding that path. Confirm that histogram buckets are set to values that match your latency targets, since the default buckets may hide the tail behavior you need to see.

When one larger GPU costs less to run than two smaller ones

A single larger GPU is often cheaper to run than a split layout on PCIe cards, once you count more than the card price. The cost of a split layout has several parts. GPU capacity is the most visible: two L40S cards, or whatever pair your model needs, are two line items on a hardware budget or two instances on a cloud bill. Power and hosting follow from that, since each card adds draw, cooling load and rack space, and a server that holds the pair must have the slots, power supplies and airflow to run them under load. Engineering time is the cost teams underestimate. Someone must select the pipeline stage layout, validate the model's layer count against it, set up the serving configuration, test it, and then keep it working through every vLLM and driver upgrade. The third part is operational risk. A pipeline split means one request crosses two devices, so a fault on either card, a driver problem or a stalled stage can take the whole model down, and recovery is harder to explain to an auditor than restarting one process on one device.

The decision logic starts with the model, not the card. If the weights and the KV cache you need for your target context length and concurrency fit on one larger GPU with headroom, the single-device layout avoids the split costs entirely and usually simplifies testing and incident response. If the model only fits across two or more cards, the question becomes whether the cheaper or more available hardware you can buy justifies the added engineering and operations work. An illustrative case: a team that can rent one large card but cannot get it in the region it needs may still accept a split layout, provided it budgets for the test and upgrade cycle. Confirm the card sizes, memory headroom and availability with your vendor or cloud provider before you compare, since those figures change and this page does not state them.

Questions buyers ask about vLLM on L40S and PCIe GPUs

Does vLLM cost money to run on L40S GPUs?

The vLLM engine itself has no paid edition. It is open source under Apache-2.0 according to its GitHub repository, so the spend comes from the GPUs or other accelerators you rent or buy, the surrounding infrastructure, the implementation work and the people who operate the platform. For an L40S layout, the GPU line is the largest recurring item, and the number of cards per model is set by how the model is split. Ask any partner to show the GPU count, hosting, storage, monitoring and staff time as separate lines in the quote, so you can see which items recur each month and which are one-time setup work.

How much extra effort does a split layout across PCIe GPUs take?

A split layout takes more design and testing than a single large card, because the model's layers are divided across devices that talk over PCIe rather than NVLink. The vLLM parallelism docs suggest pipeline parallelism with tensor_parallel_size=1 for uneven splits or GPUs without NVLink such as the L40S, since pipeline parallelism splits by layers and handles uneven divisions. The effort rises with the number of cards, the model size, the context length you need and the throughput target, because each of these changes how many cards are needed and how the work is queued across them.

How long do setup and tuning usually take, and what drives it?

No duration is fixed by the vLLM project, so treat any figure you hear as a claim to test against a written scope. Duration is driven by the model and its checkpoint format, the number of GPUs and nodes, the latency and throughput targets, the authentication and network rules you must meet, and how many rounds of load testing the team needs before sign-off. Ask for the milestones in the quote: environment preparation, first working serve, load test against your target workload, and handover with runbooks. Fixed-scope engagements agree those milestones in writing before work starts.

What does the work need from our own team?

You will need to name owners for the GPU hosts, the network segment that carries traffic between nodes, the identity and access setup for API callers, and the monitoring stack that will read the metrics. vLLM exposes Prometheus-format metrics at /metrics, so someone on your side must decide where those are collected and who is alerted. Model approval, data classification and the change process for model and vLLM version updates also sit with your organization. Expect the work to ask for access to your cloud accounts or data center systems, plus a test window for load runs.

Can our team set this up and tune it without outside help?

Yes, if your engineers are comfortable with GPU drivers, container runtimes, distributed inference and the vLLM configuration options, and if they have time to run repeated load tests. The main risks for an in-house effort are multi-node communication, endpoint exposure and tuning without a clear target. vLLM's security docs state that node-to-node communication in a multi-node deployment is insecure by default and must sit on an isolated network, and that the --api-key option alone is not enough, since it does not protect endpoints such as /metrics or /health. Compare your team's time against a written partner scope before deciding.

When is a single larger GPU cheaper to run than several L40S cards?

A larger single GPU can be cheaper when one card holds the model weights and the KV cache you need, because it avoids cross-device traffic, simplifies operations and reduces the number of hosts to patch and monitor. Compare the total hourly cost of the GPU count each option needs, not the price of one card. Include the cost of the extra hosts, the extra monitoring and the staff time for split-layout tuning. Ask any vendor or partner for the memory footprint of your chosen model at your context length before comparing options, since that number decides the card count.

What should we check before we commit to an L40S layout?

Confirm that the model you plan to serve works in your vLLM version, that its chat template is available or can be supplied with --chat-template if you need the chat completions API, and that your target latency and throughput have been measured on the proposed cards. Check the vLLM release notes for the version you intend to run, since the project ships new minor releases about every two weeks. Also confirm that your hardware, driver and container images match the vLLM installation guidance for NVIDIA CUDA GPUs.

How DeployOpen scopes and delivers vLLM GPU layouts

DeployOpen plans, builds, tests and documents vLLM on L40S and other PCIe-only GPU layouts inside the infrastructure you control. Each engagement starts from a written scope that fixes the model, the GPU layout, the API surface and the acceptance tests before any build work begins.

How we scope

  • Confirm the target model, its precision and the GPU count and memory per card in your environment
  • Record whether pipeline parallelism with tensor parallel size 1 fits your model, latency targets and concurrency
  • Agree the API endpoints, client applications and metrics your teams need before the build starts

How we build

  • Install and configure vLLM on your GPU hosts, pinning the version chosen during scoping
  • Validate model loading, chat template behavior and throughput on the actual PCIe layout, not on assumptions
  • Test a single-GPU alternative against the multi-GPU layout where the model fits, and document the comparison

How we hand over

  • Deliver the configuration, launch commands, network layout and a record of the acceptance test results
  • Document the upgrade path, including how a new vLLM minor release would be tested on the same layout
  • Walk your platform and operations staff through monitoring at /metrics and the runbook for restarts and capacity changes

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer for the same deployment
  • Quotes follow from the written scope, so ask for the GPU layout, model list and acceptance criteria to be itemized

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.