Skip to content

Standardize golden AL curve names and selection / 规范黄金 AL 曲线命名与选择 - #4661

Merged
cquil11 merged 4 commits into
mainfrom
standardize-golden-al-curves
Nov 4, 2026
Merged

cquil11 merged 4 commits into
mainfrom
standardize-golden-al-curves

Conversation

@Ankur-singh

@Ankur-singh Ankur-singh commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

[by Claude Code]

Cleanup of the golden AL curves: one naming scheme, one identity per curve, and curve selection driven by that identity instead of per-model special cases. Every current agentic config selects the same curve and the same golden AL as before.

Naming. Curve files are <model>__<method>__<draft>__<draft_sample>-<verify>.yaml, derived from the identity (default for a setting the collector did not set). A test checks every file name against its identity. For example, kimik3_dspark_probabilistic_sample_method_block_rejection_sample_method.yaml → kimi-k3__dspark__kimi-k3-dspark__probabilistic-block.yaml, and qwen3.5_mtp.yaml → qwen3.5-397b-a17b-nvfp4__mtp__native__default-default.yaml. References in the master configs, recipes, collectors, the sign-off prompt, speedbench-al.yml and the docs are updated. perf-changelog.yaml is left as history.

Selection (golden_al_distribution/identities.yaml, identity.py). Each curve has a select block: model_prefixes, method, and draft_family (MiniMax-M3 GQA) or draft_sample (Kimi K3 DSpark) only where one model's curves differ by them. curve_name returns the one matching curve and fails when none or several match. The non-obvious rules are now explicit and tested:

  • SGLang EAGLE/NEXTN → the model's native mtp curve; MiniMax-M3 EAGLE → eagle3.
  • dsv4, dsv4dspark and dsv4dsparkprob share the DSV4-0813 DSpark curve.
  • Kimi DSpark still requires an explicit greedy or probabilistic sampler.

Audit (srt_slurm/spec_identity.py). Each curve's collection block records engine, draft, draft_sample, verify, adaptive, topology, draft_precision, draft_kv_cache_dtype and the target's kv_cache_dtype, each as {value, source} with source explicit, documented, assumed, default or unknown. A run's generation role is described the same way and compared with its curve; the audit never changes the selection.

  • ATOM's verifier is unknown, so it is reported as unverified, never as a pass.
  • ATOM DSpark's probabilistic drafting is assumed.
  • Block, relaxed and adaptive verification are opt-in flags, so unset means standard and not adaptive (documented).
  • A recipe's synthetic sampler becomes block on real runs (documented).
  • KV cache dtypes are normalized (fp8_e4m3 = fp8, bfloat16 = bf16, auto = engine default).

Parity.

  • The existing curve_name tests keep their expected curves (renamed), including the Kimi sampler and MiniMax GQA cases.
  • Running python -m infx.srt_slurm.spec_identity snapshot over the agentic matrix of the NVIDIA and AMD master configs (1,453 spec-decode rows) gives the same curve and golden AL for every row before and after this change. This is a one-off check, not a committed fixture.
  • infx.matrix.changed reports 0 config keys changed.

Findings in today's matrix (rows):

Finding Rows
verify mismatch: Kimi K3 DSpark without block (33), MiniMax-M3 with block (17), DSV4-0813 with block (13), DSV4.1 Flash without block (83), Muse Spark SGLang with block (26) 172
target kv_cache_dtype mismatch: MiniMax-M3.1-Flash vLLM fp8 vs collected nvfp4 (19), GLM-5.2 SGLang bf16 vs fp8 (7), GLM-5.3 TileRT bf16 vs fp8 (1) 27
adaptive (no fixed-k curve applies) 16
unverified verify / adaptive (ATOM, TileRT) 88 / 88
unverified draft sampler / draft precision / draft KV dtype / target KV dtype (engine default or unknown on either side) 781 / 930 / 901 / 594
provisional curve (GLM-5.3) 11
run engine differs from collection engine 819

