vLLM expert parallelism for mixture-of-experts models

Expert parallelism spreads the experts of a mixture-of-experts model across GPUs so large MoE models can be served. This page explains the layout choices, backend and redundancy options, and what to validate before production.

On this page

When expert parallelism for vLLM MoE serving is the right layout

Expert parallelism (EP) places different expert sub-networks of a mixture-of-experts model on different GPUs, so each device holds only a share of the expert weights. Teams serving a DeepSeek, Qwen3 MoE or Kimi K2 class model on infrastructure they control should consider EP when the full set of expert weights, plus room for the KV cache, does not fit comfortably on the accelerators in one server, or when the throughput target calls for spreading expert computation across more devices. In vLLM, EP is usually paired with data parallel attention: attention layers run as data-parallel replicas while the experts are sharded across the same set of GPUs. This section sets the decision frame. The supplied facts are the basis for the details that follow, and the exact flags depend on the vLLM release you deploy.

The alternatives are covered in sibling topics. Tensor parallelism splits each layer's weights across GPUs inside one node, and pipeline parallelism splits the layers across nodes. Both work for dense models, but for an MoE model the bulk of the parameters sits in the expert layers, so the layout question is mainly how those experts are distributed. Before choosing, confirm the model's expert count, the memory each GPU provides, the interconnect between GPUs and nodes, and the vLLM version you intend to run. The vLLM expert parallel deployment docs describe the supported combinations and the all2all backend options, and they should be read against the release you pin, since vLLM ships new minor releases about every two weeks.

Multi-node EP adds cross-node traffic to every forward pass, and the vLLM security docs state that communication between nodes is insecure by default, with no authorization or encryption. A multi-node layout therefore needs an isolated network for the node-to-node path before any performance work starts. A practical first step is to test whether the model fits on one node with the expected context length and concurrency. If it does, a single-node layout is simpler to operate and to secure. If it does not, the team should plan the multi-node network, the cluster backend and the monitoring together, and ask the vendor or internal platform owner to confirm each of these in writing before a load test is scheduled.

How DP attention and EP experts divide work across GPUs

The diagram starts at the vLLM endpoint, where incoming requests are spread across data parallel attention ranks. Each rank computes attention for its own requests, then the expert parallel group routes tokens to the experts they need through the all2all backend. The subgraph marks the node boundary: the same flow can stay inside one server or cross nodes, and the cross-node path is where interconnect and isolation need the most checking. Confirm the all2all backend and the rank layout against the expert parallel docs before you size hardware.

Request flow from the endpoint through DP attention ranks to expert GPUs, with the node boundary marked.

Which all2all backend and expert options fit each phase

This table compares the default all2all backend, the two DeepEP modes and EPLB redundant experts for expert parallelism, by serving phase and cluster layout. Read each row as a question to answer about your hardware and interconnect before choosing a setting, and treat the backend suggestions as starting points to validate in your own environment.

OptionWhere it fitsConfirm before choosingMain trade-off
allgather_reducescatter (default)Starting point for single-node expert parallelism and for first bring-up of a new layoutWhich vLLM release your deployment runs and that the default is still the documented choice for itSimple to start with, but it is not the backend the docs suggest for multi-node prefill or decode
deepep_high_throughputMulti-node prefill, where large batches of prompt tokens move between nodesNode interconnect bandwidth, the DeepEP dependencies in your container image and that every node uses the same buildFavors throughput on prompt processing, so latency-sensitive decode traffic should not be assumed to benefit
deepep_low_latencyMulti-node decode, where small per-step token exchanges dominate response timeRDMA-capable networking between nodes and that the backend is supported for your model and GPU generationTargets short, frequent exchanges, so its gains depend on a low-latency fabric being in place
EPLB redundant experts (32 at large scale)Large expert counts where some experts receive far more routed tokens than othersExpert load skew in your traffic and the extra GPU memory each redundant expert consumesThe 32-expert figure comes from the vLLM docs for large scale, so smaller clusters need measurement to pick a count
Single-node expert layoutModels and traffic that fit on one server with its NVLink-connected GPUsTotal GPU memory across the node for weights, KV cache and redundant expertsSimpler to operate and debug, with a hard ceiling set by one server's GPUs
Multi-node expert layoutModels or traffic volumes that exceed one server, combined with DP attentionNetwork fabric speed, node-to-node security on an isolated network and cluster manager choiceMore capacity, but cross-node communication and failure handling add operational work
Interconnect and NCCL transportEvery multi-node option above depends on itWhether NCCL uses the high-speed transport in logs rather than falling back to TCP socketsA fallback to TCP can erase the benefit of any backend choice without an obvious error

Single-node versus multi-node expert parallel layouts

Expert parallelism places different experts on different GPUs, so every token routed to a remote expert creates network traffic. The layout you pick determines how much of that traffic stays on one server and how much crosses the network, and that choice shapes latency, throughput and the operating model.

Single-node expert layout

All GPUs sit in one server, so expert routing and attention sharding use the in-server GPU interconnect. This is the simplest starting point for a mixture-of-experts model that fits in one node's accelerator memory. Check that the model's weights, KV cache and the chosen data parallel size fit on the GPUs you have, and confirm the node has enough GPUs for the layout you plan.

Expert parallel docs

Multi-node expert layout

When the model or the target replica count exceeds one server, expert parallelism spans several nodes and each token may need to reach experts on another machine. Plan the rank assignment, node ordering and health checks before the first run, because a failed node takes part of the expert set with it. Confirm the layout against the parallelism and scaling documentation for your vLLM release.

Parallelism and scaling docs

**All2all traffic depends on interconnect**

The all-to-all exchange that moves tokens to their experts is the main communication cost of expert parallelism, and its speed depends on the link between nodes. Slow or shared links can erase the gains of a larger layout, so measure the interconnect before choosing a multi-node layout. Ask your infrastructure team which fabric the nodes use and whether the network is isolated from other tenants.

Throughput versus latency trade-off

Spreading experts across more GPUs can serve more concurrent requests, but each decoding step then waits on communication between GPUs. A layout tuned for throughput may respond more slowly to a single user, and the reverse is also true. Decide which goal matters for each workload, then benchmark both layouts with your own prompt lengths and concurrency before you commit.

Ray or multiprocessing backend

Multi-node vLLM runs on either Ray or vLLM's own multiprocessing backend, and the choice changes how the cluster is started, monitored and secured. Ray adds a separate cluster to operate, while the multiprocessing backend relies on flags that set node count, node rank and the master address. Confirm which backend your release supports for the expert layout you plan, and include its security posture in the review, since inter-node traffic is insecure by default.

vLLM security docs

Separate instances as an alternative

If the model fits on one node, running several independent single-node instances behind a load balancer can be simpler to operate than one large expert layout. Each instance fails and upgrades on its own, and no cross-node expert traffic is needed. Compare the operational cost of the extra instances against the throughput of a shared expert layout before deciding.

How to bring up an expert parallel vLLM deployment

This sequence takes a mixture-of-experts model from paper compatibility to a verified vLLM endpoint, with each step closed by a check the owning team can read. The output is a serving layout that the infrastructure, platform and security teams have all signed off on.

  1. Confirm model and release compatibility

    The platform lead pins one vLLM release from the GitHub releases list and confirms that the target model family, its quantization format and its chat template are supported by that release. Check the model card and the release notes together, because a release that serves a model in one precision may not serve it in another. Record the exact release tag and model revision in the deployment record. The step is done when a written compatibility note names both, and the team has agreed that the release will not change until the upgrade plan says so.

  2. Validate accelerator count and interconnect

    The infrastructure team confirms how many accelerators each node has, the GPU memory per device, and whether nodes share a fast interconnect such as InfiniBand. Expert parallelism moves token activations between GPUs on every layer, so the layout depends on the link between them, not only on the GPU count. Ask the hardware vendor and your network team to confirm the topology with a bandwidth test between nodes. The step is done when the team has a topology sheet that lists GPUs per node, memory per device and the measured link between nodes.

  3. Pick the single-node or multi-node layout

    Choose the layout from the model size and the topology sheet. A model that fits on one node's accelerators can usually run with data parallel attention and expert parallel experts on that node, which keeps expert traffic on the local fabric. A larger model needs multiple nodes, and each cross-node link then becomes part of the latency budget and the security boundary. Write down the data parallel size, the expert parallel size and the node count, and the reason for each. The step is done when the layout record shows the arithmetic that makes the GPU count match the chosen sizes.

  4. Configure the all2all backend and EPLB

    The engineering team selects the all2all backend that matches the layout. The vLLM expert parallel documentation sets the default to allgather_reducescatter and suggests deepep_high_throughput for multi-node prefill and deepep_low_latency for multi-node decode, so confirm those choices against the release you pinned. Decide whether expert-parallel load balancing (EPLB) is needed and how many redundant experts to add, using the documented recommendation of 32 at large scale as a starting point for review, not a fixed setting. The step is done when the configuration file holds the backend, EPLB flags and redundant expert count, and each value has a reviewer's sign-off.

  5. Start vllm serve with the OpenAI endpoints

    The platform engineer starts the server with vllm serve using the pinned release, the chosen parallel sizes and the backend settings, and sets the API key in the startup configuration. Confirm the model loads on every rank without out-of-memory errors and that the server reports ready. Then call /v1/models and a short /v1/chat/completions request from a client that uses the OpenAI SDK, changing only the base URL. The step is done when both calls return valid responses from the expected model name, and the startup log is saved with the deployment record.

  6. Verify routing and expert load balance

    The engineering team sends a varied test set through the endpoint and checks that requests complete across all data parallel ranks rather than piling onto one. Watch the per-rank load in the logs and metrics, and confirm that expert activity is spread across GPUs once EPLB is on. Run the same test with EPLB off to see the difference, then decide whether the redundant expert count should change. The step is done when the test report shows balanced rank load for a documented mix of prompts and the team has accepted or adjusted the EPLB setting.

  7. Check /metrics and restrict exposed endpoints

    The operations team scrapes the Prometheus-format output at /metrics and confirms it reports request counts, token throughput, latency histograms and KV cache use for the deployment. Because /metrics is not protected by --api-key, the security team confirms that a reverse proxy blocks it from user networks and allows only the endpoints meant for users. Record the scrape target and the proxy rule. The step is done when the dashboard shows live values for each rank, and a test from an unapproved network returns a refusal for /metrics and the internal endpoints.

