Repository navigation
[TileRT] DeepSeek-V4.1-Flash FP4 MI355X AgentX: vLLM prefill + TileRT decode / [TileRT] DeepSeek-V4.1-Flash FP4 MI355X AgentX:vLLM prefill + TileRT decode - #4756
Conversation
TileRT decode roles always resolved their speculative method to mtp, so a TileRT recipe for DeepSeek-V4.1-Flash, whose shipped draft head is DSpark, looked up dsv41flash_mtp.yaml, which does not exist. The draft method now comes from a table keyed by the decode role's TileRT model profile (its model argument): dsv41 selects dspark and every other profile keeps mtp, so existing TileRT recipes are unchanged and decode_server receives no new argument.
One vLLM ROCm prefill (the validated MI355X DeepSeek-V4.1-Flash nightly, TP4, eager) sends the prompt KV over Mooncake to one TileRT decode (TP8, three DSpark drafts from the checkpoint's own head) behind the TileRT PD router, at concurrency 1. The decode reads the Hugging Face checkpoint directly.
|
Thanks for the contribution!
中文感谢你的贡献!
|
… the full 1M context The TileRT ROCm decode ships TP8 with five drafts as its default, so the decode takes num-mtp 5 (golden AL 3.51 for throughput runs) and the prefill's DSpark config drafts five as well. Both ranks serve 1048576 tokens and the replay keeps the uncapped corpus, like the other DeepSeek-V4.1-Flash points.
… effort high, temperature 1)
…d tokenize requests itself
…t-rocm-prefill:0.1.7 The validated MI355X vLLM nightly (e68efc68) plus the multi-protocol Mooncake build and the ionic verbs provider of the TileRT ROCm decode image, tagged with the tilert version as for GLM-5. The recipe and the master config change together; the changelog entry names the image.
…template The template is the model repo's chat_template.jinja (revision 314113f8) with eight lines added on top; the header now names the source and revision, marks which lines are ours, and carries the MIT license text. It is a Jinja comment with whitespace control, so the rendered prompt is unchanged (checked on 40 conversations against the previous file).
# Conflicts: # inferencex-e2e/infx/tests/srt_slurm/test_synthetic_acceptance.py # inferencex-e2e/perf-changelog.yaml
ghcr.io/tile-ai/tilert-rocm-decode:0.1.6 resolves to sha256:48c30d76..., the image every TileRT validation run of this config used; the tag stays for readability, the digest keeps it from moving.
ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7 is published at sha256:8a88e2aa..., the image the validation runs of this config used.
# Conflicts: # inferencex-e2e/perf-changelog.yaml
|
Generally most InferenceX submissions don't need to add changes to the infx package. On the off chance they do, generally the diff is small. Please prompt your agent to clean your PR to keep your diff to only necessary & minimal changes too. We have an increased code quality bar for changes to the infx package. 中文大多数 InferenceX 提交通常不需要修改 infx 包。即使确实需要,改动通常也很小。请让你的 agent 清理 PR,使改动只包含必要且最小的内容。infx 包的改动有更高的代码质量要求。 |
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=42340993534 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=42340993534 |
| - "Add DeepSeek-V4.1-Flash FP4 AgentX on MI355X with a disaggregated TileRT setup at concurrency 1: one vLLM ROCm prefill (ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7: the validated MI355X DeepSeek-V4.1-Flash vLLM nightly e68efc68 plus the multi-protocol Mooncake build and ionic verbs provider of the TileRT ROCm decode image; TP4, eager) sends the prompt KV over Mooncake to one TileRT decode (ghcr.io/tile-ai/tilert-rocm-decode:0.1.6 with tilert 0.1.7; TP8, five drafts from the checkpoint's own DSpark head) behind the TileRT PD router, with the full 1M context on both ranks and no context cap on the replay." | ||
| - "Throughput runs simulate the dsv41flash_dspark golden AL at five drafts (3.51): a TileRT decode now takes its draft method from its model profile, and the dsv41 profile maps to dspark." | ||
| - "The TileRT router renders the chat template and tokenizes each request itself, so the prefill receives token ids: the model's chat template, adapted to render exactly what the prefill's vLLM renders, ships as configs/dsv41flash-tilert-chat-template.jinja." | ||
| pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4755 |
There was a problem hiding this comment.
🔴 The changelog check on this PR will fail. The new entry's pr-link points to the source fork PR #4755, not to this PR. Per the description, this PR is a separate upstream copy of #4755. validate_added_pr_link accepts only this PR's own URL or an XXX placeholder. Fix: set the pr-link to https://github.com/SemiAnalysisAI/InferenceX/pull/XXX (the merge tooling fills in the real number) or to this PR's own URL.
Why this was flagged
The appended block ends with pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4755 (perf-changelog.yaml:12064). The description says this PR is an upstream copy of #4755 and that the fork PR stays open, so this PR has a different number. validate_added_pr_link (infx/workflows/validate_perf_changelog.py:112-116) builds expected from the PR under validation. Any other link that is not a placeholder raises "new PR entry must use ... or an XXX placeholder". The merge preparation step has the same rule: prepare_perf_changelog_merge.py:105-111 raises "appended entry N has unexpected pr-link". So changelog validation fails on this PR and merge_with_reuse refuses the entry. On the base branch there is no such entry, so nothing fails there.
Verification: The new block in inferencex-e2e/perf-changelog.yaml ends with pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4755. validate_added_pr_link (infx/workflows/validate_perf_changelog.py:112-116) raises "new PR entry must use ... or an XXX placeholder" for any other link. The documented merge path refuses this PR. So the ordinary PR changelog check passes; the failure only appears at merge preparation.
| if args.get("with-mtp") is not True: | ||
| return {} | ||
| return {"method": "mtp", "num_speculative_tokens": args.get("num-mtp")} | ||
| method = "dspark" if args.get("model") == "dsv41" else "mtp" |
There was a problem hiding this comment.
🔴 Operators running the documented spec-identity snapshot over amd-master.yaml will now see it crash with a ValueError instead of printing the audit. The TileRT method now depends on the decode model arg. spec_arguments (spec_identity.py:175) keeps only SPEC_ARGUMENTS prefixes, so snapshot drops model. The new row then resolves to mtp, and dsv41flash has no mtp curve. Fix: make the snapshot projection keep every arg spec_parameters reads, here model for TileRT (an exact key, not a prefix), or have it audit the bound decode role directly, so the dsv41 row picks the dspark curve as the launch path does.
Why this was flagged
The README documents the audit as python -m infx.matrix.generate full-sweep --config-files configs/nvidia-master.yaml configs/amd-master.yaml --scenario-type agentic-coding piped into python -m infx.srt_slurm.spec_identity snapshot. That matrix now contains the agentic, speculative row dsv41flash-fp4-mi355x-tilert-agentic-dspark. snapshot (spec_identity.py:191) builds args = spec_arguments(decode role). That keeps only keys starting with SPEC_ARGUMENTS ("speculative", "with-mtp", "num-mtp", "method", ...), so model: dsv41 is dropped. It then calls audit(model_prefix, {"args": args}, "tilert"). With no model, spec_parameters (synthetic_acceptance.py:72) returns method mtp. select_curve("dsv41flash", mtp) (identity.py:260) raises "No golden curve for model prefix 'dsv41flash' and method 'mtp'", which is uncaught, so the snapshot aborts for every row. On the base branch no TileRT method depended on a non-spec arg, and the GLM-5.3 TileRT row audits fine.
Verification: Trigger: an operator runs the README's documented audit (infx/golden_al_distribution/README.md:219-222: full-sweep over nvidia-master.yaml and amd-master.yaml, then spec_identity snapshot) after this merges. No benchmark run is affected. model matches none of them, so it is dropped. So there is no match and no near match, and line 260 raises ValueError("No golden curve for model prefix 'dsv41flash' and method 'mtp'").
There was a problem hiding this comment.
Fixed in 5f707c5 on the #4755 branch: spec_arguments keeps the exact key model, with a test. The README's snapshot audit over nvidia-master.yaml and amd-master.yaml now runs: dsv41flash selects deepseek-v4.1-flash__dspark__native__probabilistic-block (AL 3.51), glm5.3 still selects its MTP curve. Before the fix it raised No golden curve for model prefix 'dsv41flash' and method 'mtp'.
| # The validated MI355X DeepSeek-V4.1-Flash vLLM image (nightly e68efc68) plus the | ||
| # multi-protocol Mooncake build and the ionic verbs provider of the TileRT ROCm decode | ||
| # image, tagged with the tilert version as for GLM-5; the setup script adds the tilert | ||
| # release (--no-deps) for the TileRT KV connector. |
There was a problem hiding this comment.
🟡 nit (optional): New comments here and in the master config record provenance and history, which AGENTS.md's mandatory comment rules forbid. sweep:validated MI355X|as for GLM-5|Same request fields as the board|# DeepSeek-V4.1-Flash AgentX on MI355X Examples are recipe lines 19-22 ("nightly e68efc68", "tagged with the tilert version as for GLM-5") and lines 112-113 ("Same request fields as the board's GB300 ... recipes"). Fix: keep only short line-level technical why; move provenance to perf-changelog.yaml. Also drop the amd-master.yaml header comment above dsv41flash-fp4-mi355x-tilert-agentic-dspark.
Why this was flagged
AGENTS.md:54-58 ("Comments (mandatory, every file)") bans header comments that describe a config or recipe. It also bans history comments: where code came from, what it replaced, or past results. Git and perf-changelog.yaml are named as the record. The recipe comment at lines 19-22 gives image provenance: "validated ... nightly e68efc68" and "tagged with the tilert version as for GLM-5". Lines 112-113 point to other recipes ("Same request fields as the board's GB300 DeepSeek-V4.1-Flash recipes"). The amd-master.yaml block comment above dsv41flash-fp4-mi355x-tilert-agentic-dspark describes the whole topology. That comment also names a golden AL "dsv41flash_dspark", but no curve has that name; the real curve is deepseek-v4.1-flash__dspark__native__probabilistic-block. Nothing breaks at runtime. These comments add to rule drift and include a curve name that is already wrong.
Verification: Nothing breaks at runtime, but AGENTS.md:54-58 forbids "header comments describing a file, topology, config, recipe" and history, including "where it came from". disagg-1p1d-tp4-tp8-mtp.yaml lines 19-22 and 112-113 point to where the image and values came from. amd-master.yaml has a new header comment describing a config's topology.
…he; keep the model profile in the spec-identity audit The harness binds the model as a Hugging Face id and mounts no /model, so the TileRT decode found no checkpoint at /model (canary of #4756). Prefill and decode set HF_HOME to the cluster's shared cache so srtctl downloads the model there first; the decode, the router and the benchmark tokenizer read its snapshot at the current revision. spec_arguments keeps the TileRT `model` argument, so the snapshot audit resolves the dsv41 row to its DSpark curve instead of raising. The changelog entry uses the XXX placeholder so it validates on #4755 and on its upstream copy #4756. Provenance comments move out of the recipe and the master config.
# Conflicts: # inferencex-e2e/perf-changelog.yaml
# Conflicts: # inferencex-e2e/perf-changelog.yaml
mi355x-amds stages no DeepSeek-V4.1-Flash checkpoint, so the AgentX job runs in Hub mode and srtctl mounts nothing at /model. The TileRT decode failed at startup with '/model: not a Hugging Face checkpoint directory' (run 42061589783, Slurm job 52873). Point the decode weights, the router tokenizer and the aiperf tokenizer at the shared Hub cache snapshot 314113f8 (refs/main, the revision the prefill's vLLM loads and the chat template is based on), which is mounted at /hf_hub_cache/hub in every container on this cluster.
Take Oseltamivir's recipe paths and decode comment as they are, and drop this branch's HF_HOME settings: the shared Hub cache already holds snapshot 314113f8 on mi355x-amds. Keep the review fixes from 5f707c5 (pr-link placeholder, spec_identity keeps the TileRT model argument, provenance comments removed).
|
@Oseltamivir Thanks for 6e416e9. Your fix and our 5f707c5 point the same three paths at the same snapshot, so we merged yours into the #4755 branch as is and dropped our On top of 6e416e9 it adds only:
The recipe differs from yours only in two comments. The infx tests, ruff and the changelog validation pass. 中文谢谢 6e416e9。你的修法和我们的 5f707c5 把同样三个路径指向同一个快照,所以我们把你的提交原样合进了 #4755 的分支,并去掉了我们加的 相对 6e416e9 只多了:
recipe 和你那版只差两行注释。infx 测试、ruff 和 changelog 校验都通过。 |
|
The head of #4755 is now 7a93bf4, which contains 64c3137, so this branch can fast-forward to it again. There is no need to interrupt the sweep queued on 64c3137: it runs the same recipe paths. The extra commits are the three review fixes, which do not change what the benchmark runs. Fast-forward whenever convenient, e.g. before merge. |
|
TTFT in the cluster run 42080719817 is about twice what we measured off-cluster with the same serving flags: P90 1.39 s, against 0.67 s on our own MI350X box. On the cluster, the router's own tokenization stayed off. As a result, the prefill vLLM rendered the chat template and tokenized the whole conversation (about 275K tokens on average) on every request. Decode and TPOT are not affected. Evidence from this run's artifacts:
On the cluster, the first row grows linearly with prompt length: 1.42 ms per 1K tokens (R² 0.99). Off-cluster it is 0.08 ms per 1K tokens, because the router sends token ids. At P90, the first row accounts for most of the gap. Why this happens only on the cluster:
So the recipe is a faithful port; the difference is process visibility. Possible fixes (not validated yet):
We will post here if we push one. Until then, this run's TTFT and E2E numbers do not reflect the stack with router-side tokenization on. 中文集群上的 run 42080719817,TTFT 大约是我们在集群外、用同样服务参数实测值的两倍:P90 1.39 s,我们自己的 MI350X 机器上是 0.67 s。原因是集群上 router 自己的分词没有打开。于是 prefill 的 vLLM 每个请求都要把整段对话(平均约 27.5 万 token)从头渲染 chat template 并分词。decode 和 TPOT 不受影响。 这次 run 产物里的证据:
集群上第一行随输入长度线性增长:每 1K token 1.42 ms(R² 0.99)。集群外只有每 1K token 0.08 ms,因为 router 直接发 token id。P90 的差距主要来自第一行。 为什么只有集群上这样:
所以 recipe 本身移植没有错,差别在于 router 能不能看到 vLLM 进程。 可能的修法(尚未验证):
如果推了修复,会在这里说明。在那之前,这次 run 的 TTFT 和 E2E 数字反映的不是开着 router 侧分词时的表现。 |
…efill On the cluster the router and the prefill share a node and a process table. The router reads the prefill's vLLM command line and keeps router-side tokenization off while vLLM uses --tokenizer-mode deepseek_v41 or a different chat template, so every request was rendered and tokenized on the prefill (#4756, run 42080719817). The prefill now serves the same template file with vLLM's HF tokenizer path; the router's startup self-check against the prefill's /tokenize still decides whether it turns on.
# Conflicts: # inferencex-e2e/perf-changelog.yaml
|
@Oseltamivir The head of #4755 is now c5f0c98. It contains this branch's 64c3137, so #4756 can fast-forward to it. Please fast-forward and rerun the multi-node sweep. It applies fix B from #4756 (comment). The prefill no longer sets We have not run this change ourselves: we are validating it directly on your cluster. In the rerun, please check two things:
中文#4755 的 head 现在是 c5f0c98,已包含本分支的 64c3137,#4756 可以直接 fast-forward 过去。请 fast-forward 后重跑多节点 sweep。 这一版就是 #4756 (comment) 里的修法 B:prefill 去掉 这次改动我们没有在本地跑过,直接在你们的集群上验证。重跑时请看两点:
|
…55x-upstream # Conflicts: # inferencex-e2e/perf-changelog.yaml
… with tilert 0.1.7.post1 The prefill goes back to --tokenizer-mode deepseek_v41 with no chat template, as in the other DeepSeek-V4.1-Flash configs. tilert 0.1.7.post1 lets the TileRT router tokenize next to such a prefill: given its own --chat-template, it no longer refuses a non-HF tokenizer mode it reads from the co-located vLLM command line, and its start-up self-check against the prefill's /tokenize (now also with thinking and reasoning effort) decides whether router-side tokenization turns on.
…m' into tilert/dsv41flash-mi355x # Conflicts: # inferencex-e2e/perf-changelog.yaml
…s on the prefill; router tokens per request - prefill: VLLM_USE_RUST_FRONTEND=1; drop --return-tokens-as-token-ids (the router asks per request); drop --enforce-eager and capture CUDA graphs up to 8192-token steps - router / decode / prefill connector: tilert 0.1.7.post2 - perf-changelog: describe the post2 changes
|
@Oseltamivir The head of #4755 is now 9676fa2. It contains this branch's f9a9ae0, so #4756 can fast-forward to it. Please fast-forward and rerun the multi-node sweep. It moves the point to tilert 0.1.7.post2, which is now on PyPI, and changes only the TileRT recipe and its master entry (3 files, +17 -13, plus current main):
Off-cluster, on two 8x MI350X nodes in this recipe's shape (AgentX, concurrency 1, simulated acceptance 3.51), a 3600 s run with the same code path gave a TTFT P90 of 0.342 s, against 0.664 s with the previous recipe. E2E-normalized interactivity P90 went from 244.6 to 402.3, and decode speed did not change. With the PyPI file, GSM8K on the first 100 questions (zero-shot, greedy) scored 98/100. This head has not run on the cluster yet; run 42159378057 measured a TTFT P90 of 1.02 s with the previous head. The #4755 description is updated. 中文#4755 的 head 现在是 9676fa2,已包含这个分支的 f9a9ae0,#4756 可以直接 fast-forward 过去。请 fast-forward 后重跑多节点 sweep。 改动是把这个点位升到已上 PyPI 的 tilert 0.1.7.post2,只动 TileRT 的 recipe 和 master 条目(3 个文件,+17 -13,另含当前 main):
集群外两台 8x MI350X,按本 recipe 的形态(AgentX、并发 1、模拟接受 3.51),同一代码路径跑 3600 s:TTFT P90 0.342 s,上一版 recipe 是 0.664 s。E2E 归一化交互 P90 从 244.6 升到 402.3,decode 速度不变。用 PyPI 上的文件跑 GSM8K 前 100 题(零样本、贪心)得 98/100。这个 head 还没在集群上跑过;上一个 head 的 run 42159378057 测得 TTFT P90 1.02 s。#4755 的描述已同步更新。 |
# Conflicts: # inferencex-e2e/configs/amd-master.yaml # inferencex-e2e/perf-changelog.yaml
|
/use 42340993534 |
|
@Oseltamivir staging run 42340993534. InferenceX-app staging workflow is now running. Existing staged runs will be preserved; this comment will be updated when staging completes. |
|
Ingest report — ✅ Results ingested into the Ingest workflow · Merge Ingest run · Benchmark source run
benchmarkFiles 2, rawBenchmarkRows 2, coveredByPerJobFiles 1, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 1319, gpuMetricSamplesNew 0, powerPublicationPoints 1, changelogEntriesWritten 1 Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun. 中文Ingest 报告 — ✅ 结果已写入 上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。 |
Summary
Upstream-branch copy of #4755, preserving CrimsonDump's three commits and exact head
6c839a6f0e274c997a293e0732622ab9923e32a1. The source fork PR remains open.Adds
dsv41flash-fp4-mi355x-tilert-agentic-dspark: DeepSeek-V4.1-Flash FP4 AgentX at concurrency 1 on MI355X, with vLLM ROCm TP4 prefill and TileRT TP8 decode over Mooncake. TileRT'sdsv41model profile selects the DSpark golden acceptance curve; other profiles retain MTP selection.Run blockers
This PR remains draft with no sweep label, as requested. Do not start a benchmark sweep until the release dependency is available and the remaining serving prerequisites are resolved.
0.1.7, which is not yet on PyPI according to the source author and maintainer.mi355x-amdsremains unverified.The source author's off-cluster observations are recorded in #4755; they do not establish a passing cluster sweep for this PR.
AI model disclosure
The source PR reports
claude-opus-5-5for its implementation, recipe, local checks, off-cluster runs, description, and read-only research subagents.GPT-6 Astra copied the existing commits to an upstream branch, prepared this PR description, and monitored ordinary CI. No implementation changes were made for this copy.
中文
这是 #4755 的上游分支副本,保留 CrimsonDump 的三个提交及原始 head
6c839a6f0e274c997a293e0732622ab9923e32a1,原 fork PR 保持打开。新增
dsv41flash-fp4-mi355x-tilert-agentic-dspark:MI355X 上并发 1 的 DeepSeek-V4.1-Flash FP4 AgentX,使用 vLLM ROCm TP4 prefill 和 TileRT TP8 decode,通过 Mooncake 传输 KV。TileRT 的dsv41profile 选择 DSpark golden AL 曲线,其余 profile 保持 MTP。按要求保留 draft,不添加 sweep 标签,也不启动基准测试扫描。原作者和维护者说明 TileRT
0.1.7尚未发布到 PyPI;prefill 仍需支持跨节点 RDMA 的多协议 Mooncake build;mi355x-amds的 ionic verbs-provider 兼容性尚未验证;PD router 下的 TP8 decode 尚未验证,原作者的集群外测试使用 TP4 decode;KV connector 目前仅在 eager prefill 下测试过。原作者的集群外观察见 #4755,不代表本 PR 已通过集群扫描。此副本未修改实现。