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 - #4755

Closed
CrimsonDump wants to merge 29 commits into
SemiAnalysisAI:mainfrom
CrimsonDump:tilert/dsv41flash-mi355x
Closed

CrimsonDump wants to merge 29 commits into
SemiAnalysisAI:mainfrom
CrimsonDump:tilert/dsv41flash-mi355x

Conversation

@CrimsonDump

@CrimsonDump CrimsonDump commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds dsv41flash-fp4-mi355x-tilert-agentic-dspark: DeepSeek-V4.1-Flash AgentX on MI355X (concurrency 1) with disaggregated serving. One vLLM ROCm prefill (TP4) sends the prompt KV over Mooncake to one TileRT decode (TP8, five drafts from the checkpoint's own DSpark head), behind the TileRT PD router, with the full 1M context on both sides and no context cap on the replay.

  1. Golden AL selection for TileRT. A TileRT decode role always resolved its speculative method to mtp, so a TileRT recipe for DeepSeek-V4.1-Flash looked up dsv41flash_mtp.yaml, which does not exist. The method now follows the decode role's TileRT model profile (its model argument): dsv41 selects dspark, every other profile keeps mtp (infx/srt_slurm/synthetic_acceptance.py, one condition, plus a test). The spec-identity snapshot audit keeps that model argument, so it selects the same curve (infx/srt_slurm/spec_identity.py). Existing TileRT recipes are unchanged, and decode_server receives no new argument. Throughput runs of the new point simulate the deepseek-v4.1-flash__dspark__native__probabilistic-block curve at five drafts (AL 3.51).
  2. Recipe and master entry. dsv41flash/tilert/mi355x-fp4/agentx/disagg-1p1d-tp4-tp8-mtp.yaml. The prefill keeps the validated MI355X vLLM settings (AITER MoE, MXFP4 sparse-logits indexer, block size 128, Engram on GPU) and, like the MI355X vLLM DeepSeek-V4.1-Flash agentic recipe, runs vLLM's Rust front end (VLLM_USE_RUST_FRONTEND=1) with CUDA graphs (capture sizes up to 8192 tokens, so an AgentX turn's prefill step runs as a graph). It adds what the TileRT PD path needs: the router asks for token ids per request (return_tokens_as_token_ids) and reads the first token id from the prefill's logprobs, the DsV41TileRTConnector KV connector, and DSpark with five drafts so the decode receives the draft window state. The harness binds the model as a Hugging Face id and mounts no /model, so the TileRT decode loads the checkpoint from the shared Hub cache's snapshot directory (revision 314113f8, the one the prefill's vLLM loads), which the router and the benchmark also use as their tokenizer path. The decode wakes the stream every 2 ms (TILERT_DECODE_POLL_MS) instead of the 200 ms default. The benchmark sends the same request fields as the board's GB300 DeepSeek-V4.1-Flash recipes (thinking, reasoning_effort: high, temperature: 1).
  3. Router-side tokenization. The router renders the chat template and tokenizes each request itself, so the prefill receives token ids. The template, configs/dsv41flash-tilert-chat-template.jinja, is the model repository's MIT-licensed chat_template.jinja with eight added lines, so that it renders exactly what vLLM's deepseek_v41 tokenizer mode renders; its header carries the license notice and names the added lines. The prefill serves the same file with vLLM's HF tokenizer path: on a node it shares with the prefill, the router reads the prefill's command line and keeps tokenization off unless both serve the same template that way. At startup the router also checks its rendering against the prefill's /tokenize and leaves tokenization to the prefill if they differ. The template is optional: without it (drop chat-template from both roles and restore tokenizer-mode: deepseek_v41 on the prefill) the prefill renders and tokenizes each request itself and receives the same tokens, at a higher TTFT on long prompts.

Images and packages

  • tilert 0.1.7.post2 (PyPI): the DeepSeek-V4.1-Flash ROCm decode with KV import and the dsv41 PD profile; router.version: "0.1.7.post2" installs it in every role. Over 0.1.7 it changes only the PD serving layer: router-side tokenization next to a vLLM deepseek_v41 prefill (post1), and a lower time to first token on long agentic contexts (post2: the router reuses the token ids of the conversation prefix it has already rendered and asks for token ids per request; the decode imports only the KV past the prefix it already holds from the previous turn, checked byte for byte against what it received then; the prefill stages the KV for the decode in a few vectorised copies).
  • Decode and router: ghcr.io/tile-ai/tilert-rocm-decode:0.1.6, pinned by digest.
  • Prefill: ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7, pinned by digest. It is the validated MI355X DeepSeek-V4.1-Flash vLLM ROCm nightly (e68efc68) with vLLM unchanged and two replacements. The nightly ships PyPI mooncake-transfer-engine-rocm 0.3.13.post1, which is built without ENABLE_MULTI_PROTOCOL: in that build HipTransport::install replaces the local segment protocol with "hip" (mooncake-transfer-engine/src/transport/hip_transport/hip_transport.cpp at v0.3.13.post1), and MultiTransport::selectTransport then routes every write to such a target over HIP IPC, across nodes too. Its rdma-core ionic provider also supports kernel ABI 1 only, so on an ionic driver at ABI 4 libibverbs lists no device. The prefill image therefore carries the multi-protocol Mooncake 0.3.13 build and the ionic provider of the decode image.

Notes

Validation details

Off-cluster, on two 8x MI350X nodes connected over RDMA (ionic), in this recipe's shape: the prefill (this recipe's vLLM arguments, TP4, the prefill image above by digest) and the router on one node; the TileRT decode (TP8, five drafts, max-seq-len 1048576, TILERT_DECODE_POLL_MS=2) on the other, in the decode image above by digest. The router tokenized requests with this PR's chat template.