Securing expert parallel nodes and the API surface

An expert parallel layout spreads experts across nodes that exchange traffic constantly, and the same server exposes an API surface with several unprotected paths. The cards below cover the node network, the endpoints that --api-key leaves open, the proxy allowlist that closes them, and the metrics you need to watch the deployment once it is exposed to users.

Isolate inter-node traffic

Communication between nodes in a multi-node vLLM deployment is insecure by default, with no authorization or encryption. For expert parallelism, where token routing crosses nodes on every step, that traffic is the most sensitive path in the cluster. Place all expert parallel nodes on a dedicated, isolated network segment, and confirm with your network team that no route exists from user networks or the internet to the inter-node ports. Treat the cluster network as a trusted boundary only if you enforce it.

vLLM security docs

Know what --api-key covers

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. A client that can reach /pause or /abort_requests can disrupt serving without holding a valid key, so the key alone does not define your exposure. Review every path your server answers before you publish the endpoint.

vLLM security docs

Allowlist endpoints at a reverse proxy

The vLLM security docs recommend a reverse proxy that forwards only the endpoints meant for users, such as /v1/chat/completions and /v1/embeddings for your applications. Control, health and metrics paths stay on the internal network and are reached by your operators and monitoring system directly. Test the allowlist with requests to each unlisted path from an outside client, and retest after every vLLM upgrade because endpoint sets change between releases.

Restrict operator endpoints

Endpoints such as /pause and /resume change the state of a live engine, and an unexpected pause during a traffic peak is an availability incident. Limit these paths to a named administrative network or bastion host, and log who reaches them. Your runbook should state which team may pause the engine, under what conditions, and how the engine is resumed, so that the control is used deliberately rather than discovered during an outage.

Watch KV cache and throughput

vLLM exposes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use, with configurable histogram buckets. In an expert parallel layout, KV cache pressure on one rank can slow the whole group, so compare cache use and latency across ranks rather than relying on a single aggregate. Scrape /metrics from the isolated monitoring network only, and confirm the bucket settings match the latency targets you set.

vLLM metrics docs

Questions teams ask before serving MoE models with expert parallelism

What drives the cost of serving MoE models with expert parallelism on vLLM?

The software is free, so the cost comes from accelerator capacity, the network between nodes, the surrounding infrastructure and the people who build and run the system. Expert parallelism usually needs enough GPUs to hold all experts across ranks, so accelerator count is the largest line item and recurs as long as the cluster runs. Interconnect speed affects both hardware and how much capacity you need to hit your latency goal. One-time costs include design, configuration, load testing and migration. Ask any partner for a quote that separates hardware, network, implementation and ongoing operations, and states which items are one-time and which recur.

Does vLLM itself cost money to run for expert parallelism?

No. vLLM is open source under the Apache-2.0 license and has no paid edition, so you pay nothing to the project for the engine. Your costs are the GPU or other accelerator capacity, the infrastructure around it, implementation effort and staff who operate it. Confirm with your legal team how the Apache-2.0 license applies to your internal use and any redistribution of modified builds, and confirm the license terms of the specific model weights you plan to serve, since those are separate from the engine.

How long does an expert parallelism implementation take?

