Repository navigation
Commit 7f9d894
perf(amd): Kimi-K3.1 MI355X vLLM AgentX on the kk31-amd-kernels image; 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 <noreply@anthropic.com>1 parent 47ea903 commit 7f9d894
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13353 | 13353 | | |
13354 | 13354 | | |
13355 | 13355 | | |
13356 | | - | |
| 13356 | + | |
13357 | 13357 | | |
13358 | | - | |
| 13358 | + | |
| 13359 | + | |
13359 | 13360 | | |
13360 | 13361 | | |
13361 | | - | |
| 13362 | + | |
| 13363 | + | |
13362 | 13364 | | |
0 commit comments