PR #668 — amendments since the 2026-12-01 report (run 2822)
PR: https://github.com/NVIDIA/hyperflare-inference/pull/668 · head moved d4d7b2d → d6a00698 (updated 2026-12-03 01:30) · branch renamed unify-tuning-cache-identity-and-mult · still open, Fixes #651, still +424 / −44 in 8 files (pr_files, read_item 668). New event being amended: two independent 2× GB10 hardware comments landed on the PR (2026-12-02), plus a duplicate PR (#675) was closed in its favour, plus #667 and #695 merged under it.
Everything below is only what changed or was wrong in the earlier report; where a line number moved I give the one verified at the new head.
Key findings (amendments)
- A — The hardware evidence gap narrowed, it did not close. Two operators now report the diagnosis and the workarounds confirmed on 2× GB10/SM121 TP2 with GLM-5.3-Flash-FP4-Local (nepenth 2026-12-02 03:04: 1,648 differing selections from the same
portable_declaration-vs-request.namemismatch, and a +33% cold-prefill regression, 18.4 s vs 12.6 s at 32k, from the missing peerB12X_W4A16_A4_PREFILL=1; Reederey87 2026-12-02 12:10: same missing env, 2,353–2,538 tok/s cold prefill 8k–128k and 980k retrieval in 466.4 s once exported manually on both ranks). Neither ran this diff at head — Reederey87's numbers are with the variable exported by hand on rank 1.Fixes #651therefore remains unproven by hardware; the earlier "the #651 configuration was never run" finding survives, downgraded in severity but not in kind. - B — Correction: the peer
b12x_environmentdoes not land before all import-time b12x reads. The description's "ahead of assignment unpickling (so import-time reads see it)" is only true for the recipe/operator/kernel modules.ignition/cli/serve.py:547environment.apply(configuration, (gpu,))runs beforeknock()(:549) andserve_peer()(:551), andapply→runtime_patches.apply()→workers.register_hooks()→from b12x.preparation import …(ignition/runtime_patches/workers.py:27) meansb12x.preparationis already imported whenserve_peerapplies the env atignition/preparation/host_ranks.py:646-648. Reederey87 raised exactly this on the PR; the author has not replied. - C — The closed duplicate #675 had the stricter ordering and its fix was dropped. #675 validated
b12x_environmentin the_admitreply and reorderedjoinsoknock()completed first andenvironment.apply(..., b12x_environment)ran beforeruntime_patches.apply()— i.e. before b12x is imported. #668 closes #675 but_admitstill replies only{"accepted", "session"}(host_ranks.py:297) and the env is applied insideserve_peerafterenvironment.applyalready ran. Any futureb12x_environmentvariable that b12x caches at import time is still applied too late (contract stated atignition/cli/environment.py:7-10). - D — Merge/overlap deltas: two of the three conflicts I flagged are gone, two new ones appeared. #667 is merged;
host_ranks.py:723-725now readsexport_options(peer_cache, no_weights=…, reuse_weights=…, remote_cache=True, kernel_cache=kernel_cache)— #668 addskernel_cache=onto theremote_cache=Truecall #667 created, so that same-author ordering risk is resolved. #695 (share local tuning across TP ranks + reconcile serving selections) is merged and is now in the base atignition/preparation/tuning.py:521-523/:546-549, which means name-first reconciliation also governs--tuning-gpusreplica runs, not only--ranksmulti-host — a consequence the description does not mention. Still open and now more relevant: #678 (editsaot.pycurrent_source_roots()and rewritestests/preparation/test_forward_cache_sources.py, the same +78-line test file #668 extends) and #671 (editshost_ranks.pytopology andtests/preparation/test_forward_artifact_sharing.py(not opened)). #597 (ForwardCache keying /_share_artifacts) and #639/#314 (aot.py) unchanged. - E — Two smaller corrections to the earlier report's facts. (i) The PR is no longer unlabelled or un-commented: labels
area:preparation, area:rocenante, bug, performance, priority:P2, triage:review, four comments (2 bot, 2 hardware), still no maintainer review. (ii)pyproject.toml:47pins flashinfer to commitrev = "5a8ceed80ccc58e11a4d49ccc910f52967699c09", not "branch main" as the earlier report said; the substantive point is unchanged — CI (.github/workflows/python-cpu.yml:29-33(not opened),uv sync --extra prepare --extra testthenpytest tests/ -qwithCUDA_VISIBLE_DEVICES="") validates #668 against that pinned revision, not against the pairedflashinfer#199.
A — Hardware evidence: what it does and does not establish
| Source | Hardware/config | Claim |
|---|---|---|
| nepenth, 2026-12-02 03:04 | 2× GB10 SM121, multi-host TP2, GLM-5.3-Flash-FP4-Local, v0.5.0 | Same agree_selections loop, 1,648 differing selections across TP-sharded CSF/MoE plans; "Reconciling by request name resolved it cleanly." Missing B12X_W4A16_A4_PREFILL=1 on rank 1 → rank 1 prepared BF16-activation W4A16 prefill, +33% cold prefill (18.4 s vs 12.6 s @32k), --reuse-weights layout mismatch (device-57); propagating it restored speed and 49 s re-exports. Verdict: "Both fixes match the exact root causes we independently diagnosed and verified on SM121 TP2 hardware." |
| Reederey87, 2026-12-02 12:10 | 2× DGX Spark GB10/SM121, GLM-5.3-Flash-FP4-Local@76348ddb, TP2, hyperflare-recipes@339ca580, flashinfer@e34540cc7 |
Same missing peer env; with B12X_W4A16_A4_PREFILL=1 manually exported on rank 1 plus --context-parallel --row-shard-prefill --row-shard-attention: cold prefill 2,353–2,538 tok/s (8k–128k, c1–c8), 980k cold exact retrieval 466.4 s. Closed his duplicate #675 in favour of this PR. |
Reading: the two root causes named in #651 are now independently reproduced by third parties, and the two workarounds (name-keyed reconcile, env on both ranks) are confirmed effective. That strengthens the "why" of #668 without touching its own validation statement ("live 2-host GB10 TP2 export + join of GLM-5.3 were not executed in this environment", PR body, Validation and limitations). Charter item "Supported matrix & compatibility … verify cross-node" moves from wholly unaddressed to partially addressed; "Bring real evidence" (#397) still bites on the broad corrupt-cache handler below.
B/C — The peer-env import-order invariant (new, and a dropped fix)
Verified chain at head:
ignition/cli/serve.py:547environment.apply(configuration, (gpu,))→ignition/cli/environment.py:37,82(applyends withruntime_patches.apply()) →ignition/runtime_patches/__init__.py:119(workers.register_hooks()) →ignition/runtime_patches/workers.py:27(from b12x.preparation import register_worker_initializer).- Only afterwards:
serve.py:549knock(...)→serve.py:551-555serve_peer(..., kernel_cache=configuration.directory("kernel_cache"), ...)→host_ranks.py:645-648receives and applies("b12x-environment", …)viaos.environ.update. - The recipe and its operator/kernel modules load later, at
host_ranks.py:665(assignment = receive_object(control)) and:670(prepare = assignment["prepare"]), so the early command does precede those — which is enough forB12X_W4A16_A4_PREFILL, read fromos.environduring preparation, and is why the two hardware reports pass with the current design.
So the accurate statement of the PR's behaviour is: peer env is applied before recipe/operator imports and before preparation, but after b12x.preparation's import. Two consequences the description omits: (1) any import-time-cached b12x setting would silently take effect only on rank zero, the exact asymmetry #668 is meant to remove; (2) the assignment["b12x_environment"] copy at host_ranks.py:377 can never carry anything the early command did not, so it is a redundant second application (:666-668) — Autobot's review reached the same conclusion (its "F9" item, marked Corrected).
#675 (Reederey87, closed 2026-12-02 12:10, +194/−11, labels duplicate) closed this hole the other way: _admit returned b12x_environment in the admission reply (validated in knock, control socket closed on mismatch) and join ran knock() first, then environment.apply(configuration, (gpu,), b12x_environment), before runtime_patches.apply(). #668 closes #675 (it is now in #668's closes: refs alongside #651) and keeps the weaker ordering plus an _admit that validates nothing (host_ranks.py:276-299, reply at :297).
D — Overlap / state deltas (supersedes the earlier overlap section)
| Item | State now | Effect on #668 |
|---|---|---|
| #667 (same author, peer exports) | merged | Conflict resolved; host_ranks.py:723-725 is #667's remote_cache=True export call with #668's kernel_cache= added. |
| #695 (share local tuning across TP ranks) | merged | Base now gates reconcile at tuning.py:521-523 and agrees at :546-549; #668 changes the matching rule for replica runs too. No conflict (tuning.py untouched by #668). |
| #675 (peer b12x env) | closed, superseded | #668 now also closes it; its _admit validation + join reordering are not carried over (see B/C). |
| #597 (brandonmmusic-max) | open | Still the largest aot.py overlap: ForwardCache keying, _prepare_ranks, _share_artifacts. Unchanged. |
| #678 (brandonmmusic-max) | open, new | Edits aot.py source-root plumbing and rewrites tests/preparation/test_forward_cache_sources.py, the file #668 adds +78 lines to → conflict hotspot. |
| #671 (kbenkhaled) | open, new | Edits host_ranks.py (topology/Gpu.integrated) and tests/preparation/test_forward_artifact_sharing.py (not opened), both touched by #668. |
| #639 / #314 | open | aot.py, unchanged, lower risk. |
E — Citation fixes applied at head d6a00698
aot.pymoved:_NON_EXECUTION_B12X_ENVaot.py:47-62;_CORRUPT_ARTIFACT_ERRORS(EOFError, pickle.UnpicklingError, struct.error, zlib.error, zipfile.BadZipFile, OSError, ValueError, TypeError, KeyError, AttributeError, RuntimeError)aot.py:64-76— the earlier "69-81" is stale;_b12x_forward_env():79-87;_save_compiled_function:90-100(NamedTemporaryFile withdelete=False, thenos.replace,finally: temporary.unlink); cache key:897;_loadhandler:1371-1380,isinstance(error, (MemoryError, torch.OutOfMemoryError))at:1377,unlink(missing_ok=True)at:1379.collectives.py: catalog:196-224(5-tuples(plan, decl_key, (name, variant, component_id), payload, config));reconcile_selections:398-449;target_forname-first:429-434; lockstepchanged:436-440;configs:441-449, including theValueError("one plan has conflicting rank-shared configurations")at:446-447.host_ranks.py:_validate_b12x_environment:201-209,_remap_peer_config:212-218,__init__b12x_environment:226,233,prepare(..., b12x_environment=None):314,325-326, early send:347, assignment copy:377,_admitreply:297,serve_peer(kernel_cache=…):626, apply:646-648, re-apply + remap:666-669, peerexport_options:723-725.tuning.pycaller now:521-535(gate,configure_tuning_shard(0,(0,)), re-prepare withselected_configs) andagree_selections:546-549(earlier "504-518 / :530").- Docs:
search_codeoverdocs/forreconcile_selections|b12x_environmentreturns no matches — the "no docs" finding is exact, confirming the n/t code-and-docs divergence for the new peer env channel and the reconcile contract. #668 still changes nodocs/file. - Unchanged findings: broad
_CORRUPT_ARTIFACT_ERRORSswallow → a transientOSError/non-OOMRuntimeErroron an opportunistic restore unlinks a valid.binand recompiles; forward-cache root re-keys (one-time recompile) for hosts with any execution-relevantB12X_*; rank-divergent ranks lose their locally tuned configs and re-prepare (~2h15m per failed attempt per #631); testify leakage created by report #12 about "no engagement"/"no labels" is now corrected above.
Open questions
- Does #668 converge on 2× GB10 at head? Still nobody has run this diff on that hardware; the two hardware comments validate the diagnosis and manual workarounds. The PR body still says
Fixes #651— the earlier recommendation to hold the auto-close (or sayRelated: #651) stands. - Will the author adopt the #675 ordering (
knock→environment.apply(…, b12x_environment)→runtime_patches.apply()) or document the "peer env is not visible tob12x.preparation's import" invariant? Reederey87 asked on 2026-12-02 12:10; no reply as of the last update 2026-12-03 01:30, and no doc records it. - Whether the ambient-
B12X_*hashing in_b12x_forward_env()and the new peer env channel interact badly for replica (--tuning-gpus) runs now that #695's gate is on main — not analysed in the description or tests. - Which of
OSError/RuntimeErrorthe corrupt-cache tuple is meant to cover, and whether theunlinkis guarded against read-only caches — unanswered in description and review threads.
Not found: any maintainer review or reviewer assignment; CI conclusion for d6a00698; any run of PR head on 2× GB10; any doc/CHANGELOG entry for the peer env channel or the peer-local kernel_cache remap; any coordination note on #597/#678 ordering in aot.py.