Skip to content

perf(amd): Kimi-K3.1 MI355X vLLM AgentX on the kk31-amd-kernels image, FlyDSL draft attention / perf(amd):Kimi-K3.1 MI355X vLLM AgentX 切换到 kk31-amd-kernels 镜像,draft 注意力改用 FlyDSL - #5196

Open
Fangzhou-Ai wants to merge 8 commits into
mainfrom
kk31-amd-kernels-image

Conversation

@Fangzhou-Ai

@Fangzhou-Ai Fangzhou-Ai commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

This PR moves the MI355X Kimi-K3.1 vLLM AgentX config (kimik3.1-fp4-mi355x-vllm-agentic-dspark) to a new image that carries the amd-kernels bridge. The new image is vllm/vllm-openai-rocm:kimi-k31-020490a@sha256:f2cef9ee13f652b8281bcb0687759c6e8f5035d24ee46f2a2dffb3cf3c0b9b14; the old one was kimi-k31-712d9eb@sha256:7c167350.

Image contents:

Recipe changes (mi355x-fp4-mtp/agentic.yaml)

  • c16, c24, c32, c48: the draft attention_backend changes from TRITON_ATTN to KIMI_K3_FLYDSL_SWA_GQA. The FP8 draft KV cache is kept.
  • c4: sets VLLM_KIMI_AKR_K1=1 and VLLM_KIMI_AKR_K2=1. These turn on the specialized KDA decode and layer-tail kernels, which are off by default. c4 runs latency_specialized; c16–c48 do not, so the switches would do nothing there.
  • c1 (DCP1): sets VLLM_KIMI_AKR=0. The DSA and draft-MLA routes need DCP = TP (the draft MLA path is validated on DCP8), so they do not engage at DCP1; the stock specialized decode path runs.
  • Points, topology, speculative lengths, offload and the other server arguments are unchanged. The remaining amd_kernels routes default to on in the branch.

Draft data types

No change. The Inferact/Kimi-K3.1-Pro-DSpark draft (revision e4e6e626) ships in BF16 with no quantization config, and it runs in BF16; the amd_kernels draft routes do not requantize it.

The draft KV cache stays FP8 (e4m3, scale 1.0) at c16–c48 and BF16 at c1 and c4. The FlyDSL backend reads a BF16 query where Triton used an FP8 query on gfx950. Evidence with permalinks: #5196 (comment)

Validation

run-sweep 45218651930 ran on c36a9d7f8: all 10 mi355x jobs passed and all 6 points were measured. Since that commit, the head only adds main's mechanical worker-GPU / DRAM config migration; the serving arguments are identical.

Conc Total tok/s/GPU Interactivity p50 (tok/s/user) gsm8k (em_strict)
1 2,488 338 0.9810
4 3,818 260 0.9780
16 10,909 137
24 16,136 109
32 19,097 95 0.9826
48 23,392 54 0.9788

The server logs confirm the routing:

  • c1 reports amd_kernels routes: none.
  • c4 and c16 report the amd_kernels routes, and c4 reports specialized decode: K1 on, K2 on.
  • The draft runs the FlyDSL SWA kernel (window 2048).
  • The c16 GPU KV pool is 11,722,702 tokens.

Known non-fatal item: on every rank, the amd_kernels KDA prefill warm-up logs Inplace update to inference tensor outside InferenceMode.

Related: vllm-project/vllm#69172, Inferact/amd-kernels#10, ROCm/aiter#8177.

中文

改动

本 PR 把 MI355X 上的 Kimi-K3.1 vLLM AgentX 配置(kimik3.1-fp4-mi355x-vllm-agentic-dspark)切换到带 amd-kernels 桥接的新镜像。新镜像为 vllm/vllm-openai-rocm:kimi-k31-020490a@sha256:f2cef9ee13f652b8281bcb0687759c6e8f5035d24ee46f2a2dffb3cf3c0b9b14,原镜像为 kimi-k31-712d9eb@sha256:7c167350。

镜像内容:

Recipe 改动

  • c16、c24、c32、c48: draft 的 attention_backend 由 TRITON_ATTN 改为 KIMI_K3_FLYDSL_SWA_GQA,draft KV cache 仍为 FP8。
  • c4: 设置 VLLM_KIMI_AKR_K1=1 和 VLLM_KIMI_AKR_K2=1,打开默认关闭的专用 KDA decode 与层尾 kernel。c4 走 latency_specialized;c16–c48 不走,所以这两个开关在那里不起作用。
  • c1(DCP1): 设置 VLLM_KIMI_AKR=0。DSA 与 draft-MLA 路由要求 DCP = TP(draft MLA 路径在 DCP8 上验证),在 DCP1 不会生效,因此运行原有的专用 decode 路径。
  • 测试点、拓扑、推测长度、卸载及其他服务参数不变。分支中其余 amd_kernels 路由默认开启。

Draft 数据类型

不变。 Inferact/Kimi-K3.1-Pro-DSpark draft(revision e4e6e626)以 BF16 发布,没有量化配置,运行时也是 BF16;amd_kernels 的 draft 路由不会重新量化它。

