Self-hosting DeepSeek-V3 and DeepSeek-R1 on vLLM

A planning guide to the hardware, precision, parallelism and ROCm choices vLLM's DeepSeek-V3 recipe implies, with the checks to run before buying capacity.

On this page

Self-hosting DeepSeek-V3 and R1 on vLLM: what the recipe sets up

A team planning to self-host DeepSeek-V3 or R1 on its own GPUs needs three things settled before it buys capacity: the hardware layout, the precision and the parallelism settings. The vLLM DeepSeek-V3 recipe supplies these starting points. It runs FP8 on 8 H200 or 8 MI300X, FP4 on 4 B200, and it names tensor parallel with expert parallel for low-latency or low-load use and data parallel with expert parallel for high load. Treat these as the baseline to test against your own traffic, not as a sizing guarantee. Confirm with the recipe whether the same layout applies to R1, because the recipe's coverage of R1 is the detail to verify before you order hardware.

vLLM is open source under the Apache-2.0 license and has no paid edition, so the license is not the cost driver. The cost comes from accelerator capacity, the surrounding infrastructure (networking, storage, power, cooling or cloud fees), the implementation work to get the stack running and the people who operate it through upgrades, incidents and model changes. Ask any implementation partner for a quote built from a written scope that lists these components separately, and separate one-time setup from recurring capacity and support costs. Self-hosting tends to make sense when data must stay inside a region or facility you control, when your compliance team needs to review the serving stack itself, or when you need control over which vLLM release and flags run in production.

Before committing, check the ROCm path if you plan to use MI300X. The recipe's ROCm wheel route requires Python 3.12, ROCm 7.2.1 and glibc 2.35 or later, so confirm that your host operating system and driver stack meet those requirements. Also confirm the exact vLLM release you will pin, because vLLM ships minor releases about every two weeks, and check the recipe's current flags against that release. These checks are cheap compared with discovering a hardware or runtime mismatch after the racks are installed.

Which accelerator layout fits FP8 and FP4

The vLLM DeepSeek-V3 recipe runs FP8 on 8 H200 devices, which keeps the model on a single eight-accelerator node. That layout is the most direct path for teams that already operate Hopper-class servers, because the serving topology stays inside one chassis and cross-node networking is not required for the base configuration. Your planning should start from the recipe's stated layout and then test it against your own context length and concurrency targets.

  • Node count: The recipe's FP8 layout fits one eight-device node, so the first capacity question is how many such nodes you need for redundancy and peak load.
  • Memory headroom: Model weights consume most device memory, so KV cache space and batch size depend on how much remains after weights are loaded. Measure this on your target context lengths rather than assuming it.
  • Procurement: Confirm current H200 availability, lead times and per-device memory with your vendor and the recipe before ordering.
  • Operations: A single-node layout simplifies networking and failure analysis, but a single node is also a single failure domain.

Before you commit, confirm device memory, supply timing and the recipe's current tested configuration.

TP plus EP or DP plus EP: choosing parallelism by load

This table compares the two parallelism layouts the DeepSeek-V3 recipe names, tensor parallel with expert parallel and data parallel with expert parallel, across latency, throughput and operational complexity. Read each row as a question about your traffic: low or bursty load favors the first layout, sustained high load favors the second. Confirm the exact flags against the recipe for your vLLM release before you size hardware.

FactorTP plus EP (low load)DP plus EP (high load)
When the recipe suggests itLow-latency or low-load use, where single requests should finish quicklyHigh-load use, where many concurrent requests need to be served together
Latency per requestLower per-request latency, because each request is spread across the GPUs in the groupHigher per-request latency is possible, because work is split across data-parallel replicas that batch requests
Throughput under heavy concurrencyLimited by how well one tensor-parallel group batches requestsHigher aggregate throughput, because independent replicas process separate batches
Expert placementExperts are sharded across the GPU group that serves the modelExperts are spread across data-parallel ranks, so expert communication pattern changes with load
Multi-node behaviorTensor parallelism is used within a node, so cross-node traffic depends on the layout you chooseData-parallel ranks can span nodes, so the inter-node network carries more traffic to confirm
Multi-node backendRay or the multiprocessing backend, depending on how the nodes are launchedRay or the multiprocessing backend, depending on how the nodes are launched
Operational complexitySimpler to run and debug, with one serving group to monitorMore moving parts: replica health, load balancing across ranks and per-rank metrics
What to monitorPer-request latency histograms and KV cache use on the serving groupRequest distribution across ranks, queue depth and KV cache use per rank
What to confirm before choosingPeak concurrency and latency target for your workload, measured on your hardwareWhether the node network and the chosen release support the data-parallel layout you need