With tilert 0.1.7.post2 (the PyPI file), the Rust front end and CUDA graphs on the prefill:

  • AgentX at concurrency 1 with this recipe's simulated acceptance (3.51) and the request fields above, 600 s: TTFT P50 / P90 0.167 / 0.284 s (the previous recipe, tilert 0.1.7.post1 with eager prefill, on the same replay: 0.436 / 0.590 s).
  • A 3600 s AgentX run of a pre-release build with the same code path: 512 requests, 0 failures; TTFT P50 / P90 / P99 0.181 / 0.342 / 2.05 s, E2E-normalized interactivity P90 402.3 (previous recipe: TTFT P50 / P90 0.393 / 0.664 s, E2E-normalized P90 244.6); decode speed unchanged.
  • GSM8K, first 100 test questions, zero-shot greedy, through PD with real acceptance: 98/100.

With tilert 0.1.7:

  • Chat smoke through the router passes (non-streaming and streaming).
  • GSM8K, first 100 test questions, zero-shot greedy, through PD: 98/100.
  • Real acceptance: 200 requests at temperature 1, all answered.
  • Unsupported sampling options get HTTP 501 with the reason: top_p below 1 and top_k from the decode, which samples with temperature and seed only, and min_p from the router. Neutral values (top_p: 1, top_k: -1) are accepted, and the server keeps answering afterwards.
  • With this recipe's simulated acceptance (TILERT_SIMULATE_ACC_LEN=3.51, match-expected), a 300 s AgentX run (concurrency 1, the request fields above) completed; the decode's mean accepted length per verify step was 3.51.

An earlier run of the same shape with a pre-release tilert build: lm-eval GSM8K (5-shot, all 1319 test questions) 0.9742 on both strict and flexible match; a 3600 s AgentX run with simulated acceptance completed, with a mean accepted length per verify step of 3.51 over 500 requests.

AI model disclosure

Prepared with Claude Code running claude-opus-5-5 (Claude Opus 5.5): code and recipe changes, local checks, the off-cluster runs above, and this description. Read-only research subagents delegated during the work ran on the same model. The submitter approved pushing these changes and marking the PR ready for review.

中文

新增 dsv41flash-fp4-mi355x-tilert-agentic-dspark:MI355X 上 DeepSeek-V4.1-Flash 的 AgentX(并发 1),PD 分离部署。一个 vLLM ROCm prefill(TP4)经 Mooncake 把 prompt 的 KV 发给一个 TileRT decode(TP8,用 checkpoint 自带的 DSpark 头出五个 draft),前面是 TileRT PD router;两侧都是完整 1M 上下文,回放不截断语料。

  1. TileRT 的 golden AL 选取。 以前 TileRT decode 角色的投机方法一律解析为 mtp,DeepSeek-V4.1-Flash 的 TileRT recipe 因此会去找不存在的 dsv41flash_mtp.yaml。现在方法跟着 decode 角色的 TileRT 模型 profile(即 model 参数)走:dsv41 对应 dspark,其它 profile 仍是 mtp(infx/srt_slurm/synthetic_acceptance.py 里一个条件,加一个测试)。spec-identity 的 snapshot 审计也保留这个 model 参数,选到同一条曲线(infx/srt_slurm/spec_identity.py)。已有 TileRT recipe 不变,decode_server 也不会收到新参数。新点位的吞吐测试按 deepseek-v4.1-flash__dspark__native__probabilistic-block 曲线、五个 draft(AL 3.51)做模拟接受。
  2. Recipe 和 master 条目。 prefill 保留已验证的 MI355X vLLM 设置,并和 MI355X 的 vLLM DeepSeek-V4.1-Flash agentic recipe 一样,用 vLLM 的 Rust 前端(VLLM_USE_RUST_FRONTEND=1)和 CUDA graph(capture 到 8192 token,AgentX 每轮的 prefill step 按 graph 跑);再加上 TileRT PD 需要的:router 按请求要 token id(return_tokens_as_token_ids),从 prefill 的 logprobs 取首 token id、DsV41TileRTConnector,以及五个 draft 的 DSpark(让 decode 拿到 draft 的窗口状态)。harness 把模型按 Hugging Face id 传下来、不挂载 /model,所以 TileRT decode 从共享 Hub 缓存的快照目录加载 checkpoint(revision 314113f8,即 prefill 的 vLLM 加载的那个),router 和压测也用它作 tokenizer 路径。decode 每 2 ms 推一次流(默认 200 ms)。压测请求带的字段与榜上 GB300 的 DeepSeek-V4.1-Flash recipe 相同(thinking、reasoning_effort: high、temperature: 1)。
  3. router 侧 tokenize。 router 自己套 chat template 并 tokenize,prefill 收到的是 token id。模板 configs/dsv41flash-tilert-chat-template.jinja 是模型仓库 MIT 许可的 chat_template.jinja 加 8 行,使渲染结果与 vLLM 的 deepseek_v41 tokenizer 模式逐字相同;文件头带许可声明并标明加了哪几行。prefill 用 vLLM 的 HF tokenizer 路径加载同一份文件:router 和 prefill 同节点时,router 会读 prefill 的命令行,两边模板和分词方式不一致就不开 tokenize。router 启动时还会用 prefill 的 /tokenize 自检,不一致就交回 prefill tokenize。模板可以不要:两个角色都去掉 chat-template,prefill 恢复 tokenizer-mode: deepseek_v41,prefill 自己套模板和 tokenize,收到的 token 相同,只是长 prompt 的 TTFT 更高。

镜像和包: tilert 0.1.7.post2 已在 PyPI,router.version: "0.1.7.post2" 在每个角色里装它;相对 0.1.7 只改 PD 服务层:post1 让 router 在 vLLM deepseek_v41 prefill 旁边也能 tokenize,post2 降低长 agentic 上下文的首 token 时间(router 复用已渲染过的会话前缀的 token id、按请求要 token id;decode 只导入上一轮已持有前缀之后的 KV,并和上一轮收到的逐字节核对;prefill 用少数几次向量化拷贝备好 KV)。decode 和 router 用 ghcr.io/tile-ai/tilert-rocm-decode:0.1.6,prefill 用 ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7,都按 digest 钉住。prefill 镜像是已验证的 MI355X DeepSeek-V4.1-Flash vLLM ROCm nightly(vLLM 不变),换上 decode 镜像里多协议的 Mooncake 0.3.13 和 ionic provider:nightly 自带的 PyPI mooncake-transfer-engine-rocm 0.3.13.post1 编译时没开 ENABLE_MULTI_PROTOCOL,所有写入都走 HIP IPC(跨节点也一样),它的 rdma-core ionic provider 也只支持 kernel ABI 1。

说明: 本 PR 更早的 head(tilert 0.1.7.post1、prefill eager)已在 #4756 上跑完多节点 sweep(run 42159378057)。现在的 head(tilert 0.1.7.post2,prefill 用 Rust 前端和 CUDA graph)在集群外的两台 8x MI350X 上跑过,还没在 MI355X 集群上跑过;prefill 不再是 eager,KV connector 已在集群外按 CUDA graph 验证。

集群外验证(两台 8x MI350X,按本 recipe 的形态和镜像 digest,router 用本 PR 的模板 tokenize):tilert 0.1.7.post2(PyPI 上的文件)、prefill 用 Rust 前端和 CUDA graph:AgentX 并发 1、本 recipe 的模拟接受(3.51)跑 600 s,TTFT P50 / P90 0.167 / 0.284 s(上一版 recipe,tilert 0.1.7.post1、prefill eager,同一段回放 0.436 / 0.590 s);同一代码路径的预发布版跑 3600 s,512 条 0 失败,TTFT P50 / P90 / P99 0.181 / 0.342 / 2.05 s,E2E 归一化交互 P90 402.3(上一版 recipe:TTFT 0.393 / 0.664 s,E2E 归一化 P90 244.6),decode 速度不变;真实接受下 GSM8K 前 100 题零样本贪心 98/100。tilert 0.1.7 下 router chat smoke 通过;GSM8K 前 100 题零样本贪心 98/100;真实接受下 temperature 1 的 200 条请求全部正常返回;不支持的采样参数回 501 并带原因(top_p 小于 1、top_k 由 decode 拒,min_p 由 router 拒),中性值照常处理,之后服务正常;按本 recipe 的模拟接受(3.51)跑 300 s AgentX 正常结束,decode 每步平均接受长度 3.51。更早一轮同形态、预发布版 tilert:lm-eval GSM8K(5-shot,全部 1319 题)strict / flexible 都是 0.9742;3600 s AgentX 正常结束,500 条请求的平均接受长度 3.51。

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.
… 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
@CrimsonDump
CrimsonDump marked this pull request as ready for review November 5, 2026 10:06
@CrimsonDump
CrimsonDump requested a review from a team November 5, 2026 10:06

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

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

@CrimsonDump

CrimsonDump commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

Trimmed in 27acf74: the infx change is now one condition in spec_parameters plus one test (+17 -1, of which +15 is the test and its golden fixture entry).

Why it cannot be dropped: for a TileRT decode role, spec_parameters always returned the method mtp, and the recipe has no field that overrides it. DeepSeek-V4.1-Flash drafts with its DSpark head, and the golden AL directory has only the deepseek-v4.1-flash__dspark__native__probabilistic-block.yaml curve, so without the change the throughput runs of this point cannot find their golden AL. The test fails without the condition.

中文

已在 27acf74 精简:infx 的改动现在只是 spec_parameters 里的一个条件,加一个测试(+17 -1,其中 +15 是测试和它的 golden fixture 条目)。

为什么去不掉:对 TileRT decode 角色,spec_parameters 一律返回 mtp,recipe 里也没有能覆盖它的字段。DeepSeek-V4.1-Flash 用 DSpark 头出 draft,golden AL 目录里也只有 deepseek-v4.1-flash__dspark__native__probabilistic-block.yaml 这条曲线;不改的话,这个点位的吞吐测试找不到 golden AL。去掉这个条件,新加的测试会失败。

