Explore report · NVIDIA/hyperflare-inference #723

Raw Markdown for agents: https://autobot.eidonix.com/p/c981cc75-0161-4c4b-bda4-b7153496b684.md

Case file: NVIDIA/hyperflare-inference#723 — fleet-wide 2-way codec green contexts, graph SM bounds, ScratchArena reserve_sms floor

Author: lukealonso (COLLABORATOR). Open, "ready for review", 2026-12-04, head 275b7a5, base main @ cc0a49d. Size per pr_files: 27 files, +1438 / −285. No reviews, no comments, no labels, CI pending.

Key findings

  1. It is the deliberate remainder of a P1 bug, not speculative work. Open issue #701 (ebfio, 2026-12-03, labels bug/performance/priority:P1) reports that on GB300/SM103 --lossless-kv-compression gpu (GKV1) collapsed decode from 67.12 tok/s to 0.34–0.61 tok/s and hung permanently at B>=2, because the GPU codec ran on rank.execution_context(). Merged PR #709 (lukealonso, 2026-12-03) fixed this only for cores declaring a PersistentWorker. #723 extends the fix to standard cores (DeepSeek-V4.1, GLM-5.3, Qwen3.8, Ergo, Gemma) via a 2-way (codec, compute) split.
  2. The pr_diff tool over-attributes ~700 lines to this PR. Its base is stale: it shows .github/workflows/*, AGENTS.md (not opened), docs/TODO.txt, helios/src/model.rs (not opened) and hunks matching already-merged #711 (AsyncTransfer), #658 (capture reseal), #708, #664. Reconciling each file's real delta against pr_files shows the PR's actual content is exactly the three described sub-changes plus min_compute_sms: 0, max_cluster_size: 0 struct-literal churn in 8 helios/src/core/* files (e.g. helios/proto/core.proto +4 = 2 comments + 2 fields, helios/proto/core.proto:251-254). Trust pr_files, not diff hunks.
  3. The ScratchArena half is inert in this repository. register_cooperative_plan, require_reserve_sms, resolve_reserve_sms, min_reserve_sms, reserve_sms_floor appear only in ignition/preparation/scratch.py:59-187 and tests/preparation/test_scratch.py:548-607. No recipe, component or preparation path calls them, and the docs that define the contract (docs/core-design.md:821, docs/preparation-development.md:256 (not opened)) still describe register_parallel as byte-sizing only. The advertised "immediate preparation-time ValueError" only fires once companion local-inference-lab/hyperflare-recipes#157 lands.
  4. The capture half depends on API that may not be pinned. ignition/preparation/capture.py:78-83 imports track_capture_min_compute_sms from b12x._lib.utils.device and falls back to {"min_compute_sms": 0} on ImportError. That API ships with companion local-inference-lab/flashinfer#217. If the pinned flashinfer rev (pyproject.toml:47) predates it, every graph exports floor 0 and the load-time SM-floor validation silently never triggers. Not resolvable offline; it is the first thing to check.
  5. The headline claim is not measured end-to-end. The description's own Limitations say full ignition export + live flare run --lossless-kv-compression gpu serving across multi-GPU cores and SM103/SM121 execution were not run. The two GPU numbers quoted come from #[ignore]d component tests (see Claims). The reported regression was observed on SM103; the tests ran on SM120.
  6. A normative doc is left stale. docs/runtime-core-design.md:654-696 — the section #709 itself updated — still says the partitioning is "two groups … or three groups … when prefix-cache offload is enabled with --lossless-kv-compression gpu", i.e. codec only alongside a worker. Post-PR behaviour adds a 2-way (codec, compute) topology with no worker entry. helios/manifest.md:114-135 and docs/prefix-cache-offload.md:59-66 were updated; the design doc was not. In #709 the same class of gap was a "Should fix" review finding.
  7. The change reverses a prior review recommendation without saying so. #532's automated review had recommended deleting SmSplitPlan/split_sm_groups in favour of the ABI preferred_coscheduled_sm_count field; #723 instead extends SmSplitPlan (+824/−140 in helios/src/runtime_core/persistent_worker.rs).
  8. New fail-closed startup aborts on configurations that previously started. Any core with prefix-cache offload + --lossless-kv-compression gpu now takes the primary-context path on every rank (helios/src/runtime_core/model.rs:718-733, mod.rs:386) and can refuse to load: no Green Context driver API (mod.rs:394), not enough SMs for one aligned codec + one aligned compute partition (persistent_worker.rs:137-170), compute partition below min_compute_sms (mod.rs:960-980), or a kernel cluster dimension exceeding partition SMs / co-scheduled alignment (mod.rs:1064-1094). All messages point at --lossless-kv-compression cpu.
  9. The codec enablement condition changed, not just widened. #709 gated on !model.gpu_codec_cubins.is_empty(); #723 gates on options.prefix_cache.compression == KvCompression::Gpu (model.rs:718-719), i.e. decided from serving options before modules load. This avoids a model-specific branch (charter-aligned) but means a core with no gpu_module still reserves SMs when gpu is requested.
  10. Three separable changes are bundled, with no stated reason for the Python ScratchArena half riding with a CUDA change; precedent for asking for a split exists (yatesdr on #430).

The change

Scope and shape (verified):

What the description does not say: the reversal of #532's split_sm_groups recommendation; the min_compute_sms ≥ max_cluster_size coupling; that docs/runtime-core-design.md:654-696 is now wrong; that the ScratchArena API has zero in-repo consumers; that #709's gpu_codec_cubins gating was dropped; the 8 SMs permanently removed from compute on every gpu-compression rank.

What the description says the change does but the repository does not yet do: "Turns missing reserve_sms on cooperative plans … into an immediate preparation-time ValueError" — true only of the unit tests until recipes adopt it.

The why

Recent activity

Per-commit history could not be read: search_history fails with git: error: Could not read c513e46a… cannot simplify commit ef38cb93, and the orientation packet's activity section is empty for all seven areas. Reconstructed from PR metadata:

#723 builds on this lineage and reverses none of it; its one refinement is replacing #709's gpu_codec_cubins gate with the compression == Gpu option check. The orientation packet's "People in these areas: no commits in the last 180 days" is wrong for these files — original-el8 and lukealonso both committed to persistent_worker.rs in that window.

People

Community

No comments, reviews, reactions or reviewer assignment of any kind. Interest is expressed indirectly: #701 carries priority:P1 and is still open, and companion PRs exist outside this repo (flashinfer#217, hyperflare-recipes#157) showing the author is coordinating the change across three repositories.

Project fit

Claims and evidence

Claim What backs it
"235 passed / 525 / 250 / 247 / 104 passed" suites Author-reported only; CI on 275b7a5 pending; no review; all on one SM120 host (RTX PRO 6000 Blackwell Max-Q, 188 SMs). Not reproducible from this case file.
3-way measurement worker=8 codec=8 compute=172 … concurrent_coop=138664 (138611.8/s) gpu_codec_rounds=247 and 2-way codec=8 compute=180 (cosched=16) concurrent_coop=73185 gpu_codec_rounds=126 Component-level #[ignore]d tests only. Note the 2-way run shows lower cooperative throughput (73185 vs 138664) despite a larger compute partition (180 vs 172 SMs); the runs used different kernels, so it is not apples-to-apples, and nothing reconciles it.
"isolates GPU KV-codec execution fleet-wide … rather than deadlocking … at replay time" Not measured end-to-end: no full ignition export, no live flare run --lossless-kv-compression gpu, no multi-GPU core, no SM103/SM121 run — and #701 was an SM103 observation.
Per-graph min_compute_sms capture works Depends on b12x._lib.utils.device.track_capture_min_compute_sms (capture.py:78-83) from companion flashinfer#217; on ImportError it silently yields 0. Pin at pyproject.toml:47 unresolved offline.
max_cluster_size capture Backed by unit test graph_sm_requirements_extracts_cluster_dimension_and_merges_declared_floor (capture.rs:5621-5670, asserts (8,8)/(128,8)/(1,1)/(0,0)).
ScratchArena fails closed Backed by pure-CPU tests tests/preparation/test_scratch.py:548-607; no in-repo caller, so no production path can trigger it yet.
Backward compatibility with existing cores Argued from the proto comments (core.proto:251-254); no old signed core loaded as a fixture.
Tests are appropriately gated The two new behaviour tests are #[ignore]d and do not check FLARE_RUN_CUDA_TESTS (no matches in persistent_worker.rs), unlike the tests #430 added; they ran via --ignored. Their assertions are substantive: null worker context/stream, codec_sm_count >= 8, compute_sm_count >= 16, offload_context() == codec_context, execution_context() == compute_context, stack limit 4096 on both, and fail-closed when min_compute_sms == total_sms with the cpu hint (persistent_worker.rs:3550-3607).

Reach

Process

Open and marked ready for review (not a draft). No reviewers requested, no reviews, no comments, no labels, CI pending on 275b7a5. Zero days old at case-file time; this author's PRs have historically merged within hours (#709 opened 18:08, merged 20:09). The three sub-changes are separable and unevenly sized: persistent_worker.rs alone is +824/−140 (57% of insertions, mostly the two new #[ignore]d CUDA tests plus a hoisted TestFiles fixture); 8 helios/src/core/* files are pure struct-literal churn; the ScratchArena half is 77 Python lines + 62 test lines with no in-repo consumer.

Open questions / not found