How to set up DeepSeek on vLLM in order

This sequence takes a team from an unprepared accelerator host to a running DeepSeek-V3 or R1 server that answers OpenAI-compatible requests and reports metrics. Each step closes with a check that tells the operator whether the next step can start.

  1. Confirm the accelerator and driver stack

    The platform or infrastructure team confirms which accelerators the host has, how many are visible to the operating system, and which driver version is installed. For the recipe's FP8 path, the host needs 8 H200 or 8 MI300X. For FP4, the recipe uses 4 B200. Check the GPU count and driver state with the vendor's management tool, and confirm the host matches one of these layouts before any software is installed. Done when every expected device lists as healthy and the count matches the layout you chose.

  2. Choose the CUDA or ROCm path

    The accelerator vendor decides the software path. NVIDIA hosts follow the CUDA install path in the vLLM installation guide, while AMD Instinct hosts follow the ROCm path. Record the choice in the build record, because the wheel, base image and kernel settings all depend on it. Ask the vendor to confirm which ROCm and driver versions your hardware supports, and do not assume the recipe's version applies to your host. Done when the team has one written path and a named owner for the driver stack.

  3. Prepare the Python and ROCm wheel environment

    On AMD hosts, the DeepSeek ROCm wheel path in the recipe needs Python 3.12, ROCm 7.2.1 and glibc 2.35 or later. The platform engineer checks each prerequisite on the host with the Python, ROCm and ldd version commands, then creates an isolated virtual environment for vLLM. On NVIDIA hosts, install the vLLM build that matches the CUDA stack in the installation guide. Done when the interpreter, ROCm release and glibc version all match the recipe, and importing vllm in the environment completes without errors.

  4. Select parallelism by expected load

    The architecture owner chooses between tensor parallel with expert parallel and data parallel with expert parallel before writing the launch command. The recipe says tensor parallel with expert parallel suits low-latency or low-load use, while data parallel with expert parallel suits high load. Write the choice, the expected concurrency and the latency target in the deployment record, and confirm the load assumptions with the people who will send traffic. Done when the chosen mode and the flags it requires are written down and reviewed by someone who owns the service objective.

  5. Start the server with vllm serve

    The engineer launches the server with vllm serve using the model checkpoint, precision and parallelism settings from the recipe, and the parallel layout selected in the previous step. Keep the launch command in version control so later changes are reviewed. Watch the startup log for weight loading, memory allocation and the listening port, and fix any out-of-memory or missing-kernel error before continuing. Done when the log reports the server is ready and the port accepts connections from the operator's host.

  6. Validate the OpenAI-compatible endpoints

    The application or integration engineer sends test requests to the endpoints the server exposes, including /v1/completions and /v1/chat/completions, and checks the responses against the schema the client expects. Confirm the chat template is present, because chat completions depend on it. Test the endpoints the client will use, then confirm that unrelated routes are not reachable from users. Done when each planned endpoint returns a valid response from a test client and the team has recorded the request and response samples.

  7. Verify the metrics endpoint and access controls

    The operations engineer scrapes /metrics with the monitoring system and confirms that request counts, token throughput, latency histograms and KV cache usage appear. Confirm that the metrics path is restricted to the monitoring network, since the vLLM security guide says --api-key does not protect /metrics or /health. Place a reverse proxy in front of the server that allowlists only the user-facing endpoints. Done when the monitoring system shows live series and an access test from outside the monitoring network is refused.

How requests reach the DeepSeek nodes

The diagram starts with client applications sending requests to a reverse proxy that allowlists only the endpoints meant for users, such as the OpenAI-compatible /v1 routes. The proxy forwards to the vLLM API server, which hands work to GPU workers arranged either as tensor parallel with expert parallel or as data parallel with expert parallel. Check that the worker nodes sit on an isolated private network, because vLLM's inter-node traffic is unauthenticated and unencrypted by default, and that /metrics and the other internal routes are reachable only from your monitoring network.

Request path from clients through the proxy to vLLM and its GPU workers.

Securing the API and node traffic

A DeepSeek-V3 or R1 deployment spans several nodes and exposes several HTTP paths, and vLLM does not treat them all the same. The cards below cover the traffic between nodes, the one control vLLM offers at the API layer, the endpoints that control-plane tooling needs, and the proxy that ties them together.

Isolate inter-node traffic

In a multi-node run, the vLLM security docs state that communication between nodes is insecure by default, with no authorization or encryption. Place all nodes on a dedicated network segment that user traffic cannot reach, and restrict it to the Ray or multiprocessing ports the cluster needs. Confirm the segment with your network team before the first multi-node start, and record the firewall rules as part of the deployment evidence.

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. Treat it as one layer of authentication, not the perimeter. Test each unprotected path from an unauthenticated client during your review so the gap is measured rather than assumed.

Allowlist user endpoints at a proxy

The vLLM docs recommend a reverse proxy that forwards only the endpoints meant for users, such as /v1/chat/completions and /v1/completions, and returns denial for everything else. Terminate TLS and apply your identity checks at this layer. Ask the team that owns your gateway whether it can match on path and method, and whether it can enforce rate limits per client.

Keep control endpoints internal

The /pause, /resume and /abort_requests endpoints can change engine state, and /invocations and /health are used by orchestration. None of them should be reachable from the user network. Limit their access to the cluster management network and the operators who run it. Document which service accounts or hosts call each one, so an access review can confirm the list.

Treat Prometheus metrics as internal

The /metrics endpoint exposes request counts, token throughput, latency histograms and KV cache use. That data reveals load patterns and capacity limits, and it is unauthenticated by default. Scrape it only from the monitoring network, and do not publish it through the user-facing proxy. Confirm with your monitoring team which Prometheus instance scrapes it and that the path is blocked at the edge.

vLLM metrics docs

What the ROCm path needs on MI300X

The recipe's ROCm wheel path for DeepSeek-V3 on MI300X depends on a fixed software floor: Python 3.12, ROCm 7.2.1 and glibc 2.35 or later. Those three pins decide whether the vLLM wheel installs and loads at all, so they belong in the build plan before anyone orders a host or writes a base image. Confirm each pin against the vLLM DeepSeek-V3 recipe on the day you build, because recipe versions and wheel requirements change between releases and a mismatch will show up as an import or kernel error rather than a clear message.

The host matters as much as the container. The GPU driver and kernel on the node must support the ROCm release the wheel was built against, and the container's ROCm user-space libraries must match that stack. The glibc floor is a property of the base image, so an older distribution image can fail even when the driver is current. Ask your platform team which host OS image, kernel and amdgpu driver version are approved, and record them in the build manifest so a later node replacement does not silently change the runtime.

Verify the runtime in stages before loading the 671B weights, which take hours to read from storage. First confirm the Python version and glibc version inside the image, then confirm that ROCm sees all eight MI300X devices and that a small tensor operation runs on each one. Only after those checks pass should you start vllm serve with a short test model or a reduced configuration, and check the logs for the expected attention and MoE backends. Failing at this stage costs minutes; failing after a full weight load costs a long restart.

Limits to confirm before you commit hardware

The recipe layouts are a starting point, not a purchase order. Each card below names one assumption to verify in your own environment, from the accelerator you can actually buy to the vLLM release you will run and the latency your users need. Confirm these before signing for capacity.

Hardware matches procurement

The recipe's layouts are written for 8 H200 or 8 MI300X for FP8 and 4 B200 for FP4. Confirm the exact accelerator SKU, memory per device, interconnect and node count your vendor will deliver, not just the GPU family name. A substitute card with different memory or interconnect can change which layout fits. Ask the vendor for the delivery configuration in writing and check it against the recipe before you commit.

Recipe GPU counts
8 or 4
DeepSeek-V3 recipe

Memory headroom for context