Follow-ups: collect the curves the mismatches need (Kimi K3 probabilistic without block, MiniMax-M3 EAGLE3 GQA with block, DSV4-0813 DSpark with block, GLM-5.3), or align those recipes with their curve's collection.

中文

[by Claude Code]

清理黄金 AL 曲线:统一命名方式,每条曲线一个身份描述,曲线选择由身份驱动,而不再依赖逐模型的特殊处理。所有现有 agentic 配置选择的曲线和黄金 AL 与之前完全相同。

命名。 曲线文件命名为 <model>__<method>__<draft>__<draft_sample>-<verify>.yaml,由身份推导(收集脚本未设置的项为 default),测试会逐一校验文件名与身份是否一致。例如 kimik3_dspark_probabilistic_sample_method_block_rejection_sample_method.yaml → kimi-k3__dspark__kimi-k3-dspark__probabilistic-block.yaml。master 配置、配方、收集脚本、签核提示、speedbench-al.yml 和文档中的引用均已更新;perf-changelog.yaml 作为历史保持不变。

选择(golden_al_distribution/identities.yaml、identity.py)。每条曲线有一个 select 块:model_prefixes、method,以及仅在同一模型的曲线因其而不同时才设置的 draft_family(MiniMax-M3 GQA)或 draft_sample(Kimi K3 DSpark)。curve_name 返回唯一匹配的曲线,没有或有多条匹配时报错。不明显的规则均已显式化并有测试:

  • SGLang EAGLE/NEXTN → 模型原生 mtp 曲线;MiniMax-M3 EAGLE → eagle3。
  • dsv4、dsv4dspark、dsv4dsparkprob 共用 DSV4-0813 DSpark 曲线。
  • Kimi DSpark 仍要求显式的 greedy 或 probabilistic。

审计(srt_slurm/spec_identity.py)。每条曲线的 collection 块记录 engine、draft、draft_sample、verify、adaptive、topology、draft_precision、draft_kv_cache_dtype 和目标模型的 kv_cache_dtype,每项为 {value, source},source 为 explicit、documented、assumed、default 或 unknown。运行的生成角色以同样方式描述并与其曲线比较;审计不会改变选择结果。

  • ATOM 的验证器为 unknown,报告为 unverified,绝不视为通过。
  • ATOM DSpark 的 probabilistic 草稿为 assumed。
  • block、relaxed 和 adaptive 验证均为显式开启的选项,未设置即为 standard 且非自适应(documented)。
  • 配方中的 synthetic 采样器在真实运行中变为 block(documented)。
  • KV cache dtype 会做归一化(fp8_e4m3 = fp8,bfloat16 = bf16,auto = 引擎默认值)。

一致性。

  • 现有的 curve_name 测试保留其预期曲线(已更名),包括 Kimi 采样器和 MiniMax GQA 的情况。
  • 对 NVIDIA 与 AMD master 配置的 agentic 矩阵(1,453 行推测解码配置)运行 python -m infx.srt_slurm.spec_identity snapshot,改动前后每一行的曲线和黄金 AL 均相同。这是一次性检查,不提交为固定数据。
  • infx.matrix.changed 报告 0 个配置键变化。

后续工作:为上述不一致收集所需曲线(Kimi K3 probabilistic 无 block、MiniMax-M3 EAGLE3 GQA 使用 block、DSV4-0813 DSpark 使用 block、GLM-5.3),或将这些配方与曲线的收集方式对齐。

@github-actions

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 Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +1057 -119

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

@@ -0,0 +1,156 @@
# The identity of every committed golden curve: which runs select it, and how it was collected.
#
# Curve files are named <model>__<method>__<draft>__<draft_sample>-<verify>.yaml, built from the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be in docs and de-sloppified instead of inline

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[by Claude Code] Thanks, good call. In 2db10e6 the header is gone from identities.yaml. The naming rule, the select keys, the fact sources and the value vocabulary now live in the golden AL README (English and Chinese), as two short tables.

@@ -0,0 +1,239 @@
"""Curve identities, identity-based selection, run normalization and the audit snapshot."""

import itertools

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude please audit this PR and remove any tautological tests or tests that aren't useful for any practical branc hof logic

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[by Claude Code] Done in 2db10e6. I removed the snapshot test and its fixture, the hard-coded curve list and the copied legacy selector. What's left in this file is one test per real branch: identity/file-name agreement, overlapping selectors, malformed facts, the vLLM/SGLang/TRT-LLM/ATOM readings, a verifier mismatch, adaptive, and the precision/KV readers. The renamed curve-selection expectations stay in the existing golden AL tests. Happy to trim further if any of these still look redundant.

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

Additional findings (outside the current diff — GitHub can't attach inline comments there):

  • 🟡 inferencex-e2e/infx/golden_al_distribution/__main__.py — nit: with --golden-dir, lookup --json can now report a curve name from a different directory than its AL value. Since curve_name selects through each directory's identities.yaml, line 103 should pass args.golden_dir, as golden_length does on line 98. Fix: call curve_name(args.model, spec, args.golden_dir).

    Why this was flagged

    The diff makes curve_name depend on golden_dir (curves.py:46, through select_curve reading golden_dir/identities.yaml). In lookup_command, line 98 calls golden_length with args.golden_dir, but line 103 calls curve_name(args.model, spec) with the default GOLDEN_DIR. With a non-default --golden-dir, the JSON "curve" field comes from the committed identities while "acceptance_length" comes from the given directory. It can also raise if the default identities do not match. On base, curve_name ignored the directory, so the two always agreed.

    Verification: Trigger: lookup --json run with a non-default --golden-dir. In lookup_command, line 103 is still "curve": curve_name(args.model, spec), so it uses the committed default directory. On the base, curve_name was a pure function of model and spec and did not depend on any directory, so this inconsistency is new.

Comment on lines +132 to +143
Regenerate after a deliberate change, then review the diff:
python -m infx.matrix.generate full-sweep --config-files configs/nvidia-master.yaml
configs/amd-master.yaml --scenario-type agentic-coding > matrix.json
python -m infx.srt_slurm.spec_identity snapshot matrix.json --root . > <this fixture>
"""
for case in json.loads(SNAPSHOT.read_text()):
role = {"args": case["args"]}
assert audit(case["model_prefix"], role, case["framework"]) == case["expected"], case


@pytest.mark.parametrize("algorithm", ["EAGLE", "NEXTN"])
def test_sglang_native_heads_select_the_model_mtp_curve(algorithm) -> None:

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.

🔴 After merging, a SpeedBench auto-PR that re-measures any committed curve fails CI until someone regenerates a 3,609-line fixture. test_snapshot_pins_every_current_speculative_role compares live audit output to current_spec_roles.json. That fixture stores the golden AL, curve name and findings for all 118 roles in the master configs. This pins checked-in data, which CONTRIBUTING.md:239 forbids. Fix: delete the snapshot test and its fixture. The other tests in this file already run audit/run_collection on controlled inputs. Keep any parity evidence in the PR description, not in the suite.

Why this was flagged

The test at test_spec_identity.py:132-143 runs audit() against the real GOLDEN_DIR and identities.yaml. It then asserts equality with the expected block in current_spec_roles.json, for example "golden": 3.77 for the dsv4 atom role. speedbench-al.yml (line 334) rewrites infx/golden_al_distribution/${GOLDEN_CURVE}.yaml with freshly measured values and opens an auto-PR. Any changed value breaks this test for every role on that curve. Editing a collection fact in identities.yaml breaks it the same way. The fix is to regenerate the fixture via full-sweep matrix generation plus spec_identity snapshot. The base branch has no such test, so curve refreshes pass there. CONTRIBUTING.md:239 and the four-question check (CONTRIBUTING.md:258) forbid tests that pin checked-in config or data.

Verification: test_snapshot_pins_every_current_speculative_role (test_spec_identity.py:129-139) asserts audit(...) == case["expected"] over current_spec_roles.json, while audit (spec_identity.py:139-144) reads the real curve YAML and identities.yaml. speedbench-al.yml:334 rewrites curves with fresh measurements, so the test fails until the fixture is regenerated by hand. CONTRIBUTING.md:239 forbids this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[by Claude Code] Agreed. 2db10e6 deletes the snapshot test and current_spec_roles.json. The parity evidence (same curve and golden AL for all 1,453 agentic spec-decode rows) is in the PR description as a one-off check, and python -m infx.srt_slurm.spec_identity snapshot remains for running the audit by hand.

Comment on lines +21 to +72
# Curve files before the canonical names; the parity test maps the old selection through it.
LEGACY_NAMES = {
"dsv4_mtp": "deepseek-v4-pro__mtp__native__default-default",
"dsv4-pro-0813-dspark": "deepseek-v4-pro-0813__dspark__native__probabilistic-default",
"dsv41flash_dspark": "deepseek-v4.1-flash__dspark__native__probabilistic-block",
"glm5.2_mtp": "glm-5.2-fp8__mtp__native__default-default",
"glm5.3_mtp": "glm-5.3-fp8__mtp__native__default-default",
"kimik3_dspark": "kimi-k3__dspark__kimi-k3-dspark__default-default",
"kimik3_dspark_probabilistic_sample_method_block_rejection_sample_method": (
"kimi-k3__dspark__kimi-k3-dspark__probabilistic-block"
),
"minimaxm3_eagle3": "minimax-m3__eagle3__minimax-m3-eagle3__default-default",
"minimaxm3_eagle3_gqa": "minimax-m3__eagle3__minimax-m3-eagle3-gqa__default-default",
"minimaxm31flash_dspark": "minimax-m3.1-flash__dspark__native__probabilistic-block",
"musespark_dflash": (
"muse-spark-open-816b-a42b-nvfp4__dflash__muse-spark-open-dflash2__default-default"
),
"qwen3.5_mtp": "qwen3.5-397b-a17b-nvfp4__mtp__native__default-default",
"qwen3.8next_mtp": "qwen3.8-flash-next-fp8__mtp__native__default-default",
}


def legacy_curve_name(model: str, spec: dict) -> str:
"""The selection curve_name made before identities.yaml, kept to prove they agree."""
method = str(spec.get("method", "")).lower()
if method in ("eagle", "nextn"):
method = "eagle3" if model == "minimaxm3" else "mtp"
curve = f"{model}_{method}"
if model in ("dsv4", "dsv4dspark", "dsv4dsparkprob") and method == "dspark":
curve = "dsv4-pro-0813-dspark"
elif model == "minimaxm3" and method == "eagle3":
if "gqa" in str(spec.get("model", "")).lower():
curve += "_gqa"
elif model == "kimik3" and method == "dspark":
sampling = spec.get("draft_sample_method")
if sampling == "probabilistic":
curve += "_probabilistic_sample_method_block_rejection_sample_method"
elif sampling != "greedy":
raise ValueError(f"No Kimi DSpark golden curve for draft sampling {sampling!r}")
if curve not in LEGACY_NAMES:
raise ValueError(f"No committed golden curve {curve}.yaml")
return LEGACY_NAMES[curve]


def _role(**args):
return {"args": args}


def test_every_curve_has_one_identity_and_its_canonical_name() -> None:
identities = load_identities()
stems = {path.stem for path in GOLDEN_DIR.glob("*.yaml")} - {"identities"}
assert set(identities) == stems == set(LEGACY_NAMES.values())

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.

🟡 (optional) Adding any new golden curve, which the speedbench-al auto-PR now asks for, fails CI even with a correct identity, because the test pins a fixed list of curve names. test_every_curve_has_one_identity_and_its_canonical_name asserts the curve stems equal set(LEGACY_NAMES.values()). legacy_curve_name copies the old curve_name into the test ("mirror", CONTRIBUTING rule 6). Its comments are history notes, which AGENTS.md:57 forbids. Fix: assert only that identities match the stems and that names are canonical. Replace the legacy mirror with explicit expected curves for the tricky inputs, and drop the history comments. [also at: inferencex-e2e/infx/tests/golden_al_distribution/test_spec_identity.py:73 - After merging, adding any new golden curve (which the auto-PR body now asks for) fails test_every_curve_has_one_identity_and_its_canonical_name until a test registry is edited.]

Why this was flagged

test_spec_identity.py:72 asserts set(identities) == stems == set(LEGACY_NAMES.values()), and LEGACY_NAMES (lines 22-40) hard-codes today's 13 curves. When the speedbench-al open-pr flow adds a new curve file plus its identities.yaml entry, as the updated PR body asks, the stems no longer equal LEGACY_NAMES and the test fails. CONTRIBUTING.md:239 rule 4 forbids pinning checked-in data or counts. legacy_curve_name (lines 43-62) is a second implementation copied into the test, forbidden by CONTRIBUTING.md:241 rule 6. Its comment "Curve files before the canonical names" and the docstring "made before identities.yaml" are history comments, which AGENTS.md:57 forbids. Base had no such test.

Verification: normal: triggers whenever a new golden curve is committed, for example through the speedbench-al open-pr flow. test_spec_identity.py:71-72 asserts set(identities) == stems == set(LEGACY_NAMES.values()). LEGACY_NAMES at lines 22-40 hard-codes exactly the 13 curve stems that exist today.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[by Claude Code] Fixed in 2db10e6. The test now only checks that every curve file has an identity and that its name is canonical, so adding a curve needs no test edit. The legacy mirror and its history comments are removed.

Comment thread .github/workflows/speedbench-al.yml Outdated
Comment on lines 131 to 134
if [[ ! "$GOLDEN_CURVE" =~ ^[a-z0-9_.-]+$ ]]; then
echo "::error::open-pr needs golden-curve, a curve file stem such as dsv4_mtp (got '$GOLDEN_CURVE')." >&2
echo "::error::open-pr needs golden-curve, a curve file stem such as deepseek-v4-pro__mtp__native__default-default (got '$GOLDEN_CURVE')." >&2
exit 1
fi

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.

🟡 nit (optional): an operator who passes golden-curve identities gets past the setup check, but the run fails only after the full GPU collection. The check at speedbench-al.yml:131 still allows any ^[a-z0-9_.-]+$ stem, and this change now reserves the identities stem for the selector file. Fix: reject identities (the IDENTITIES_STEM that load_curve already refuses) in the setup check, so the run fails before any GPU time is spent.

Why this was flagged

The open-pr step writes infx/golden_al_distribution/${GOLDEN_CURVE}.yaml (speedbench-al.yml:334-338). In the same directory, this change adds identities.yaml, which select_curve reads for every golden lookup. The setup-job check (speedbench-al.yml:131) only matches the regex, so golden-curve=identities passes it. After the multi-hour SPEED-Bench collection, the step overwrites identities.yaml in the runner checkout with the AL matrix. Then python -m infx.golden_al_distribution show identities raises "Invalid golden curve identity" because curves.py now rejects name == IDENTITIES_STEM, so the job fails and no PR is opened. Before this change no committed stem was reserved, so the setup check was the only gate needed. Nothing reaches main, so the cost is the wasted GPU allocation and a late, confusing error.

Verification: Trigger: an operator dispatches the workflow with open-pr=true and golden-curve=identities. The only gate is if [[ ! "$GOLDEN_CURVE" =~ ^[a-z0-9_.-]+$ ]] (speedbench-al.yml:131), and identities matches it. The PR adds IDENTITIES_STEM = "identities" (identity.py:19), which load_curve now rejects. After the full infx.launch run collection, show "$GOLDEN_CURVE" raises ValueError and no PR is opened.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[by Claude Code] Fixed in 2db10e6. The setup check now rejects golden-curve=identities, so the run fails before any GPU time is spent.

Comment on lines +1 to +25
# The identity of every committed golden curve: which runs select it, and how it was collected.
#
# Curve files are named <model>__<method>__<draft>__<draft_sample>-<verify>.yaml, built from the
# curve's model key and its collection below ("default" for a setting the collector did not set). curves.curve_name selects the one curve whose `select` block matches a run:
#
# model_prefixes InferenceX model prefixes that use the curve
# method mtp (model-native head), eagle3, dspark or dflash; see curves.normalize_method
# draft_family when set, "gqa" or "default" by whether the draft model id contains "gqa"
# draft_sample when set, the run's draft_sample_method must equal it
#
# `collection` records how the curve was measured. The audit (infx.srt_slurm.spec_identity)
# compares it with each run and reports differences; it never changes the selected curve.
# Each fact is {value, source}:
#
# explicit set by the collector or recipe
# documented fixed by the connector or engine: a recipe's synthetic sampler becomes block, and
# block, relaxed and adaptive verification are opt-in, so unset means standard and
# not adaptive
# assumed the connector's own reading, e.g. ATOM DSpark drafts probabilistically
# default unset; whatever the engine's default was (value null)
# unknown not readable (value null)
#
# draft_sample: greedy | probabilistic verify: standard | block | relaxed
# adaptive: true | false topology: chain | tree-topk<N>
# A curve marked provisional was not measured for its model.

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.

🟡 nit (optional): identities.yaml opens with a 25-line header comment that describes the file, its naming scheme and the field vocabulary. AGENTS.md:56 forbids header comments describing a file or config. Fix: move this documentation to the golden_al_distribution README. Keep only short comments that give the reason for a specific line.

Why this was flagged

Lines 1-25 of the new identities.yaml are a header comment covering the file name scheme, the select keys, the fact sources and the value vocabulary. AGENTS.md:56 says "No header comments describing a file, topology, config, recipe, override, or section." The PR already rewrites README.md and README_zh.md, which are the natural home for this text. This is a convention violation with no runtime effect.

Verification: nit. Trigger: always; the new file ships a file-level header comment. identities.yaml lines 1-25 document the file naming scheme, the select keys, the collection fact sources and the value vocabulary. AGENTS.md:56 says "No header comments describing a file, topology, config, recipe, override, or section." Nothing breaks at runtime.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[by Claude Code] Fixed in 2db10e6. The header moved to the README (same change as cquil11's thread above).

@Ankur-singh

Copy link
Copy Markdown
Collaborator Author

[by Claude Code] Thanks for the reviews. 2db10e6 addresses them:

  • lookup --json now passes --golden-dir to curve_name, so the curve name and the AL come from the same directory.
  • The infx diff is down from +6,872 to +1,038/-103. Dropping the snapshot fixture removed most of it. What remains is mostly the 13 curve renames, identities.yaml and the new identity.py/spec_identity.py.

Curve selection is unchanged: every current agentic config still selects the same curve and golden AL.

Name every golden curve <model>__<method>__<draft>__<draft_sample>-<verify>.yaml
and describe it once in identities.yaml: a select block that curve_name matches
(model prefixes, method, and the draft family or draft sampler only where one
model's curves differ by them) and a collection block recording how the curve
was measured. Every current agentic config selects the same curve and golden
AL as before.

infx.srt_slurm.spec_identity describes a run's generation role in the same
vocabulary and reports where it differs from its curve's collection, without
changing the selection. A snapshot test pins the curve, golden AL and findings
of every speculative role in the agentic sweep matrix, and a parity test checks
identity selection against the previous rules.
…identities

Each curve's collection and each run's description now carry the draft's
weight quantization and the draft and target KV cache dtypes (fp8_e4m3 counts
as fp8, bfloat16 as bf16, auto as the engine default). They are audited only;
curve selection and names are unchanged.
Move the identities.yaml vocabulary into the README, drop the snapshot test
and its fixture, and keep only identity tests that exercise a selection or
normalization branch. lookup --json now names the curve from --golden-dir,
and speedbench-al rejects the reserved identities stem before collecting.
…将 AL 门禁迁移到规范化的曲线名称

#4654 landed the acceptance gate against the old curve file names. The gate now resolves its
curve from the same golden directory it reads values from, and its tests, the curve READMEs'
collection-settings notes and the launch fixtures use the standardized names.
@cquil11
cquil11 force-pushed the standardize-golden-al-curves branch from 7ebc1dd to cd8624d Compare November 4, 2026 19:33
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