Repository navigation
Check spec-decoding labels and record what each point drafts with / 校验投机解码标签并记录各点位实际的草稿方式 - #4805
Conversation
Single-node recipes could declare benchmark.env.SPEC_DECODING to satisfy the label check on variants that do not draft, and multi-node binding never compared the label with the decode worker. SPEC_DECODING is now launcher-owned on single-node fragments, the single-node check reads speculation only from the recipe, and multi-node binding fails when the label disagrees with the generation worker.
The launcher binds SPEC_ALGORITHM and SPEC_DRAFT_MODEL from the generation worker's speculative config, in the golden AL identity vocabulary (native when the checkpoint drafts for itself). Agentic and fixed-sequence results carry them as spec_algorithm and spec_draft_model. Recipe fingerprints exclude both, since they derive from the hashed roles.
|
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 finished @adibarra's task in 1m 2s —— View job Review
🟡 One issue, inline at
The rest of the PR looks correct:
Perf changelog: the PR reports I didn't run the tests: running |
Fixed-sequence results are built on the runner, which never sees the bound SPEC_* values, so they no longer claim to carry them. A missing MODEL_PREFIX now fails binding instead of normalizing MiniMax-M3 EAGLE as MTP.
Summary
The spec-decoding label on a benchmark point comes from the matrix, not from what the server runs, and two gaps let a sweep publish points as speculative when the server never drafted:
validate_recipefell back to the recipe's ownbenchmark.env.SPEC_DECODINGwhen a variant had no speculative config. A recipe could setSPEC_DECODING: mtpon non-drafting variants and pass the check. The retired Kimi-K3 B300 vLLM AgentX recipe did this for c24 to c70, so those points were published as DSpark (relabeled in Relabel non-drafting AgentX points as spec none / 将未实际草稿生成的 AgentX 点位标为无投机解码 InferenceX-app#1659).This PR:
SPEC_DECODINGlauncher-owned on single-node fragments, so a recipe that sets it is rejected like any other bound key;bind_speculationto multi-node binding: the label must benoneexactly when the generation worker (decode, else agg) has no speculative config;SPEC_ALGORITHM(the golden AL identity method, e.g.dspark,dflash,eagle3,mtp) andSPEC_DRAFT_MODEL(the drafter repo, ornativewhen the checkpoint drafts for itself), and AgentX results carry them asspec_algorithmandspec_draft_model(fixed-sequence results are built on the runner, outside the bound recipe, and do not). The matrix label alone cannot say this:draft_modelcovers both Muse Spark's separate DFlash drafter and DSV4.1-Flash's built-in DSpark on ATOM, which is labeledmtpelsewhere.No current config changes, and no recipe fingerprint changes (both keys are excluded from the fingerprint, since they derive from the hashed roles):
infx.matrix.changedreports 0 of 152 config keys changed, and every srt row of the current agentic and fixed-sequence matrices (1,388) still binds. Run against the pre-retirement Kimi-K3 B300 recipe, the old recipe is rejected for settingSPEC_DECODING; with those keys removed, c1 to c16 bind and c24 to c70 fail withSPEC_DECODING: recipe/matrix 'none' != 'mtp'.Two launch-driver tests labeled non-drafting fixture recipes
mtp; they now usenone.AI model disclosure
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.OWNER/MEMBER/COLLABORATOR) has commented/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.中文
基准点位的投机解码标签来自矩阵,而不是服务端实际运行的配置。以下两处缺口会让扫描在服务端从未进行草稿生成时,仍把点位发布为投机解码:
validate_recipe会回退到配方自身的benchmark.env.SPEC_DECODING。配方可以在不生成草稿的变体上设置SPEC_DECODING: mtp并通过检查。已退役的 Kimi-K3 B300 vLLM AgentX 配方在 c24 至 c70 就是这样做的,因此这些点位被发布为 DSpark(已在 Relabel non-drafting AgentX points as spec none / 将未实际草稿生成的 AgentX 点位标为无投机解码 InferenceX-app#1659 中更正)。本 PR:
SPEC_DECODING改为由启动器负责,设置该键的配方会像其他绑定键一样被拒绝;bind_speculation:当且仅当生成 worker(decode,否则为 agg)没有投机解码配置时,标签必须为none;SPEC_ALGORITHM(黄金 AL identity 中的方法名,如dspark、dflash、eagle3、mtp)与SPEC_DRAFT_MODEL(草稿模型仓库;若由服务的检查点自身生成草稿则为native),AgentX 结果以spec_algorithm和spec_draft_model字段输出(定长结果在 runner 上生成,不经过绑定的配方,因此不包含)。仅凭矩阵标签无法表达这些信息:draft_model既包括 Muse Spark 独立的 DFlash 草稿模型,也包括 ATOM 上 DSV4.1-Flash 内置的 DSpark,而后者在其他引擎上标为mtp。当前配置与配方指纹均无变化(这两个键由已哈希的 roles 推导,因此从指纹中排除):
infx.matrix.changed显示 152 个配置键中 0 个变化,当前 agentic 与定长矩阵中的全部 srt 行(1,388 行)仍可正常绑定。用退役前的 Kimi-K3 B300 配方验证时,旧配方因设置SPEC_DECODING被拒绝;去掉这些键后,c1 至 c16 可正常绑定,c24 至 c70 报错SPEC_DECODING: recipe/matrix 'none' != 'mtp'。两个启动驱动测试把不生成草稿的夹具配方标为
mtp,现已改为none。AI 模型使用说明:anthropic/claude-opus-5-5,负责将错误标注的点位追溯到配方检查、编写改动与测试,并完成上述验证。