draft KV cache 在 c16–c48 仍为 FP8(e4m3,scale 1.0),在 c1 和 c4 为 BF16。FlyDSL 后端读取 BF16 query,而 Triton 在 gfx950 上用的是 FP8 query。带永久链接的证据见上方评论链接。

验证

run-sweep 45218651930 在 c36a9d7f8 上运行:10 个 mi355x 作业全部通过,6 个点全部测完。此后 head 只多了 main 的 worker GPU / DRAM 配置机械迁移,服务参数完全相同。各点的吞吐、交互性和 gsm8k 结果见上表。

服务日志确认了路由情况:

  • c1 显示 amd_kernels routes: none。
  • c4 和 c16 显示 amd_kernels 路由,c4 显示 specialized decode: K1 on, K2 on。
  • draft 使用 FlyDSL SWA kernel(窗口 2048)。
  • c16 的 GPU KV 池为 11,722,702 token。

已知的非致命问题:amd_kernels KDA prefill 预热会在每个 rank 上打印 Inplace update to inference tensor outside InferenceMode。

AI model disclosure
  • PR description, perf-changelog block and draft data-type review: Claude Code, model claude-opus-5-5.

🤖 Generated with Claude Code

Fangzhou-Ai and others added 4 commits November 23, 2026 03:10
…kernels bridge), FlyDSL draft attention, K1/K2 at c4, amd_kernels off at c1

Image is TBD until the image is published for CI.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@Fangzhou-Ai Fangzhou-Ai added the non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) label Nov 23, 2026
@Fangzhou-Ai
Fangzhou-Ai marked this pull request as ready for review November 23, 2026 16:01
@Fangzhou-Ai
Fangzhou-Ai requested a review from a team November 23, 2026 16:01
@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Fangzhou-Ai's task in 15s —— View job


LGTM, no blocking issues found.

I checked the following:

  • Image: the image is a public Docker Hub reference pinned by digest.
  • Changelog: the perf-changelog.yaml entry is added at the end of the file and covers kimik3.1-fp4-mi355x-vllm-agentic-dspark.
  • AgentX stream interval: the base recipe sets stream-interval: 10, which is within the 60 limit.
  • Recipe edits: the c1, c4 and c16–c48 changes match what the PR description says.

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

- "Concurrency 4 (latency_specialized): VLLM_KIMI_AKR_K1=1 and VLLM_KIMI_AKR_K2=1 turn on amd-kernels' specialized KDA decode and layer-tail kernels, which are off by default. Concurrency 16-48 do not run latency_specialized, so those two switches have no effect there. The remaining amd_kernels routes default to on."
- "Concurrency 1 (DCP1): VLLM_KIMI_AKR=0 turns the amd_kernels routes off, because the DSA and draft-MLA routes require DCP = TP (the draft MLA path is validated on DCP8) and do not engage at DCP1. The point keeps the stock specialized decode path."
- "Points, topology, speculative lengths, KV offloading and the other server arguments are unchanged. Not yet swept on this image."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5196

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.

🟡 (optional) Reviewers and the merge process get a PR whose title and body break the repo's PR rules in AGENTS.md. The title is English-only, but AGENTS.md:17 requires <English title> / <中文标题>. The body also has no collapsed 中文 section and no AI model disclosure block (AGENTS.md:18,21). It lists local checks (config generation, a local 900 s smoke) with no run link, which AGENTS.md:20 says to omit. Fix: make the title bilingual and add the <details><summary>中文</summary> and <details><summary>AI model disclosure</summary> blocks. Report validation only from linked e2e runs.

Why this was flagged

The PR title is "perf(amd): Kimi-K3.1 MI355X vLLM AgentX: kk31-amd-kernels image (amd-kernels bridge), FlyDSL draft attention". It has no Chinese half, but AGENTS.md:17 says titles MUST be bilingual and must be fixed before review or merge. The body has no collapsed Simplified Chinese section, which AGENTS.md:18 requires. It also has no AI model disclosure details block naming the contributing models, which AGENTS.md:21 requires even though the body says it was generated with Claude Code. Its "Verification so far" section lists infx.matrix.generate test-config and a local smoke run with no run link. AGENTS.md:20 says to report validation only from real integration or end-to-end runs with a run link, and to omit local-check inventories. None of this is in the code diff, so no lint or schema check catches it. A rule-compliant PR would carry the bilingual title, both details blocks, and only linked e2e evidence.

Verification: nit. AGENTS.md:17 says "Fix English-only titles before review or merge." The PR title is English only and has no " / <中文>" half. The quoted description has no 中文 details block. The body ends with only "🤖 Generated with [Claude Code]", and AGENTS.md:21 says "Tool names are not models." Nothing breaks at runtime.

@Fangzhou-Ai Fangzhou-Ai added full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures and removed non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) labels Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

@seungrokj seungrokj added non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) and removed full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures labels Nov 23, 2026
Resolve the inferencex-e2e/perf-changelog.yaml conflict by taking main's
entries unchanged and appending this PR's block after them.

合并 main;将 #5196 的 perf-changelog 条目保留在文件末尾。
解决 inferencex-e2e/perf-changelog.yaml 冲突:main 的条目保持不变,
本 PR 的条目追加在其后。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@seungrokj

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run 45218651930

@seungrokj

Copy link
Copy Markdown
Collaborator

/use 45218651930

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

@seungrokj staged run 45218651930.

This run remains available across future /stage-results requests. Staging the same run ID again updates its staged data. Staging workflow

…; FlyDSL draft attention [skip-sweep]

- Switch the image from vllm/vllm-openai-rocm:kimi-k31-712d9eb@sha256:7c167350 (vLLM 712d9eb37, the k31-amd-tracking head) to vllm/vllm-openai-rocm:kimi-k31-020490a@sha256:f2cef9ee (vLLM 020490af6): the vllm/vllm-openai-rocm nightly-rocm100-647a76866b4559a74e27d1c6b55fbffe85c07ce4 toolchain (torch 2.13.0+rocm10.0.0, AITER 0.1.29.post1 plus PR 8177's FP4 MQA page strides, FlyDSL 0.5.0) with vLLM replaced by the kk31-amd-kernels branch built from source for gfx950, and amd-kernels installed editable.
- The image ships the rocm-systems 6a31027 libhsa-runtime64, which fixes the ~2 MiB device-memory cost per HIP graph of the nightly's ROCr; the GPU KV pool at concurrency 16 is 11.7M tokens.
- Points (concurrency 1, 4, 16, 24, 32 and 48), topology, speculative lengths, KV offloading and the other server arguments are unchanged.
- Concurrency 16, 24, 32 and 48: the draft attention backend moves from TRITON_ATTN to KIMI_K3_FLYDSL_SWA_GQA (FP8 draft KV cache kept).
- Concurrency 4 (latency_specialized): VLLM_KIMI_AKR_K1=1 and VLLM_KIMI_AKR_K2=1 turn on amd-kernels' specialized KDA decode and layer-tail kernels, which are off by default. Concurrency 16-48 do not run latency_specialized, so those two switches have no effect there. The remaining amd_kernels routes default to on.
- Concurrency 1 (DCP1): VLLM_KIMI_AKR=0 turns the amd_kernels routes off, because the DSA and draft-MLA routes require DCP = TP (the draft MLA path is validated on DCP8) and do not engage at DCP1. The point keeps the stock specialized decode path.
- Relevant upstream changes in the image: vllm-project/vllm#69172 (the Kimi-K3.1 amd_kernels bridge on top of 712d9eb37, with the FP8 fixes that let the FlyDSL sliding-window draft kernel run on an FP8 cache), Inferact/amd-kernels#10 (the kernels it routes to) and ROCm/aiter#8177 (applied as a patch).
- Draft data types: no change. The Kimi-K3.1-Pro-DSpark draft (revision e4e6e626) is shipped and served in BF16 with no quantization config, sharing the target's BF16 embedding and LM head; the amd_kernels draft routes keep BF16 weights. Its KV cache stays FP8 (e4m3, scale 1.0) at concurrency 16-48 and BF16 at 1 and 4. The FlyDSL kernel reads a BF16 query where the Triton backend fed an FP8 query on gfx950.

- 镜像从 vllm/vllm-openai-rocm:kimi-k31-712d9eb@sha256:7c167350(vLLM 712d9eb37,k31-amd-tracking 分支头)切换到 vllm/vllm-openai-rocm:kimi-k31-020490a@sha256:f2cef9ee(vLLM 020490af6):以 nightly-rocm100-647a76866b4559a74e27d1c6b55fbffe85c07ce4 为工具链(torch 2.13.0+rocm10.0.0、AITER 0.1.29.post1 加 PR 8177 的 FP4 MQA 页步长补丁、FlyDSL 0.5.0),vLLM 换成为 gfx950 源码构建的 kk31-amd-kernels 分支,amd-kernels 以 editable 方式安装。
- 镜像自带 rocm-systems 6a31027 的 libhsa-runtime64,修复了 nightly ROCr 每个 HIP graph 约 2 MiB 的显存开销;并发 16 时 GPU KV 池为 1170 万 token。
- 测试点(并发 1、4、16、24、32、48)、拓扑、推测长度、KV 卸载及其他服务参数不变。
- 并发 16、24、32、48:draft 注意力后端由 TRITON_ATTN 改为 KIMI_K3_FLYDSL_SWA_GQA(draft KV cache 仍为 FP8)。
- 并发 4(latency_specialized):VLLM_KIMI_AKR_K1=1 与 VLLM_KIMI_AKR_K2=1 打开 amd-kernels 默认关闭的专用 KDA decode 与层尾 kernel。并发 16-48 不走 latency_specialized,这两个开关在那里不起作用。其余 amd_kernels 路由默认开启。
- 并发 1(DCP1):VLLM_KIMI_AKR=0 关闭 amd_kernels 路由,因为 DSA 与 draft-MLA 路由要求 DCP = TP(draft MLA 路径在 DCP8 上验证),在 DCP1 不会生效;该点保留原有的专用 decode 路径。
- 镜像中相关的上游改动:vllm-project/vllm#69172(基于 712d9eb37 的 Kimi-K3.1 amd_kernels 桥接,含让 FlyDSL 滑窗 draft kernel 支持 FP8 cache 的修复)、Inferact/amd-kernels#10(被路由到的 kernel)以及 ROCm/aiter#8177(以补丁形式应用)。
- Draft 数据类型:不变。Kimi-K3.1-Pro-DSpark draft(revision e4e6e626)以 BF16 发布和运行,无量化配置,与目标模型共享 BF16 embedding 和 LM head;amd_kernels 的 draft 路由保持 BF16 权重。其 KV cache 在并发 16-48 仍为 FP8(e4m3,scale 1.0),在并发 1 和 4 为 BF16。FlyDSL kernel 读取 BF16 query,而 Triton 后端在 gfx950 上输入的是 FP8 query。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@seungrokj

Copy link
Copy Markdown
Collaborator

Draft data types: no change. The DSpark draft (Inferact/Kimi-K3.1-Pro-DSpark at revision e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f) has no quantization_config. Its safetensors headers list all 62 tensors as BF16:

Part Data type
5 Qwen3 GQA layers: q/k/v/o projections (96 query heads, 16 KV heads, head dim 64, sliding window 2048) BF16
Dense MLP BF16
fc [7168, 35840], Markov and confidence heads, norms BF16
Embedding and LM head (shared with the target) BF16

At vLLM 020490af6 (the head image's revision), the following code keeps the draft weights in BF16:

The draft KV cache does not change either:

  • At concurrency 16–48, the recipe sets the draft kv_cache_dtype: fp8 both before and after this PR. That is FP8 e4m3fn with per-tensor scale 1.0 (attention.py).
  • At concurrency 1 and 4 the recipe sets nothing. dense_draft.py then defaults the KV cache to auto (BF16).

The PR changes one thing for the draft. At concurrency 16–48, attention moves from TRITON_ATTN to KIMI_K3_FLYDSL_SWA_GQA:

Activation precision in draft attention therefore goes up, not down. The recipe sets no quantization for the draft, so the draft runs as shipped: BF16 weights, an FP8 KV cache at concurrency 16–48, and a BF16 KV cache at concurrency 1 and 4.

中文

Draft 数据类型:不变。 DSpark draft(Inferact/Kimi-K3.1-Pro-DSpark,revision e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f)没有 quantization_config。safetensors 头显示全部 62 个张量都是 BF16:

部分 数据类型
5 层 Qwen3 GQA:q/k/v/o 投影(96 个 query head、16 个 KV head、head dim 64、滑窗 2048) BF16
Dense MLP BF16
fc [7168, 35840]、Markov 与 confidence head、norm BF16
Embedding 与 LM head(与目标模型共享) BF16

在 vLLM 020490af6(head 镜像的版本)中,以下代码让 draft 权重保持 BF16:

Draft KV cache 也不变:

  • 并发 16–48 时,recipe 在本 PR 前后都把 draft 的 kv_cache_dtype 设为 fp8,即 FP8 e4m3fn,per-tensor scale 1.0(attention.py)。
  • 并发 1 和 4 时 recipe 不设置该项,dense_draft.py 会把 KV cache 默认为 auto(BF16)。

本 PR 对 draft 只改了一处:并发 16–48 的注意力从 TRITON_ATTN 换成 KIMI_K3_FLYDSL_SWA_GQA。

  • 在 base 版本 712d9eb37 中,Triton 在 gfx950 上输入的是 FP8 query(triton_attn.py)。
  • FlyDSL kernel 读取 BF16 query,并自行把 FP8 cache 展宽为 BF16(flydsl_swa_gqa_attn.py、kernel)。

因此 draft 注意力的激活精度是提高而不是降低。recipe 没有为 draft 设置 quantization,所以 draft 按发布状态运行:BF16 权重;并发 16–48 用 FP8 KV cache,并发 1 和 4 用 BF16 KV cache。

@seungrokj seungrokj changed the title perf(amd): Kimi-K3.1 MI355X vLLM AgentX: kk31-amd-kernels image (amd-kernels bridge), FlyDSL draft attention perf(amd): Kimi-K3.1 MI355X vLLM AgentX on the kk31-amd-kernels image, FlyDSL draft attention / perf(amd):Kimi-K3.1 MI355X vLLM AgentX 切换到 kk31-amd-kernels 镜像,draft 注意力改用 FlyDSL Nov 24, 2026

@seungrokj seungrokj left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As a PR reviewer and CODEOWNER, I have reviewed this and have:

Checklist items
  • Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
  • Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
  • Verified that this PR has passed PR validation. Please link to GitHub Action workflow that shows this.
  • Verified that this PR passes evals. Please link to GitHub Action workflow that shows this.
  • Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
  • Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL; the only exception is a draft KV-cache dtype allowed by the draft KV-cache rule in Draft-model precision. Explicitly verified that SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.
  • For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
  • Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
  • Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • Verified that new models disable integer all-reduce, with SGLang ROCm explicitly setting ROCM_QUICK_REDUCE_QUANTIZATION=NONE. Existing models are grandfathered per MODELS.md.
  • For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
  • If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
  • For official InferenceX (non-preview), verified that established models use official upstream engine images built from main or master (or the equivalent default development branch), or meet the community-engine branch exception: the upstream maintainers (Inferact for vLLM, RadixArk for SGLang, and LightSeek for TokenSpeed) approve the branch/image for the submission, the upstream PRs must merge in a timely manner after submission, and the submission must then move to a main-branch image. For this exception, linked the upstream PRs, maintainer approval, and image build/source provenance in the additional detail section. New models using model-enablement branches must transition within a reasonable time after release. See MODELS.md.
  • If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
  • Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
    • I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source repo and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
  • Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/<PR_NUMBER>.md — named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section.
  • If this PR uses append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it.
  • If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
  • Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details.

Additional detail section:

  • Draft data types: #5196 (comment)

  • Recipes:

  • Eval coverage of the changed kernel paths: every eval server of run 45218651930 (commit c36a9d7f8, image kimi-k31-020490a, vLLM 020490af6) logged the changed paths as on, and none logged a fallback after serving started. Lines are from logs/<host>_agg_w0.out in srt-single-node-logs.tar.gz of each eval_server_logs_* artifact.

    Point (set by the recipe) Eval job · server log gsm8k strict Draft attention amd_kernels Specialized decode
    c1 (VLLM_KIMI_AKR=0) 138302496363 · 14946871151 mia1-p01-g14 0.9810 L366 FlyDSL SWA kernel (window 2048). L272 amd_kernels routes: none, as set L377 92 layers (MLA: D1a, … then K2, at widths [8] …)
    c4 (VLLM_KIMI_AKR_K1=1, VLLM_KIMI_AKR_K2=1) 138302496426 · 14948382210 mia1-p01-g15 0.9780 L474 FlyDSL SWA kernel (window 2048). L275 all 10 routes on; L540 amd_kernels specialized decode: K1 on, K2 on L556 92 layers (MLA: vLLM's ops), widths [6, 12]
    c32 (draft KIMI_K3_FLYDSL_SWA_GQA) 138302496468 · 14951552773 mia1-p01-g18 0.9826 L448 FlyDSL SWA kernel (window 2048). L269 all 10 routes on; L384 moe chain on 92/92 MoE layers … fused all-reduce + AttnRes on; L465 drafter dense MLP; L481 fused Markov chain not used (vLLM decode)
    c48 (draft KIMI_K3_FLYDSL_SWA_GQA) 138302496373 · 14946825536 mia1-p01-g50 0.9788 L448 FlyDSL SWA kernel (window 2048). L262 all 10 routes on; L384 moe chain on 92/92 MoE layers … AttnRes on; L465 drafter dense MLP; L481 fused Markov chain not used (vLLM decode)
    • No log has a FlyDSL SWA kernel off, kernel failed … using TRITON_ATTN or a call is outside the FlyDSL SWA kernel line, and none mentions TRITON_ATTN at all.
    • From the first engine-metrics line onward (c1 L1096, c4 L1623, c32 L1847, c48 L2213), no log has an amd_kernels route … unsupported, FlyDSL fallback, warm-up failure, traceback or ERROR line. The only warnings there are Triton JIT-compile notices and PyTorch's hipBLASLt HIPBLAS_STATUS_INTERNAL_ERROR … Will attempt to recover by calling cublas instead on untuned BF16 GEMM shapes (c1/c4 prefill, c48 draft qwen3_dflash.py:657). Neither is one of the changed paths.
    • These lines appear before serving starts:
      • c32 L1450, c48 L1396 and L1439: route 'attention' unsupported (PROLOGUE: …), logged during CUDA graph capture. This is a per-call shape or operand-layout check (akr_dsa.py L775-L820), warned once. Only those calls run the stock prologue; the other attention kernels stay on.
      • c4 L331: the prologue is off by design under decode_backend=latency_specialized, whose D1a/K2 replace it (akr_dsa.py L483-L516).
      • c4 L1119: amd_kernels prefill warm-up failed on all 8 ranks (RuntimeError: Inplace update to inference tensor outside InferenceMode in amd_kernels kda_prefill_h12_d128/host.py:145). This warm-up is best-effort and the error is caught (akr_prefill_warmup.py L150-L168). c32 and c48 log amd_kernels prefill routes warmed up (L1770, L2109). c4 logged no error after its first request, and its eval passed.
Verbatim server-log lines (for verification without extracting the tarballs)

Each line below is quoted exactly, with ANSI color codes stripped, from logs/<host>_agg_w0.out inside srt-single-node-logs.tar.gz of the named eval_server_logs_* artifact of run 45218651930. Line numbers are grep -n numbers. The tarball SHA-256 lets anyone confirm the quotes came from that artifact. A full-file search of each log finds 0 matches for FlyDSL SWA kernel off, using TRITON_ATTN, outside the FlyDSL SWA kernel and TRITON_ATTN.

c1: artifact 14946871151, logs/mia1-p01-g14_agg_w0.out (21551 lines), tarball sha256 4036f39ee8297e615fabfb0bc5383c3b1d410ee918699c86b2fd1634397b4949

L272: (Worker_TP0 pid=4033814) INFO 11-24 16:46:38 [akr_config.py:66] amd_kernels routes: none
L366: (Worker_TP0 pid=4033814) INFO 11-24 16:49:08 [flydsl_swa_gqa_attn.py:102] Kimi-K3 GQA draft attention: FlyDSL SWA kernel (window 2048).
L377: (Worker_TP3 pid=4033821) INFO 11-24 16:50:26 [decode.py:214] Kimi-K3 specialized decode: 92 layers (MLA: D1a, the indexer's scoring, DSA split-K attention (16 splits, in K2, the top-k fold), then K2, at widths [8]; else vLLM's ops), widths [8], 46 builds; other steps run vLLM's decode
L1096: (APIServer pid=4025601) INFO 11-24 16:55:11 [loggers.py:335] Engine 000: Avg prompt throughput: 79.3 tokens/s, Avg generation throughput: 322.8 tokens/s, Running: 1 reqs, Waiting: 63 reqs, GPU KV cache usage: 1.0%, Prefix cache hit rate: 0.0%

c4: artifact 14948382210, logs/mia1-p01-g15_agg_w0.out (22453 lines), tarball sha256 e42a96e70064ef96874fb83caf8819ebd1b3974f8c7119af2f912c172662d6ef

L275: (Worker_TP2_DCP2 pid=2603838) INFO 11-24 17:05:50 [akr_config.py:66] amd_kernels routes: gemm, moe, kda, attention, indexer, norm, collectives, draft, sampling, overlap
L331: (Worker_TP4_DCP4 pid=2603837) WARNING 11-24 17:05:52 [akr_config.py:100] amd_kernels route 'attention' unsupported (PROLOGUE: decode_backend=latency_specialized); using the stock kernels
L474: (Worker_TP0_DCP0 pid=2603833) INFO 11-24 17:09:47 [flydsl_swa_gqa_attn.py:102] Kimi-K3 GQA draft attention: FlyDSL SWA kernel (window 2048).
L540: (Worker_TP0_DCP0 pid=2603833) INFO 11-24 17:10:01 [akr_k1k2.py:111] amd_kernels specialized decode: K1 on, K2 on
L556: (Worker_TP6_DCP6 pid=2603841) INFO 11-24 17:11:37 [decode.py:214] Kimi-K3 specialized decode: 92 layers (MLA: vLLM's ops), widths [6, 12], 60 builds; other steps run vLLM's decode
L1119: (Worker_TP4_DCP4 pid=2603837) WARNING 11-24 17:17:30 [akr_prefill_warmup.py:168] amd_kernels prefill warm-up failed
L1623: (APIServer pid=2596320) INFO 11-24 17:19:35 [loggers.py:335] Engine 000: Avg prompt throughput: 98.1 tokens/s, Avg generation throughput: 188.4 tokens/s, Running: 2 reqs, Waiting: 62 reqs, GPU KV cache usage: 1.5%, Prefix cache hit rate: 0.0%

c32: artifact 14951552773, logs/mia1-p01-g18_agg_w0.out (2943 lines), tarball sha256 41b25c1b574bd001254c29b0a2b5333a6709d38416dc0ad1fbefd9085ffc9100

L269: (Worker_TP0_DCP0 pid=2353967) INFO 11-24 17:24:13 [akr_config.py:66] amd_kernels routes: gemm, moe, kda, attention, indexer, norm, collectives, draft, sampling, overlap
L384: (Worker_TP5_DCP5 pid=2353969) INFO 11-24 17:28:14 [linear.py:1579] amd_kernels kdamoe: moe chain on 92/92 MoE layers, latent tail kernel on 92 layers, fused all-reduce + AttnRes on
L448: (Worker_TP0_DCP0 pid=2353967) INFO 11-24 17:28:25 [flydsl_swa_gqa_attn.py:102] Kimi-K3 GQA draft attention: FlyDSL SWA kernel (window 2048).
L465: (Worker_TP5_DCP5 pid=2353969) INFO 11-24 17:28:41 [akr_draft.py:739] amd_kernels drafter: dense MLP kernels on 5 layers
L481: (Worker_TP6_DCP6 pid=2353973) INFO 11-24 17:28:48 [akr_sampling.py:185] amd_kernels sampling: fused Markov chain (k=4, n<=48)
L1450: (Worker_TP0_DCP0 pid=2353967) WARNING 11-24 17:30:41 [akr_config.py:100] amd_kernels route 'attention' unsupported (PROLOGUE: qkv_a_norm_kv_insert: operand layout (supports_qkv_a_norm_kv_insert)); using the stock kernels
L1770: (Worker_TP2_DCP2 pid=2353971) INFO 11-24 18:09:33 [akr_prefill_warmup.py:166] amd_kernels prefill routes warmed up
L1847: (APIServer pid=2350502) INFO 11-24 18:11:36 [loggers.py:335] Engine 000: Avg prompt throughput: 47.9 tokens/s, Avg generation throughput: 10.1 tokens/s, Running: 20 reqs, Waiting: 44 reqs, GPU KV cache usage: 14.7%, Prefix cache hit rate: 0.0%, External prefix cache hit rate: 0.0%

c48: artifact 14946825536, logs/mia1-p01-g50_agg_w0.out (2402 lines), tarball sha256 e6e261099b8fa962eac74f0b83f27e4fd0462ad482a4c7c13f2627d74950a959

L262: (Worker_TP1_DCP1 pid=1306966) INFO 11-24 17:04:08 [akr_config.py:66] amd_kernels routes: gemm, moe, kda, attention, indexer, norm, collectives, draft, sampling, overlap
L384: (Worker_TP1_DCP1 pid=1306966) INFO 11-24 17:07:54 [linear.py:1579] amd_kernels kdamoe: moe chain on 92/92 MoE layers, latent tail kernel on 92 layers, fused all-reduce + AttnRes on
L448: (Worker_TP0_DCP0 pid=1306964) INFO 11-24 17:08:04 [flydsl_swa_gqa_attn.py:102] Kimi-K3 GQA draft attention: FlyDSL SWA kernel (window 2048).
L465: (Worker_TP0_DCP0 pid=1306964) INFO 11-24 17:08:20 [akr_draft.py:739] amd_kernels drafter: dense MLP kernels on 5 layers
L481: (Worker_TP5_DCP5 pid=1306969) INFO 11-24 17:08:27 [akr_sampling.py:185] amd_kernels sampling: fused Markov chain (k=4, n<=48)
L1396: (Worker_TP1_DCP1 pid=1306966) WARNING 11-24 17:10:19 [akr_config.py:100] amd_kernels route 'attention' unsupported (PROLOGUE: decode batch spans several indexer score tiles); using the stock kernels
L1439: (Worker_TP3_DCP3 pid=1306970) WARNING 11-24 17:10:27 [akr_config.py:100] amd_kernels route 'attention' unsupported (PROLOGUE: qkv_a_norm_kv_insert: operand layout (supports_qkv_a_norm_kv_insert)); using the stock kernels
L2109: (Worker_TP2_DCP2 pid=1306968) INFO 11-24 17:13:51 [akr_prefill_warmup.py:166] amd_kernels prefill routes warmed up
L2213: (APIServer pid=1304057) INFO 11-24 17:15:04 [loggers.py:335] Engine 000: Avg prompt throughput: 1599.4 tokens/s, Avg generation throughput: 1262.7 tokens/s, Running: 48 reqs, Waiting: 16 reqs, GPU KV cache usage: 36.7%, Prefix cache hit rate: 0.0%, External prefix cache hit rate: 0.0%

Signed: seungrokj

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

❌❌❌ REJECTED ❌❌❌

@seungrokj blocking: the c16–c48 points run a non-default FP8 draft KV cache. The golden AL identity used for their synthetic-acceptance runs does not record that dtype.

❌ Check 13 (Draft precision): FAIL — Draft KV-cache dtype does not match the golden identity. In kimik3.1-fp4-mi355x-vllm-agentic-dspark, the c16, c24, c32 and c48 overrides set the draft "kv_cache_dtype":"fp8" in --speculative-config (recipe @108631e). The framework default for this draft is auto/BF16 (dense_draft.py at vLLM 020490af6, which the recipe's own c1/c4 comments and the PR's draft data-type comment confirm). Those points run synthetic acceptance with golden identity kimi-k3.1-pro__dspark__kimi-k3.1-pro-dspark__probabilistic-block, but identities.yaml records draft_kv_cache_dtype: {value: null, source: default}. That fails condition (2) of the DRAFT KV-CACHE RULE. Draft weights and activations do run as shipped: BF16 checkpoint e4e6e626, no quantization config, BF16 amd_kernels draft MLP, and the FlyDSL kernel reads a BF16 query. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is absent. c1 and c4 use the default BF16 draft KV. Fix: serve c16–c48 with the default draft KV dtype and rerun, or commit a golden curve/identity collected with an FP8 draft KV cache.

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — seungrokj is a named owner of inferencex-e2e/configs/amd-master.yaml and of srt-slurm-recipes/**/mi355x-*/. perf-changelog.yaml falls only under the catch-all.

✅ Check 1 (Passing sweep on in-PR commit): PASS — run 45218651930 on in-PR commit c36a9d7f8 passed: all 6 agentic / jobs and all 4 agentic eval / jobs succeeded (this AgentX config runs no single-node */ or eval / jobs). Later commits are not material. 7f9d89447 only rewords the changelog. Merges 47ea903f3, 1326ce690 and 108631e96 keep the PR's diff byte-identical and bring only main's worker-GPU/DRAM migration. That migration re-derives the same workers=1/gpus=8, keeps cpu_bytes_to_use_per_rank hardcoded, and TOTAL_CPU_DRAM_GB only fed validation and metadata. Server args, image, points, client and eval are unchanged.

✅ Check 2 (Evals): PASS — Run 45218651930 ran gsm8k (n=1319) at c1, c4, c32 and c48 on the PR image kimi-k31-020490a@sha256:f2cef9ee. Strict EM was 0.9810, 0.9780, 0.9826 and 0.9788. No row is materially weaker than its best sibling (c32) or than the closest ingested cohort (run 44640765021, same config on the old image); the largest gap was 0.0053 against a 2σ threshold of 0.0107. The sign-off quotes server-log lines showing the FlyDSL SWA draft kernel and the amd_kernels routes/K1-K2 were active at the eval points, with no post-serving fallback logged.

✅ Check 3 (Upstream recipe): PASS — vllm-project/vllm#69749 merged 2026-11-24 and edits recipes/models/moonshotai/Kimi-K3.1-Pro.yaml. The published recipes.vllm.ai page now pins kimi-k31-020490a in its mi355x_agentx preset. The preset matches this PR: the new image digest, KIMI_K3_FLYDSL_SWA_GQA with fp8 draft KV from c16, VLLM_KIMI_AKR=0 at c1, K1/K2 at c4, and the existing TP8/DCP8, offload and env settings. Synthetic acceptance and concurrency are InferenceX-only.

✅ Check 4 (Reuse command): PASS — seungrokj (write/write) posted /use 45218651930 on its own line (2026-11-24T19:12:33Z). That is the Check 1 run.

✅ Check 5 (Latest checklist template): PASS — All 20 items of the current PR_REVIEW_CHECKLIST.md are present and checked.

✅ Check 6 (Upstream images / provenance / ordering): PASS — The image vllm/vllm-openai-rocm:kimi-k31-020490a is from the upstream vLLM Docker Hub org. The PR adds only vLLM entries, so ordering does not apply. Kimi-K3.1-Pro is a new model (added 2026-11-04), so the image may use the model-enablement branch from vllm-project/vllm#69172 on k31-amd-tracking, per the merged recipe. It must move to a main-branch image within a reasonable time.

✅ Check 7 (No deprecated models/scenarios): PASS — kimik3.1 agentic coding is active in MODELS.md.

✅ Check 8 (No architecture hacks): PASS — No --hf-overrides or architecture edits. kimik3.1 is not grandfathered, and the recipe explicitly sets VLLM_ROCM_QUICK_REDUCE_QUANTIZATION: NONE (the vLLM default is also NONE). The amd_kernels all-reduce fusions sum in fp32 and round to BF16, with no integer codec. The target-only MoE MXFP4 path is covered by evals.

✅ Check 9 (Spec-decode chat templates): PASS — The AgentX trace-replay client drives message-based traces against the chat-completions endpoint.

✅ Check 10 (No engine patches): PASS — No setup script, sed, pip or patch is reachable from this single-node vLLM recipe. The image runs as published.

✅ Check 11 (Golden AL): PASS — The SRT driver rewrites each throughput point to rejection_sample_method: synthetic at the golden kimi-k3.1-pro__dspark__…probabilistic-block AL (thinking_on, verify block): 4.16 at c1 (7 tokens), 3.81 at c4 (5 tokens) and 3.46 at c16–c48 (4 tokens). These match signoff_facts golden-al.

➖ Check 12 (Append-only): N/A — The new changelog entry has no append-only: true.

✅ Check 14 (Pareto coverage): PASS — One curve: kimik3.1 / agentic-coding / mi355x vLLM / fp4 / P90 E2EL from run 45218651930 (results_bmk artifact 14901385535). It has 5 of 6 points on the frontier (c1 is dominated by c4), per pareto_coverage.

✅ Check 15 (PR description): PASS — The title, body and changelog match the pinned recipe and image: the image contents, the per-point draft backend and AKR switches, unchanged points, the validation run and source commit, and the draft dtypes.

➖ Check 16 (NVIDIA overview): N/A — Only AMD MI355X hardware is affected.

➖ Check 17 (Metrics publication): N/A — Single-node vLLM, not Dynamo TRT-LLM.

✅ Check 18 (Recipe consistency): PASS — No generation errors. Master and recipe agree on TP8, DCP1/DCP8, conc lists, gpus-per-worker 8 and 1799 GB offload. The new image digest resolves. Stream-interval is 10 on every point. The 6 replaced points are re-tuned with the same shapes, and none is undominated-removed. Against the old-image run 44640765021, no point is >10% worse on tput/GPU, P90 interactivity, E2EL, TTFT or E2E normalized interactivity; the worst is c1 e2e-norm interactivity at −9.8% (87.79→79.17).

Assessed commit: 108631e96ef0ec22afe542412c5d536bc707e48e.

seungrokj and others added 2 commits November 24, 2026 15:33
Resolve the perf-changelog.yaml conflict by keeping main's new entries (#5120, #5109) and moving the #5196 block to the end of the file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	inferencex-e2e/perf-changelog.yaml

This branch has not been deployed

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

Labels

non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim)

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants