Repository navigation
[AMD] DSv4.1-Flash MI355X vLLM DEP8 AgentX c256/c512/c1024 with tensor-scale FP8 KV cache / [AMD] DSv4.1-Flash MI355X vLLM DEP8 AgentX c256/c512/c1024 启用 tensor scale FP8 KV cache - #5056
Conversation
… c1024 on MI355X TP1 x DP8 with expert parallelism behind a consistent-hash router, cadence prefill scheduling (no delayer) and the per-tensor-scale FP8 KV cache (vllm-project/vllm#66036), on vLLM nightly-be47189f. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ints Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Thanks for the contribution!
中文感谢你的贡献!
|
…e DSv4.1-Flash DEP8 points Cadence interval 96, max-num-seqs 128 (160 at c1024), long-prefill threshold 8192 and a 32768-token budget, with host-offloaded Engram tables. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Claude finished @Fangzhou-Ai's task in 54s —— View job LGTM - no blocking issues found What I checked
|
| # TP1 x DP8 with expert parallelism over the 8 ranks, behind a consistent-hash router so multi-turn | ||
| # sessions keep their prefix-cache hits. |
There was a problem hiding this comment.
🟡 nit (optional): Maintainers get comments that AGENTS.md forbids. The comment above dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8 (amd-master.yaml:960) is a header that describes the topology. AGENTS.md bans those for configs, recipes and overrides. Fix: keep only the why, e.g. one line above router: saying consistent hashing keeps a multi-turn session's prefix-cache hits on one rank. Drop the "TP1 x DP8 with expert parallelism" topology text. Likewise "Mono decode is off for the data-parallel layout." (agentic.yaml:315, 352, 389) restates monokernel: null. It should say why mono decode cannot run at DP8, or be removed.
Why this was flagged
AGENTS.md "Comments (mandatory, every file)" says: "No header comments describing a file, topology, config, recipe, override, or section" and "never restate the code". The new comment at inferencex-e2e/configs/amd-master.yaml:960-961 opens with "TP1 x DP8 with expert parallelism over the 8 ranks". That restates the search-space row (tp: 8, ep: 8, dp-attn: true) and the recipe's parallel settings, so it is a topology header on a config key. In inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml:315, 352 and 389, "# Mono decode is off for the data-parallel layout." only says what monokernel: null does. It gives no reason, such as a kernel limit at DP or a measured failure. This is a convention slip, not a runtime failure. These comments are new in this diff, so the base branch does not have them.
Verification: AGENTS.md:54-58 says: "No header comments describing a file, topology, config, recipe, override, or section" and "never restate the code". The diff adds a header at inferencex-e2e/configs/amd-master.yaml:960-961 whose first clause, "TP1 x DP8 with expert parallelism over the 8 ranks", describes the topology. Nothing at runtime breaks.
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=43778210028 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=43778210028 |
…o nightly-9bc16ae6
Use engram-config {"cpu_offload":false,"embedding_across_dp":true} at c256, c512 and
c1024, as the B300 DEP8 recipe does. Host-offloaded tables are read through small-page
host mappings, which made prefill Engram lookups 54 to 110 ms per layer on MI355X.
Move the image to vllm/vllm-openai-rocm:nightly-9bc16ae6 (index digest
sha256:1f70fc06f38a18ae5e6ba1e25d9f59fd6f9fd79080d03a6dfdbb84f2bca33052).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Resolve the perf-changelog.yaml conflict by keeping main's new entries and appending this PR's entry last. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Adds DEP8 points for DeepSeek-V4.1-Flash FP4 AgentX on MI355X (vLLM) at concurrency 256, 512 and 1024: TP1 x DP8 with expert parallelism over the 8 ranks, experts on AITER MegaMoE over MoRI, behind a consistent-hash vLLM router. They live under a new config key,
dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8, so the existing TP2/TP4 grid does not rerun. Prefill uses vLLM's existing cadence scheduling (prefill-schedule-interval 96, 32768-token budget,long-prefill-token-threshold 8192) withmax-num-seqs128 (160 at c1024), the scheduling knobs the B300 DEP8 recipe uses; the cross-DP delayer (vllm-project/vllm#65655) is not used. The KV cache is the per-tensor-scale FP8 format (--kv-cache-dtype fp8_e4m3, vllm-project/vllm#66036), included in the pinned imagenightly-9bc16ae6a34b1e0fe260e8d12b98568478bf38c3, which also carries the MegaMoE wiring (vllm-project/vllm#66644) and the Engram peer-read fix (#66500).Draft: nothing here has been swept. No CI run and no run link yet.
Local reference (not an InferenceX run). An earlier local one-hour AgentX c256 run on 8 x MI355X with MegaMoE + MoRI, cadence interval 96 and a 32768-token budget measured 174.3K tok/s/GPU, p90 interactivity 131.8, TTFT p50 2.28 s and p90 5.83 s. That run used a patched vLLM overlay on an older build, GPU-resident Engram tables and no FP8 KV cache, so it does not describe this config.
Risks and open items
max-num-seqs, the cadence interval and the long-prefill threshold are copied from the B300 recipe. The B300 recipe uses a 65536-token budget; this PR uses 32768, the value used in the local run above. c512 uses the 128 that B300 uses at its neighbouring points (384 and 544), since B300 has no c512 point.cpu_offload: false, embedding_across_dp: true), as in the B300 DEP8 recipe. With host offload the table sits in a small-page/dev/shmmapping and prefill Engram lookups took 54 to 110 ms per layer on MI355X ([ROCm][Perf][DSv4.1] Sort Engram host lookups by table offset on MI355X vllm-project/vllm#67805 fixes that path, but HBM tables avoid it). A local one-hour AgentX c256 run on 8 x MI355X with this setting (a vLLM worktree one commit after this image's, not the image itself) gave 182.7K tok/s/GPU, p90 interactivity 120.6, TTFT p50 1.80 s and p90 3.61 s, versus 175.6K, 96.4, 2.06 s and 4.41 s for host offload on this image's commit; single runs. c512 and c1024 were not run with HBM tables; the table costs about 12 GiB of HBM per rank, which comes out of the KV budget.kv-cache-dtype: fp8_e4m3.Change details
agentic.yaml: newoverride_dep8_c256,override_dep8_c512andoverride_dep8_c1024(TP1, DP8, expert parallelism,all2all-backend: mori,moe-backend: aiter_mega_moe, Engram tables in HBM (cpu_offload: false) withembedding_across_dp,max-num-seqs128/128/160, 32768-token budget,prefill-schedule-interval: 96,long-prefill-token-threshold: 8192,kv-cache-dtype: fp8_e4m3,monokernel: null,MORI_SHMEM_HEAP_SIZE: 64G, consistent-hashvllm-router).amd-master.yaml: new keydsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8, one search-space row (tp: 8, ep: 8, dp-attn: true,conc-list: [256, 512, 1024]), image pinned by digest.perf-changelog.yaml: one appended entry.中文
为 MI355X 上的 DeepSeek-V4.1-Flash FP4 AgentX(vLLM)新增 DEP8 点位,并发 256、512 和 1024:TP1 x DP8,专家在 8 个 rank 间做专家并行,专家计算使用基于 MoRI 的 AITER MegaMoE,前端使用一致性哈希的 vLLM router。点位放在新的配置键
dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8下,不会重跑现有 TP2/TP4 网格。Prefill 使用 vLLM 现有的 cadence 调度(prefill-schedule-interval 96,32768 token 预算,long-prefill-token-threshold 8192),max-num-seqs为 128(c1024 为 160),这些调度参数取自 B300 DEP8 配方;不使用跨 DP 的 delayer(vllm-project/vllm#65655)。KV cache 使用 per-tensor scale FP8 格式(--kv-cache-dtype fp8_e4m3,vllm-project/vllm#66036),已包含在固定镜像nightly-9bc16ae6a34b1e0fe260e8d12b98568478bf38c3中,该镜像同时包含 MegaMoE 接入(vllm-project/vllm#66644)和 Engram peer-read 修复(#66500)。草稿:尚未运行任何 sweep。 目前没有 CI 运行,也没有运行链接。
本地参考(非 InferenceX 运行)。 此前在 8 卡 MI355X 上做过一小时 AgentX c256 本地测试(MegaMoE + MoRI,cadence interval 96,32768 token 预算),结果为 174.3K tok/s/GPU,p90 交互性 131.8,TTFT p50 2.28 s、p90 5.83 s。该测试使用较旧构建上的 vLLM 补丁 overlay、Engram 表放在 GPU 上且未启用 FP8 KV cache,因此不代表当前配置。
风险与待办
max-num-seqs、cadence interval 和 long-prefill 阈值取自 B300 配方。B300 使用 65536 token 预算,本 PR 使用 32768(与上述本地测试一致)。B300 没有 c512 点位,c512 使用 B300 相邻点位(384 和 544)的 128。cpu_offload: false, embedding_across_dp: true),与 B300 DEP8 配方一致。主机卸载时表位于小页的/dev/shm映射中,MI355X 上 prefill 的 Engram 查找每层耗时 54 到 110 ms([ROCm][Perf][DSv4.1] Sort Engram host lookups by table offset on MI355X vllm-project/vllm#67805 修复了该路径,但 HBM 表可直接避开)。使用该设置在 8 卡 MI355X 上做了一小时 AgentX c256 本地测试(所用 vLLM worktree 比本镜像新一个提交,并非该镜像本身):182.7K tok/s/GPU,p90 交互性 120.6,TTFT p50 1.80 s、p90 3.61 s;对比本镜像对应提交上的主机卸载为 175.6K、96.4、2.06 s、4.41 s;均为单次运行。c512 和 c1024 未用 HBM 表运行;该表每个 rank 约占 12 GiB HBM,会从 KV 预算中扣除。kv-cache-dtype: fp8_e4m3一起运行过。AI model disclosure
Claude Sonnet 5.5 (
claude-sonnet-5-5), run through Claude Code, prepared the config and recipe changes and wrote this description. No delegated agents.🤖 Generated with Claude Code