Model weights fill most of the device memory in any recipe layout, so the context length you can serve depends on what remains for the KV cache. Set your target maximum context and concurrency, then measure free memory on the chosen hardware with the recipe's settings. Do not size purchases from weight size alone, because long prompts and parallel requests consume cache quickly.

Pinned vLLM release

vLLM ships new minor releases about every two weeks, and recipe flags and DeepSeek support can change between them. Pick the release you will run, confirm it supports the DeepSeek-V3 and R1 paths you need, and record the exact version in your change control. Plan a retest before each upgrade rather than assuming the recipe still applies.

Latest supplied release
v0.31.0
vLLM releases

Parser support for R1 and V3

R1 produces reasoning output that clients often need separated from the final answer, while V3 is usually served as a plain chat model. Confirm which reasoning and tool-call parsers your release provides for each model, and test that your application receives the fields it expects. Check parser behavior on tool calls before relying on either model in agent workflows.

Online serving docs

Latency against the chosen layout

The recipe links tensor parallel with expert parallel to low-latency or low-load use, and data parallel with expert parallel to high load. Write your target time to first token and output rate per user, then benchmark the layout with your own prompt lengths and concurrency. If the measured numbers miss target, the fix may be a different layout, not more of the same hardware.

Parallelism and scaling

Questions teams ask before self-hosting DeepSeek on vLLM

What does it cost to self-host DeepSeek on vLLM?

vLLM has no license fee, so the cost is the infrastructure and the people who run it. The largest line is accelerator capacity: the vLLM DeepSeek-V3 recipe runs FP8 on 8 H200 or 8 MI300X and FP4 on 4 B200, so you pay for those nodes whether they are reserved in your cloud account or bought for a data center. Other recurring costs are storage for model weights, networking, observability, backups and the engineers who patch and upgrade the stack. One-time costs include implementation, testing and hardening. When you request a quote, ask for each component separately: accelerator hours or hardware, infrastructure, implementation scope, and the operating model after go-live. Ask what the quote assumes about utilization, since that changes the cost per token more than any single setting.

How long does a DeepSeek on vLLM deployment take?

Duration depends on what you already have. The main drivers are whether accelerator capacity is available in your environment, how much of the stack (identity, gateway, monitoring, secrets) must be built, and how many layouts you need to benchmark before choosing one. Teams with a working GPU platform and an existing API gateway usually move faster than teams building both from scratch. Confirm the timeline in writing as part of a fixed scope rather than relying on a general estimate. DeployOpen does not publish a timeline for this work; the scope document sets it once the environment and requirements are known.

What must our team provide before the work starts?

You provide the accelerator environment, the network and the identity and secrets systems. In practice that means:

  • GPU capacity that matches the chosen layout: 8 H200 or 8 MI300X for FP8, or 4 B200 for FP4, as the recipe describes.
  • A network in which nodes sit on an isolated segment, because the vLLM security documentation states that inter-node communication is insecure by default and must be protected by network isolation.
  • Identity integration for the users and services that call the API, and a decision on how the --api-key option is combined with a reverse proxy that allowlists only user-facing endpoints.
  • A secrets store for API keys, model access tokens and registry credentials.

Confirm each item against your own environment before the scope is signed.

Can our own platform team run DeepSeek on vLLM in-house?

Yes, if your team already runs GPU workloads and can take on the specific work. vLLM is Apache-2.0 licensed, so you can build and operate it without a license purchase. The skills that matter are multi-node GPU operations, choosing between tensor parallel with expert parallel and data parallel with expert parallel, Linux and container hardening, and observability. The ROCm path also needs a specific toolchain: Python 3.12, ROCm 7.2.1 and glibc 2.35 or later. Ask your team whether it has done this for a mixture-of-experts model before. If the answer is no, a fixed-scope implementation can cover the first build while your engineers take over operations.

When does a consultant help with a vLLM deployment?

A consultant helps most when the deployment has a fixed deadline, a compliance review, or a layout decision that needs measurement before purchase. DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms in your own cloud accounts, data centers or air-gapped networks, and most engagements are fixed-scope with deliverables agreed in writing. DeployOpen also prepares systems and evidence for compliance assessments, but it does not issue audit reports or certifications; independent auditors do that. Ongoing upgrades and support are available as retainers, which matters because vLLM ships new minor releases about every two weeks.

How should we choose between TP plus EP and DP plus EP?

The recipe ties the choice to load. Tensor parallel with expert parallel suits low-latency or low-load use, while data parallel with expert parallel suits high load. Tensor parallelism splits each layer across GPUs within a node, so one request uses the whole group. Data parallelism runs separate replicas, which spreads many concurrent requests across them. Measure your expected concurrency and latency targets before choosing, because switching later changes the launch configuration and the benchmark results. Your engineers should also confirm the vLLM parallelism documentation for the release they plan to run, since flags can change between minor releases.

What should we monitor and secure once DeepSeek is live?

Monitor the server and secure its exposed surface. vLLM exposes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use, so you can alert on queueing and memory pressure. For security, the --api-key option does not protect /metrics, /health, /pause or /resume, and the documentation advises against relying on it alone. Put a reverse proxy in front that allowlists only the endpoints meant for users, and keep the metrics and control endpoints on the internal network. Confirm these rules in your own environment and test them before users arrive.

What a DeployOpen engagement covers for DeepSeek

A DeployOpen engagement for a DeepSeek deployment starts with a written scope that fixes the model variant (DeepSeek-V3 or DeepSeek-R1), the precision and accelerator layout chosen from the recipe, the parallelism mode, and the environment where the cluster will run. That environment may be your cloud account, a data center or an air-gapped network, and the scope records which one applies. Deliverables, responsibilities and acceptance checks are agreed in writing before build work begins, so your security, platform and procurement teams review the same plan. Confirm with us early which accelerator family you intend to buy, since the FP8 and FP4 paths, the ROCm wheel requirements and the expected cluster topology all depend on it.

Implementation covers the parts of the vLLM stack that are specific to this model: node and GPU driver preparation, the serving configuration for the chosen parallelism layout, the vllm serve process settings, and the front door. Because vLLM's own security documentation says node-to-node traffic is unauthenticated and unencrypted by default, we place cluster nodes on an isolated network and put a reverse proxy in front of the API that allowlists only the endpoints your users need. Credentials, model weight storage, request logging and the Prometheus endpoint at /metrics are configured so that your monitoring and audit teams can review them. Each control is documented with its reason, its owner and the test that proves it works.

Ongoing support is offered as a retainer, separate from the build. Retainers can cover vLLM version upgrades, which ship about every two weeks, regression testing of new releases against your model configuration, capacity reviews, and patching of the operating system and drivers. Ask for the retainer terms in writing: response expectations, which upgrades are included, who approves a change to the parallelism layout, and how a model update is tested before it reaches users. Pricing is quoted from the agreed scope and is not published as a list, so the quote should itemize the implementation, hardening, documentation and retainer components separately.

How DeployOpen works on this

DeployOpen plans, implements, documents and supports self-hosted vLLM inside your own cloud accounts, data centers or air-gapped networks. For DeepSeek-V3 and R1, we start from the accelerator layout, precision and parallelism choices you need, then agree the scope in writing before any build work begins.

How we scope

  • Confirm the accelerator platform (H200, MI300X or B200) and whether your team has the ROCm or CUDA stack the recipe expects.
  • Agree the parallelism choice, tensor plus expert or data plus expert, based on your expected concurrency and latency targets.
  • Record API exposure, identity integration, metrics and multi-node networking in a written scope with deliverables and timelines.

How we build

  • Install and configure vLLM with the recipe's flags, checkpoint precision and Python, ROCm or CUDA versions for your environment.
  • Place every multi-node link on an isolated network and put a reverse proxy in front that allowlists only user-facing endpoints.
  • Test health, the OpenAI-compatible endpoints and /metrics under representative load, then record the results against the agreed scope.

How we hand over

  • Deliver architecture records, configuration files, runbooks and the parallelism and version decisions behind them.
  • Walk your platform, security and operations teams through the deployment and the evidence they will need for review.
  • Document the upgrade path for vLLM releases, which arrive about every two weeks, so your team can plan its own changes.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the initial build.
  • Retainers can cover recipe changes, vLLM version moves and re-testing after accelerator or driver updates.
  • Ask any provider to confirm response expectations and what the retainer excludes before you sign.

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.