Sync SemiAnalysisAI#4756 with fork PR SemiAnalysisAI#4755 head 27acf74 and resolve the
perf-changelog append conflict (keep SemiAnalysisAI#4801's entry, TileRT entry after it).
@Oseltamivir

Copy link
Copy Markdown
Collaborator

#4756

@CrimsonDump

Copy link
Copy Markdown
Contributor Author

Thanks. We will follow the sweep on #4756; its multi-node canary on mi355x-amds started at 17:22Z, and we are watching it.

One note: the description of #4756 predates the current head, and the run blockers it lists are resolved:

  • tilert 0.1.7 is on PyPI;
  • the prefill image ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7 is public, with the multi-protocol Mooncake build and the ionic verbs provider; the recipe pins it by digest;
  • TP8 decode with five drafts behind the PD router has run off-cluster on two MI350X nodes in this recipe's shape.

The description of #4755 has the current details.

中文

谢谢。sweep 我们跟 #4756 走;它在 mi355x-amds 上的多节点 canary 17:22Z 开始跑了,我们在盯。

另外,#4756 的描述写在当前 head 之前,里面列的运行阻塞都已解决:

  • tilert 0.1.7 已在 PyPI;
  • prefill 镜像 ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7 已公开,带多协议 Mooncake 和 ionic verbs provider,recipe 按 digest 钉住;
  • PD router 后面 TP8、五个 draft 的 decode 已按本 recipe 的形态在集群外两台 MI350X 上跑过。

最新情况见 #4755 的描述。

…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 SemiAnalysisAI#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 SemiAnalysisAI#4755 and on its upstream copy SemiAnalysisAI#4756. Provenance comments
move out of the recipe and the master config.
# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
@CrimsonDump

CrimsonDump commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Update: superseded by 0461336, which merges @Oseltamivir's 6e416e9 (same snapshot paths, confirmed on the cluster) and drops the HF_HOME settings below; see #4756 (comment). 更新:已由 0461336 取代,它合入了 6e416e9(同样的快照路径,已在集群上确认)并去掉了下文的 HF_HOME。

Pushed 5f707c5. It fixes the canary failure on #4756 (run 42061589783) and the three review findings there. Please sync #4756 to it before the next sweep.

Canary. The TileRT decode exited with ValueError: /model: not a Hugging Face checkpoint directory. The harness binds the model as hf:deepseek-ai/DeepSeek-V4.1-Flash and mounts no /model, but the recipe still read three paths from /model: the decode weights, the router tokenizer and the benchmark tokenizer. Now:

  • prefill and decode set HF_HOME: /hf_hub_cache, the parent of the /it-share/hf-hub-cache mount at /hf_hub_cache/hub, so srtctl downloads the model into the shared cache before the workers start;
  • the three paths read /hf_hub_cache/hub/models--deepseek-ai--DeepSeek-V4.1-Flash/snapshots/314113f8a7dadb388215396ba5fbee2c610a04d6, the repo's current revision (unchanged since 2026-10-16).

One assumption we cannot check from outside: if the shared cache already holds this model at an older revision, srtctl's offline check passes without fetching 314113f8, and the decode will not find that snapshot. If DeepSeek-V4.1-Flash is stored elsewhere on mi355x-amds, tell us the path and we will point the recipe there.

Review on #4756.

  • The pr-link uses the XXX placeholder. It is valid on both PRs, and the merge tooling fills in the number.
  • spec_arguments keeps the TileRT model argument. The documented snapshot audit over both master configs now runs, and dsv41flash selects the DSpark curve (AL 3.51); before the fix it raised No golden curve for model prefix 'dsv41flash' and method 'mtp'.
  • The recipe and the master config no longer carry provenance comments, and the changelog names the curve correctly.

Main is merged again (the only conflict was in the changelog, resolved with the helper). The infx tests, ruff and the changelog validation pass.

中文

已推 5f707c5,修了 #4756 上 canary 的失败(run 42061589783)和那边 review 的三条意见。下次跑 sweep 前请把 #4756 同步到这个提交。

Canary。 TileRT decode 报 ValueError: /model: not a Hugging Face checkpoint directory 后退出。harness 把模型按 hf:deepseek-ai/DeepSeek-V4.1-Flash 传下来,不挂 /model,但 recipe 还从 /model 读三个路径:decode 权重、router 的 tokenizer、压测的 tokenizer。现在:

  • prefill 和 decode 设 HF_HOME: /hf_hub_cache(/it-share/hf-hub-cache 挂在 /hf_hub_cache/hub,这是它的上一级),srtctl 会在 worker 启动前把模型下载进共享缓存;
  • 这三个路径改读 /hf_hub_cache/hub/models--deepseek-ai--DeepSeek-V4.1-Flash/snapshots/314113f8a7dadb388215396ba5fbee2c610a04d6,即模型仓库当前的 revision(2026-10-16 以来没变过)。

有一个假设我们从外面核实不了:如果共享缓存里已经有这个模型的旧 revision,srtctl 的离线检查会直接通过、不去拉 314113f8,decode 就会找不到这个快照。如果 mi355x-amds 上 DeepSeek-V4.1-Flash 放在别处,请告诉我们路径,我们改 recipe 指过去。

#4756 上的 review。

  • pr-link 改用 XXX 占位符,两个 PR 上都能通过校验,合并工具会填上号码。
  • spec_arguments 保留 TileRT 的 model 参数。按文档对两个 master config 跑 snapshot 审计现在能跑完,dsv41flash 选到 DSpark 曲线(AL 3.51);修之前会报 No golden curve for model prefix 'dsv41flash' and method 'mtp'。
  • recipe 和 master config 里不再有写来历的注释,changelog 里的曲线名也改对了。

main 已重新合入(只有 changelog 冲突,用仓库的工具解决)。infx 测试、ruff 和 changelog 校验都通过。

Oseltamivir and others added 4 commits November 6, 2026 01:59
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.
…v41flash-mi355x

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
CrimsonDump marked this pull request as draft November 6, 2026 01:51
…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 (SemiAnalysisAI#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
CrimsonDump marked this pull request as ready for review November 6, 2026 01:56
Oseltamivir and others added 2 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.
@CrimsonDump
CrimsonDump marked this pull request as draft November 6, 2026 05:05
…m' into tilert/dsv41flash-mi355x

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
@CrimsonDump
CrimsonDump marked this pull request as ready for review November 6, 2026 05:08
…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 Author

Superseded by #4756, which carried this branch's head (9676fa2, tilert 0.1.7.post2) and was merged in e54148a. Closing this source PR. Thanks for running and merging it!

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants