Repository navigation
feat(config): add TokenSpeed Kimi K3.1 Pro MXFP4 MI355X AgentX with DSpark / feat(config): 新增 TokenSpeed Kimi K3.1 Pro MXFP4 MI355X AgentX(DSpark)配置 - #5101
Conversation
Accept TokenSpeed DSPARK speculation in the golden-AL connector. The spec reads the draft model from speculative-draft-model-path and the draft sampler from enable-speculative-sampling (probabilistic when true, else greedy), and the verifier is speculative-rejection-sample-method when the role sets it. Synthetic throughput keeps the golden length and the greedy sampler, and now also removes enable-speculative-sampling and speculative-rejection-sample-method, which greedy sampling and a synthetic length reject. Eval-only and fixed-sequence runs keep the recipe's own DSPARK verification; MTP still selects flashinfer. Signed-off-by: Yu-Zhewen <zhewenyu@amd.com>
…eed DCP tokenspeed-wheels-rocm.sh installs pinned TokenSpeed, kernel, kernel-amd, scheduler and engine wheels by URL with tokenspeed-smg at the master router version. It upgrades only what the wheels need from PyPI, so the runner image's ROCm torch stays, then checks torch is a ROCm build and runs pip check. The binder writes ROUTER_VERSION for it. Single-node binding now compares TokenSpeed's decode-context-parallel-size with the matrix dcp-size, so DCP points bind instead of failing as DCP 1. Signed-off-by: Yu-Zhewen <zhewenyu@amd.com>
…Spark Add kimik3.1-fp4-mi355x-tokenspeed-agentic-dspark: one TokenSpeed worker on eight MI355X GPUs with attention and MoE TP8 and EP1, the Inferact/Kimi-K3.1-Pro-DSpark-preview draft, FP8 KV cache with the MXFP4 DSA indexer key cache and a Host L2 KV store at kvstore-ratio 8, at concurrency 1, 4, 8, 16, 24, 32 and 48. Concurrency 8 and above use KV parallel 8 with DCP8; each point has its own running-request cap, decode graph sizes, DSpark draft count and prefill/decode scheduling. SMG gets the gateway settings ts serve applies. The recipe pins the runner image, tokenspeed-smg 1.15.0.post20261110, and the checkpoint and draft revisions. The TokenSpeed wheel URLs and versions and the gateway tokenizer path are TODO placeholders. Signed-off-by: Yu-Zhewen <zhewenyu@amd.com>
SMG, TokenSpeed's gateway, refuses any top_p but the one a model pins (Kimi K3 pins 0.95), so every GSM8K request with top_p=1 came back as HTTP 400. Temperature 0 decodes greedily without reading top_p, so TokenSpeed's requests now leave it unset; other frameworks still send top_p=1. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
Signed-off-by: Yu-Zhewen <zhewenyu@amd.com>
Signed-off-by: Yu-Zhewen <zhewenyu@amd.com>
Signed-off-by: Yu-Zhewen <zhewenyu@amd.com>
|
Dispatched trusted sweep run for approved external revision 已为获批的外部提交 |
…iles The CI nodes' local Hugging Face cache holds the K3.1 weights but not every file of the revision (README.md, LICENSE, .gitattributes, ...). Under HF_HUB_OFFLINE=1, huggingface_hub rejects that snapshot as incomplete when TokenSpeed reads the model config, so the server never starts. With Hub access the missing files are fetched, as the SGLang K3.1 MI355X recipe already does; TokenSpeed retries Hub rate limits. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
|
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 包的改动有更高的代码质量要求。 |
lm-eval always runs at temperature 0, which decodes greedily, so top_p=1 has no effect. TokenSpeed's gateway (SMG) answers any top_p other than the value the Kimi K3 contract fixes (0.95) with HTTP 400, which failed TokenSpeed's GSM8K eval. Omitting top_p for every framework replaces the TokenSpeed-only special case. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
Main renamed the Kimi K3.1 DSpark golden curve after the released draft (SemiAnalysisAI#5102), so the TokenSpeed golden-acceptance test now writes its curve under that name. perf-changelog.yaml keeps main's entries and appends this PR's entry, now linked to SemiAnalysisAI#5101. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
…al to 24 In same-node one-hour AgentX runs on MI355X, keeping at least 24 decode rounds after each prefill chunk instead of 16 traded 1.3% throughput for 7.6% interactivity at concurrency 24, and 1.9% for 7.9% at concurrency 32. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
Serve Inferact/Kimi-K3.1-Pro-DSpark at e4e6e626, the draft the committed golden curve was measured with, instead of the preview. It is a GQA stack, so it runs on TokenSpeed's MHA drafter backend. Concurrency 4 and 8 move to 7 drafts and 24 to 48 to 5. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
The November 18 nightly is the first to serve the released DSpark draft. Its TokenSpeed pins tokenspeed-smg 1.16.0.post20261117, and its engine 0.1.1 pairs with tokenspeed-scheduler 0.1.58. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
|
Dispatched trusted sweep run for approved external revision 已为获批的外部提交 |
Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
|
Dispatched trusted sweep run for approved external revision 已为获批的外部提交 |
At concurrency 1 and 4 the GPU KV pool already holds the agent sessions' prefixes, so the Host L2 KV store served almost no hits, while pinning it delayed startup past the distributed timeout on one CPU socket's ranks. Both points now pass --disable-kvstore and run with kv-offloading none, like the vLLM and SGLang K3.1 recipes. Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
|
Dispatched trusted sweep run for approved external revision 已为获批的外部提交 |
Registering pageable memory pins the Host L2 page by page, after reclaiming the page cache that holds the checkpoint; at kvstore-ratio 8 it outlasted the distributed startup timeout on one CPU socket's ranks. HSA_USERPTR_FOR_PAGED_MEM=0 makes hipHostMalloc take the Host L2 from the amdgpu GTT pool instead, as the SGLang K3.1 recipe does. The GTT pool is about half the node's memory, too small for ratio 8, so concurrency 8 to 48 pin a fixed 128 GB per GPU (kvstore-size), about what ratio 4 gave, which held concurrency 32 throughput. Move to the November 19 nightly. Its TokenSpeed pins tokenspeed-smg 1.16.0.post20261118, and its gfx950 kernels run each MoE layer's post-attention work as one launch in single-request decode (lightseekorg/tokenspeed#3613). Signed-off-by: Zhewen Yu <zhewenyu@amd.com>
…ed-mi355x-dspark Signed-off-by: Zhewen Yu <zhewenyu@amd.com> # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
Dispatched trusted sweep run for approved external revision 已为获批的外部提交 |
Summary
Add
kimik3.1-fp4-mi355x-tokenspeed-agentic-dspark: Kimi K3.1 Pro MXFP4 (moonshotai/Kimi-K3.1-Pro) AgentX on 8x MI355X with TokenSpeed behind the SMG gateway. Attention and MoE TP8 with EP1, the releasedInferact/Kimi-K3.1-Pro-DSparkdraft on TokenSpeed's MHA drafter backend (7 drafts at c1 to c8, 5 at c16 to c48), FP8 KV cache with the MXFP4 DSA indexer key cache, 1,048,560-token context and a Host L2 KV store atkvstore-ratio: 8. Concurrency 1, 4, 8, 16, 24, 32 and 48; KV parallel 8 with DCP8 from c8, and every point has its own running-request cap and prefill/decode intervals (recipe, README).0.1.1.post20261118, ROCm 7.2 kernel0.1.5.post20261118, kernel-amd0.1.4.post20261118and engine0.1.1.post20261118by release URL and SHA256; scheduler0.1.58andtokenspeed-smg1.16.0.post20261117from PyPI;lightseekorg/tokenspeed-runner-amd:rocm7.2.4-pytorch-2.14.0-gfx950by digest.tokenspeed-nightly-rocm.sh(the installer from feat(config): add TokenSpeed Muse Spark Open MXFP4 MI355X AgentX / feat(config): 新增 TokenSpeed Muse Spark Open MXFP4 MI355X AgentX 配置 #4962, unchanged) installs them and keeps the image's ROCm torch.d9e99b0792a5e93b78ea9bea62a68167e36ddd9e, DSpark drafte4e6e6261e9f8b6d5f249f9627eb6b109d762d5f(speculative-draft-model-revision), the draft the committed golden curve was measured with. It is a five-layer GQA stack, served as it ships (BF16) throughdrafter-attention-backend: mha.decode-context-parallel-sizebinds to the matrixdcp-size.top_p: every request runs at temperature 0, which decodes greedily, and SMG rejects anytop_pother than the one the model pins (0.95 for Kimi K3).Nightly: the pinned November 18 wheels all come from lightseekorg/tokenspeed@8080ba138, which includes lightseekorg/tokenspeed#3545, which the released draft needs. Installed in the pinned runner image by
tokenspeed-nightly-rocm.sh, they served the c1 (KVP1, 7 drafts) and c48 (KVP8/DCP8, 5 drafts) points through 10-minute AgentX runs with no failed requests apart from 1 one-token turn that SMG 1.16 returns as empty content (acceptance length 4.12 and 3.73).Overlap with #4962: this PR carries that PR's
tokenspeed-nightly-rocm.sh, itsworkload.pyentry and its test byte for byte, so those merge cleanly in either order. Both PRs extend the TokenSpeed golden-AL connector (DSPARK here, DFLASH there), sosynthetic_acceptance.py, its tests and the golden-AL READMEs need a small rebase in whichever PR lands second.Validated end to end on 8x MI355X outside CI, with a local harness that launches the worker and SMG with the recipe's flags and runs this branch's
infx.benchclients. With the preview draft and the November 16 wheels: wheel smoke tests in KVP1 and KVP8/DCP8, GSM8K 97.95% at the c48 point, and 10-minute AgentX runs at c8 with no failed scored requests. With the released draft, on TokenSpeed source with lightseekorg/tokenspeed#3545: acceptance length 4.08 (KVP1) and 4.14 (KVP8) at 7 drafts, GSM8K 98.0% and 98.1%, and 1-hour AgentX at every concurrency point with this recipe's settings and no errors.Validation details
pip check, then worker and SMG startup with real DSpark block verification, a short chat request and a 50K-input/64-output request, in both KVP1 and KVP8/DCP8. No runtime errors.infx.bench eval, lm-eval 5-shot, temperature 0, all 1,319 questions, c48 point, real verification, preview draft): 97.95% strict match, no rejected requests.infx.bench agentic, c8 point, 10 minutes, two runs, preview draft): 0 of 195 and 0 of 196 scored requests failed. SMG's prompt token count matched the client's on every request. SMG reads the tokenizer from the checkpoint, as under srtctl, with notokenizer-path.kimi_k3parser returns one-token warmup requests with empty content, so AIPerf logs about 40 warmup errors per run. Warmup is dropped before scoring.Additional detail
Inferact/Kimi-K3.1-Pro-DSparkate4e6e626:dtype: bfloat16, no quantization config); effective BF16 (no draft quantization flag; TokenSpeed's default handling).AI model disclosure
claude-opus-5-5(Cursor agent)claude-opus-5-5-max(delegated Cursor subagent)gpt-5.6-sol(Cursor agent)grok-4.7(Cursor agent)PR checklist and change type
Type of Change
Checklist
python -m infx.matrix.changed --base origin/mainlists affected config keys, I have appended one new entry covering them to the physical end ofinferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entriesinferencex-e2e/perf-changelog.yamlentry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs):full-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied./use <run_id>(or the legacy/reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.中文
新增
kimik3.1-fp4-mi355x-tokenspeed-agentic-dspark:在 8 张 MI355X 上用 TokenSpeed(通过 SMG 网关)运行 Kimi K3.1 Pro MXFP4(moonshotai/Kimi-K3.1-Pro)的 AgentX 配置。注意力和 MoE 均为 TP8、EP1,使用正式发布的Inferact/Kimi-K3.1-Pro-DSpark草稿模型,通过 TokenSpeed 的 MHA drafter 后端运行(c1 至 c8 为 7 个草稿 token,c16 至 c48 为 5 个),FP8 KV cache 配合 MXFP4 DSA indexer key cache,上下文长度 1,048,560 token,Host L2 KV store 设为kvstore-ratio: 8。并发 1、4、8、16、24、32、48;从 c8 起使用 KV 并行 8 和 DCP8,每个并发点设置各自的运行请求上限和 prefill/decode 间隔。0.1.1.post20261118、ROCm 7.2 kernel0.1.5.post20261118、kernel-amd0.1.4.post20261118、engine0.1.1.post20261118,均按 release URL 和 SHA256 固定;scheduler0.1.58与tokenspeed-smg1.16.0.post20261117从 PyPI 安装;runner 镜像lightseekorg/tokenspeed-runner-amd:rocm7.2.4-pytorch-2.14.0-gfx950按 digest 固定。tokenspeed-nightly-rocm.sh(即 feat(config): add TokenSpeed Muse Spark Open MXFP4 MI355X AgentX / feat(config): 新增 TokenSpeed Muse Spark Open MXFP4 MI355X AgentX 配置 #4962 中的安装脚本,未作改动)安装这些包并保留镜像自带的 ROCm torch。d9e99b0792a5e93b78ea9bea62a68167e36ddd9e,DSpark 草稿模型e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f(speculative-draft-model-revision),即已提交 golden 曲线所用的草稿模型。它是 5 层 GQA 结构,按发布原样(BF16)通过drafter-attention-backend: mha运行。decode-context-parallel-size绑定到矩阵中的dcp-size。top_p:所有请求都使用 temperature 0(greedy 解码),而 SMG 会拒绝与模型固定值(Kimi K3 为 0.95)不同的top_p。Nightly: 固定的 11 月 18 日 wheel 均构建自 lightseekorg/tokenspeed@8080ba138,包含正式草稿模型所需的 lightseekorg/tokenspeed#3545。在固定的 runner 镜像中通过
tokenspeed-nightly-rocm.sh安装后,c1(KVP1,7 个草稿 token)和 c48(KVP8/DCP8,5 个草稿 token)配置各运行 10 分钟 AgentX,除 1 个被 SMG 1.16 返回为空内容的单 token 请求外无失败请求(接受长度 4.12 和 3.73)。与 #4962 重叠: 本 PR 原样包含该 PR 的
tokenspeed-nightly-rocm.sh、workload.py条目及其测试,因此这些文件无论哪一方先合入都不会冲突。两个 PR 都扩展了 TokenSpeed 的 golden-AL 连接器(本 PR 为 DSPARK,#4962 为 DFLASH),因此后合入的一方需要对synthetic_acceptance.py、相关测试和 golden-AL README 做少量 rebase。在 CI 之外于 8 张 MI355X 上完成端到端验证:本地脚本按 recipe 参数启动 worker 和 SMG,并运行本分支的
infx.bench客户端。使用 preview 草稿模型和 11 月 16 日 wheel:KVP1 和 KVP8/DCP8 的 wheel 冒烟测试通过;c48 配置下 GSM8K 为 97.95%;c8 配置下 10 分钟 AgentX 测试中计分请求无失败。使用正式草稿模型(基于包含 lightseekorg/tokenspeed#3545 的 TokenSpeed 源码):7 个草稿 token 时接受长度为 4.08(KVP1)和 4.14(KVP8),GSM8K 为 98.0% 和 98.1%,按本 recipe 设置在每个并发点运行 1 小时 AgentX,无错误。pip check,随后在 KVP1 和 KVP8/DCP8 两种模式下启动 worker 与 SMG(真实 DSpark block 验证),发送一个短对话请求和一个 50K 输入/64 输出的请求,无运行时错误。infx.bench eval,lm-eval 5-shot,temperature 0,全部 1,319 题,c48 配置,真实验证,preview 草稿模型):strict match 97.95%,无被拒请求。infx.bench agentic,c8 配置,10 分钟,两次运行,preview 草稿模型):195 个和 196 个计分请求均无失败;SMG 统计的 prompt token 数与客户端在每个请求上都一致。SMG 与 srtctl 下一样从 checkpoint 读取 tokenizer,不设置tokenizer-path。kimi_k3解析器对只要求一个输出 token 的预热请求返回空内容,因此 AIPerf 每次运行会记录约 40 个预热错误。预热请求在计分前被丢弃。Inferact/Kimi-K3.1-Pro-DSpark的e4e6e626:dtype: bfloat16,无量化配置),实际运行精度 BF16(未设置草稿量化参数,使用 TokenSpeed 默认处理)。AI 模型使用说明:
claude-opus-5-5(Cursor agent):主导起草会话并审阅委派的工作;之后让 SMG 从 checkpoint 读取 tokenizer,运行 GSM8K 和 AgentX 验证,完成 rebase 并撰写本说明;之后将 recipe 切换为正式草稿模型,重新调整草稿 token 数并更新本说明;之后改为固定 11 月 18 日 nightly 并对其 wheel 做冒烟测试。claude-opus-5-5-max(委派的 Cursor 子 agent):编写初版 recipe、master config 条目、安装脚本、连接器改动、测试和 README。gpt-5.6-sol(Cursor agent):将 recipe 切换为 11 月 16 日的 nightly wheel,运行 wheel 冒烟测试,并采用最新的 c48 设置。grok-4.7(Cursor agent):处理了起草会话中的一轮对话,无法确认该轮是否涉及本 PR。改动类型:Bug 修复、新功能、配置变更、文档更新。