deepseek-ai/DeepSeek-V4.1-Flash
DeepSeek V4.1 Flash vision-language MoE (552B backbone; 8B active per prompt token, 16B per output token) combining sliding-window plus compressed sparse attention with a two-level indexer, engram n-gram memory, hyper-connections, and a DSpark multi-token draft head.
1M context at 8-16B active parameters, with engram n-gram memory
export VLLM_ENGINE_READY_TIMEOUT_S=3600
export VLLM_USE_RUST_FRONTEND=1
vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017 \
--tokenizer-mode deepseek_v41 \
--tensor-parallel-size 2 \
--attention-config '{"backend":"FLASHINFER_MLA_SPARSE_DSV41","indexer_kv_dtype":"mxfp4","indexer_sparse_logits":true}' \
--kv-cache-dtype fp8 \
--max-num-seqs 128 \
--engram-config '{"cpu_offload":true}' \
--tool-call-parser deepseek_v41 \
--enable-auto-tool-choice \
--reasoning-parser deepseek_v41 \
--mm-encoder-tp-mode dataThe interactive builder loads with JavaScript. Append .md to this page's URL, query string included, for any configuration's command as Markdown — e.g. /deepseek-ai/DeepSeek-V4.1-Flash.md.
Overview
DeepSeek-V4.1 is a vision-language Mixture-of-Experts model: 552B backbone parameters plus 196B of Engram memory, 8B active per prompt token and 16B per output token, 40 transformer layers at hidden size 5120, with a 32-layer ViT and aligner in front of the text stack. Six things distinguish it from V4:
- Causal encoder-decoder. The 40 layers split into a 20-layer encoder and a 20-layer decoder, and the decoder's global KV is projected from the encoder's final hidden state instead of being computed layer by layer. Prefill therefore only runs the encoder half, which is where the 8B-prefill / 16B-decode split comes from.
- Two-tier sparse attention. Every layer attends over a 128-token sliding window. Layers that carry a compression ratio add compressed KV latents reaching further back, pooled by a learned softmax gate. A small side attention — the indexer, inherited from V3.2-Exp — scores those latents and keeps the best 512 per query, pre-filtered by a candidate stage that selects 2048 blocks of 8. Only four layers (2, 8, 14, 20) actually compress their own KV; the rest read that cache. V4.1 uses only compression ratios 1 and 2, where V4 used 4 and 128.
- Engram n-gram memory. Layers 1 and 14 each own a hash table of ~384M rows x 256 dims, looked up by 2-, 3- and 4-gram hashes of the input and written into the residual stream through a learned gate. These two tables alone are 196.6B parameters (~183 GiB) — plan capacity for them, they dominate everything except the experts.
- Hyper-Connections. The residual stream is carried as 4 parallel copies; each sublayer derives its own pre/post/combine coefficients from the stream, with the combine matrix made doubly stochastic by 20 Sinkhorn iterations.
- DSpark draft head. Three stages (128 routed experts each, 3 activated) draft a block of 5 tokens, reading the attention input of layers 37-39, with a Markov bias head and a confidence head on the last stage.
- Mixed MXFP4/MXFP8 checkpoint. Routed expert weights are MXFP4; everything else is MXFP8 block-quantized, UE8M0 scales throughout. Embedding and LM head are BF16.
Routing is 6 of 384 experts per token plus one shared expert, scored with
sqrtsoftplus and a noaux_tc bias — with a separate routing bias for tokens
inside an image span, so vision and text tokens do not compete for the same experts.
Checkpoints
| Variant | Checkpoint | Notes |
|---|---|---|
| FP8 (1017) (default) | deepseek-ai/DeepSeek-V4.1-Flash-1017 | 2026-10-17 weight update — recommended |
| FP8 (0909) | deepseek-ai/DeepSeek-V4.1-Flash | Launch release (2026-09-09) |
1017 is the default here. It is a minor update with the same architecture,
config.json, tokenizer and prompt encoding as the launch checkpoint — only the
weights change. DeepSeek reports gains across reasoning, coding, agentic and visual
benchmarks (e.g. Terminal-Bench 4.0 31.2 → 42.3, HLE w/o tools 36.8 → 42.6) along with
shorter outputs. Both serve with the same command; the Variant row only swaps the model
id. Like the launch repo it ships no Jinja chat template, which the
--tokenizer-mode deepseek_v41 flag already covers. Pick FP8 (0909) to reproduce
earlier results.
The verified hardware badges and the measured numbers in the sections below (benchmarks, KV offloading validation) were taken on the 0909 launch checkpoint; the 1017 weights share its config and footprint but have not been separately re-run.
Context length
1,048,576 tokens, reached by YaRN with factor 16 over a 65,536-token training window. Compressed KV rotates at its own RoPE theta (160,000) because one latent stands for several tokens, so its positions are further apart than the raw stream's.
Images
Images enter the prompt as <|deepseek_image|> spans; every position in the span
carries the image token id, and the per-position role (start / newline / end / image)
comes from the processor. The vision tower is a 32-layer ViT at hidden size 1024, patch
14, with a 3x downsampling aligner and a cap of 1024 tokens per image (minimum 295,936
pixels). There is no limit on images per prompt. Merged embeddings enter the text
model as inputs_embeds, before the hyper-connection stream expansion, while raw token
ids still flow through so the router can apply the image routing bias.
Tick Encoder parallel to run the ViT data-parallel (--mm-encoder-tp-mode data)
instead of tensor-parallel: at 32 layers / hidden 1024 the encoder is small enough
that TP communication costs more than it saves, which can significantly reduce TTFT
for multi-image requests. It is mutually exclusive with Text only.
Reasoning and tool calling
Two thinking modes and a numeric reasoning budget rather than discrete tiers.
Send them as chat_template_kwargs:
| key | values |
|---|---|
thinking / enable_thinking | boolean; if you send both they must agree |
reasoning_effort | low (25), high (50), xhigh (75), max (100), or an integer 1-100 |
The top-level OpenAI reasoning_effort field also works, where "none" turns
thinking off. "minimal" and "medium" are rejected — they are not part of this
model's set.
Note that the DeepSeek API maps its low / high / max tiers to 50 / 75 / 100,
while the open-source prompt encoder (and therefore vLLM) maps low / high /
xhigh / max to 25 / 50 / 75 / 100. A request tuned at high on the API runs at
effort 50 here; pass an integer if you need parity.
With both keys unset, thinking is ON at effort 50. The do-nothing config is the most verbose one, so a request with a small
max_tokensspends its budget on the trace and returns emptycontentwithfinish_reason=length. That reads as a broken model and is not. Either pinthinking: falseor give the budget room.
In thinking mode the budget is rendered into the prompt as a Reasoning Effort: N
prefix on the first turn only.
resp = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4.1-Flash-1017",
messages=[{"role": "user", "content": "What is 17*19?"}],
extra_body={"chat_template_kwargs": {"thinking": True, "reasoning_effort": 25}},
)
DeepSeek's published numbers use temperature=1.0, top_p=0.95 and effort 100 with
max_tokens of at least 256K. The tech report notes that efforts of 60-80 recover most
of that accuracy at well under half the tokens, so reserve max for hard tasks.
Tool calls are wrapped in DSML tag blocks rather than JSON fences, and tool output
comes back in <tool_result> tags.
Speculative decoding
DSpark is the only speculative method for this checkpoint. V4.1 dropped the MTP module
that V3 and V4 trained alongside the backbone. Speculative decoding enables a 5-token
block. On NVIDIA it also turns on adaptive verification (see the feature description).
On AMD, vLLM currently refuses adaptive verification. The generated command sets
enable_adaptive_verification:false and verifies the full block. Two checks in
maybe_create_adaptive_verification_manager fail on ROCm: the indexer helper
supports_device_cpu_query_lens_mismatch() is False, and
DeepseekV41ROCMAiterSparseSWABackend reports AttentionCGSupport.UNIFORM_BATCH
rather than ALWAYS. Remove the AMD override only after a serve with the true flag
starts. Acceptance depends on the workload, so measure it on your own traffic before
sizing a deployment around it.
The drafter's experts add roughly 14B parameters to the load.
Serving text-only
Tick Text only to add --language-model-only, which skips the vision encoder
entirely. Worth it whenever the workload is text: it drops the ViT and aligner from
the load and frees that VRAM for KV cache. It is mutually exclusive with
encoder_parallel. The verified GB200 runs (TP4 and 1P1D) were text-only.
Prefill/Decode disaggregation
The Prefill/Decode Disaggregation strategy is the verified 1P1D layout on GB200
NVL4: one tray (4 GPUs) per role, TP4 in each pool, KV handed over through NIXL,
fronted by vllm-router --vllm-pd-disaggregation. Both pools disable FlashInfer
autotune plus JIT and CuTeDSL warmup via --kernel-config, skip the DeepGEMM warmup
(VLLM_DEEP_GEMM_WARMUP=skip), and cap --max-num-seqs at 32. On 8-GPU nodes the
same layout becomes TP8 per role.
With Speculative decoding on, DSpark runs in both pools so the transferred KV stays compatible.
GB300
GB300's AgentX DEP2 prefill / DEP decode (Dynamo) preset runs both pools as DEP, per SemiAnalysisAI/InferenceX#5015: 5 to 12 DEP2 prefill workers and one DEP16 or DEP32 decode worker. Keep them on DEP; MegaMoE needs expert parallelism. The preset's runbook covers the worker layout, the Engram peer group across prefill workers, and the Dynamo frontend.
Memory
The checkpoint is roughly 511 GB on disk (476 GiB), which breaks down as:
| Component | Entries | Stored |
|---|---|---|
| Routed + DSpark experts (MXFP4) | 557.2B | 259.5 GiB |
| Engram tables (FP8) | 196.6B | 183.1 GiB |
| Attention, dense projections, routers (FP8) | 7.4B | 6.9 GiB |
| Embedding + LM head (BF16), norms (FP32) | 2.0B | 3.9 GiB |
| UE8M0 block scales | 23.6B | 21.9 GiB |
DeepSeek's 552B backbone figure covers the routed experts, attention and embeddings; the Engram tables, the ~14B DSpark drafter and the block scales sit outside it.
vram_minimum_gb: 614 is that total times the schema's 1.2 headroom factor. It fits
one GB200 NVL4 tray (768 GB) at TP4, or one 8-GPU H200 node (1128 GB) with room for
KV cache.
KV cache is a small share of that budget. The compressed latents are shared across layers and trained to be stored in FP4, and DeepSeek puts the resulting global KV at 890 bytes per token, about a quarter of V4-Flash; by that accounting a full 1M-token prompt holds under 1 GB of global KV, plus a fixed 128-token sliding window per layer. Weights and batch size, not cache, set the capacity limit — still, measure before assuming a given context/batch fits.
Prerequisites
- vLLM 0.31.0+, from the pip wheel or the release image. The architecture shipped in
0.30.0 (vllm-project/vllm#56228);
0.31.0 adds the KV-offload fix (vllm-project/vllm#57145)
and the ROCm Engram host-memory gate (vllm-project/vllm#57491).
The launch-day
deepseekv41-flash-0909image is no longer needed. - On AMD the Docker tab uses
vllm/vllm-openai-rocm:nightly-rocm100, the ROCm 10.0 nightly the AMD rows were verified on. MI355X and MI325X need it: their commands pass--monokernel, and MI355X also passes the ROCm MXFP4 indexer. Both are onmainbut not in 0.31.0, so the Install block offers only Docker on those two SKUs. MI300X and MI350X also run from the ROCm pip wheel. - The Rust OpenAI frontend is selected by default in the command builder. Switch to Python if you encounter unsupported features or compatibility issues.
- Expect a long first load:
VLLM_ENGINE_READY_TIMEOUT_S=3600is set for that reason. - On AMD, the generated command sets
VLLM_USE_BREAKABLE_CUDAGRAPH=1. DeepSeek-V4.1-Flash does not supporttorch.compile, and the ROCm sparse SWA backend only supports uniform-batch CUDA graphs. Without breakable CUDA graphs, defaultFULL_AND_PIECEWISEdies at capture. - On AMD, the generated command passes
--moe-backend aiterrather than naming a kernel. Namingaiter_triton_mxfp4_bf16pins the Triton W4A16_moe_gemm_a16w4kernel; the plain name lets vLLM select the Composable Kernel a8w4 experts, used in the MI355X benchmark below. It also setsAITER_TRITON_LOG_LEVEL=ERRORto drop AITER's per-call "Gluon unavailable" warning, which is constant on gfx950 and dominated the server log. - On MI355X, Tensor Parallel inherits vLLM's scheduler limits. Tune
--max-num-seqsfor your traffic and memory budget if needed. The benchmark configuration below records an explicit limit for reproducibility. - On AMD, ticking Speculative decoding also sets
enable_adaptive_verification:false. vLLM currently refuses the true flag:DeepseekV41IndexerBackend.supports_device_cpu_query_lens_mismatch()is False, andDeepseekV41ROCMAiterSparseSWABackendreportsUNIFORM_BATCHrather thanALWAYS. DSpark still drafts 5 tokens per round.
Verifying
Serve, then send one text request and one image request — the vision tower is a separate path and a text-only smoke test will not exercise it:
curl http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"deepseek-ai/DeepSeek-V4.1-Flash-1017",
"messages":[{"role":"user","content":"What is 17*19? Return only the integer."}]}'
A correct answer is 323.
Performance tuning
Start with vLLM's defaults and tune one parameter at a time for your workload:
--max-num-seqs: raise the running-sequence limit if it causes queueing and memory permits; lower it if larger batches hurt latency or memory use.--max-num-batched-tokens: balance prefill throughput against decode latency and memory use by adjusting the token budget per scheduling iteration.--max-cudagraph-capture-size: cover expected decode batches, including DSpark draft tokens, while accounting for graph memory and startup cost: 128 sequences with five drafts need128 * (1 + 5) = 768tokens, which the MI355X AgentX presets round up to 1024.--max-model-len: size the context limit for your prompt plus output lengths.
MI355X Tensor Parallel
On MI355X, Tensor Parallel defaults to TP2 with Engram CPU offload
(--engram-config '{"cpu_offload":true}'). The Engram tables cost 47.2 GiB of
device memory per rank at TP4 and 94.4 GiB at TP2; on a 288 GiB card the TP2
figure does not fit beside half the checkpoint, so the tables move to pinned
host memory. TP2 halves the GPUs per server and so doubles the servers per
node. For TP4, pass --tensor-parallel-size 4 and
--engram-config '{"cpu_offload":false}' to keep the tables resident.
The offload resolves on gfx950 only on builds carrying
vllm-project/vllm#57491,
which widened two is_cuda() gates to is_cuda_alike(). Those builds also
default cpu_offload on through VLLM_PLE_CPU_OFFLOAD, so set it explicitly
rather than inheriting the default.
--monokernel selects the mono decode layer from
vllm-project/vllm#60397,
which vllm-project/vllm#61082
extended to all 40 backbone layers and moved from the
VLLM_ROCM_MONO_DECODE environment variable to this flag. Two persistent
launches cover a layer for decode steps of up to 48 rows, which with five
DSpark drafts is concurrency 8; larger steps fall back to the regular path, so
the gain is largest at low concurrency and fades as concurrency rises.
Decoder SWA bounded replay
(vllm-project/vllm#59039)
is on by default on ROCm, so the recipe no longer passes
--no-swa-bounded-replay. Use a nightly from 2026-10-13 or later; earlier
ROCm builds lack the replay window clamp and fault at the first prefix hit.
AgentX on MI355X
Two opt-in presets render the lanes of InferenceX #5195 on their pinned ROCm image, one point per benchmark concurrency. AgentX TP serves TP8 at concurrency 1, TP4 at 1 and 2 with resident Engram tables, and TP2 at 1 to 64 with Engram CPU offload. AgentX DP serves attention DP2 at 128 to 384, with UMBP KV offload at 256 and 384, and DEP8 with MoRI all-to-all, AITER MegaMoE and the amd_kernels routes at 256 to 1024. Their points carry the corresponding sequence caps, prefill budgets and graph sizes. The lanes served FP8 (0909). These limits are workload-specific, not generic defaults.
MI300X Tensor Parallel
On MI300X, Tensor Parallel takes the recipe default of TP4 with the
Engram tables offloaded to pinned host memory
(--engram-config '{"cpu_offload":true}'). At TP4 the resident weights are
roughly 81 GiB per rank, which leaves a healthy KV pool on a 192 GB card.
TP2 does not fit on this SKU. At TP2 the offloaded weights rise to roughly
145 GiB per rank, and a measured run reported
Available KV cache memory: -13.51 GiB, so the engine refused to start with
No available memory for the cache blocks. That was already with the
sparse-attention indexer buffer halved to 4096 batched tokens. Raising
--gpu-memory-utilization and halving the buffer again recover roughly 13 GiB
between them, which still leaves no usable KV for a 1M-context model, so TP2
is not offered here. MI325X runs the same TP2 configuration successfully on
its larger 256 GB card.
MI300X is gfx942 and needs the same two workarounds as MI325X: no FP4 MFMA, so
the MXFP4 experts run through a Triton kernel and device memory is better spent
on KV than on resident Engram tables; and piecewise graph capture segfaults
every worker, so this recipe sets VLLM_USE_BREAKABLE_CUDAGRAPH=0 and captures
only full decode graphs
(--compilation-config '{"cudagraph_mode":"FULL_DECODE_ONLY"}'), with prefill
eager.
This recipe does not pass --monokernel. With the kernels' weight copies
included, #60731 measured 170.11 GiB of weights a rank. At
--gpu-memory-utilization 0.9 a 192 GiB MI300X leaves about 2.7 GiB beside
those weights.
The offload resolves on gfx942 only on builds carrying
vllm-project/vllm#57491,
the same gate MI325X and MI355X need. Those builds also default cpu_offload
on through VLLM_PLE_CPU_OFFLOAD, so set it explicitly rather than inheriting
the default.
MI325X Tensor Parallel
On MI325X, Tensor Parallel takes the recipe default of TP4, with the
Engram tables offloaded to pinned host memory
(--engram-config '{"cpu_offload":true}'). A 256 GB card leaves roughly
81 GiB per rank of resident weights at TP4 and roughly 145 GiB at TP2; TP2
fits but leaves the smallest KV pool of any arm in this recipe, so TP4 is the
default here rather than the TP2 that MI355X uses on its larger 288 GiB card.
For TP2, pass --tensor-parallel-size 2.
MI325X is gfx942, which differs from gfx950 in two ways that matter. It has no
FP4 MFMA, so the MXFP4 experts run through a Triton kernel and device memory is
better spent on KV than on resident Engram tables. It also segfaults in every
worker during piecewise graph capture, so this recipe sets
VLLM_USE_BREAKABLE_CUDAGRAPH=0 and captures only full decode graphs
(--compilation-config '{"cudagraph_mode":"FULL_DECODE_ONLY"}'); prefill runs
eagerly.
--monokernel selects the gfx942 mono decode kernels from
vllm-project/vllm#60731.
They run at TP4 only, on decode steps of up to 42 rows (7 requests with
five DSpark drafts). Larger steps, prefill, and mixed batches take the
regular path, and TP2 stays on vLLM's path. With their weight copies
included, #60731 measured 170.11 GiB of weights a rank, up from 98.88 GiB.
At --gpu-memory-utilization 0.9 the KV pool still held 11.18 million
tokens. Use a ROCm nightly from 2026-10-20 or later;
nightly-rocm100-df3bd094aeea829f27baa0a5282830464f601d9f is the first.
Earlier builds have the flag for gfx950 only and refuse to start on MI325X.
The offload resolves on gfx942 only on builds carrying
vllm-project/vllm#57491,
the same gate MI355X needs. Those builds also default cpu_offload on through
VLLM_PLE_CPU_OFFLOAD, so set it explicitly rather than inheriting the
default.
H200 Tensor Parallel
On H200, Tensor Parallel uses the TP4 default with Engram CPU offload
(--engram-config '{"cpu_offload":true}'). The Engram tables move to pinned
host DRAM and are read through UVA, so the output is unchanged. On 141 GB
cards that offload is what makes TP4 practical: it moves 23.6 GiB per rank off
the GPU, leaving 81.2 GiB of resident weights and 38.5 GiB of KV per GPU
(about 20M tokens). No scheduler caps are needed at this replica size.
Blackwell TP and DEP
On B200, B300, GB200 and GB300, Tensor Parallel uses TP2 with
FLASHINFER_MLA_SPARSE_DSV41 and Engram CPU offload
(--engram-config '{"cpu_offload":true}'), which moves the Engram tables to
pinned host DRAM and reads them through UVA; the output is unchanged.
Data + Expert Parallel uses the hardware's
GPU count: DEP4 on GB200/GB300 trays, DEP8 on B200/B300 nodes. It enables
--enable-expert-parallel, FLASHMLA_MEGA_ATTN_DSV41,
--kernel-config '{"moe_backend":"deep_gemm_mega_moe"}', and
--engram-config '{"embedding_across_dp":true}'.
Both configurations set indexer_kv_dtype to mxfp4, indexer_sparse_logits
to true, --kv-cache-dtype fp8, and --max-num-seqs 128. Reasoning uses
--reasoning-parser deepseek_v41.
Each Blackwell SKU carries an exact-GPU override that takes precedence over
the shared Blackwell defaults. B300 keeps its existing CUDA Graph capture
configuration (--max-cudagraph-capture-size 8190),
--max-num-batched-tokens 8192 and --max-num-seqs 256; B200, GB200 and
GB300 add Engram CPU offload and otherwise inherit the shared Blackwell
settings. On B200 and GB200 both strategies open on the InferenceX AgentX presets (see
AgentX tuning on NVIDIA GPUs); pick Baseline in the Preset row for the
shared Blackwell settings.
Scheduler limits are workload-dependent at TP2, so size
--max-num-batched-tokens and --max-cudagraph-capture-size for your own
serving profile. For high interactivity on any of them, use
--tensor-parallel-size 4.
AgentX tuning on NVIDIA GPUs
The InferenceX AgentX lanes that run as one server are presets, each with the lane's concurrency points (see the Presets tab):
- GB200: AgentX TP (TP4 at concurrency 4, 10 and 16) and AgentX DEP (DEP4 at 64 to 256), the defaults on GB200 (InferenceX #4783).
- B200: AgentX TP (TP4 at concurrency 4 to 24) and AgentX DEP (DEP4 at 66, DEP8 at 224 to 576), the defaults on B200 (InferenceX #4786).
- B300: AgentX TP4 and AgentX DEP2 on the specialized decode image (InferenceX #4332).
- GB300: AgentX TP4 (Dynamo) (TP4 at concurrency 1, 4 and 8, with latency-specialized decode) (InferenceX #5015).
The lanes served the 0909 launch checkpoint, FP8 (0909). Where a DEP point uses fewer than the node's GPUs (DEP4 on B200), run one server per GPU group, each behind its own vLLM Router.
Dynamo disaggregated serving on B300
The AgentX lane in
InferenceX #4231 runs
N DEP2 prefill engines and one DEP decode engine, each with its own sidecar, behind one
KV-routing frontend. Prefill pushes KV to decode with NIXL and keeps a host KV tier.
The push_as_nixl connector and VLLM_MAX_ASYNC_KV_ADMITS_PER_STEP come from the dev
image vllm/vllm-openai:nightly-x86_64-dev-20261012-59e75f4. GB300's Dynamo lane is
the AgentX DEP2 prefill / DEP decode (Dynamo) preset (see GB300 under
Prefill/Decode disaggregation).
| Clients | Prefill engines | Decode | Decode --max-num-seqs | VLLM_MAX_ASYNC_KV_ADMITS_PER_STEP |
|---|---|---|---|---|
| 256, 768, 1280, 2048, 3584 | 2, 2, 3, 4, 5 | DEP8 | 18, 40, 72, 132, 168 | 4 |
Both roles use TP1 with expert parallelism and these settings:
export VLLM_USE_V2_MODEL_RUNNER=1 VLLM_ALLREDUCE_USE_SYMM_MEM=0 VLLM_RANDOMIZE_DP_DUMMY_INPUTS=1 NCCL_CUMEM_ENABLE=1
export UCX_MEMTYPE_CACHE=n UCX_MEMTYPE_REG_WHOLE=n UCX_RNDV_PIPELINE_ERROR_HANDLING=y
export VLLM_ENGINE_READY_TIMEOUT_S=7200 VLLM_RPC_TIMEOUT=600000
--attention-config '{"backend":"FLASHMLA_MEGA_ATTN_DSV41","indexer_kv_dtype":"mxfp4","indexer_sparse_logits":true}'
--kernel-config '{"enable_flashinfer_autotune":true,"moe_backend":"deep_gemm_mega_moe","sparse_indexer_topk_backend":"deep_select"}'
--speculative-config '{"method":"dspark","num_speculative_tokens":5,"draft_sample_method":"probabilistic","enable_adaptive_verification":false}'
--kv-cache-dtype fp8 --gpu-memory-utilization 0.95 --prefill-schedule-interval 2 --enable-ep-weight-filter --numa-bind
| Setting | B300 |
|---|---|
| NIXL backend | LIBFABRIC over EFA |
| Env | FI_PROVIDER=efa FI_EFA_USE_DEVICE_RDMA=1 FI_EFA_FORK_SAFE=1 UCX_TLS=cuda_copy,cuda_ipc,srd,tcp NIXL_UCX_SGL_ENABLE=0 |
| Allocator | --no-enable-cumem-allocator (EFA cannot register VMM memory) |
| DSpark | adds "rejection_sample_method":"block" |
| Engram | {"cpu_offload":true,"embedding_across_dp":true,"use_thp":false} |
| Host KV per prefill rank | 70 GiB |
Prefill --max-num-batched-tokens | 16384 |
| Decode EPLB redundant experts | 16 |
Decode --numa-bind-nodes | 0 0 0 0 1 1 1 1 |
On B300, set --cpu-distributed-timeout-seconds 7200 for the Engram load. NIXL's
LIBFABRIC plugin also needs libfabric and rdma-core from the AWS EFA installer and the
CUDA 12 runtime (nvidia-cuda-runtime-cu12), which the image lacks.
Prefill runs --data-parallel-size 2 per GPU pair with --max-num-seqs 64,
--long-prefill-token-threshold 8192 and --prefix-cache-retention-interval 32768. Its
KV config:
{"kv_connector":"MultiConnector","kv_role":"kv_both","kv_connector_extra_config":{"connectors":[
{"kv_connector":"NixlConnector","kv_connector_module_path":"vllm.distributed.kv_transfer.kv_connector.v1.nixl.push_as_nixl","kv_role":"kv_both","kv_load_failure_policy":"fail","kv_buffer_device":"cuda","kv_connector_extra_config":{"backends":["LIBFABRIC"],"enforce_handshake_compat":false,"kv_lease_duration":120}},
{"kv_connector":"SimpleCPUOffloadConnector","kv_role":"kv_both","kv_connector_extra_config":{"cpu_bytes_to_use":75161927680,"lazy_offload":true}}]}}
Prefill graphs:
{"mode":"VLLM_COMPILE","cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046],"decoder_replay_cudagraph_capture_sizes":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048],"max_cudagraph_capture_size":2046}.
Decode uses the NixlConnector entry alone with "kv_role":"kv_consumer" and
--no-enable-prefix-caching. It sets --max-num-batched-tokens to ten times
--max-num-seqs and captures FULL decode-only graphs in steps of 6 up to six times
--max-num-seqs. It balances experts with --enable-eplb and
--eplb-config '{"communicator":"symm_mem","num_redundant_experts":16,"window_size":1000,"step_interval":3000,"use_async":true}'.
Launch the sidecars as in Dynamo sidecar serving, with
--grpc-startup-deadline-secs 3600. Start the frontend so that every request prefills
on a prefill engine and each session stays on one prefill engine's prefix and host KV
cache.
export DYN_ROUTER_TEMPERATURE=0 DYN_ROUTER_QUEUE_THRESHOLD=None DYN_ROUTER_ACTIVE_REQUEST_EXPIRY_SECS=3600
export DYN_TOKENIZER=fastokens DYN_TOKENIZER_CACHE=1 DYN_TOKENIZER_CACHE_BYTES=8000000000
export DYN_TCP_CHANNEL_BUFFER=128 DYN_TCP_REQUEST_TIMEOUT=60
uv run --no-project python -m dynamo.frontend --http-port 8000 --router-mode kv \
--router-session-affinity-ttl-secs 14400 --active-decode-blocks-threshold None \
--active-prefill-tokens-threshold None --active-prefill-tokens-threshold-frac None
Dynamo sidecar serving
Dynamo can route requests to vLLM's native gRPC server through a colocated sidecar. Choose the checkpoint, hardware and parallelism in the command builder above. For compatible runtime installation and complete launch examples, see the Dynamo vLLM sidecar guide.
The B300 deployment in InferenceX #4231 validated this integration with the original DeepSeek-V4.1-Flash checkpoint. The builder defaults to DeepSeek-V4.1-Flash-1017; that checkpoint was not covered by this deployment's validation.
Connect the engine and sidecar
Use the generated model and hardware arguments with vllm-rs serve.
Add --grpc-port 19000 and set --reasoning-parser None; omit the engine's
--tool-call-parser and --enable-auto-tool-choice flags because the
sidecar handles reasoning and tool parsing. For KV-aware routing, enable
KV events on the engine with --kv-events-config:
{"publisher":"zmq","topic":"kv-events","enable_kv_cache_events":true,"endpoint":"tcp://*:5200"}
With etcd running, set its reachable address in each frontend and sidecar shell, along with the shared request and event planes:
export ETCD_ENDPOINTS=http://ETCD_HOST:2379
export DYN_REQUEST_PLANE=tcp DYN_EVENT_PLANE=zmq
In a separate shell on the engine host, connect one sidecar to the engine:
export DYN_VLLM_KV_EVENT_PORT=5200
uv run --no-project python -m dynamo.vllm.sidecar \
--grpc-endpoint 127.0.0.1:19000 \
--dyn-tool-call-parser deepseek_v41 --dyn-reasoning-parser deepseek_v41
Start a shared frontend:
uv run --no-project python -m dynamo.frontend --http-port 8000 --router-mode kv
For disaggregated serving, configure the engines as in
Dynamo disaggregated serving on B300 (GB300: its preset runbook). Add --disaggregation-mode prefill --component prefill to prefill sidecars
and --disaggregation-mode decode to decode sidecars. Allocate distinct
gRPC and KV-event ports when running several engines on the same host.
Check the frontend after the workers register:
curl --fail http://FRONTEND_HOST:8000/health
curl --fail http://FRONTEND_HOST:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"deepseek-ai/DeepSeek-V4.1-Flash","messages":[{"role":"user","content":"Hello"}],"max_tokens":32}'
Set the request's model to the served model name selected for the engine.
DGX Station (GB300) Tensor Parallel
One GB300 exposes 252 GB of HBM next to 496 GB of Grace LPDDR5X, and the
476 GiB checkpoint does not fit the HBM. The Station row serves TP1 with
both Engram tables (189 GiB) and 60 GiB of routed experts in pinned host
memory, read through UVA. At --gpu-memory-utilization 0.97 the KV pool
holds about 3.09M tokens at full 1M context. 60 GiB is the lowest
verified offload at 1M context with speculative decoding on (55 fails the
minimum-KV check). For more concurrent 1M contexts, raise
--cpu-offload-gb to 70 and accept ~10% lower single-stream decode.
Measured on vllm/vllm-openai:nightly-dee37d89:
| 1 stream | 2 | 4 | 8 | 12 | 16 | |
|---|---|---|---|---|---|---|
| aggregate tok/s, prose | 90.5 | 124 | 168 | 302 | 378 | 416–423 |
- Autotune. The first boot on a new flag set or image runs a 75–90
minute FlashInfer autotune. Mount
/root/.cache/vllmon a persistent volume; later boots start in about 7 minutes. - Host memory. With the server loaded, ~430 of the 494 GiB Grace pool
is in use (pinned weights plus loader shared memory).
VLLM_WEIGHT_OFFLOADING_DISABLE_PIN_MEMORY=1frees ~66 GB at about 7% lower single-stream decode.
Launch scripts and full measurements: J-M-Recipes/recipes.
KV cache offloading
Offloading requires vLLM 0.31.0+, the first release containing vllm-project/vllm#57145.
Validation used deepseek-ai/DeepSeek-V4.1-Flash on 4×H200 (TP4),
vLLM commit d1b4028d7e, the Python frontend, --enforce-eager,
--max-model-len 16384, --max-num-seqs 16 and --max-num-batched-tokens 8192.
DeepSeek validation used --gpu-memory-utilization 0.95.
Validation used TieringOffloadingSpec: 8 GiB total CPU tier, blocks_per_chunk: 1,
a persistent filesystem root_dir, eight read/write threads and PYTHONHASHSEED=0.
Three CPU-tier reloads and three filesystem reloads after restarting the server passed.
Reloaded responses matched the cold output, including the reasoning field.
The five-shot GSM8K diagnostic scored 31/32; this is a small sample, not the full benchmark.
These results cover this text-only configuration, not the builder's larger tier/chunk defaults or other variants.
References
- Model card
- DeepSeek-V4.1-Flash-1017 model card
- Technical report
- DeepSeek-V4-Flash recipe — the V4 sibling this diverges from
- DeepSeek-V3.2-Exp recipe — where the indexer first appeared
Ascend 950DT PD deployment
Use the official MXFP checkpoint on two dedicated eight-NPU nodes for 1P1D. Before serving, follow the release tutorial's 950DT container setup for the host driver, URMA devices and mount, and local checkpoint storage. Keep 512 GiB of container shared memory for Engram. Replace the model ID in the serving command with the absolute path of the mounted checkpoint on your data volume. Use the same path on both nodes.
The 1P1D preset uses MooncakeHybridConnector for direct KV transfer and
launches both DP groups with --data-parallel-multi-port-external-lb.
This native launcher has been checked by rendering the commands.
Configurations qualified on specific hardware, layered on the baseline command. Unless marked Opt-in, a preset applies automatically on its hardware and strategy; pick Baseline in the builder to drop it.
B2002 presetsAgentX TP · AgentX DEP
TP4 for concurrency 4 to 24 with capped decode batches (max-num-active-seqs), prefill admitted on an interval, FlashInfer sparse MLA (FlashMLA at 16) and THP-backed Engram host tables.
4 points · concurrency 4–24 · image vllm/vllm-openai:cu134-nightly-40941f2c…@sha256:d2a073f6b4da…
DEP4 at concurrency 66 and DEP8 at 224 to 576: DeepGEMM MegaMoE, FlashMLA MegaAttention, GPU-resident Engram tables shared across DP ranks, and per-point prefill budgets and KV pools, behind a consistent-hash vLLM Router.
7 points · concurrency 66–576 · image vllm/vllm-openai:cu134-nightly-40941f2c…@sha256:d2a073f6b4da…
Runbook
The lane fronts the server with vLLM Router 0.1.14 (--policy consistent_hash,
--intra-node-data-parallel-size equal to the server's DP size, as on the router tab),
plus --request-timeout-secs 14400 so long agentic requests outlive the 1800 s default
and --disable-retries so a failed request is not replayed.
The DEP4 point uses four of the node's eight GPUs, so run one server per GPU group,
each behind its own router. The lane also exports VLLM_LOG_STATS_INTERVAL=1 and
VLLM_SERVER_DEV_MODE=1 for its measurement harness; serving does not need them.
GB200 NVL42 presetsAgentX TP · AgentX DEP
TP4 for concurrency 4 to 16 with capped decode batches (max-num-active-seqs), prefill admitted on an interval, FlashInfer sparse MLA and THP-backed Engram host tables.
3 points · concurrency 4–16 · image vllm/vllm-openai:cu134-nightly-40941f2c…@sha256:ab9450628edc…
DEP4 (TP1 x DP4 + EP4) for concurrency 64 to 256: DeepGEMM MegaMoE, FlashMLA MegaAttention, deep_select indexer top-k, Engram host tables shared across DP ranks, and per-point prefill budgets and KV pools, behind a consistent-hash vLLM Router.
5 points · concurrency 64–256 · image vllm/vllm-openai:cu134-nightly-40941f2c…@sha256:ab9450628edc…
Runbook
The lane fronts the server with vLLM Router 0.1.14 (--policy consistent_hash,
--intra-node-data-parallel-size 4, as on the router tab), plus
--request-timeout-secs 14400 so long agentic requests outlive the 1800 s default
and --disable-retries so a failed request is not replayed.
--numa-bind with --numa-bind-nodes 0 0 1 1 pins each rank to its GPU's NUMA
node on the tray. The lane also exports VLLM_LOG_STATS_INTERVAL=1 and
VLLM_SERVER_DEV_MODE=1 for its measurement harness; serving does not need them.
B3002 presetsAgentX TP4 · AgentX DEP2
TP4 for concurrency 1 to 16 on the specialized decode image: latency-specialized decode steps, THP-backed Engram tables and FlashInfer autotuning.
3 points · concurrency 1–16 · image vllm/vllm-openai:cu134-nightly-x86_64-dev-20261019-mk@sha256:2b9fc4b18d0a…
Runbook
The image carries the specialized decode from
vllm-project/vllm#61868 (on main
since 2026-10-21) and its DSpark draft path from
vllm-project/vllm#61869 (open), so
decode_backend needs this image or a build carrying both.
DEP2 for concurrency 8 to 64 with FlashInfer sparse MLA, and with MegaAttention and lazy host-KV offload at 128 and 192, behind a consistent-hash vLLM Router.
6 points · concurrency 8–192 · image vllm/vllm-openai:cu134-nightly-x86_64-dev-20261019-mk@sha256:2b9fc4b18d0a…
Runbook
Uses the specialized decode image of AgentX TP4 (the DEP2 points don't use the specialized decode). The host-KV points offload 50 GiB per DP rank through the Simple CPU offload connector.
The lane fronts the server with vLLM Router 0.1.14 (--policy consistent_hash,
--intra-node-data-parallel-size equal to the server's DP size, as on the router tab),
plus --request-timeout-secs 14400 so long agentic requests outlive the 1800 s default
and --disable-retries so a failed request is not replayed.
GB300 NVL42 presetsAgentX TP4 (Dynamo) · AgentX DEP2 prefill / DEP decode (Dynamo)
TP4 for concurrency 1 to 8: latency-specialized decode steps, prefill admitted every 24 steps, host Engram tables and FlashInfer autotuning.
3 points · concurrency 1–8 · image vllm/vllm-openai:cu134-nightly-aarch64-01fba62-1111d@sha256:9aa51d63c0f9… · dynamo 1.6.0.de
Runbook
The aggregated engine settings of
InferenceX #5015 at
1b1eec0,
on the 0909 launch checkpoint. All three points and the c8 GSM8K eval
(strict-match 0.978) passed in
this sweep.
The image is vLLM main at 01fba62 with
vllm-project/vllm#66552
applied; main from 2acfc19 on carries every flag here. The measured
deployment ran one Dynamo 1.6.0.dev20261010 worker behind the Dynamo
frontend (etcd, TCP request plane, ZMQ events, KV-aware routing with a
14400-second session-affinity TTL, deepseek_v41 tool and reasoning
parsers in the frontend), not the native frontend the builder renders.
The throughput harness's synthetic DSpark acceptance is not a serving
setting and is left out.
DEP2 prefill workers with lazy host-KV offload and Engram tables split across all prefill GPUs, and one DEP16 or DEP32 decode worker; KV moves by NIXL push over the NVLink fabric. Worker counts are in the runbook.
3 points · concurrency 3200–10288 · image vllm/vllm-openai:cu134-nightly-aarch64-01fba62-1111d@sha256:9aa51d63c0f9… · dynamo 1.6.0.de
RunbookWorker layout · Dynamo
The disaggregated engine settings of
InferenceX #5015 at
1b1eec0,
on the 0909 launch checkpoint. All three points and their GSM8K evals
(strict-match 0.976, 0.975 and 0.973) passed in
this sweep.
The image is vLLM main at 01fba62 with
vllm-project/vllm#66552
applied; main from 2acfc19 on carries every flag here.
Worker layout
The builder renders one prefill worker and one decode worker. The lane runs:
| point | prefill | decode |
|---|---|---|
| 3200 | 5 DEP2 workers on 3 trays | DEP32 on 8 trays |
| 6600 | 7 DEP2 workers on 4 trays | DEP16 on 4 trays |
| 10288 | 12 DEP2 workers on 6 trays | DEP32 on 8 trays |
Two prefill workers share a tray: start the second with
CUDA_VISIBLE_DEVICES=2,3. Every prefill worker passes the same
--engram-config. Its peer_group_size is the point's total prefill
GPU count, and peer_group_store must be one path that every prefill
worker can reach and that is fresh per launch (the lane uses its job
log directory). The workers meet there once at startup, so all of them
must start. The point's cpu_bytes_to_use (170 GiB) is per prefill
worker: two workers use 340 GiB of a tray's 840 GiB of host memory.
Dynamo
Dynamo 1.6.0.dev20261010 with etcd, the TCP request plane and ZMQ
events, and the gRPC sidecar with a 3600-second startup deadline. The
frontend runs on its own node with KV-aware routing (14400-second soft
session affinity, KV events off) and picks the decode worker by least
active requests (dynamo-two-tier-cost-fn, cache_threshold: 1.0);
prefill and decode thresholds are off. Tool calls and reasoning are
parsed in the frontend with deepseek_v41 (--dyn-tool-call-parser,
--dyn-reasoning-parser), so the workers run without vLLM parsers.
MI300X1 presetAgentX TP8 / TP4
TP8 with resident Engram tables and TP4 with host Engram; six concurrency points per topology.
12 points · concurrency 1–32 · image vllm/vllm-openai-rocm:nightly-rocm100-f5d93296c8ec82b7e7dabdb308d24d43cb1907bf@sha256:1b1b0c7c62d8…
Runbook
These points serve the 0909 launch checkpoint with five-token DSpark and real block verification. TP8 keeps Engram in HBM; TP4 offloads it to host memory. Decode uses full graphs and prefill runs eagerly. There is no TP2 lane, and no monokernel point: its weight copies leave about 2.7 GiB a rank on this 192 GB part.
Decoder SWA bounded replay keeps vLLM's enabled default. The pinned image
carries vLLM #65249,
which turns on prefix-cache SWA replay on CDNA3, so the sliding-window
cache no longer takes part in prefix caching. The lane's earlier v0.33.0
image predates #65249 and ran with --no-swa-bounded-replay; keep that
flag if you serve these points on such an image. There decoder replay
trims the sliding-window layers while their cache still takes part in
prefix caching, so a later prefix hit can read window KV that was never
written. Adaptive verification stays disabled, as in the measured lane.
Run 43350013915
passed all 12 performance points and the TP8 c32 GSM8K evaluation at
3df6aeb375cc, with 97.65% strict exact match over 1,319 samples.
InferenceX throughput measurement separately substitutes synthetic acceptance length 3.51 from its committed DSpark thinking-on curve. This control is excluded from the preset's serving and accuracy commands; the generic Bench action is not an AgentX trace replay. Concurrency labels identify the measured workload, while the generated sequence cap controls admission and may queue additional sessions. No independent accuracy evaluation was performed at every concurrency or on the 1017 checkpoint.
MI325X1 presetAgentX TP8 / TP4 / TP2
TP8 with resident Engram tables, TP4 with monokernel and host Engram, and TP2 with host Engram and smaller scheduler and graph budgets; six concurrency points per topology.
18 points · concurrency 1–32 · image vllm/vllm-openai-rocm:nightly-rocm100-edad8b03c5285a1c12e7e4f83c1af709b319a01b@sha256:009169c114af…
Runbook
These points serve the 0909 launch checkpoint with five-token DSpark and real block verification. TP8 keeps Engram in HBM; TP4 and TP2 offload it to host memory. TP2 uses smaller scheduler, prefill and graph budgets. Decode uses full graphs, prefill runs eagerly, and decoder SWA bounded replay keeps the pinned image's enabled default.
The TP4 monokernel runs eligible decode steps of at most 42 rows, then falls back to the ordinary path for larger steps. On this image it also quantizes DSpark draft FFN inputs from BF16 to MXFP8. The profile records the measured configuration; its InferenceX draft-precision qualification remains unresolved. TP8 and TP2 use the ordinary FFN path. Adaptive verification remains disabled for the gfx942 startup issue tracked in vLLM #63816.
Run 40744174186
passed all 18 performance points and the TP8 c32 GSM8K evaluation at
7c375027a3cd. The separate TP4 c4 evaluation
at 3df335bfe629 confirmed active mono execution. Both GSM8K evaluations
scored 97.42% strict exact match over 1,319 samples. The effective serving
configuration is unchanged at reviewed source head c8befe0ed1f0.
InferenceX throughput measurement separately substitutes synthetic acceptance length 3.51 from its committed DSpark thinking-on curve. This control is excluded from the preset's serving and accuracy commands; the generic Bench action is not an AgentX trace replay. Concurrency labels identify the measured workload, while the generated sequence cap controls admission and may queue additional sessions. No independent accuracy evaluation was performed at every concurrency or on the 1017 checkpoint.
MI355X2 presetsAgentX TP · AgentX DP
TP8 at concurrency 1 and TP4 at 1 and 2 with resident Engram tables, and TP2 at 1 to 64 with host Engram tables; mono decode on every point, with per-point sequence caps, prefill budgets and graph sizes tuned for AgentX interactivity.
10 points · concurrency 1–64 · image vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616@sha256:cea337b2136f…
Runbook
The MI355X AgentX TP lanes in SemiAnalysis InferenceX (dsv41flash-fp4-mi355x-vllm-agentic-dspark and, for TP8 at concurrency 1, dsv41flash-fp4-mi355x-vllm-agentic-dspark-tp8-c1, SemiAnalysisAI/InferenceX#5195), one engine per point. They have been measured only on the image digest the preset pins. For concurrency 128 and above, see AgentX DP.
Points.
- Concurrency 1: TP8 with resident Engram tables. One sequence at a time with 32768-token prefill chunks, as the TP4 concurrency-1 point. TP8 mono is a concurrency-1 configuration: vllm-project/vllm#64101, which enables
--monokernelat TP8, measured one TP8 server at concurrency 4 with 26% lower throughput than two TP4 replicas. Serve TP4 or TP2 replicas once more than one request is in flight. - Concurrency 1 and 2: TP4 with resident Engram tables. One sequence at a time with 32768-token prefill chunks and graphs up to 8.
- Concurrency 1 to 64: TP2 with the Engram tables in host memory, where resident tables leave too little KV. Concurrency 1 to 4 run one sequence at a time with 32768-token prefill chunks and concurrency 8 caps at 2 sequences with 8192-token chunks. Concurrency 16 and 32 run 8192-token chunks and admit at most 4 and 8 sequences. Concurrency 16 to 64 capture graphs up to 1024.
Excess sessions queue behind the sequence cap. These settings target AgentX p90 interactivity; assess queueing, TTFT, end-to-end latency and throughput for your traffic.
Serving config.
- Mono decode (
--monokernel, from the MI355X TP profile) runs two persistent launches a layer on all 40 backbone layers and the three DSpark draft layers for decode steps of up to 48 rows. The TP8 server log shows it active for both. - amd_kernels off. The pinned image turns every amd_kernels route on by default, so the preset passes
--kernel-config '{"amd_kernels":{"enabled":false}}'and the server log readsamd_kernels routes: none. These points serve the stock vLLM kernels they were tuned on. - Spec decoding uses the DSpark draft with 5 tokens, probabilistic drafting and block rejection, with adaptive verification off.
Precision. BF16 all-reduce (VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=NONE, overriding the INT4 of the MI355X TP profile) on every point, and the model's default fp8_ds_mla KV cache with an MXFP4 indexer cache.
Image. vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616 is built from the vLLM branch dsv41f-amd-kernels at 8a136163b6, which is main 647a76866 (2026-11-22) plus changes not yet merged; the DEP8 points of AgentX DP use them. The points here only need main: mono decode at TP8 needs #64101 (merged 2026-10-29).
InferenceX run 45218564620 ran all ten points on this image at 47e883bb9. Its serving settings match the source revision 66f2a2d57, which only moved the job's GPU counts to the gpus-per-worker form. TP2 concurrency 64 failed on its first attempt with no successful requests and passed on the second, which the table reports. Each point is one run.
| Concurrency | Interactivity p50 / p90 (tokens/s/user) | Total tokens/s per GPU | TTFT p50 / p90 (s) |
|---|---|---|---|
| 1 (TP8) | 812.0 / 789.0 | 4,050 | 0.11 / 0.46 |
| 1 (TP4) | 766.9 / 745.9 | 8,053 | 0.11 / 0.60 |
| 2 (TP4) | 763.6 / 736.3 | 8,391 | 0.12 / 1.02 |
| 1 (TP2) | 606.7 / 593.6 | 15,022 | 0.13 / 0.84 |
| 2 (TP2) | 607.0 / 591.1 | 15,069 | 0.12 / 1.07 |
| 4 (TP2) | 607.7 / 588.9 | 20,008 | 0.12 / 3.19 |
| 8 (TP2) | 495.1 / 459.0 | 32,663 | 0.12 / 1.76 |
| 16 (TP2) | 379.4 / 310.9 | 57,913 | 0.10 / 2.03 |
| 32 (TP2) | 238.6 / 192.7 | 112,868 | 0.15 / 8.74 |
| 64 (TP2) | 105.4 / 70.4 | 193,353 | 0.15 / 0.53 |
GSM8K exact match (strict) over 1319 questions, with block verification, was 0.975 at TP2 concurrency 64 in each of its two runs; the run has no TP4 or TP8 accuracy job. Throughput runs use DSpark's synthetic golden acceptance length (3.51); the preset keeps real block rejection for ordinary serving and accuracy evaluation.
Attention DP2 with the MoE tensor-parallel across both ranks and host Engram tables at concurrency 128 to 384, with UMBP KV offload at 256 and 384; DEP8 with MoRI all-to-all, AITER MegaMoE, the amd_kernels routes and the prefill delayer at 256 to 1024. Per-tensor fp8 KV cache, behind a consistent-hash vLLM Router.
6 points · concurrency 128–1024 · image vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616@sha256:cea337b2136f…
Runbook
The MI355X AgentX data-parallel lanes in SemiAnalysis InferenceX (SemiAnalysisAI/InferenceX#5195): DP2 at concurrency 128 from dsv41flash-fp4-mi355x-vllm-agentic-dspark, DP2 with UMBP from dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp and DEP8 from dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8. They have been measured only on the image digest the preset pins. For concurrency 64 and below, see AgentX TP.
Points.
- Concurrency 128: DP2, KV cache on the GPU. Two GPUs per server, so an 8-GPU node holds four. Attention is data-parallel over the two ranks and the MoE tensor-parallel across both (
--enable-expert-parallelremoved). The Engram tables are in host memory, prefill is admitted every 11 engine steps (--prefill-schedule-interval 11) with 16384-token chunks, and the amd_kernels routes are off. - Concurrency 256 and 384: DP2 with UMBP KV offload, otherwise as concurrency 128.
- Concurrency 256, 512 and 1024: DEP8. One server on the node's eight GPUs with expert parallelism, MoRI all-to-all and AITER MegaMoE (
--moe-backend aiter_mega_moe), and GPU-resident Engram tables shared across the DP ranks.--max-num-seqsis 128 (160 at 1024) with 32768-token chunks;--long-prefill-token-threshold 8192prefills a cold long prompt in chunks so one rank's prompt does not stall the others' decode. The prefill delayer (--prefill-schedule-policy delayer) exchanges the ranks' prefill state every step and holds prefill until the ranks can run it in the same step with a well-filled batch: at least 96 engine steps apart (--prefill-schedule-interval 96), and released once the oldest waiting request has queued 5000 ms (--prefill-max-wait-ms). It trades TTFT for fewer prefill-carrying steps.
Serving config.
- amd_kernels. The pinned image turns every amd_kernels route on by default. The DP2 points turn them off (
amd_kernels routes: nonein the server log). The DEP8 points turn them on with the static expert placementexpert_plan_S49.npzshipped in the image; the server log lists every route, the S49 plan (49 slots per rank) andKV cache sizing keeps 20.0 GiB free for serving transients. - DEP8 environment, as InferenceX runs it:
MORI_SHMEM_HEAP_SIZE=64G,VLLM_RPC_TIMEOUT=600000andVLLM_RANDOMIZE_DP_DUMMY_INPUTS=1. - vLLM Router. Every point runs behind vLLM Router 0.1.14 (
--policy consistent_hash,--intra-node-data-parallel-sizeequal to the server's DP size, as on the router tab), plus--request-timeout-secs 14400so long agentic requests outlive the 1800 s default and--disable-retriesso a failed request is not replayed. InferenceX also exports the router's Prometheus metrics on127.0.0.1:18000. For DEP8 the router listens with a backlog of 128, which resets connections in the AgentX warm-up burst, so InferenceX starts it withLD_PRELOAD=/opt/dsv41f/lib/listen_backlog_shim.soandLISTEN_BACKLOG_MIN=4096; the shim ships in the image and is not part of vLLM. - UMBP. The UMBP Server on the KV Offload row runs once per node and every server on the node attaches to it; its pool is shared, with no per-engine quota. InferenceX sizes the pool at 449 GB for one two-GPU server (0.60 of that server's share of host DRAM), on 4 KiB pages. In local agentx-fast replays (1200 s, single runs) of the DP2 configuration on the default
fp8_ds_mlaKV cache and an earlier nightly, against the same configuration without offloading, total throughput per GPU rose 10.1% at concurrency 256 and doubled at 384, where the server without offloading was overloaded (73% GPU prefix hits, 265 s TTFT p90) and UMBP restored 21.5% of prompt tokens. At 128 the GPU KV cache held the working set and UMBP did not help (−4.7%), so the 128 point runs without it.
Precision. BF16 all-reduce (VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=NONE) and a per-tensor fp8_e4m3 KV cache (vllm-project/vllm#66036) instead of the block-scaled fp8_ds_mla, shared by the DSpark draft layers, with an MXFP4 indexer cache.
Image. vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616 is built from the vLLM branch dsv41f-amd-kernels at 8a136163b6, which is main 647a76866 (2026-11-22) plus changes not yet merged. On main, --kernel-config's amd_kernels routes (the bridge of vllm-project/vllm#69097 on #67850) and the prefill delayer (#65655, #66927) do not exist, and the image also carries ROCm/aiter#8453, so the DEP8 points fail at startup on main or nightly images. The DP2 points need only main.
InferenceX run 45218564620 ran all six points on this image at 47e883bb9, whose serving settings match the source revision 66f2a2d57. Each point is one run.
| Concurrency | Interactivity p50 / p90 (tokens/s/user) | Total tokens/s per GPU | TTFT p50 / p90 (s) |
|---|---|---|---|
| 128 (DP2) | 69.1 / 44.3 | 266,589 | 0.56 / 1.62 |
| 256 (DP2, UMBP) | 35.0 / 24.5 | 407,378 | 1.04 / 2.59 |
| 384 (DP2, UMBP) | 20.0 / 15.5 | 421,803 | 1.61 / 3.70 |
| 256 (DEP8) | 235.5 / 200.2 | 206,961 | 1.49 / 3.38 |
| 512 (DEP8) | 163.8 / 101.8 | 353,736 | 1.93 / 5.06 |
| 1024 (DEP8) | 57.3 / 32.7 | 515,633 | 2.59 / 5.64 |
GSM8K exact match (strict) over 1319 questions, with block verification, was 0.973 and 0.976 at DP2 concurrency 384 with UMBP, and 0.972 and 0.975 at DEP8 concurrency 1024 (two runs each). Throughput runs use DSpark's synthetic golden acceptance length (3.51); the preset keeps real block rejection for ordinary serving and accuracy evaluation.
Ascend 950DT1 preset950DT MXFP 1P1D (DP8/TP1 per role)
Direct KV transfer between two eight-NPU nodes, with eager Prefill and graph-mode Decode.
model rev 08c8657f02291e11b6f6b63e0e16014f8e748518
Runbook
Set PREFILL_NODE_1, DECODE_NODE_1 and IFACE_NAME for your hosts. The native vLLM supervisor starts eight HTTP endpoints per role on ports 7100–7107. The separate DP groups each use RPC port 12321. Prefill and Decode start KV transfer at ports 26010 and 27010, respectively. Check every worker's /health endpoint before starting the Ascend proxy with ROUTER_PORT=30000. Verify /v1/models and send a request for dsv41 through the proxy, then confirm KV transfer in the worker logs.
Ascend 910B1 presetAscend A2 W4A8 PD (1P + 1D)
RunbookTopology · Environment
Topology
One prefill node and one decode node, eight Ascend 910B4 (64 GB) each, fronted by the Ascend proxy. Validated lane: prefill DP2 x TP1 x PCP4, decode DP8 x TP1, KV transfer over MooncakeHybridConnector, DSpark drafts five tokens. The hardware note lists the manual edits each node needs before launch.
Environment
Set the node IP and NIC per host, and give each DP rank its own device slice.