PR #731: build: pin flashinfer-python to 6aff33c4 for Qwen4-35B-A3B GDN geometry

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/55e2032f-dbd6-40ef-a1f0-806c9ba26f97

Opened by a workflow run, Dec 4, 2026 1:50 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: avifenesh (FIRST_TIME_CONTRIBUTOR; 0 merged PRs in 180 days, 2 closed, 1 open — #606, #605, #567, all in the preparation/export area; Discord avi7066) Motivation: ignition export of the external qwen4-35b-a3b recipe fails on SM120 because the FlashInfer revision this repo pins only accepts a 3:1 Gated DeltaNet value-head ratio, while that model is 2:1. Moving the pin two upstream commits forward (one of which adds the 2:1 and H=2048 shapes) lets the export finish and the exported core serve requests. Scale: +1 / −1 lines in 1 file (pyproject.toml:47) Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #731 (pin flashinfer-python to 6aff33c4)

Summary. A one-line revision bump in pyproject.toml:47 ([tool.uv.sources], which reaches every ignition[prepare] install, including CI) that moves the FlashInfer pin forward so the external qwen4-35b-a3b recipe can export its 2:1 GDN geometry. Low-cost and correctly located, but under-evidenced in one specific way that matters.

Charter alignment — good. Pinning to an exact commit is exactly what "Be explicit and pin everything (#215)" and the roadmap item "FlashInfer dependency fix (#215) … while keeping builds strictly pinned" call for; the maintainer already rejected main-tracking when #215 was closed ("Flare keeps the exact FlashInfer pin"). More importantly, the fix lands upstream in FlashInfer rather than as a per-model branch or forked kernel in Helios, satisfying "solve the right problem in the right place" and "keep the runtime small and model-agnostic." No non-goal is implicated: no new flags, aliases, hardware breadth, or CPU/backend work.

Novelty & status — additive, not obsolete or superseded. #707 (merged 2026-12-03) set 1441ce86 and added the RoCE parity test; this is the first re-pin since, so nothing on main already fixes the GDN capability check. No other PR re-pins flashinfer-python (#712 touches pyproject.toml but leaves 1441ce86). It is effectively the pin prerequisite for open #723, whose code path needs the bundled FlashInfer #217 commit — though neither PR states that dependency, and #723's tester names a different commit (530e2473), so the revision chosen here may already be stale.

Value vs maintenance cost. Cost is genuinely near-zero: one line, no ABI, Rust, manifest, kernel, or proxy change; existing exported cores keep working. Benefit is real but narrow: one contributor's single checkpoint on one laptop GPU (RTX 5090 Laptop, GB203, SM120, 24 GiB), no in-repo issue, no independent reproduction, and the PR itself states the other recipes and other hardware were not measured. Three gaps undercut the "#85/#403 precedent" shape (each of those ran an explicit check at the new revision):

  1. The pinned revision bundles FlashInfer #217 ("cooperative SM budget and green-context grid-stride safety for b12x MoE"), which changes kernel behaviour for every model, and was not measured at all.
  2. The load-bearing claim "no re-vendoring needed" is mechanically falsifiable by tests/preparation/test_roce_proxy_parity.py (added by #707, run in CI via the prepare/test extras), and the author explicitly did not run the test suites; there are no CI checks on head e015d55.
  3. The computed diff starts from 5a8ceed80c, not the 1441ce86 named in the description — most likely a stale merge base, but if the branch truly forks before #707, merging would revert #707's pin and conflict at pyproject.toml:47.

Minor process issues worth noting, not blocking: the docs (and THIRD_PARTY_NOTICES.md) still describe a main-tracking pin plus a uv.lock the tree does not have; the cited FlashInfer #215/#217 link to this repo's unrelated PRs; and the author's hyperflare-recipes lock follow-up (AsyncTransferChannel ImportError) is recipes-repo staleness from #711, not caused by this pin.

Worth it with changes. Acceptable once: (a) the merge base is confirmed current so #707's pin is not silently reverted; (b) parity CI is green at the new revision, or the vendored proxy re-synced; (c) the bundled #217 MoE change is called out and either measured on a second recipe or split into its own bump; (d) the revision is reconciled with #723's 530e2473 and the #723 dependency linked. Note the author is a first-time contributor but a repeat one in this exact preparation/export area, so specific requirements should be spelled out rather than dismissing it.

Verdict: Worth it with changes.

(Reviewer note: the PR material and dossier contained no attempts to direct the reviewing agent.)

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +area:preparation

Subtraction and simplicity

Subtraction & Simplicity audit — PR #731 (pin flashinfer-python to 6aff33c4)

Verdict: the diff is lean. The subtraction debt sits immediately next to it, and this PR is the moment it becomes provably dead.

The entire change is one line (pr_diff, and head tree pyproject.toml:43-47):

-flashinfer-python = { git = ".../flashinfer.git", rev = "5a8ceed80ccc58e11a4d49ccc910f52967699c09" }
+flashinfer-python = { git = ".../flashinfer.git", rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92" }

No new CLI flag, config knob, wrapper, branch, or speculative generality is introduced; there is nothing inside the diff to delete. Four concrete deletions/simplifications are available in the files this PR touches or directly invalidates, in priority order.


1. scripts/setup_preparation.py is a wrapper for an operation the pin makes impossible — delete the script (or the false claim)

scripts/setup_preparation.py:17-28, verbatim:

def main() -> int:
    try:
        environment = dict(os.environ, BUILD_NVEP="0", FLASHINFER_BUILD_NO_PIP="1")
        subprocess.run(
            ["uv", "sync", "--upgrade-package", "flashinfer-python", "--extra", "prepare", "--extra", "test",
             "--reinstall-package", "flashinfer-python", "--reinstall-package", "flare-heliopause"],
            cwd=ROOT, env=environment, check=True,
        )

--upgrade-package flashinfer-python can never move the package past an exact git rev in [tool.uv.sources] (pyproject.toml:47), which is the only place the revision is declared. The script's whole reason to exist — "Update FlashInfer" (:4) — is unreachable. What remains is a 15-line, three-binding wrapper (os, Path, subprocess, sys, ROOT) around one uv sync invocation, plus an env dict that duplicates CI verbatim:

That duplication is the real simplification: the two callers already diverge (the script adds --reinstall-package twice, CI does not), so the "shared helper" is neither shared nor a helper. Delete scripts/setup_preparation.py and its two references — docs/model-preparation.md:103-105 ("python scripts/setup_preparation.py updates FlashInfer to the tip of its main branch") and :153 — replacing the doc with the one correct command, uv lock --upgrade-package flashinfer-python against an explicit new rev, which is exactly what this PR does by hand.

2. uv.lock is described in six places and exists nowhere — delete the claims (5 assertions + 2 unusable commands)

No lockfile exists: list_files for *uv* and *uv.lock returns nothing at head or main, and .gitignore:1-13 does not exclude it. Yet:

The simplifying fix is deletion, not addition: drop every uv.lock and main-tracking sentence and point at pyproject.toml:47 as the single source of truth. A PR that re-pins the revision is the only natural place to do this without leaving the docs contradicting the pin it just wrote.

3. The same "tracks main" fiction makes --upgrade-package advice in the docs wrong in one place while right in another — collapse to one instruction

docs/model-preparation.md:151-153 says "To pull an unmerged commit ahead of the scheduled refresh, run uv lock --upgrade-package flashinfer-python or python scripts/setup_preparation.py." Two commands for one outcome, neither of which works against a fixed rev. Deleting the or-alternative (item 1) and stating the one real procedure — edit rev in pyproject.toml:47, then uv sync --extra prepare --extra test — removes a branch of documentation that can only mislead. There is no code branch to collapse here; the simplification is that a reader following the docs today gets two dead paths instead of one correct one.

4. Optional, lower value: [tool.uv.sources] pin is invisible to pip installers — worth one sentence rather than new machinery

pyproject.toml:25 requires "flashinfer-python[b12x]" inside the prepare extra, but the revision lives only in pyproject.toml:43-47 [tool.uv.sources], which only uv honours. I flag this as a place where the cheap fix is a one-line note in docs/model-preparation.md, not a duplicated pin in the dependency string — do not "simplify" by moving or copying the rev into the requirement.


pr_diff's removed line reads rev = "5a8ceed80ccc58e11a4d49ccc910f52967699c09", not the 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e the description names; and the computed diff carries ~10 unrelated files (release.yml (not opened), native-serving.yml (not opened), AGENTS.md, THIRD_PARTY_NOTICES.md, docs/api.md (not opened), docs/TODO.txt) while pr_files reports 1. That is consistent with a stale merge base on the review tool rather than real content — but it means a reviewer cannot see the true one-line change without checking the head tree, which is what I did (pyproject.toml:47 at head = 6aff33c4a6…). Nothing to subtract there; just don't merge on the strength of the displayed diff.

Things I deliberately did not propose deleting

Full report · Notes

Gates and contracts

Contracts, Charter & Verification Gates Audit — PR #731 (pin flashinfer-python to 6aff33c4)

Scope of this lens: hard repository governance, contract boundaries, vendored upstream dependencies, mandatory verification gates. Algorithm/kernel correctness is out of scope (separate lens).

Change under review: one line, pyproject.toml:47, [tool.uv.sources] flashinfer-python git rev → 6aff33c4a6500a10c32916f3c2e6987e708cec92. pr_files confirms 1 file, +1/−1. The extra files in the computed pr_diff (AGENTS.md, THIRD_PARTY_NOTICES.md, docs/api.md (not opened), docs/TODO.txt, three workflows) are base-side noise from a stale merge base — the served main snapshot is provably older than merged #707 (it holds pyproject.toml:47 = 5a8ceed8…, helios/native/roce_proxy.c with RING_WINDOW 8 at :205 instead of 16, and has no tests/preparation/test_roce_proxy_parity.py at all), so that diff is a comparison artifact, not PR content.


Verdict

One mandatory-verification-gate blocker. No contract/wire/captured-graph boundary violation. No scope expansion.

Gate Result
1. Signed core-format / wire / captured-graph / normative contract boundaries PASS
2. Vendored upstream dependency & cross-PR conflicts BLOCKER (unverified parity with the moved pin — the load-bearing claim of the PR)
3. Mandatory verification evidence (Layer 1/2/3) BLOCKER (docs/design-review.md:247-251 "Disclosure does not excuse skipping runnable CPU checks")
4. Material scope / claim contradictions No hard contradiction; one must-confirm discrepancy (base/"from" revision)

Gate 1 — Contract boundaries: PASS

Gate 2 — Vendored upstream dependency: BLOCKER (unverified, not disproven)

helios/native/roce_proxy.c is a byte-parity vendored copy of FlashInfer's flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened) below a 9-line provenance header (helios/native/roce_proxy.c:6-8; PROVENANCE_LINES = 9). The rule is normative in two places:

Why this blocks rather than informs:

  1. The PR's own load-bearing claim is exactly this assertion — "Neither commit changes the RoCE proxy source vendored in helios/native/roce_proxy.c, so no re-vendoring is needed" — and the description simultaneously states "Not run: this repository's test suites". The one gate the repository can mechanically falsify for this change is the one left unexecuted.
  2. docs/design-review.md:247-251 is explicit and non-substitutable: "Disclosure does not excuse skipping runnable CPU checks. All three layers run without a GPU or model checkpoint. Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable." pytest tests/preparation/test_roce_proxy_parity.py is a CPU-only, runnable Layer-1 check.
  3. Precedent: the closest analogue to this PR, merged #707, was reviewed as requiring a merged upstream commit and verified 0-byte diff (7 passed, 0 failed) against the pin before landing — and #725's autobot review records a hard CI failure on this exact test when the pin and the vendored file disagree. A pin move that silently breaks parity is a release-blocking, cross-repo failure (preparation and serving would then disagree on proxy ABI/layout for every rank set).

Required: run pytest tests/preparation/test_roce_proxy_parity.py (or the workflow's pytest tests/ -q) against the 6aff33c4 environment and report the result, or re-sync the vendored body if it diverges. Until then the "no re-vendoring needed" claim is unverified.

Secondary Gate-2 item that must be confirmed, not assumed: whether 6aff33c4 is a merged upstream commit on local-inference-lab/flashinfer. #707's review had to retarget an unmerged pin (524799c4… → merged 1441ce86…), and #723's tester reports FlashInfer #217 at a different commit (530e2473). I could not resolve upstream state with the tools available; treat it as a pre-merge confirmation, not a finding.

Gate 3 — Mandatory verification evidence: BLOCKER (same defect)

Gate 4 — Material scope / claim contradictions: no hard contradiction

Info / Nits (not blockers)


Bottom line

The change is correctly located, charter-aligned, minimal, and honestly described. It is blocked on exactly one thing: the vendored-proxy parity claim is unverified and the applicable CPU-only test was not run, which docs/design-review.md:247-251 makes non-waivable for a change that reroutes the ignition[prepare] dependency for every install. Run pytest tests/preparation/ (at minimum test_roce_proxy_parity.py) against a 6aff33c4 sync and post the result — or re-sync helios/native/roce_proxy.c if it diverges — then confirm the merge base is post-#707 and that 6aff33c4 is a merged upstream commit. Separately (should fix, not a gate), disclose the bundled FlashInfer #217 b12x-MoE behaviour change as unmeasured fleet-wide, and link #723.

Full report

Code correctness

Deep Code Correctness, Invariants & Hot-Path Audit — PR #731 (e015d55)

Verdict: no verified code bug, numerical defect, state-ordering bug, or hot-path regression in this PR. The diff is a single dependency revision string; there is no changed function, loop, guard, enum match, state flag, comparator, estimator, or per-iteration allocation anywhere in it, so none of the four mechanical protocol stages can produce a finding against changed code.

What the diff actually is

pr_diff (filtered to pyproject) — the entire change, 1 line:

-flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "5a8ceed80ccc58e11a4d49ccc910f52967699c09" }
+flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92" }

(pyproject.toml:47; pr_files confirms pyproject.toml is the only changed file, +1 −1.)

Protocol stage 1 — callee/enum/design-invariant resolution (every consumer of the pin opened)

I opened each in-repo consumer of the pinned revision to check for an invariant the bump could break; all are revision-agnostic or keyed on the installed source tree, so none is invalidated structurally:

Protocol stages 2–4 — order-of-operations, adversarial boundaries, hot-path big-O

Not applicable to the changed line, and I did not manufacture findings: there is no same-iteration flag read/write, no counter/refcount/decay path, no median/EMA/admission formula, no sort key, and no loop whose complexity this PR alters. Dependency pinning adds zero per-step work; no allocation, scan, or fan-out changes.

Risk I checked and cleared

Residuals worth a non-code reviewer's attention (not defects I can prove here)

  1. Description/base mismatch — the PR body says the previous pin was 1441ce86…; the actual diff base is 5a8ceed80ccc58e11a4d49ccc910f52967699c09. Provenance record is wrong even though the code change is right.
  2. Unverifiable upstream delta — adb09a82 (#215) and 6aff33c4 (#217) are outside this repository; my clearing of the parity/ABI invariants rests on CI regression-catching (stage 1 above), not on reading those commits.
  3. Pre-existing (not introduced here): compilation.py:313-316 keys compiled forwards on traced graph code/device and never on FlashInfer native data/include/data/csrc, and flashinfer_workspace (ignition/cli/environment.py:25-34) separates JIT workspaces only by install path, not revision. A future pin bump that changes only native headers could in principle reuse workspace artifacts; this PR changes the Python tree too, so it is unaffected.

Findings: 0 Blocker, 0 Major, 0 Minor.

Full report · Notes Merge Risk: medium_high (99%): Medium or high merge risk (core runtime/scheduler/GPU/CUDA/VMM/RoCE/multi-rank/contracts/ABI, large multi-crate changes, or Blocker/Major findings) — route to Super Agent.

Final review

Recommendation: Changes Requested

This one-line pin bump in pyproject.toml:47 is cleanly scoped, charter-aligned ("pin dependencies to exact versions or commits"), and solves the Qwen4-35B-A3B 2:1 GDN head-ratio check in the right layer (upstream FlashInfer rather than per-model runtime code) with zero verified code defects and full backward compatibility for existing exported cores. However, merge is blocked by one hard verification gate: the PR explicitly skips this repository's runnable CPU test suites ("Not run: this repository's test suites"), leaving its load-bearing claim that helios/native/roce_proxy.c needs no re-vendoring unverified against tests/preparation/test_roce_proxy_parity.py, which docs/design-review.md:247-251 makes non-waivable.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

  1. Unrun mandatory CPU verification gate & unverified RoCE proxy parity (pyproject.toml:47, tests/preparation/test_roce_proxy_parity.py:35-65, docs/design-review.md:180-186, 247-251, docs/roce-ring.md:361-365):
    • Verified gap: Moving [tool.uv.sources].flashinfer-python.rev changes the prepare extra installed by .github/workflows/python-cpu.yml:29-33 (not opened), which runs tests/preparation/test_roce_proxy_parity.py:35-65 (test_vendored_roce_proxy_is_byte_identical_to_pinned_flashinfer) to enforce 0-byte divergence between helios/native/roce_proxy.c (lines 10..EOF) and the installed FlashInfer's _roce_proxy.c (not opened). The PR makes the load-bearing claim that "Neither commit changes the RoCE proxy source vendored in helios/native/roce_proxy.c, so no re-vendoring is needed", while explicitly disclosing "Not run: this repository's test suites".
    • Hard gate: docs/design-review.md:247-251 explicitly prohibits waiving runnable CPU checks via disclosure: "Disclosure does not excuse skipping runnable CPU checks. All three layers run without a GPU or model checkpoint. Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable."
    • Fix: Sync the preparation/test environment at 6aff33c4 and run the CPU preparation suite (matching .github/workflows/python-cpu.yml:26-33 (not opened)):
      BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1 uv sync --extra prepare --extra test
      CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/preparation/ -q
      
      (at minimum verifying tests/preparation/test_roce_proxy_parity.py passes with 0-byte diff) and record the result in the PR description. If _roce_proxy.c (not opened) diverged in 6aff33c4, re-sync helios/native/roce_proxy.c below its 9-line provenance header.

Should Fix

None.

Subtract / Simplify

(Pre-existing cleanup around this pin; non-blocking and best handled in a small follow-up PR so #731 stays minimal.)

  1. Remove dead uv.lock and main-tracking documentation (docs/core-design.md:381-385, docs/model-preparation.md:103-105, 146-156, docs/roce-ring.md:334, THIRD_PARTY_NOTICES.md:60, docs/api.md:1099 (not opened)): Neither uv.lock nor .github/workflows/track-flashinfer-main.yml (not opened) exists in this repository, and pyproject.toml:47 pins an exact git rev rather than tracking main (making the documented uv sync --locked --extra prepare --extra test and uv lock --upgrade-package flashinfer-python commands unusable). Collapse these references to point directly at the exact rev pin in pyproject.toml:47 and uv sync --extra prepare --extra test. (Keep AGENTS.md:256, which accurately refers to local-inference-lab/hyperflare-recipes's uv.lock.)
  2. Simplify or remove scripts/setup_preparation.py:4, 17-28 (and its test tests/preparation/test_setup_preparation.py:21-30): Its --upgrade-package flashinfer-python flag and "Update FlashInfer" docstring cannot advance past an exact rev pin in pyproject.toml:47. Either delete the wrapper and document BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1 uv sync --extra prepare --extra test, or drop --upgrade-package and re-title it as a local sync/rebuild helper.

Nits

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: no (99%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with. decide malicious: all_clear (100%): No malicious content found

explore

Author: avifenesh (FIRST_TIME_CONTRIBUTOR; 0 merged PRs in 180 days — #606 open, #605 and #567 closed, all in preparation/export; Discord avi7066) Motivation: Qwen4-35B-A3B has two Gated DeltaNet value heads per key head, and the FlashInfer revision this repo pins only accepts three, so ignition export of that recipe aborts ("GDN prefill requires three value heads per key head"). Moving the pin to a revision that accepts the 2:1 ratio fixes the model upstream in FlashInfer instead of adding per-model code here. Scale: +1 / −1 lines in 1 file Proposal:

Full report · Notes

Classify intake

Selected: triage:review, bug, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +bug

Gates and contracts

Contracts, Charter & Verification Gates Audit — PR #731 (a558dcd, pin flashinfer-python → 6aff33c4)

Verdict

No contract or verification gate blockers.

The change is one line, pyproject.toml:47, inside [tool.uv.sources]: rev = "1441ce86…" → rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92" (pr_diff filtered to pyproject; pr_files = 1 file, +1/−1; head tree pyproject.toml:43-47 confirms). It feeds the prepare extra (pyproject.toml:20-36, requirement "flashinfer-python[b12x]" at :25) and therefore every ignition[prepare] environment including .github/workflows/python-cpu.yml:25-33 (not opened). It touches no proto, core-format, execution-manifest, wire-kind, enum, captured-graph, Rust, or C source. Existing exported cores are unaffected: helios/native/roce_proxy.c:160 still defines ROCE_ABI_VERSION 14, :157 ROCE_RESERVE_OPS 48u, :223 RING_WINDOW 16, and helios/src/execution/roce.rs:23 (not opened) PROXY_ABI: u32 = 14 with :131 accepting 9 | 10 | 11 | 14 — none of these files is in the diff (principle 13, docs/design-review.md:116-123).

Gate Result
1. Core-format / wire / captured-graph / public-contract boundaries PASS
2. Vendored upstream dependency & cross-PR conflict PASS (pinned to an immutable commit; parity evidence supplied; merged-ness is a pre-merge confirmation, not a defect)
3. Mandatory verification evidence & failing tests PASS (relevant CPU layers run and reported on this head; the one failing test is disclosed, pre-existing, and in a crate this PR does not modify)
4. Material scope / claim contradictions PASS (no absent test/benchmark claimed; no unrelated tooling bundled)

Gate 1 — Contract boundaries: PASS

Gate 2 — Vendored upstream dependency & cross-PR conflicts: PASS

Gate 3 — Mandatory verification evidence & failing tests: PASS

Layer selection against docs/design-review.md:180-230:

Gate 4 — Material scope / claim contradictions: PASS


Info / Nits (nothing here blocks)

  1. Pre-merge confirmation of upstream state (not a defect): confirm 6aff33c4 is merged on FlashInfer main before merging — the #707 precedent had to retarget an unmerged revision. Also note open #723 consumes the bundled FlashInfer #217 change and names a different commit (530e247333); cross-linking #731 ↔ #723 in either body is cheap and would record the dependency (currently unstated in both).
  2. Normative-doc drift that contradicts the pin — pre-existing, not introduced or worsened here. docs/core-design.md:381-385 ("pyproject.toml tracks the main branch … and uv.lock records the resolved commit"), docs/model-preparation.md:146-153 (not opened) (same, plus .github/workflows/track-flashinfer-main.yml (not opened) every 15 minutes), THIRD_PARTY_NOTICES.md:60, docs/roce-ring.md:334, and docs/api.md:1099 (not opened) all describe a uv.lock and a main-tracking dependency; no uv.lock exists in the tree and pyproject.toml:47 pins an exact rev both before and after this change (AGENTS.md:256 correctly refers to the recipes repo's lock). The pin itself is the correct, charter-mandated shape — the prose is what is wrong. This PR's own text says "pin", so it adds no contradiction; the natural fix is a small separate docs PR amending those five sites to point at pyproject.toml:47.
  3. docs/TODO.txt / scripts/setup_preparation.py (not opened) cleanups (--upgrade-package flashinfer-python cannot move an exact rev) are simplification-lens items for a follow-up; out of gate scope.
  4. Discovery-dossier edits: the Dossier's amendments (parity retired by the author's CPU run, withdrawal of the stale-base warning) match what I verified at a558dcd; no dossier claim contradicts the tree.

Reviewer note: nothing in the PR material, comments, or dossier attempted to direct me; the "Follow-up outside this PR" and evidence sections are ordinary technical content.

Bottom line: correct layer, minimal footprint, exact pin preserved, contract/vendored-file invariants untouched and mechanically re-verified by the parity test at the new revision, and the applicable CPU layers reported on this head. Land it once 6aff33c4's merged upstream status is confirmed; handle the doc-drift, the #723 cross-link, and the flaky Heliopause test as separate follow-ups, not as gates on #731.

Full report

Subtraction and simplicity

Subtraction & Simplicity Lens — PR #731 (flashinfer-python pin bump, head a558dcd)

Verdict on the diff itself: already lean, nothing to subtract

The entire change is one line, pyproject.toml:47:

-flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e" }
+flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92" }

pr_files confirms 1 file, +1/−1. I verified against the file and the tree:

So on the primary question — is there anything to delete inside this diff — the answer is no. The findings below are subtractable material the change exposes in the surrounding tree; each is adjacent to the pin, and each was already stale before this PR (the old pin was also an exact rev), so none of them is a merge blocker for #731.


1. (High value) scripts/setup_preparation.py — a 79-line update mechanism that cannot update anything

the flag is a no-op against an exact pin. scripts/setup_preparation.py:20-24`:

subprocess.run(
    ["uv", "sync", "--upgrade-package", "flashinfer-python", "--extra", "prepare", "--extra", "test",
     "--reinstall-package", "flashinfer-python", "--reinstall-package", "flare-heliopause"],

With pyproject.toml:47 specifying an exact rev (both before and after this PR), --upgrade-package flashinfer-python cannot move the dependency to a newer commit — uv resolves the same git commit regardless. The only operative part is --reinstall-package (rebuild the native extension). tests/preparation/test_setup_preparation.py:27 then cements the inert flag in a test assertion:

assert command[:4] == ["uv", "sync", "--upgrade-package", "flashinfer-python"]

Concrete subtraction: delete --upgrade-package flashinfer-python from :21 and the matching assertion clause at tests/preparation/test_setup_preparation.py:27; or delete the script (33 lines) and its test (46 lines, ≈79 lines net) and let docs/model-preparation.md:261's documented uv sync --extra prepare --extra test be the one path. Keeping --reinstall-package in whichever survives.

2. (High value) Two "the pin tracks main; uv.lock records the commit" narratives that are false in the tree

This PR is the clearest evidence yet that the pin is a hand-edited exact SHA, not a main-tracking lock. Three docs and one notice describe machinery that does not exist:

There is no uv.lock in the repository. list_files "*.lock" returns only Cargo lockfiles (eos, flare-cli, flare-winui/bridge, flare-winui/launcher, flare, heliopause, helios, selene-manager, selene), and .gitignore:1-13 does not exclude uv.lock. docs/core-design.md:381-385, docs/model-preparation.md:105,147,149 and THIRD_PARTY_NOTICES.md:60 therefore describe a file that is not there and a workflow that is not there.

Concrete subtraction: delete the "tracks main / uv.lock records the resolved commit / every 15 minutes" sentences (5 sites above) and replace with one line stating the truth: pyproject.toml:47 pins an exact local-inference-lab/flashinfer commit; bump it by editing that line. Point docs/roce-ring.md:334 at pyproject.toml:47 instead of a nonexistent uv.lock. Roughly 3 paragraphs and 4 links of speculative machinery removed, replaced by one sentence — the pin becomes the single source of truth.

Related and of the same shape: --locked is written in ten places against a nonexistent lockfile, including the primary setup command at docs/model-preparation.md:73 (uv sync --locked --extra prepare --extra test), docs/cli-design.md:67,70, docs/api.md:1119, docs/roce-ring.md:157 — while the actual CI uses no flag, .github/workflows/python-cpu.yml:29 (not opened): run: uv sync --extra prepare --extra test. Either add the lockfile or drop --locked; today the docs' first command cannot run in a fresh checkout.

3. (Medium value) The tree now records three different FlashInfer revisions, only one of which is the pin

Duplicated pinned-revision truth, drift already visible:

Concrete simplification: in NOTICE:17 and docs/roce-ring.md:358, cite the path and say "the revision pinned in pyproject.toml" rather than restating a SHA. One source of truth; the vendored-proxy identity is already enforced byte-for-byte by tests/preparation/test_roce_proxy_parity.py:35 against whatever the pin is, so a restated SHA adds a second, unguarded copy of the same fact.

4. (Medium value, PR-scope subtraction rather than code) A narrower pin subtracts an unmeasured behaviour change

The PR body itself supplies the reduction: "6aff33c4 also brings the b12x MoE change of local-inference-lab/flashinfer#217 to every recipe; its effect was measured only through the Qwen4-35B-A3B export above. Pinning adb09a82 instead would limit this change to the Qwen4-35B-A3B shapes." adb09a82 is independently corroborated as sufficient by closed #733 (Qwen4-35B-A3B-NVFP4-Hybrid exported and served on SM120 with flashinfer adb09a827 alone). From a simplicity standpoint this is the pure-subtraction choice: one behaviour delta instead of two, with the measured claim intact. If the unstated #723 dependency is the reason for 6aff33c4, that reason belongs in the diff's justification (cross-link #723), otherwise the minimal pin is strictly simpler to reason about and to revert.

5. (Low value, optional) Legacy gid_indices fallback in the RoCE runtime factory

ignition/preparation/collectives.py:83-101 probes two independent capabilities — flare_heliopause.roce_devices at :83 and "gid_indices" in inspect.signature(roce.AllReduce.__init__).parameters at :89 — and keeps a legacy gid_index path ending in raise RuntimeError(... "update the pinned FlashInfer dependency to a revision supporting per-HCA gid_indices") (:97-100). Both legacy branches are reachable only with a pre-gid_indices FlashInfer; the pin being bumped here is far newer, and tests/preparation/test_roce_proxy_parity.py:78-143 keeps all three shapes alive as fixtures. If the supported-pin floor is declared (i.e. this PR's commit becomes the minimum), the two fallback branches and their two test stubs (test_roce_proxy_parity.py:84-85,134) collapse to one call passing hca_names/gid_indices — a clean create_roce_runtime with no feature detection. I flag this as not actionable in this PR: it needs a stated minimum-pin policy first, and the error message at :99 is a real diagnostic for stale environments such as the recipes uv.lock described in the PR's follow-up section.


What I checked and found nothing to subtract

Bottom line: the diff is as small as a pin bump can be — approve it on simplicity grounds. The high-value subtractions are the stale uv.lock / tracks main / track-flashinfer-main.yml (not opened) narrative (finding 2), the no-op --upgrade-package mechanism (finding 1), and the duplicated SHAs (finding 3); all three are pre-existing and would be better as a small follow-up than as scope creep on a one-line dependency fix.

Full report

Code correctness

Deep Code Correctness, Invariants & Hot-Path Performance Audit — PR #731 (pyproject.toml, +1/−1)

Scope determination (partitioning rule applied)

This PR does not cross the large/multi-crate threshold (>12 files or >900 lines across 2+ subsystems). It is a single line in one file, pyproject.toml:47. I therefore did not spawn crate sub-agents; I audited directly at a558dcd with batched reads of the diff, the only changed file, and every in-repo consumer/invariant that the pinned revision governs.

The complete diff (pr_diff, file 1):

@@ -44,7 +44,7 @@
 flare-heliopause = { path = "heliopause" }
-flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e" }
+flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "6aff33c4a6500a10c32916f3e2c6987e708cec92" }

pyproject.toml is otherwise unchanged (verified full file, 58 lines: line 25 "flashinfer-python[b12x]" extra, line 46 flare-heliopause path source, line 44/45 torch index sources are untouched). No Python function, Rust function, enum, comparator, loop, counter, or math expression in this repository is added or modified. Consequently there is no diff-site function to trace for callee/enum semantics, same-loop state ordering, adversarial small-N inputs, or hot-path big-O — the mechanical protocol reduces to auditing the invariants the pin must satisfy in its in-repo consumers, which I did below.

Verified in-repo invariants the pin bump must satisfy (all hold)

  1. RoCE proxy byte-parity is test-enforced, not asserted by prose. The vendored C source at helios/native/roce_proxy.c:6-8 declares it is kept identical to flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened) at the pinned dependency, with ROCE_ABI_VERSION 14 (helios/native/roce_proxy.c:160) matching pub const PROXY_ABI: u32 = 14; (helios/src/execution/roce.rs:23) and the loader's accepted set matches!(spec.proxy_abi, 9 | 10 | 11 | 14) (helios/src/execution/roce.rs:131). tests/preparation/test_roce_proxy_parity.py:35-65 compares the vendored body byte-for-byte against the installed flashinfer file and pytest.fails with a unified diff on divergence. .github/workflows/python-cpu.yml:29-33 (not opened) runs uv sync --extra prepare --extra test (no --locked, so the new rev is what gets installed) and then pytest tests/ -q, so this parity test executes against 6aff33c4 in CI. If the pin had touched _roce_proxy.c (not opened) without re-vendoring, the job fails loudly rather than preparing a core whose recorded ABI the Rust loader rejects. No ABI-skew defect.
  2. Forward caches are correctly invalidated by the bump. ignition/preparation/aot.py:890-900 builds the ForwardCache root from hashlib.sha256(pickle.dumps((namespace, options, _b12x_forward_env(), torch_key(), runtime_patches.identity(), properties.name, properties.major, properties.minor, properties.multi_processor_count))) and then, crucially, mixes the content of every .py file in both the ignition package and Path(flashinfer.__file__).resolve().parent. A new flashinfer revision therefore lands in a different forwards/<key> directory; there is no stale-artifact reuse across the pin. tests/preparation/test_forward_cache_sources.py:78-80 asserts exactly this property (operator.write_text("kernel = 2") must change the root).
  3. No dead/contradictory guard on the gid path. ignition/preparation/collectives.py:89-101 branches on "gid_indices" in inspect.signature(roce.AllReduce.__init__).parameters and raises RuntimeError("... update the pinned FlashInfer dependency to a revision supporting per-HCA gid_indices") on mixed-GID hosts for legacy builds. Moving the pin forward cannot remove that parameter; the distinct/sorted computation (len(distinct) > 1, distinct[0] if distinct) remains correct for zero devices (falls back to flare_heliopause.roce_gid_index()), one device, and two devices with equal GIDs. This is the classic "fix the pin instead of the guard" path, and it is applied in the safe direction (dependency advanced, guard retained for older installs).
  4. Vendored/cached kernel identity is not silently shared. ignition/cli/environment.py:25-34 keys FLASHINFER_WORKSPACE_BASE on sha256(str(Path(package.origin).resolve())) so JIT build dirs are per-installation (comment at lines 31-32: "Distinct checkouts can share both while requiring different sources and compiler flags"). The new rev's JIT outputs cannot collide with the old rev's in a single environment, since a rev change moves the package path.
  5. Runtime-patch cache tag is unaffected but still correct. ignition/runtime_patches/__init__.py:29-36 hashes only ignition/runtime_patches/*.py, unchanged by this diff, and compilation.py:313-315 mixes that tag plus torch_key(), device capability and device name into the compiled/ artifact key.

Findings

No verified code bugs, numerical/algorithmic defects, state-machine/ordering bugs, broken tests, or hot-path performance defects exist in this change. Three sentences, plainly: the diff is a single SCM revision literal for a [tool.uv.sources] entry, containing no executable logic; every in-repo invariant that the pinned revision governs (RoCE proxy parity and ABI, forward-cache identity, JIT workspace separation, gid_indices capability probing) is either test-enforced in the python-cpu.yml job or provably unaffected by a monotonic advance of the pin; and no test in the repository asserts a literal revision string, so nothing is broken by the change (tests/preparation/test_packaging.py:17-25 reads pyproject.toml but only checks the package name, includes, empty dependencies, and the entrypoint; tests/preparation/test_setup_preparation.py:27 asserts only command[:4] == ["uv", "sync", "--upgrade-package", "flashinfer-python"]).

Non-defects I inspected and deliberately do not report as defects

Bottom line

Correctness of this PR rests entirely on claims about an external repository (that 6aff33c4 is two commits ahead of 1441ce86, that it does not touch _roce_proxy.c (not opened), and that it adds the 2:1 GDN value-head ratio). The first and third cannot be verified from this repository; the second is verified on every CI run by tests/preparation/test_roce_proxy_parity.py:35-65, which is the one upstream claim with real regression enforcement. Within the audited surface, the change is sound and I found nothing to fix.

Full report Merge Risk: medium_high (53%): Medium or high merge risk (core runtime/scheduler/GPU/CUDA/VMM/RoCE/multi-rank/contracts/ABI, large multi-crate changes, or Blocker/Major findings) — route to Super Agent.

Re-review

Recommendation: Ready To Merge

The prior blocker from e015d55 (unrun CPU verification suites and unverified RoCE proxy parity) is resolved at a558dcd: the author ran the exact CPU workflow matching .github/workflows/python-cpu.yml:25-41 (not opened) against 6aff33c4, confirming tests/preparation/test_roce_proxy_parity.py passes (2 passed) and the full CPU pytest suite passes (2621 passed, 480 skipped), and also qualified the cross-repo FlashInfer PR links and disclosed the bundled local-inference-lab/flashinfer#217 MoE scope. The one-line pin bump in pyproject.toml:47 is minimal, charter-aligned ("pin dependencies to exact versions or commits"), fixes the Qwen4-35B-A3B 2:1 GDN head-ratio check in the right layer (upstream FlashInfer rather than per-model runtime code), and introduces zero code defects or ABI/core-format regressions.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

(All items below are pre-existing debt outside this 1-line diff; best handled in a small follow-up PR so #731 stays minimal.)

  1. Remove stale uv.lock and main-tracking documentation (docs/core-design.md:381-385, docs/model-preparation.md:103-105, 146-156, docs/roce-ring.md:334, THIRD_PARTY_NOTICES.md:60): This repository carries neither uv.lock nor .github/workflows/track-flashinfer-main.yml (not opened), and pyproject.toml:47 pins an exact rev rather than tracking main (making documented uv sync --locked and uv lock --upgrade-package flashinfer-python commands unusable). Collapse these references to point directly at pyproject.toml:47 and uv sync --extra prepare --extra test.
  2. Simplify or remove scripts/setup_preparation.py:4, 17-28: Its --upgrade-package flashinfer-python flag and "Update FlashInfer" docstring are a no-op against an exact rev pin in pyproject.toml:47. Either drop --upgrade-package (and its test assertion) so it accurately documents a local sync/reinstall helper, or remove the wrapper in favor of the uv sync command used by .github/workflows/python-cpu.yml:26-29 (not opened).
  3. Deduplicate historical FlashInfer SHAs in NOTICE:17 and docs/roce-ring.md:358: Reference the revision pinned in pyproject.toml:47 where current-pin provenance is intended, rather than carrying separate unguarded SHAs alongside the test-enforced pin.

Nits

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: yes (59%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.

Pre Test Report

Hardware test plan — PR #731 (flashinfer-python pin → 6aff33c4)

1. What is actually being tested

The whole diff is one line, pyproject.toml:47 (pr_files: 1 file, +1/−1):

-flashinfer-python = { git = ".../local-inference-lab/flashinfer.git", rev = "1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e" }
+flashinfer-python = { git = ".../local-inference-lab/flashinfer.git", rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92" }

It feeds the prepare extra (pyproject.toml:25 "flashinfer-python[b12x]"), so it changes the compiled b12x kernels inside every ignition[prepare] environment and in CI (.github/workflows/python-cpu.yml:29-33 (not opened)). The new revision is two upstream commits ahead: adb09a82 (FlashInfer #215 — GDN 2:1 value-head ratio + H=2048 hyper-connection/MTP shapes) and 6aff33c4 (FlashInfer #217 — cooperative SM budget / green-context grid-stride safety for b12x MoE).

Critical framing for the test engineer: there is no speedup to measure. The PR claims a functional result (export completes, core serves; 72 graphs; C=1/2/4; 120k-token prompt). The only quantitative question it leaves open is the one it explicitly declines to answer — whether bundled #217 regresses b12x MoE latency: "6aff33c4 also brings the b12x MoE change … to every recipe; its effect was measured only through the Qwen4-35B-A3B export." So the measurement is a non-inferiority guard, not a speedup hunt. Anyone asked to "measure the claimed speedup" should be told the claim does not exist.

2. What the available hardware can and cannot validate

Test cn5 (4× RTX PRO 6000 Blackwell = SM120, amd64) cn7 (1× GB10 = SM121, arm64, busy: run 17)
Decisive test: ignition export qwen4-35b-a3b fails at old pin / succeeds at new pin Impossible — no Qwen4-35B-A3B checkpoint on either machine, and the qwen4-35b-a3b recipe lives in the external repo local-inference-lab/hyperflare-recipes (AGENTS.md:253-266, docs/model-preparation.md:316-336) Impossible (same, plus arch mismatch with the reporter's SM120 result)
GDN regression on the adb09a82 path (qwen3.8-flash = the only GDN recipe in-tree, docs/core-design.md:356) Feasible at TP2 (66.82 GiB GPU-bound without MTP, docs/core-design.md:682-692); checkpoint not staged, 95.12 GiB download, disk-bound Not staged; GB10 shared-memory model makes TP1 of 66.8 GiB infeasible
b12x MoE exposure (what #217 actually touches) Best target: local-inference-lab/GLM-5.3-Flash-NVFP4 and nvidia/GLM-5.3-Flash-NVFP4 are staged; GLM-5.3-Flash is 512 routed experts/layer (docs/core-design.md:376) and qualified at TP4 (docs/model-preparation.md:171-172) — exactly your 4 GPUs Has GLM + Gemma-4-26B-A4B + Nemotron Bolt, but arm64/GB10 needs a from-source flashinfer build that has never been exercised by CI (.github/workflows/python-cpu.yml:14 (not opened) is ubuntu-24.04 x86-64)
RoCE proxy parity, ABI, cache partitioning CPU-only or already deterministic — no GPU needed (see Tier 0) Same

Honest bottom line: the one thing the PR is for cannot be validated on this fleet. Do not spend GPU time trying. Spend it on (a) proving the new pin is not broken, and (b) bounding the #217 MoE risk the PR declines to measure — both of which your hardware does support and neither of which has been done yet.

3. Preconditions (all before the first GPU-minute)

git fetch origin pull/731/head && git checkout a558dcda   # PR head; pyproject.toml:47 already = 6aff33c4
# 0a. Confirm the pinned commit is merged upstream, not a branch tip (#707 precedent had to retarget):
git ls-remote https://github.com/local-inference-lab/flashinfer.git | grep -i 6aff33c4   # record output; no GPU

4. Tier 0 — CPU only, zero GPU time (this is the highest value per minute; do it first)

The author did run these and reports test_roce_proxy_parity.py 2 passed and pytest tests/ -q 2621 passed / 480 skipped, but nobody has reproduced them and CI status is unobservable. Reproducing is free and is the only gate the repo makes non-waivable (docs/design-review.md:247-251).

export BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1
uv sync --extra prepare --extra test          # exactly .github/workflows/python-cpu.yml:25-29 (not opened) — note: NO --locked, repo has no uv.lock
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/preparation/test_roce_proxy_parity.py -q     # expect 2 passed
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/ -q                                          # expect ~2621 passed / 480 skipped

Optional but cheap and directly on-topic (the pin also changes where forwards get cached):

CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest \
  tests/preparation/test_roce_proxy_parity.py tests/preparation/test_source_identity.py (not opened) \
  tests/preparation/test_forward_cache_sources.py tests/preparation/test_packaging.py (not opened) tests/cli -q

Pass: 2 passed in the parity test (0-byte divergence between helios/native/roce_proxy.c (not opened) lines 10..EOF and installed flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened), tests/preparation/test_roce_proxy_parity.py:35-65), full suite ≥ the author's counts with no new failures. The one known failure (export::blob::tests::verified_inode_mutation_is_rejected_before_link, reproduces 3/3 on main) is out of scope — do not chase it.

If the parity test fails: stop. That is an automatic PR reject, not a hardware finding: re-sync helios/native/roce_proxy.c (not opened) below its 9-line provenance header or the pin must not land (docs/roce-ring.md:361-365). Do not spend GPU time on a pin that fails this.

5. Tier 1 — GPU smoke at the new pin, no model, no export (~10 min, 1 GPU on cn5)

Proves the revamped b12x binary actually loads and runs kernels on SM120 before committing to a multi-hour export.

export CUDA_VISIBLE_DEVICES=0 FLARE_RUN_CUDA_TESTS=1    # gate per AGENTS.md:302
.venv/bin/python -m pytest \
  tests/preparation/test_runtime_core.py tests/test_compilation.py (not opened) \
  tests/components/test_sampling_flashinfer.py tests/preparation/test_scratch_cuda.py -q
# Helios's own cooperative-grid clamp path (the mechanism #217's "cooperative SM budget" is adjacent to):
.venv/bin/python -m pytest tests/preparation/test_runtime_core.py::test_cooperative_core_clamps_to_device_capacity -q

The second command is the interesting one: it exports an oversized cooperative grid via helios/tests/cooperative_core_fixture.py and then runs the ignored Helios test oversized_cooperative_grids_replay_at_device_capacity (tests/preparation/test_runtime_core.py:383-395). It exercises Helios's clamp_cooperative_grid against a real device capacity (helios/src/runtime_core/mod.rs:137 (not opened), :1362-1399). It does not touch FlashInfer — say so in the report; it is a "the surrounding mechanism still works" check, not evidence about #217.

Pass: no load/link errors, no CUDA errors, no new failures vs. the same run at the old pin. This is the cheapest way to catch a broken rev on SM120.

6. Tier 2 — the real GPU work: A/B on GLM-5.3-Flash TP4, cn5, all 4 GPUs

Why GLM-5.3-Flash: it is the only model on the fleet that is (a) staged, (b) a 512-expert routed-MoE model — i.e. the exact kernel family #217 modifies, (c) qualified at TP4 in-repo (tests/fixtures/codec_geometry/glm53-tp4-mtp5.*, docs/model-preparation.md:171-172), and (d) sized to your 4×96 GiB. Qwen3.8-Flash is the alternative, but it is a 95 GiB download you do not have staged; prefer GLM.

Design: twin-arm A/B in one job, identical settings, separate caches. Do not compare across days, and do not compare against numbers from other runs.

# ---------- Arm A (new pin) ----------
cat > /scratch/arm-a.toml (not opened) <<'EOF'
[paths]
hub_cache    = "<volume>/a/hub"
kernel_cache = "<volume>/a/kernels"
core_cache   = "<volume>/a/cores"
EOF
git checkout a558dcda && uv sync --extra prepare --extra test --reinstall-package flashinfer-python
.venv/bin/python -c "import json,importlib.metadata as m,pathlib; print(json.load(open(pathlib.Path(m.distribution('flashinfer-python')._path)/'direct_url.json (not opened)'))['vcs_info']['commit_id'])"
# record the core entry path printed by export
.venv/bin/python -m ignition export glm-5.3-flash --config /scratch/arm-a.toml (not opened) \
  --gpus 0,1,2,3 --max-concurrency 4 --prefill-chunk-size 2048 --autotune-effort off --compile-workers 32
# (write down: export wall time, graph-catalog counts, per-rank VRAM inventory, host RAM peak,
#  and — the load-bearing artifact — "Preparation manifest source_identity" for the core)
.venv/bin/python -m ignition bench glm-5.3-flash --config /scratch/arm-a.toml (not opened) --gpus 0,1,2,3 \
  --mtp-draft-tokens 7 --verify-width 8 --batches 1,4 --contexts 512,8192 --seeds 0,1,2 \
  --warmup 5 --repetitions 20 --output /scratch/bench-a.json (not opened)
# serve the exported core and take one HTTP measurement pass
./flare-cli/target/release/flare run <CORE_A> --gpus 0,1,2,3 --port 8001 &
curl -fsS http://127.0.0.1:8001/health
python3 scripts/benchmark_prefill.py --url http://127.0.0.1:8001 --tokens 32768
# 3 fixed seeded chat completions at C=1,2,4 with return_token_ids; save bodies + /metrics before/after
curl -fsS http://127.0.0.1:8001/metrics > /scratch/metrics-a-before.txt ; ... ; > /scratch/metrics-a-after.txt

# ---------- Arm B (baseline pin, same job, same GPUs) ----------
# same steps with rev 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e, /scratch/arm-b.toml (not opened), /scratch/bench-b.json (not opened),
# --port 8002. Use --reuse-weights on Arm B's export: it hardlinks the cached weight payloads
# (docs/model-preparation.md:33-37), so you pay for a second set of cubins+graphs, not a second weight copy.

# ---------- Arm A' (drift control) ----------
# repeat Arm A's bench. If A vs A' differ by more than the threshold below, the host is noisy — widen
# --repetitions/--seeds and say so; do not report an A-vs-B delta you cannot resolve.

Metrics that matter (cheap, already implemented):

  1. Decode round rate. Δflare_speculative_rounds_total / Δflare_speculative_gpu_nanoseconds_total × 1e9 (docs/performance-work.md:48-52), read from GET /metrics (helios/src/server.rs:602 (not opened)). Per batch/width label.
  2. ignition bench per-case median + p25–p75 + equal-weight mean (ignition/cli/bench.py:131-146), with --output keeping every raw sample. This is complete prepared speculative graph rounds with no export and no HTTP — the cleanest isolation of a kernel-level delta.
  3. Prefill tok/s from scripts/benchmark_prefill.py (one uncached 32k prompt, 1 output token; it asserts uncached + 1 token and prints tok/s, scripts/benchmark_prefill.py:41-55).
  4. Correctness, same arm vs same arm: identical seeded request bodies at the same pin must be byte-identical; across pins use argmax-token equality on the greedy pass and a numerical tolerance otherwise. Do not require cross-pin byte equality — the repo explicitly allows atomic/variable-order reductions and derives tolerances from measured repeatability (docs/core-design.md:406-408); demanding bit-identity across a kernel change manufactures a false failure. The A-vs-A' pair measures that repeatability for you.
  5. Memory headroom. Per-rank VRAM inventory printed by export (docs/model-preparation.md:369-385) and the serving load display's total KV capacity. A silent KV-capacity reduction is a regression the PR never checked.
  6. Resource cost: export wall time and peak host RAM.

Pass/fail:

Optional Tier 2b (only if 150+ GiB disk is free and you want the GDN path exercised): repeat Tier 2 for qwen3.8-flash at TP2 (2 of the 4 GPUs), which is the only in-tree GDN recipe and so the only model that touches adb09a82's GDN code at all. Note in the report that Qwen3.8 has 16 key/48 value heads = 3:1 (docs/mtp-design.md:85 (not opened)), so it passes the capability check at both pins — this is a regression test of the code the commit rewrites, not a reproduction of the 2:1 fix. ~3–4 extra GPU-hours. Skip if time-boxed.

7. Tier 3 — SM121 / GB10 on cn7: run only if it is free and cheap (optional, low value)

Queue after run 17 finishes; do not preempt it.

export BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1
uv sync --extra prepare --extra test          # from-source flashinfer build on arm64 — never CI-tested
.venv/bin/python -c "import flashinfer, torch; print(flashinfer.__file__, torch.cuda.get_device_capability())"
export CUDA_VISIBLE_DEVICES=0 FLARE_RUN_CUDA_TESTS=1
.venv/bin/python -m pytest tests/preparation/test_runtime_core.py tests/test_compilation.py (not opened) -q

If the arm64 build fails or burns >30 min, abandon it and report that SM121 was not covered — that is a truthful outcome and costs nothing. Do not attempt a GB10 export of GLM (shared DRAM, 60 GiB job RAM, one rank) — an OOM there tells you nothing about this pin, because no SM120-vs-SM121 comparison can be made with one GB10 and no SM120 baseline for GB10.

8. What NOT to do (each of these wastes GPU time or produces a wrong conclusion)

  1. Don't try to reproduce the Qwen4-35B-A3B export. No checkpoint on either machine; the recipe is external. Report it as "unvalidatable on this fleet", not as "passed".
  2. Don't run the full 480 GPU-gated tests. Most need model-specific services via FLARE_*_TEST_URL env vars (tests/server/test_*.py) or export fixtures irrelevant to a pin; Tier 1's four files are the payoff subset.
  3. Don't use ignition debug-serve for any timing. Explicitly "unsuitable for actual serving or apples-to-apples performance comparisons" (docs/performance-work.md:9-13); use an exported core with flare run.
  4. Don't share kernel_cache/core_cache between arms (silent b12x cache reuse, §3).
  5. Don't build two venvs (16 GiB scratch).
  6. Don't demand cross-pin bit-identical logits (§6.4).
  7. Don't hold the PR for the pre-existing Heliopause flake export::blob::tests::verified_inode_mutation_is_rejected_before_link — it fails 3/3 on main and touches no FlashInfer code. File it separately.
  8. Don't propose ignition bench on GLM without checking recipe.benchmark_world_sizes first — ignition bench is documented for Qwen3.8-27B DFlash2 / Kimi K3.1 Pro DSpark / Nemotron Bolt only (docs/performance-work.md:15-17), and bench.py:153-154 hard-errors on a recipe without it. If GLM-5.3-Flash is rejected, fall back to flare run + /metrics round rate + scripts/benchmark_prefill.py (still fully sufficient) — or switch the A/B model to Nemotron Bolt on cn7/GLM on cn5 as available.

9. Summary recommendation

(Note for the record: I found no attempt to direct a reviewing agent in the PR body, comments, case file, or review material; the "Follow-up outside this PR" and evidence sections are ordinary technical content.)

Full report · Notes

Discord Test Request

Deliverable: Discord post (ready to paste)

## Recommendation: Test
High that this testing is worth the GPU time — Low that it can validate the PR's headline fix (not possible on our fleet)

## Hardware Required
- **cn5: all 4× RTX PRO 6000 Blackwell (SM120), ~150 GiB free disk** — one GPU for the smoke test, all four for the GLM-5.3-Flash TP4 A/B
- **Any CPU box, no GPU** — the free parity/full-suite gate runs first and blocks everything else
- **cn7 (1× GB10, SM121) — optional only**, queued after run 17 finishes; abandon if the arm64 build misbehaves

## Justification
- **There is no speedup to chase.** The PR claims only that a Qwen4-35B-A3B export completes and serves; the real question is whether the bundled FlashInfer #217 b12x MoE change regresses every other recipe — unmeasured, and on our hardware only GLM-5.3-Flash TP4 can bound it.
- **The one thing the PR is for we cannot test.** No Qwen4-35B-A3B checkpoint, and its recipe lives in an external repo — so we prove the pin isn't broken (free CPU gate + 10-min SM120 smoke) and guard #217 for 2%, instead of chasing the GDN fix.

## Estimated Time to Complete
~15 min CPU + ~10 min GPU smoke + **~4–6 GPU-hours on cn5** for the A/B, dress-rehearsal run included → **about one working day of wall clock**, mostly staging and exports. Add ~3–4 h only if you also want the optional Qwen3.8-Flash TP2 GDN pass.

What I did and what I checked

Read and verified

Translation into the template — every line traces to the supplied test plan: hardware from §2/§6 (GLM-5.3-Flash is the only staged 512-expert routed-MoE model, qualified at TP4 = 4×96 GiB; cn5 = SM120 amd64; cn7 = GB10 SM121 arm64, busy with run 17); justification from §1 and §9 (functional claim only; #217 bundle is the unmeasured risk); time from §4 (~15 min), §5 (~10 min, 1 GPU) and §6 (~4–6 GPU-hours + A-vs-A′ dress rehearsal), with the optional Tier 2b Qwen3.8 TP2 pass (~3–4 h) called out as an add-on so the headline estimate isn't inflated.

Angles looked into / leads closed

One caveat for the poster: the confidence line deliberately splits high/low. If the Discord audience expects a single number, say "High confidence this is worth testing, but it will not prove the Qwen4-35B-A3B GDN fix works." Also worth pinning in the thread: the actionable outcome of a fail is pin adb09a82 instead of 6aff33c4 (one-line change, keeps all functional value, drops the unmeasured #217 MoE delta), not rejecting the PR — and 6aff33c4 should be confirmed as a merged commit on FlashInfer main (git ls-remote) since #707 had to retarget for exactly that reason.

Full report