Repository navigation
[AMD] DSv4.1-Flash MI355X vLLM DP2 AgentX c128/c256/c384 with prefill cadence / [AMD] DSv4.1-Flash MI355X vLLM DP2 AgentX c128/c256/c384 启用 prefill 节奏 - #4992
Conversation
…cadence Add a TP1 x DP2 point (attention data parallel, experts TP-sharded, no expert parallelism) behind a consistent-hash vLLM router at concurrency 256, using the engine's cadence prefill scheduling (prefill-schedule-interval 11, 16384-token budget) on nightly-083fbac02. The cross-DP delayer (vllm-project/vllm#65655) is not used. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Thanks for the contribution!
中文感谢你的贡献!
|
…28, c256 and c384 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Claude finished @Fangzhou-Ai's task in 43s —— View job Review: no blocking issues foundI checked how the new I couldn't run |
| tensor-parallel-size: 1 | ||
| data-parallel-size: 2 | ||
| engram-config: '{"cpu_offload":true}' | ||
| max-cudagraph-capture-size: 1024 |
There was a problem hiding this comment.
🟡 (optional) The new c384 point will likely run most decode steps without CUDA graphs, so its published throughput comes from a slower path that the author never measured. Each DP rank serves about 384/2 = 192 sequences. With five DSpark drafts, each sequence adds 6 tokens per step, so a decode step is about 1152 tokens. That is above max-cudagraph-capture-size: 1024, and the recipe comment says larger steps run eagerly. Fix: for every DP2 point, make the capture size at least the peak per-rank running sequences x 6 (e.g. 1536 or 2048 for c384), or set max-num-seqs at or below 170 per rank.
Why this was flagged
The trigger is the c384 point of the new key dsv41flash-fp4-mi355x-vllm-agentic-dspark-dp2 (amd-master.yaml:920). It binds to override_dp2_c384 (agentic.yaml:340-364), which runs data-parallel-size 2 with no max-num-seqs cap. The base speculative-config at agentic.yaml:46 drafts num_speculative_tokens 5, so each decoding sequence verifies 6 tokens per step. The recipe's own comment at agentic.yaml:75-78 states this: capture is max-num-seqs x (1 + 5 drafts), and larger steps run eagerly. Consistent hashing puts about 192 of the 384 sessions on each rank, which gives about 1152 decode tokens per step. That is above the 1024 set at agentic.yaml:357, so steady-state decode leaves the graph path on most steps. vLLM pads DP ranks to a common token count, so one heavy rank probably pulls both ranks off graphs. The c256 blocks (about 128 per rank, 768 tokens) only cross 1024 under hash imbalance. The PR description says c384 was not measured. The NVIDIA DEP recipes avoid this by capping max-num-seqs at 128 and capturing up to 8190.
Verification: The trigger is the c384 point running more than about 170 decoding sequences on a DP rank. agentic.yaml:46 uses "num_speculative_tokens":5, so each decoding sequence verifies 6 tokens per step. override_dp2_c384 sets max-cudagraph-capture-size: 1024 with no max-num-seqs. At about 192 per rank a decode step is 1152 tokens, and agentic.yaml:75-78 says larger steps run eagerly.
| engram-config: '{"cpu_offload":true}' | ||
| max-cudagraph-capture-size: 1024 | ||
| max-num-batched-tokens: 16384 | ||
| # The DP2 points were tuned without mono decode. |
There was a problem hiding this comment.
🟡 nit (optional): "The DP2 points were tuned without mono decode." is a past-results comment, which AGENTS.md:57 forbids, and it appears three times. Fix: drop it, or give the technical reason. The base comment at lines 48-51 limits mono decode to steps of up to 48 rows, and the DP2 points always run larger steps. The same comment is at lines 307, 333 and 359.
Why this was flagged
AGENTS.md:57 bans comments about past results and how code came about, and AGENTS.md:58 allows only a technical reason for a value. The comment at agentic.yaml:307, 333 and 359 records how the points were tuned, not why monokernel: null is correct. A maintainer reading it cannot tell whether mono decode would help or hurt at c128-c384. The base branch has no such comment.
Verification: The new recipe adds # The DP2 points were tuned without mono decode. above monokernel: null at agentic.yaml:307, 333 and 359, and the base file has no such comment. AGENTS.md:57 forbids "past results" in comments. The new comment gives no technical reason for monokernel: null. Nothing breaks at runtime.
…ysisAI#4992 Match the engine and router settings of the no-offload DP2 points in SemiAnalysisAI#4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: SemiAnalysisAI#4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=43343844522 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=43343844522 |
…ysisAI#4992 Match the engine and router settings of the no-offload DP2 points in SemiAnalysisAI#4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: SemiAnalysisAI#4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Local agentx-fast runs against the SemiAnalysisAI#4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ysisAI#4992 Match the engine and router settings of the no-offload DP2 points in SemiAnalysisAI#4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: SemiAnalysisAI#4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Local agentx-fast runs against the SemiAnalysisAI#4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ysisAI#4992 Match the engine and router settings of the no-offload DP2 points in SemiAnalysisAI#4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: SemiAnalysisAI#4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Local agentx-fast runs against the SemiAnalysisAI#4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Match the engine and router settings of the no-offload DP2 points in #4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: #4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Local agentx-fast runs against the #4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…9f with the per-tensor-scale FP8 KV cache Pin the vLLM ROCm nightly by digest and set --kv-cache-dtype fp8_e4m3 on the DP2 points (vllm-project/vllm#66036). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
replaced by #5036 |
Match the engine and router settings of the no-offload DP2 points in #4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: #4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Local agentx-fast runs against the #4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Match the engine and router settings of the no-offload DP2 points in #4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: #4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Local agentx-fast runs against the #4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…oading Carry over concurrency 128 from the closed #4992 into the UMBP key: the same DP2 engine and router settings, prefill cadence 11 and fp8_e4m3 KV cache on the same nightly, with no KV offloading. Local runs showed UMBP does not help at 128, where the GPU KV cache holds the working set, so the point runs without it while 256 and 384 keep UMBP. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Match the engine and router settings of the no-offload DP2 points in #4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: #4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Local agentx-fast runs against the #4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…oading Carry over concurrency 128 from the closed #4992 into the UMBP key: the same DP2 engine and router settings, prefill cadence 11 and fp8_e4m3 KV cache on the same nightly, with no KV offloading. Local runs showed UMBP does not help at 128, where the GPU KV cache holds the working set, so the point runs without it while 256 and 384 keep UMBP. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…8-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading (#5036) * feat(agentx): add DSv4.1-Flash MI355X vLLM DP2 c128-384 with UMBP offload Add the dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp key on the first ROCm nightly carrying vllm-project/vllm#64715 (UMBP standalone mode for DeepSeek-V4.1-Flash): - Concurrency 128, 256 and 384 on two GPUs with attention DP2 and the MoE tensor-parallel across both ranks, fronted by vllm-router with consistent_hash. Mono decode is off because it rejects DP. - KV offloading through UMBPStoreConnector in standalone mode: the recipe starts umbp_standalone_server as a critical service before the workers, owning one 449 GB host-DRAM pool shared by both DP ranks. The existing TP4/TP2 and TP8 c1 keys are unchanged and not rerun. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(agentx): align DSv4.1-Flash MI355X UMBP DP2 points with #4992 Match the engine and router settings of the no-offload DP2 points in #4992, so they serve as the baseline for UMBP: - Prefill cadence (prefill-schedule-interval 11). - Drop the monokernel key instead of setting it false. - Expose the vllm-router Prometheus endpoint on 127.0.0.1:18000. - Declare the router per search-space row and drop the default ep. Keep the newer image, which carries vllm-project/vllm#64715. Rename the overrides to override_dp2_umbp_c* and select each one explicitly: #4992 adds override_dp2_c* to the same recipe without KV_OFFLOADING, so shared names would overwrite each other and automatic variant matching would select both sets for a UMBP point. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(agentx): drop the DSv4.1-Flash MI355X UMBP c128 point Local agentx-fast runs against the #4992 DP2 configuration showed no UMBP gain at concurrency 128, where the GPU KV cache already serves 90% of prompt tokens: throughput fell 4.7% with 0.46% of prompt tokens restored. Concurrency 256 (+10%) and 384 (+103%) stay. The c256 override now holds the shared anchors; both remaining points render unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(agentx): share the UMBP sockets through a host directory srtctl runs every step of a job in its own mount namespace, so the umbp-server service and the engine workers each saw a private /tmp. The workers failed at startup with "cannot attach to the UMBP standalone server at unix:///tmp/umbp/standalone.grpc.sock" (run 43151259956, all three jobs). Mount the node-local /dev/shm into every step at /umbp-host and put the gRPC and fd sockets there. The server rebinds over stale socket files left by an earlier job. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(agentx): move the DSv4.1-Flash MI355X UMBP points to nightly-be47189 with fp8 KV Move the UMBP key to vllm/vllm-openai-rocm:nightly-be47189f37 (2026-11-12), which adds vllm-project/vllm#66036 on top of #64715, and serve both DP2 points with kv-cache-dtype fp8_e4m3: per-tensor fp8 KV rows for the AITER sparse MLA instead of the block-scaled fp8_ds_mla record. The DSpark draft layers share the target's cache dtype; draft weights are unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(agentx): add the DSv4.1-Flash MI355X DP2 c128 point without offloading Carry over concurrency 128 from the closed #4992 into the UMBP key: the same DP2 engine and router settings, prefill cadence 11 and fp8_e4m3 KV cache on the same nightly, with no KV offloading. Local runs showed UMBP does not help at 128, where the GPU KV cache holds the working set, so the point runs without it while 256 and 384 keep UMBP. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(agentx): move the DSv4.1-Flash MI355X UMBP points to nightly-9bc16ae The 2026-11-15 ROCm nightly includes vllm-project/vllm#67377 (AITER FlyDSL dense MXFP8 GEMMs for DeepSeek-V4.1-Flash) on top of #64715 and #66036. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(amd): keep MI355X allocations off mia1-p01-g11 The c256 UMBP point landed on that node twice. Slurm exclude keeps the rerun off it. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(agentx): move the DSv4.1-Flash MI355X UMBP points to nightly-60bd6dd The 2026-11-16 ROCm nightly is 50 commits ahead of nightly-9bc16ae and still carries vllm-project/vllm#64715, #66036, and #67377. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(amd): keep MI355X allocations off mia1-p01-g09 Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Fangzhou Ai <fangzhou.ai@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Chun Fang <chun.fang@amd.com> Co-authored-by: functionstackx <47992694+functionstackx@users.noreply.github.com>
Adds the DeepSeek-V4.1-Flash FP4 AgentX sweep for MI355X at TP1 x DP2 (attention data parallel, experts TP-sharded, no expert parallelism), concurrency 128, 256 and 384, behind a consistent-hash vLLM router. Prefill uses vLLM's existing cadence scheduling (
prefill-schedule-interval 11, 16384-token budget), so it needs no scheduler change. The cross-DP prefill delayer (vllm-project/vllm#65655) is not merged, and this point does not depend on it.On local one-hour AgentX c256 runs (the table below; c128 and c384 are not measured yet), cadence reaches 305-311K tok/s/GPU against 317K for the delayer at the same interval, and the TTFT tail is far shorter. p90 interactivity is about half of the delayer's, so this is a throughput and tail-latency choice, not a free win.
Risks and open items
nightly-083fbac02build, without the FP8 KV cache. The config now pinsnightly-be47189fand sets--kv-cache-dtype fp8_e4m3; neither has been measured locally, so the table below does not describe this config. Runs on the new image at c128, c256 and c384 are pending, and I will update this description with them.override_dp2_*recipe names, with the delayer). Whichever merges second needs a rebase; [AMD] DSv4.1-Flash MI355X vLLM DP2 AgentX c64/c128/c256 with the prefill delayer / [AMD] DSv4.1-Flash MI355X vLLM DP2 AgentX c64/c128/c256 启用 prefill delayer #4873 can switch back to the delayer once #65655 lands.Local one-hour c256 results (tok/s/GPU; p90 intvty is the 10th percentile of per-request interactivity; TP1 x DP2, 16384-token budget)
Cadence intervals 4 to 16 are within about 2% of each other, so 11 is chosen to match the delayer recipe, not because it is sharply better.
Change details
agentic.yaml: newoverride_dp2_c128,override_dp2_c256andoverride_dp2_c384(TP1, DP2, no expert parallelism, Engramcpu_offload, 16384-token budget,monokernel: null,prefill-schedule-interval: 11,kv-cache-dtype: fp8_e4m3, consistent-hashvllm-router).amd-master.yaml: new keydsv41flash-fp4-mi355x-vllm-agentic-dspark-dp2,conc-list: [128, 256, 384], imagevllm/vllm-openai-rocm:nightly-be47189f37f6162991366ff6b91539f6e9d1f432pinned by digest (published 2026-11-12; carries the per-tensor-scale FP8 KV cache, [ROCm][DSv4/4.1] Enable Tensor scale FP8 KV Cache for Sparse MLA vllm-project/vllm#66036).perf-changelog.yaml: one appended entry.中文
为 MI355X 增加 DeepSeek-V4.1-Flash FP4 AgentX 的 TP1 x DP2 扫描(注意力数据并行,专家按 TP 切分,不启用专家并行),并发 128、256 和 384,前端使用一致性哈希的 vLLM router。Prefill 使用 vLLM 现有的 cadence 调度(
prefill-schedule-interval 11,16384 token 预算),无需修改调度器。跨 DP 的 prefill delayer(vllm-project/vllm#65655)尚未合入,本点不依赖它。本地一小时 AgentX c256 测试中(见下表;c128 和 c384 尚未测量),cadence 达到 305-311K tok/s/GPU,相同 interval 下 delayer 为 317K,但 TTFT 尾部明显更短。p90 交互性约为 delayer 的一半,因此这是吞吐与尾延迟之间的取舍,并非无代价的提升。
风险与待办
nightly-083fbac02之上的 vLLM 补丁 overlay,且未启用 FP8 KV cache。配置现已固定到nightly-be47189f并设置--kv-cache-dtype fp8_e4m3,两者均未在本地测量,因此下表不代表当前配置。新镜像在 c128、c256 和 c384 的测试待完成,完成后会更新本描述。override_dp2_*recipe 名称,使用 delayer)。后合入者需要 rebase;待 #65655 合入后,[AMD] DSv4.1-Flash MI355X vLLM DP2 AgentX c64/c128/c256 with the prefill delayer / [AMD] DSv4.1-Flash MI355X vLLM DP2 AgentX c64/c128/c256 启用 prefill delayer #4873 可改回 delayer。AI model disclosure
Claude Sonnet 5.5 (
claude-sonnet-5-5[1m]), run through Claude Code, prepared the config and recipe changes, ran the local benchmarks, analyzed the results, and wrote this description. No delegated agents.