Skip to content

[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

Merged
Oseltamivir merged 32 commits into
mainfrom
tilert/dsv41flash-mi355x-upstream
Nov 7, 2026
Merged

Oseltamivir merged 32 commits into
mainfrom
tilert/dsv41flash-mi355x-upstream

Conversation

@functionstackx

Copy link
Copy Markdown
Collaborator

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's dsv41 model 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.

  • The source PR requires TileRT 0.1.7, which is not yet on PyPI according to the source author and maintainer.
  • The prefill image still needs a multi-protocol Mooncake build for cross-node RDMA.
  • The ionic verbs-provider compatibility on mi355x-amds remains unverified.
  • TP8 decode behind the PD router has not been validated; the source author's off-cluster test used TP4 decode.
  • Prefill remains eager because the KV connector has only been exercised in that mode.

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-5 for 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 的 dsv41 profile 选择 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 已通过集群扫描。此副本未修改实现。

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.
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

CrimsonDump and others added 13 commits November 3, 2026 14:51
… 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.
…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
Sync #4756 with fork PR #4755 head 27acf74 and resolve the
perf-changelog append conflict (keep #4801's entry, TileRT entry after it).
@Oseltamivir Oseltamivir added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 5, 2026
@Oseltamivir
Oseltamivir marked this pull request as ready for review November 5, 2026 17:20
@Oseltamivir
Oseltamivir requested a review from a team November 5, 2026 17:20
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +26 -3

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 包的改动有更高的代码质量要求。

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment thread inferencex-e2e/perf-changelog.yaml Outdated
- "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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5f707c5 on the #4755 branch: the pr-link is now the https://github.com/SemiAnalysisAI/InferenceX/pull/XXX placeholder, valid on both PRs; the merge tooling fills in the number. Sync pending.

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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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'").

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'.

Comment on lines +19 to +22
# 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 5f707c5 on the #4755 branch: the provenance comments are gone from the recipe, the amd-master.yaml header comment is removed, and the changelog names the curve correctly.

CrimsonDump and others added 5 commits November 6, 2026 01:38
…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).
@CrimsonDump

Copy link
Copy Markdown
Contributor

@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 HF_HOME settings. The head of #4755 is now 0461336, which contains 6e416e9, so this branch can fast-forward to it.

On top of 6e416e9 it adds only:

  • the three fixes from the review on this PR (pr-link uses the XXX placeholder; spec_arguments keeps the TileRT model argument, with a test; provenance comments removed from the recipe and amd-master.yaml);
  • current main (the only conflict was in the changelog, resolved with the helper).

The recipe differs from yours only in two comments. The infx tests, ruff and the changelog validation pass.

中文

谢谢 6e416e9。你的修法和我们的 5f707c5 把同样三个路径指向同一个快照,所以我们把你的提交原样合进了 #4755 的分支,并去掉了我们加的 HF_HOME。#4755 现在的 head 是 0461336,已包含 6e416e9,这个分支可以直接 fast-forward 过去。

相对 6e416e9 只多了:

  • 本 PR 上 review 的三条修复:pr-link 用 XXX 占位符;spec_arguments 保留 TileRT 的 model 参数,并加了测试;删掉 recipe 和 amd-master.yaml 里写来历的注释;
  • 最新的 main(只有 changelog 冲突,用仓库的工具解决)。

recipe 和你那版只差两行注释。infx 测试、ruff 和 changelog 校验都通过。

@CrimsonDump

Copy link
Copy Markdown
Contributor

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.

中文

#4755 的 head 现在是 7a93bf4,已包含 64c3137,这个分支又可以直接 fast-forward 过去。64c3137e 上排队的 sweep 不用打断:它跑的 recipe 路径相同。多出来的提交只是 review 的三条修复,不改变压测内容。方便时(比如合并前)fast-forward 即可。

@CrimsonDump

Copy link
Copy Markdown
Contributor

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:

  • Router log, line 10: router-side tokenization stays OFF: vLLM uses --tokenizer-mode deepseek_v41; only the HF tokenizer path is reproduced here; router flags (chat_template='/configs/dsv41flash-tilert-chat-template.jinja' (17256 chars), ...) differ from vLLM's (chat_template=model default, ... [vLLM command line]). Off-cluster, the same router logs router-side tokenization ON: self-check matched vLLM /tokenize on all probes.
  • Per-request split from the prefill server's vLLM metrics (aiperf server_metrics_export.json, concurrency 1, p50 / p90 in seconds):
cluster off-cluster
arrival to prefill scheduled (template and tokenization) 0.356 / 0.830 0.015 / 0.048
prefill compute 0.143 / 0.330 0.143 / 0.207
prefill server, whole HTTP request 0.650 / 1.231 0.270 / 0.422

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:

  1. At startup, the router looks for a vLLM server process on its own node and compares that server's command line with its own flags. If they differ, it keeps router-side tokenization off and does not run its self-check.
  2. Under pyxis, the router and the prefill server share the node's process table. The router therefore sees two differences: the prefill's --tokenizer-mode deepseek_v41, and a chat template that is set on the router only.
  3. Off-cluster, the router and the prefill server each run in their own docker container. The router sees no vLLM process, falls back to its probe self-check against vLLM /tokenize, and that check passes.

So the recipe is a faithful port; the difference is process visibility.

Possible fixes (not validated yet):

  • Give the prefill server the same --chat-template file and drop tokenizer-mode: deepseek_v41.
  • Or run the router on a node that has no vLLM server.

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 产物里的证据:

  • router 日志第 10 行:router-side tokenization stays OFF: vLLM uses --tokenizer-mode deepseek_v41; ... router flags (...) differ from vLLM's (chat_template=model default, ...)。集群外同一个 router 打的是 router-side tokenization ON: self-check matched vLLM /tokenize on all probes。
  • 逐请求拆分:数据来自 prefill 服务的 vLLM 指标(aiperf server_metrics_export.json),并发 1,p50 / p90,单位秒:
集群 集群外
请求到达到 prefill 被调度(渲染模板和分词) 0.356 / 0.830 0.015 / 0.048
prefill 计算 0.143 / 0.330 0.143 / 0.207
prefill 服务处理整个 HTTP 请求 0.650 / 1.231 0.270 / 0.422

集群上第一行随输入长度线性增长:每 1K token 1.42 ms(R² 0.99)。集群外只有每 1K token 0.08 ms,因为 router 直接发 token id。P90 的差距主要来自第一行。

为什么只有集群上这样:

  1. router 启动时会找本节点上的 vLLM 服务进程,拿它的命令行和自己的参数比对。只要不一致,就直接关掉 router 侧分词,也不再跑自检。
  2. 在 pyxis 下,router 和 prefill 服务共用节点的进程表。router 因此看到两处不一致:prefill 的 --tokenizer-mode deepseek_v41,以及只设在 router 上的 chat template。
  3. 集群外 router 和 prefill 服务各在自己的 docker 容器里。router 看不到 vLLM 进程,于是改走对照 vLLM /tokenize 的探针自检,结果通过。

所以 recipe 本身移植没有错,差别在于 router 能不能看到 vLLM 进程。

可能的修法(尚未验证):

  • 给 prefill 服务同一个 --chat-template 文件,并去掉 tokenizer-mode: deepseek_v41。
  • 或者把 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
@CrimsonDump

Copy link
Copy Markdown
Contributor

@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 tokenizer-mode: deepseek_v41, and it serves the router's template, chat-template: /configs/dsv41flash-tilert-chat-template.jinja. That is the same path the router uses, so the router's comparison of the prefill's command line sees the same template on vLLM's HF tokenizer path. The router's startup self-check against the prefill's /tokenize still decides whether tokenization turns on. The head also carries the three review fixes and current main.

We have not run this change ourselves: we are validating it directly on your cluster. In the rerun, please check two things:

  1. The router log contains router-side tokenization ON. If the self-check fails, the router keeps tokenization off and the run behaves as the last one did.
  2. TTFT returns to about 0.7 s at P90; the last run measured 1.39 s. The 0.7 s figure is our estimate from the off-cluster runs, not a measurement on this configuration.
中文

#4755 的 head 现在是 c5f0c98,已包含本分支的 64c3137,#4756 可以直接 fast-forward 过去。请 fast-forward 后重跑多节点 sweep。

这一版就是 #4756 (comment) 里的修法 B:prefill 去掉 tokenizer-mode: deepseek_v41,改用 router 的模板 chat-template: /configs/dsv41flash-tilert-chat-template.jinja。路径和 router 用的完全相同,router 比对 prefill 的命令行时,看到的就是 HF 分词路径加上同一份模板。是否打开 tokenize,仍由 router 启动时对 prefill /tokenize 的自检决定。这个 head 还带着 review 的三条修复和最新的 main。

这次改动我们没有在本地跑过,直接在你们的集群上验证。重跑时请看两点:

  1. router 日志里出现 router-side tokenization ON。如果自检没过,router 会保持关闭,这一轮就和上一轮一样。
  2. TTFT P90 回到约 0.7 s(上一轮是 1.39 s)。0.7 s 是我们根据集群外的结果推算的,这个配置还没实测过。

Oseltamivir and others added 4 commits November 6, 2026 11:54
…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
@CrimsonDump

Copy link
Copy Markdown
Contributor

@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):

  • router.version: "0.1.7.post2", installed in every role. Over 0.1.7 it changes only the PD serving layer. The router reuses the token ids of the conversation prefix it has already rendered and asks the prefill for token ids per request. The decode imports only the KV past the prefix it already holds from the previous turn, after checking it byte for byte against what it received then.
  • The prefill's flags are the DeepSeek-V4.1-Flash ones again: tokenizer-mode: deepseek_v41 is back, and the prefill no longer serves the router's template (fix B is reverted). Since 0.1.7.post1 the router tokenizes next to a deepseek_v41 prefill: its template renders what that mode renders, checked against the prefill's /tokenize at startup.
  • VLLM_USE_RUST_FRONTEND=1 on the prefill, as in the MI355X vLLM DeepSeek-V4.1-Flash agentic recipe. The return-tokens-as-token-ids flag is dropped because the Rust front end rejects it; the router asks for token ids per request instead.
  • CUDA graphs on the prefill instead of enforce-eager, with capture sizes up to 8192, so an AgentX turn's prefill step runs as a graph.

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):

  • router.version: "0.1.7.post2",每个角色都装它。相对 0.1.7 只改 PD 服务层。router 复用已经渲染过的会话前缀的 token id,并按请求向 prefill 要 token id。decode 只导入上一轮已持有前缀之后的 KV,导入前先和上一轮收到的逐字节核对。
  • prefill 的参数回到 DeepSeek-V4.1-Flash 的写法:恢复 tokenizer-mode: deepseek_v41,prefill 不再加载 router 的模板(撤回修法 B)。从 0.1.7.post1 起,router 在 deepseek_v41 的 prefill 旁边也能 tokenize:它的模板渲染结果和该模式一致,启动时会用 prefill 的 /tokenize 核对。
  • prefill 设 VLLM_USE_RUST_FRONTEND=1,和 MI355X 的 vLLM DeepSeek-V4.1-Flash agentic recipe 一样。Rust 前端不接受 return-tokens-as-token-ids 这个参数,所以去掉了,改由 router 按请求要 token id。
  • prefill 用 CUDA graph,不再 enforce-eager,capture 到 8192,AgentX 每轮的 prefill step 都按 graph 跑。

集群外两台 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
@Oseltamivir

Copy link
Copy Markdown
Collaborator

/use 42340993534

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

@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.

@Oseltamivir
Oseltamivir merged commit e54148a into main Nov 7, 2026
34 checks passed
@Oseltamivir
Oseltamivir deleted the tilert/dsv41flash-mi355x-upstream branch November 7, 2026 16:57
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Ingest report — ✅ Results ingested into the production database.

Ingest workflow · Merge Ingest run · Benchmark source run

Category new duplicate skipped unmapped failed
benchmark 1 0 1 0 0
eval 1 1 0 0 0
trace 1 0 0 0 0
power 0 0 1 0 0

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 报告 — ✅ 结果已写入 production 数据库。

上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants