Skip to content

feat: add initial TokenSpeed engine support / feat: 添加 TokenSpeed 引擎初始支持 - #4781

Merged
cquil11 merged 4 commits into
mainfrom
feat/tokenspeed-engine-support
Nov 5, 2026
Merged

cquil11 merged 4 commits into
mainfrom
feat/tokenspeed-engine-support

Conversation

@cquil11

@cquil11 cquil11 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Add initial TokenSpeed engine support to InferenceX's single-node SRT launcher. Validate native attention TP, data parallelism, expert parallelism, and pipeline settings against the benchmark matrix; bind eval context limits and the SMG setup dependency; and select golden MTP acceptance with greedy sampling for AgentX throughput while retaining real verification for evals.

Include the reusable nightly-wheel setup script and use srt-slurm v2.66.2 from merged #4784. The release includes merged NVIDIA/srt-slurm#640, enabling native headless TokenSpeed workers through SMG's ZMQ transport, healthy worker registration checks, gateway model-path resolution, and separate HTTP metrics listeners. No downstream TokenSpeed patch is needed.

This is the support layer for #4780, which adds the Qwen3.8-Flash-Next GB300 benchmark configuration. No benchmark configurations are added in this base PR. Original TokenSpeed support by Tuan Zhang (@tuanzhangCS), extracted from #4691 with his commit authorship retained.

Frontend companion: InferenceX-app#1655 adds the TokenSpeed engine label, family classification, and UI/API filters.

Register TokenSpeed with the fixed-sequence/eval client and AgentX result processing, including verified device KV occupancy and real acceptance counters. Unknown cache-hit and host-cache measurements remain missing. Resolve private nightly wheels through direct URLs and registry dependencies through PyPI only. The parallelism explanation and worked example are in the separate documentation PR #4788.

中文

为 InferenceX 单节点 SRT 启动器添加 TokenSpeed 引擎初始支持。根据基准测试矩阵校验原生 attention TP、数据并行、专家并行和流水线配置,绑定评估上下文限制与 SMG 安装依赖,并为 AgentX 吞吐量测试自动选择 golden MTP 接受长度和 greedy 采样,评估继续执行真实验证。

提供可复用的 nightly wheel 安装脚本,并使用已合并的 #4784 引入的 srt-slurm v2.66.2。该版本包含 NVIDIA/srt-slurm#640,支持通过 SMG ZMQ transport 启动原生 headless TokenSpeed worker、检查健康 worker 注册、解析 gateway model path,以及使用独立 HTTP metrics listener。

本 PR 为 #4780 的 Qwen3.8-Flash-Next GB300 配置提供引擎支持。原始实现由 Tuan Zhang (@tuanzhangCS) 编写,从 #4691 提取并保留原始提交作者信息。配套的 InferenceX-app#1655 添加 TokenSpeed 引擎标签、分类和 UI/API 筛选。

在 fixed-sequence、评估客户端和 AgentX 结果处理中注册 TokenSpeed,读取可验证的设备 KV 占用和真实接受计数;未知的 cache-hit 与 host-cache 测量保持缺失。私有 nightly wheel 使用直接 URL,registry 依赖仅从 PyPI 安装。并行配置说明和示例位于独立文档 PR #4788。

AI model disclosure

Codex resolved merge conflicts and validated the updated branches. The exact model identifier could not be verified from the runtime.

@cquil11
cquil11 requested a review from a team November 4, 2026 18:02
@github-actions

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

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +292 -5

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

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

@cquil11
cquil11 force-pushed the feat/tokenspeed-engine-support branch from 80627a9 to 0239509 Compare November 4, 2026 18:47
@cquil11
cquil11 removed this pull request from stack #4782 November 4, 2026 18:48
@cquil11
cquil11 changed the base branch from main to chore/srt-slurm-v2.66.2 November 4, 2026 18:48
@cquil11
cquil11 added this pull request to stack #4785 November 4, 2026 18:48
@cquil11
cquil11 removed this pull request from stack #4785 November 4, 2026 19:44
Base automatically changed from chore/srt-slurm-v2.66.2 to main November 4, 2026 19:45
tuanzhangCS and others added 3 commits November 4, 2026 13:45
Extract the shared TokenSpeed launcher, topology validation, MTP acceptance handling, setup script, documentation, and tests from #4780.

Signed-off-by: tuanzhangCS <[email protected]>
@cquil11
cquil11 force-pushed the feat/tokenspeed-engine-support branch from a201d5c to cfb1e18 Compare November 4, 2026 19:45
@cquil11
cquil11 added this pull request to stack #4789 November 4, 2026 19:46
@tuanzhangCS tuanzhangCS changed the title feat: add initial TokenSpeed engine support feat: add initial TokenSpeed engine support / feat: 添加 TokenSpeed 引擎初始支持 Nov 5, 2026
@cquil11
cquil11 merged commit 000e166 into main Nov 5, 2026
8 checks passed
@cquil11
cquil11 deleted the feat/tokenspeed-engine-support branch November 5, 2026 07:40
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