Duration depends on the model size, the number of nodes, the interconnect you have, and how many layouts you need to test. A single-node layout is usually simpler than a multi-node one because it avoids cross-node networking and the security work that comes with it. Multi-node work adds network validation, backend selection, load testing and the failure drills your team needs before production. Ask for a timeline built from a written scope with named milestones, and ask what assumptions it depends on, such as hardware delivery dates and access to a test cluster.

What must our team provide before an expert parallelism project starts?

The team needs to provide accelerator access, the target model and its license terms, a clear latency and throughput goal, and network details for the nodes. You also need an isolated network for multi-node traffic, because the vLLM security documentation states that communication between nodes is insecure by default, without authorization or encryption. Provide identity and access rules for the API, a place to run monitoring, and a named owner who can approve configuration changes. Confirm each item in writing before work starts.

Can our own engineers implement expert parallelism without outside help?

Yes, if your team has experience with GPU clusters, container runtimes, NCCL and Kubernetes or another scheduler. The main risks for an in-house team are choosing the all2all backend, tuning redundant experts, verifying that the network uses the expected transport, and locking down inter-node traffic. Most teams find the first layout is the hard part, and later changes are easier once they have a test harness. Decide whether you will build that harness yourself, and whether you have anyone who can run it during an incident.

How does the vLLM release cadence affect an expert parallelism deployment?

vLLM ships new minor releases about every two weeks, for example v0.30.0 on September 22 and v0.31.0 on October 5, 2026, according to the project's GitHub releases. Frequent releases mean flags, defaults and backend behavior can change between versions, so you need a pinned version, a test environment and a repeatable regression run before each upgrade. Plan a release review step and decide how often you will move forward. Confirm the release notes for any version that changes the expert parallel behavior you depend on.

Which parts of expert parallelism should we verify before going to production?

Check that the all2all backend matches your phase and layout, that the number of redundant experts is set and balanced, and that the cluster reports the expected network transport in logs. Verify that the API endpoint exposes only the routes users need, because the --api-key option does not protect every path, and that /metrics is reachable only by your monitoring. Run load tests at your target concurrency and confirm recovery after a node failure. Record the results so the next upgrade has a baseline to compare against.

Limits to confirm in your environment before committing

Expert parallelism for mixture-of-experts models depends on details that change between vLLM releases, model families and hardware. The cards below list the checks that connect a model choice to a tested serving layout, so the sizing decision rests on confirmed behavior rather than on assumptions carried over from another version.

Model support by release

Support for a specific DeepSeek, Qwen3 MoE or Kimi K2 class checkpoint depends on the vLLM release you pin, and vLLM ships new minor releases about every two weeks. Confirm that your exact checkpoint, including its architecture variant and quantization, is listed as supported in the release you plan to run, and record the version in your change log before you order hardware.

Minor release cadence
Every 2 weeks
vLLM releases

Chat template requirements

The chat completions API only works when the model provides a chat template or when you supply one with --chat-template. Mixture-of-experts checkpoints from different families use different template conventions, including reasoning and tool-call formats. Test the template with the exact request shapes your applications send, not only with a simple prompt, before you treat the endpoint as production-ready.

Online serving docs

Experimental status of backend options

The all2all backend choice affects throughput and latency. The default is allgather_reducescatter, while deepep_high_throughput and deepep_low_latency are suggested for multi-node prefill and decode. Check whether the DeepEP-based options are marked experimental or version-dependent in your release, and whether they behave as the docs describe on your interconnect before you build a layout around them.

Expert parallel docs

Hardware and network requirements

Expert parallelism moves large volumes of token activations between GPUs on every layer, so the interconnect inside a node and between nodes sets the practical ceiling. Ask your accelerator and network vendors to confirm the GPU generation, NIC, switch fabric and driver stack that your chosen backend needs. Verify the NCCL transport in logs during a test run, since a silent fallback to TCP sockets changes the result.

Interconnect is critical
Multi-node

Isolated network for multi-node nodes

The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, without authorization or encryption. Expert-parallel layouts across nodes therefore need an isolated network segment, and the choice between a Ray cluster and the native multiprocessing backend changes what must be locked down. Confirm the network design with your security team before the first multi-node test.

vLLM security docs

Validation on your own workload

Published layouts and recipes describe the vLLM team's test conditions, not your prompt lengths, concurrency, output lengths or latency targets. Run the candidate layout against a replay of your real traffic, record throughput, latency and KV cache use from the Prometheus metrics, and size the cluster from those measurements. Treat any sizing figure you find in documentation as a starting point to test, not as a commitment.

vLLM metrics docs

What to measure once expert parallelism is running

