Explore scratchpad · NVIDIA/hyperflare-inference #731

Raw Markdown for agents: https://autobot.eidonix.com/p/38abc06e-a8ef-4675-bbe3-5666c92cb03b.md

#1 [high] Research summary

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

Note on evidence limits: the tool-side git object store is damaged (search_history fails on every ref with Could not read c513e46…), and the main snapshot served for comparison appears to predate merged #707 (it has no tests/preparation/test_roce_proxy_parity.py, helios/native/roce_proxy.c there is RING_WINDOW 8 with no roce_create_with_gids, and pyproject.toml:47 reads 5a8ceed…). So the diff base is not the GitHub main the description describes. Everything below is what I could verify against those trees.

Key findings (what the description does not say)

  1. The one-line diff's "from" value does not match the description. pr_diff (pyproject.toml) shows rev = "5a8ceed80ccc58e11a4d49ccc910f52967699c09" → rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92", while the description says it replaces 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e. 1441ce86 is the revision #707 set (#707 description, "repinned pyproject.toml:47 to 1441ce862…"), and 5a8ceed80c is the older pin (#684 comment: FlashInfer #208 merged on main at 5a8ceed80ccc…; #668 autobot comment quotes pyproject.toml:47, rev = "5a8ceed80ccc…"). Either the description's baseline is wrong, or the diff base predates #707 and the PR would conflict on pyproject.toml:47. Not resolvable from the local copy; a reviewer should confirm the merge base.
  2. pr_diff shows ~10 changed files, not 1. Besides pyproject.toml, the computed diff contains .github/workflows/{helios-lifecycle,native-serving,release}.yml, AGENTS.md, THIRD_PARTY_NOTICES.md (not opened), docs/TODO.txt, docs/api.md (not opened) — main-side content from #730 (Windows flare.exe packaging), #707 (RoCE CI) and others leaking in through a stale merge base. The PR itself is 1 file, +1/−1 (matches the packet and pr_files).
  3. The pin bundles a second, unrelated upstream change. 6aff33c4 is claimed to be "two commits ahead": adb09a82 (FlashInfer #215, Qwen4-35B-A3B shapes — the actual fix) and 6aff33c4 (FlashInfer #217, "cooperative SM budget and green-context grid-stride safety for b12x MoE"). Only the first is evidenced; the second changes MoE kernel behavior on every model and is not measured.
  4. The second commit is the dependency of an open PR in this repo. #723 (helios,heliopause,ignition: fleet-wide 2-way codec green contexts…, lukealonso, open) lists local-inference-lab/flashinfer#217 as a companion, and its autobot review flags that clean checkouts pinned to 1441ce86 "lack b12x._lib.utils.device.{track_capture_min_compute_sms…}" (pyproject.toml:47 unchanged by #723). #731 is effectively that PR's pin prerequisite — unstated in #731, and a reason a maintainer may care about the exact revision chosen.
  5. The RoCE proxy parity assertion is the load-bearing claim with no evidence. tests/preparation/test_roce_proxy_parity.py:35-65 (added by #707, run by .github/workflows/python-cpu.yml:29-33 (not opened) after uv sync --extra prepare --extra test) hard-fails on any byte difference between helios/native/roce_proxy.c and the installed FlashInfer experimental/b12x/comm/roce/_roce_proxy.c (not opened). The PR asserts "neither commit changes the RoCE proxy source" but says explicitly "Not run: this repository's test suites", and the packet reports no CI checks on head e015d55. If the assertion is right, CI is green; if not, this change breaks the suite. Open PRs #712, #725, #649, #577, #672 also edit that file and are already under parity pressure (#725's autobot review: "the vendored proxy now diverges from the pinned FlashInfer revision …, failing mandatory parity CI"; #712's: pin "remains pinned to 1441ce862…").
  6. No uv.lock exists in the repo, so the pin is not additionally locked here (verified by listing main; .gitignore does not exclude it). Precedents #403 (pyproject.toml + uv.lock, +4/−4) and #85 (+1/−1 in pyproject.toml, +2/−2 in uv.lock) both updated a lock; this PR cannot, because there is none. Consequence: docs/core-design.md:381-385, docs/model-preparation.md:146-153 and THIRD_PARTY_NOTICES.md:60 (not opened) describe a uv.lock that is not in the tree, and docs/model-preparation.md:148 refers to .github/workflows/track-flashinfer-main.yml (not opened), which does not exist (only helios-lifecycle.yml (not opened), native-serving.yml, python-cpu.yml, release.yml (not opened)).
  7. Docs contradict the pin and the pin contradicts the docs. docs/core-design.md:383 and docs/model-preparation.md:145-149 say pyproject.toml "tracks the main branch of local-inference-lab/flashinfer"; the file pins an exact commit (pyproject.toml:47). #215 established the exact-pin policy (maintainer yatesdr, closing comment) but none of that policy text was reconciled. This PR does not fix that drift, and does not mention it.

The change

The why

Recent activity

People

Community

Project fit (charter)

Claims and evidence

Claim Backing
1441ce86 rejects the 2:1 GDN ratio with "GDN prefill requires three value heads per key head" from gdn_prefill.Caps Author's local observation, exact command given; unverifiable here (no gdn_prefill in tree, external recipe, external checkpoint)
adb09a82 (FlashInfer #215) adds the 2:1 ratio and the H=2048 hyper-connection/MTP shapes Cited upstream PR number only; not linked, not inspected
6aff33c4 is exactly two commits ahead Unverified; #723's comment tests FlashInfer #217 at 530e2473, suggesting more commits exist in that line
Neither commit touches _roce_proxy.c (not opened), so no re-vendoring Unverified; directly contradicts nothing visible, but is exactly what tests/preparation/test_roce_proxy_parity.py enforces and that test was not run
Export completes, 72 graphs, native core exported; flare run answers C=1/2/4 and a 120k-token prompt Author's local run on RTX 5090 Laptop (GB203, SM120, 24 GiB) with ignition/heliopause at f705086 and recipes at d248db6; no logs, no core, no artefact cited
Other recipes unaffected at the new revision Explicitly "expected… but was not measured" — honest, and unbacked
Repo test suites, other recipes, SM103/SM121, post-f705086 commits Explicitly not run
hyperflare-recipes uv.lock (ignition c513e46, flashinfer 5a8ceed) breaks on AsyncTransferChannel until updated Self-reported follow-up; consistent with #711 adding AsyncTransferChannel and with that lock predating #711

Reach

Process

#2 [high] Change: one-line pin bump in pyproject.toml:47, +1/−1

PR #731 (open, head e015d55, base main, branch flashinfer-qwen4-gdn-ratio, opened+updated 2026-12-04, 1 file +1/-1, no labels, no reviews, no comments, no CI checks).

pr_diff for pyproject.toml:

Requirement is "flashinfer-python[b12x]" in the prepare extra (pyproject.toml:20-36), so the pin governs every ignition[prepare] install.

No source sync, no docs, no lockfile, no notice/license change. [[Related work: no uv.lock in repo]]

#3 [high] Change: description's baseline 1441ce86 does not match the diff's 5a8ceed (stale base?)

Description: "pins flashinfer-python at ... 6aff33c4... instead of 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e". Actual pr_diff: replaces 5a8ceed80ccc58e11a4d49ccc910f52967699c09 (pyproject.toml:47).

Provenance of both values:

Second artifact of the same stale base: pr_diff also contains .github/workflows/{helios-lifecycle,native-serving,release}.yml, AGENTS.md, THIRD_PARTY_NOTICES.md, docs/TODO.txt, docs/api.md (content from merged #730 Windows flare.exe packaging, #707 RoCE CI, async-transfer metrics from #711). pr_files and the packet both say 1 file; so those are main-side changes, not this PR's.

Reviewer action: confirm merge base vs current main before treating the diff as one line.

#4 [high] Change: pinned revision bundles an unrelated second upstream commit (FlashInfer #217)

Description: "The new revision is two commits ahead: adb09a82 (#215, Qwen4-35B-A3B shapes) and 6aff33c4 (#217, cooperative SM budget and green-context grid-stride safety for b12x MoE)."

Only adb09a82 addresses the stated GDN failure; the second commit changes b12x MoE kernel behavior (SM budget, green-context grid-stride) for every model, and no measurement at the new revision is reported for any model other than the one Qwen4 export.

Note these are FlashInfer PR numbers, not this repo's: this repo's #215 is "Track FlashInfer main in the preparation dependency..." (closed) and #217 is "Decode GLM width-one rounds in place without KDA records" (closed) — the item page's "It refers to" links are therefore cross-repo collisions. See [[Related work: #215 closed, exact-pin policy]] and [[Related work: #723 needs FlashInfer #217]].

#5 [high] Claim/evidence: RoCE proxy byte-parity assertion is unbacked and untested at the new rev

tests/preparation/test_roce_proxy_parity.py (added by #707): test_vendored_roce_proxy_is_byte_identical_to_pinned_flashinfer (:35-65) reads the vendored helios/native/roce_proxy.c body after a 9-line provenance header (PROVENANCE_LINES = 9, :17, :39-48) and requires it equal to flashinfer/experimental/b12x/comm/roce/_roce_proxy.c from the installed flashinfer (:20-32, :49-65). Located via importlib.util.find_spec("flashinfer"). Runs in CI: .github/workflows/python-cpu.yml:25-33 does uv sync --extra prepare --extra test (BUILD_NVEP=0, FLASHINFER_BUILD_NO_PIP=1) then .venv/bin/python -m pytest tests/ -q with CUDA_VISIBLE_DEVICES="".

PR #731 claim: "Neither commit changes the RoCE proxy source vendored in helios/native/roce_proxy.c, so no re-vendoring is needed." Evidence: description says "Not run: this repository's test suites"; packet reports no checks on head e015d55. So the one assertion the repo can mechanically falsify was never executed.

Vendored side facts: helios/native/roce_proxy.c:7 provenance header names proxy ABI 14; :160 #define ROCE_ABI_VERSION 14; :557 roce_create_with_gids; :223 RING_WINDOW 16; :156-157 ROCE_RELAY_OPS = ROCE_SEND_DEPTH/8, ROCE_RESERVE_OPS 48. helios/src/execution/roce.rs:23 pub const PROXY_ABI: u32 = 14; :131 accepts cores recording 9|10|11|14.

Caveat: the tool's main snapshot predates #707 — on it, helios/native/roce_proxy.c:141 ROCE_ABI_VERSION 14 with :205 RING_WINDOW 8 and no roce_create_with_gids, and tests/preparation/test_roce_proxy_parity.py does not exist. So parity state vs current main could not be checked directly.

#6 [high] Related work: #723 (open) is the consumer of the bundled FlashInfer #217 commit

#723 helios,heliopause,ignition: fleet-wide 2-way codec green contexts, graph SM bounds, and ScratchArena reserve_sms floor (lukealonso, open, labels area:preparation/bug/enhancement/performance/triage:review, head 275b7a5, opened 2026-12-04).

#7 [high] Related work: #215 closed — maintainer chose the exact pin #731 keeps

#215 "Track FlashInfer main in the preparation dependency instead of a pinned commit" (brandonmmusic-max, closed 2026-11-19 by yatesdr), +609/−30 across 15 files: @main requirement + [tool.uv] upgrade-package, .github/workflows/flashinfer-main.yml, scripts/check_flashinfer_compatibility.py (proxy ABI comparison across _proxy.py, _roce_proxy.c, roce_proxy.c, roce.rs), tests/preparation/test_flashinfer_compatibility.py. Closing comment (yatesdr): "Flare keeps the exact FlashInfer pin (pyproject.toml:25). Following FlashInfer main in ordinary uv lock and uv sync would let a dependency update change prepared kernels and the native RoCE transport without a Flare commit... The coupling between Flare and FlashInfer revisions is a real cost and needs a better answer than either an exact pin or tracking main. The proxy ABI check (scripts/check_flashinfer_compatibility.py) addresses part of it and would stand on its own as a check of the pinned revision." Earlier review by original-el8: "This changes preparation's dependency policy ... Categorized as triage:design-review ... does not qualify Flare's complete preparation environment or GPU behavior against each selected commit."

Verified in-tree now: scripts/check_flashinfer_compatibility.py absent; .github/workflows/flashinfer-main.yml / track-flashinfer-main.yml absent (only helios-lifecycle.yml, native-serving.yml, python-cpu.yml, release.yml exist); tests/preparation/test_flashinfer_compatibility.py absent; tests/preparation/test_packaging.py has no flashinfer-declaration test (search_code "rev =|local-inference-lab/flashinfer" under tests/ = no matches). scripts/setup_preparation.py:17-28 still runs only uv sync --upgrade-package flashinfer-python --extra prepare --extra test --reinstall-package ... — the command #215 documented as unable to move past an exact pin. So today the only way to move the pin is a hand edit like #731, which is what #215 wanted to avoid and what the maintainer accepted.

#8 [high] Related work: no uv.lock in the repository; docs still describe one

list_files at pr head and at main for uv.lock / *.lock at root: no match. .gitignore:1-13 does not exclude it. So there is no lockfile in this repo; the pin in pyproject.toml:47 is the entire dependency record.

Precedents that did update a lock: #403 (Pin FlashInfer for GLM cache safety and PCIe collective updates, merged) changed pyproject.toml and uv.lock (+4/−4, "uv also advances its lockfile-format revision from 3 to 5"); #85 (Pin FlashInfer to the supported tuning-tier API, merged) changed pyproject.toml and uv.lock. #731 cannot, and does not mention it.

Stale docs that contradict reality (verified by search_code):

#9 [high] Claim/evidence table: what is claimed vs what backs it

Claims and their backing (all from PR #731 description unless noted):

  1. "At 1441ce86 the b12x GDN prefill capability check accepts only three [value heads per key head], so decoder preparation raises 'GDN prefill requires three value heads per key head' in gdn_prefill.Caps" — author's local observation with the exact export command; unverifiable in this repo: search_code for "gdn_prefill|value heads per key head|GDN" finds only docs/core-design.md prose (GDN documented as b12x-supplied at :603-604, :709-735); no ignition/recipes/ dir in tree (list_files ignition/recipes/* = no match; recipes live in external repo per AGENTS.md:12,224-225).
  2. "FlashInfer added the 2:1 ratio and the H=2048 hyper-connection and MTP feedback shapes in adb09a82 (#215)" — cites an upstream PR number, no link, not inspected.
  3. "6aff33c4 is two commits ahead" — unverified; #723's comment tests FlashInfer #217 at 530e247333.
  4. "Neither commit changes the RoCE proxy source" — see [[Claim/evidence: RoCE proxy byte-parity assertion is unbacked and untested at the new rev]].
  5. Result: export completes on RTX 5090 Laptop GPU (GB203, SM120, 24 GiB), "prepares 72 graphs and exports the native core", flare run answers chat completions at C=1, 2, 4 including a 120,000-token prompt — single machine, single model, single checkpoint; no logs or artefacts cited. Environment: ignition + flare-heliopause built from f705086, hyperflare-recipes at d248db6, checkpoint = local Qwen4-35B-A3B directory in the recipe's NVFP4 layout (trunk experts W4A4, MTP experts W4A16). Export command recorded: ignition export CHECKPOINT --gpus 0 --tiered-moe-offload --offload-predictor direct --offload-extents-dir DIR --max-concurrency 4 --prefill-chunk-size 2048 --speculative-method mtp --mtp-draft-tokens 5 --speculative-token-capacity 128 --image-concurrency 4 --autotune-effort off --compile-workers 1.
  6. Honest negatives stated: not run = this repo's test suites, any other recipe, SM103 and SM121, commits after f705086. Other recipes "expected to be unchanged ... but was not measured".
  7. Follow-up outside the PR: hyperflare-recipes uv.lock pins ignition c513e46 and flashinfer 5a8ceed; fresh uv sync there fails earlier with ImportError: cannot import name 'AsyncTransferChannel' from 'ignition.preparation.execution'. Consistent with #711 (merged 2026-12-03) adding AsyncTransferChannel: search_code AsyncTransferChannel under ignition/preparation/execution.py on the tool's main snapshot = no match (snapshot predates #711); #711's file list includes ignition/preparation/execution.py (+135) and its description says it "Exposes AsyncTransferChannel for core export". So the follow-up is real but is a recipes-repo lock staleness problem, not caused by this pin.