Skip to content

[K3.1-Pro] Add the SGLang DFLASH golden AL curve - #4798

Merged
cquil11 merged 4 commits into
mainfrom
cam/kimik3.1-sglang-dflash-al
Nov 4, 2026
Merged

cquil11 merged 4 commits into
mainfrom
cam/kimik3.1-sglang-dflash-al

Conversation

@cquil11

@cquil11 cquil11 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the golden AL curve for the RadixArk DFLASH draft on Kimi K3.1 Pro, so SGLang submissions get their own curve. This follows the drafter discussion in #ext-nvidia-inferencex: each drafter is measured on its own engine, Inferact DSpark on vLLM (#4791) and RadixArk DFLASH on SGLang, and each Pareto line uses one drafter.

num_speculative_tokens 1 2 3 4 5 6 7 8
DFLASH AL (thinking_on) 1.83 2.45 2.90 3.25 3.43 3.57 3.68 3.81
DSpark AL (#4791, for reference) 1.79 2.33 2.70 2.92 3.08 3.14 3.21 3.33

Source run (B300, lmsysorg/sglang:dev-kimi-k31-pro@sha256:67fc77d1…): https://github.com/SemiAnalysisAI/InferenceX/actions/runs/41913266143. All 8 draft lengths were measured.

  • Curve: kimi-k3.1-pro__dflash__kimi-k3.1-dflash2-preview__default-block.yaml, with a collection block so the AL gate can replay it.
  • Identity: an identities.yaml entry that selects kimik3.1 with method dflash. It records engine sglang, block verify and FP8 target and draft KV.
  • README: rows added to the curve tables in README.md and README_zh.md.
  • Collector: benchmarks/single_node/speedbench/kimik3.1_fp4_b300_sglang.sh (framework=sglang, model-prefix=kimik3.1).
    • Server: follows the draft card's B300 TP8 command: block verification, FP8 target and draft KV, cutedsl_mla draft attention, and --mamba-ssm-dtype float32 per the K3.1 week-1 precision policy. --enable-linear-replayssm-spec lets 64 running requests fit at the widest verification widths. Level N runs --speculative-num-draft-tokens N+1, because DFLASH counts the verification width.
    • Client: matches the vLLM DSpark collection exactly, so the two curves differ only in the drafter. It sends the 80 SPEED-Bench qualitative coding prompts in vllm bench serve's seed-0 order, rendered with the chat template and {"thinking": true} by the AL gate's renderer. Requests stream to /v1/completions at concurrency 64 with max_tokens 4096, temperature 1.0, top_p 0.95, repetition_penalty 1.0 and the engine-default ignore_eos. The collector sends the requests itself because SGLang's SPEED-Bench loaders reorder the prompts.
    • AL: read from the server's Prometheus counters before and after each pass with the AL gate's own SGLang reader (infx/results/agentic/spec_decode.py), scraping until the counters settle as the gate does.

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

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

Code review found no issues

No high-confidence issues detected in this change.

This review covers commit 4799acf, which is no longer the latest commit on this pull request; later commits are not covered by it.

Collects the golden AL curve for the RadixArk/Kimi-K3.1-Dflash2-Preview
draft on B300 with block verification, using the vLLM K3.1 curve's client
settings and the AL gate's SGLang counter reader.
…FLASH collector

Send the coding prompts in vllm bench serve's seed-0 order at concurrency
64, rendered with {"thinking": true} by the AL gate's renderer, and enable
ReplaySSM so 64 running requests fit at the widest verification widths.
Measured on B300 by speedbench-al run 41913266143 with the
RadixArk/Kimi-K3.1-Dflash2-Preview draft and block verification, using the
K3.1 DSpark curve's client settings.
@cquil11
cquil11 force-pushed the cam/kimik3.1-sglang-dflash-al branch from 1794477 to 7805ad0 Compare November 4, 2026 22:22
@cquil11 cquil11 changed the title [K3.1-Pro] Collect the SGLang DFLASH golden AL curve on B300 [K3.1-Pro] Add the SGLang DFLASH golden AL curve Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +43 -0

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

@cquil11
cquil11 merged commit adc0dae into main Nov 4, 2026
2 checks passed
@cquil11
cquil11 deleted the cam/kimik3.1-sglang-dflash-al branch November 4, 2026 22:42
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.

1 participant