Judge an expert parallel layout by what users see and what the GPUs are doing, and read both from the Prometheus metrics that the vLLM API server exposes at /metrics. Start with request counts and token throughput, then check the latency histograms for time to first token and inter-token latency under load. KV cache usage tells you whether the layout leaves enough memory for concurrent sequences. A layout that looks fast on average but shows a long tail in the histograms, or KV cache usage pinned near its limit, will queue requests under real traffic. Confirm the exact metric names and histogram bucket settings for your release in the vLLM metrics documentation before you build dashboards on them.

Compare the all2all backends under one representative load profile, not a synthetic benchmark. Hold the model, precision, DP attention and EP sizes, request length distribution, concurrency and output length fixed, and change only the backend, such as the default allgather_reducescatter against deepep_high_throughput for prefill or deepep_low_latency for decode. Run each candidate long enough for caches and expert routing to settle, and record throughput alongside tail latency. Also watch for per-GPU imbalance in expert load, because it shows up as some ranks saturating while others wait. Enabling EPLB with redundant experts is a separate variable, so measure it as its own comparison after the backend choice is fixed.

Record every run so a later upgrade can be checked against it. Save the vLLM version and commit, container image digest, model revision, the full serve command with its parallel sizes and backend flags, node layout and interconnect, the load generator settings, and the Prometheus snapshots for the run window. vLLM ships new minor releases about every two weeks, so a version change can alter kernels, defaults or flags for expert parallelism. Rerun the same profile on the candidate release before you promote it, and treat any drop in throughput or rise in tail latency as a blocker until it is explained. Ask your team to define these acceptance thresholds in writing before the first run.

How DeployOpen scopes an expert parallel vLLM engagement

DeployOpen starts an expert parallel vLLM engagement with a written, fixed scope that is agreed before any build work begins. The scope names the model family and exact checkpoint, the target layout (single node or multi-node, with the data parallel and expert parallel sizes), the accelerator generation and count, the all2all backend and any EPLB redundant expert setting, and the endpoints that users will reach. Each item is tied to a deliverable and to an acceptance test, so the client knows what will be built, how it will be checked, and what falls outside the agreement. Model choice is confirmed early, because a mixture-of-experts checkpoint, its chat template and its supported parallelism flags determine most of the layout decisions that follow.

Hardware validation sits inside the scope rather than being assumed from the spec sheet. The team checks that the chosen GPUs, drivers, container runtime and network fabric can run the planned layout, and records the results, including the NCCL transport seen in logs for cross-node traffic. Security controls are scoped in the same document: how multi-node communication is isolated on a private network, which routes a reverse proxy exposes and which it blocks, how the API key is applied, and where metrics are scraped. Because the vLLM security documentation says inter-node traffic is unauthenticated and unencrypted by default, the client should confirm who owns the isolated network and who signs off on that design.

Knowledge transfer is part of the deliverable. Operators receive the layout decisions with their reasons, the launch configuration, the acceptance test results, the runbook for node loss and version changes, and the metrics they should watch for expert load imbalance and KV cache pressure. Ask any partner, DeployOpen included, to name who on the client side will hold each item after handover and which changes will need a retest. Scope and timelines are quoted from this written document, so the client should ask for the acceptance criteria, the assumptions about hardware and network access, and the change process before signing.

How DeployOpen delivers and supports vLLM MoE serving

DeployOpen plans, builds, tests, documents and supports self-hosted vLLM expert parallelism inside infrastructure you control, including your cloud accounts, data centers or air-gapped networks. The work starts with a written scope that fixes the model, layout, backend choice and acceptance tests before any cluster changes begin.

How we scope

  • Confirm the target MoE model, its expert count and the GPU generations and node count you have available
  • Decide between a single-node layout and a multi-node layout with DP attention and EP experts
  • Record the all2all backend choice, EPLB redundant expert settings and the acceptance tests in a written scope

How we build

  • Deploy the vLLM server with the agreed data parallel and expert parallel flags on your hardware
  • Configure the chosen all2all backend and verify NCCL transport and expert placement in startup logs
  • Isolate inter-node traffic on a private network and place an allowlisting reverse proxy in front of user endpoints

How we hand over

  • Document the launch configuration, node roles, network rules and the reasons behind each parallelism setting
  • Provide load tests and throughput and latency results measured against the acceptance criteria in the scope
  • Train your platform and operations staff on restarts, scaling changes and reading the Prometheus metrics at /metrics

How we support

  • Support engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as retainers
  • Plan and test each vLLM release upgrade before it reaches production, since minor releases ship about every two weeks
  • Retest expert placement, redundant expert settings and network exposure after hardware, model or configuration 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.