Explore report · NVIDIA/hyperflare-inference #715

Raw Markdown for agents: https://autobot.eidonix.com/p/ca6bae8a-3ea5-4966-90fe-165982d5f5fe.md

Case file — PR #715 "helios,ignition: implement additive packed multi-request prefill (Contract 3)"

Author original-el8 (COLLABORATOR) · branch docs/packed-prefill-rfc → main · head 84f789a · opened 2026-12-04 00:36, updated 2026-12-04 05:56 · open draft, no labels, no reviews, CI green · 21 files, +1639 / −56.

Key findings

  1. The description omits four shared-code behaviour changes beyond packed prefill: (a) ignition/cli/serve.py:462-471 now counts only kind == "speculative" signatures for --packed-verification, so a recipe whose only non-zero packed_token_capacity sits on a non-speculative graph previously passed and now gets UsageError("this prepared recipe does not declare packed verification capacities") — verified at head; (b) ScheduledStep::validate_mixed gained general lanes.len() > batch_capacity checks for all steps (helios/src/scheduler.rs:2611-2640); (c) scheduler/cost.rs creates prefill cost models and refreshes prefill context slopes only for key.batch == 1, changing solo-prefill cost behaviour; (d) scheduler/checkpoints.rs is a substantive rewrite of checkpoint interval pricing for all prefill (prefill_catalog_costs_for, interval_prefill_ns_for, new bound = bound.min(limit - max_terminal_cap)), only loosely covered by "tracks non-terminal packed prefill steps".
  2. The mandatory design-review gates are not recorded as met. docs/design-review.md:22-26 (repeated at AGENTS.md:376-381, docs/core-design.md:276-277 (not opened)) requires prior explicit owner approval (Luke Alonso) for a "captured-graph operation family", "even if it reuses a graph kind or enum value", and says "a design acknowledgment does not grant approval". Extending PREFILL/TERMINAL_PREFILL to batch_capacity >= 2 with a new prefill packed_token_capacity/PACKED_TOKEN parity layout is at minimum in that grey zone. No approval, no Design-Signed-Off-By: trailer (.githooks/commit-msg:15), and no maintainer comment appear anywhere in the PR.
  3. Two of the three CPU verification layers required by docs/design-review.md:195-251 are missing and the doc explicitly forecloses the excuse used. The PR adds a cohort algorithm (packed_prefill_candidates, policy.rs:1623-1789) and new timing estimates (packed_prefill_duration, cost.rs:644-661), which triggers the scripts/scheduling_sim/ + scripts/scheduling_sim/learning.py (not opened) 64-seed catalog; and it changes commit/checkpoint/admission-adjacent validation, which triggers TLA+/Kani. The limitations section names only tla2tools.jar and cargo-kani as unavailable and reports no simulator run at all — while docs/design-review.md:247-251 states "Disclosure does not excuse skipping runnable CPU checks… noting it as a limitation does not make the omission acceptable."
  4. The headline A/B is confounded and self-disclosed as such. The two arms are different signed cores from different FlashInfer revisions (887785ad pre-change vs 4aea5c54 exported against FlashInfer 5a8ceed80), not a flag-only comparison on one core. The C=1 control moving 111.2 ms → 118.7 ms (0.94×) is consistent with a ~6% systematic overhead in the packed arm, so the 1.68×–4.15× figures are not an isolated measurement of packed prefill. docs/design-review.md:109-111 requires "equivalent baselines".
  5. Do not trust pr_diff for this PR. The local copy of main is stale (predates merged #697, #711, #720), so the diff renders unrelated hunks (AGENTS.md, docs/api.md, docs/cli-design.md (not opened), preserve_message_anchor, pool_vram_limit, external_extents, async_transfer, workflow changes) that belong to those merged PRs. The authoritative set is the 21 files listed below; the PR description claims exactly those, so this is a tooling artifact, not a hidden-file problem.
  6. The change is inert without an opt-in core and costs KV capacity. No new flag or default in this repo; packed prefill only activates for cores declaring B >= 2 prefill graphs (helios/src/server/runtime.rs:846-900), and --max-concurrency 1 removes them (runtime_core/selection.rs:339-350). The price is −4.2% logical KV tokens/rank (7,631,232 → 7,310,848).
  7. Zero engagement, by anyone, including the project's automated reviewer. One comment (the author's own highlight summary, pr_comments), no reviews, no reactions, no labels — unlike peer scheduler PRs #645, #655, #697, which each received an Autobot case file/review within ~an hour. Reviewers are demonstrably active in these files; the silence is specific to this PR (plausibly because it is a draft).
  8. No issue ever asked for this. Searches for issues on "packed prefill", "prefill batching", batch_capacity found no request. The rationale is author-generated, but it continues a maintainer-led direction (merged #645 closing #485; #661/#663/#681) from about a week earlier.

The change

In plain terms. Before this PR, a PREFILL/TERMINAL_PREFILL graph had to be batch_capacity == 1, and GraphKind::Mixed admits exactly one prefill lane per step, so N concurrent short prompts cost N full-model replays. The PR lets a prepared core additionally declare prefill graphs with batch_capacity B >= 2 and an explicit 64-aligned aggregate packed_token_capacity P, and teaches Helios to pack 2..B text-only prefill lanes into one replay. Single-request prefill (B == 1, packed_token_capacity == 0) and ScoredPrefill are unchanged.

Where it lives (verified at 84f789a):

Concern Location
Manifest geometry (draft_tokens == 0, max(64,B) <= P <= B*W, P % 64 == 0) helios/src/execution/manifest.rs:850-885, :911-928
Catalog shape selection; B == 1 must have packed == 0; P <= prefill_chunk_size helios/src/model/catalog.rs:263-285
Core selection geometry + --max-concurrency filter helios/src/runtime_core/selection.rs:257-300, :339-350
Vision bindings rejected on B >= 2 prefill helios/src/model/packing.rs:111-130
PackedToken buffers sized to P; pack_step lane/sum/image_slot checks helios/src/model/packing.rs:170-176, :419-437
packed_prefill_graphs(), is_non_terminal_prefill_step, validate_mixed, commit helios/src/scheduler.rs:891-919, :937-954, :433-473, :2611-2640
Server wiring, solo vs packed catalog split helios/src/server/runtime.rs:846-900
Cohort builders & lane compatibility helios/src/scheduler/policy.rs:1297-1424, :1585-1645, :1623-1789, :2026-2075, :2230-2245
Cost model helios/src/scheduler/cost.rs:644-661
Ignition signature validation / direct mode / --packed-verification ignition/preparation/execution.py:78-95, ignition/direct/scheduler.py:197-200, :288-292, ignition/cli/serve.py:462-471
Test-compile fix helios/src/runtime_core/cache_memory.rs:1 hunk (external_extents: vec![]) — needed because #711/#720 landed on main

Size, honestly split: 21 files, +1639/−56; helios/src is ~+1398/−49 across 14 files, of which +238 model/tests.rs and +312 policy_tests.rs are tests, so production Rust is roughly +850; docs +186; Python ~+55.

Undeclared or under-declared behaviour (all verified in the diff, none in the "What changed" list):

Description vs code: the stated bound P <= prefill_chunk_size is enforced at core selection (runtime_core/selection.rs:257-300) and catalog (model/catalog.rs:263-285), not in execution/manifest.rs (which cannot see the chunk size) and not re-checked in validate_mixed/commit — it is a selection-time gate, not a manifest invariant. And docs/packed-prefill-design.md:45-46 documents work in hyperflare_recipes/components/{paged_batch,dspark}.py and recipes/deepseek41/* that is not in this repository (companion PR local-inference-lab/hyperflare-recipes#153), so half of the design document is unverifiable here.

The why

Recent activity

The orientation packet's commit listing failed (git: Could not read c513e46a…), and search_history fails for the same reason; merged-PR traffic in the same files is the substitute evidence. In the ~5 days before this PR, the scheduler/cost/checkpoint layer was merged over repeatedly: #645 (2026-11-30), #661, #663, #681, #655 and #697 (2026-12-02/03), plus #711/#720 (AsyncTransfer, external_extents, pool limits) and #708 (decoded VLM feature tokens, adjacent to the vision-binding rejection in packing.rs). #715 is a continuation of that stack — it depends on #655's measured_duration and #697's anchor work — but it also lands a new cohort algorithm on the hottest file (policy.rs), so it will need rebasing against whatever lands next. No conflicts or reversals found. One duplication tension: two cohort builders for the same graph family, against #645's "subtract/simplify" review guidance and the charter's small-footprint principle.

People

Community

One author comment (pr_comments, 2026-12-04 05:56), zero reviews, zero reactions, no labels. No flare-autobot case file or review, in contrast to #645 (case file ~27 min after opening, review ~50 min after), #655 and #697. Whether that is draft-suppression or a missed trigger is not determinable from the record; the practical consequence is that no independent verification of the claims exists. Cross-repo interest is only expressed in the companion recipe PR (local-inference-lab/hyperflare-recipes#153). The author supplies Discord: el8, satisfying design-review principle 17.

Project fit

Aligns:

Exposed:

Claims and evidence

Claim Evidence Verdict
Burst p95 TTFT 1.68×–4.15× better; throughput 1.75×–4.23× 15-cell barrier-synchronized flare run matrix, 4×GB10 SM121 TP4, median of 3, temperature 0; includes honest negative cells (0.94× C=1 control, 0.96× comp_w105_c8 p50, 0.98× comp_w185_c4 p50, 1.01× comp_w185_c16 p50) Real measurements, but not isolated: arms are different cores from different FlashInfer revisions; the 0.94× control suggests ~6% systematic overhead in the packed arm
Backward compatibility, existing cores load Pre-change 151-graph core 887785ad served on the new binary at 7,631,232 KV tokens/rank Consistent with the code (B == 1 paths unchanged); credible
−4.2% KV capacity 7,631,232 → 7,310,848 logical KV tokens/rank Stated once in the description; not in helios/manifest.md
FFN motivation (3,947.3 µs vs 7,625.4 µs/layer) Single-layer TP4 microbenchmark, docs/packed-prefill-design.md:20-28 Justifies the idea; does not measure the change. The "8.3×" and "3–6× TTFT" numbers are extrapolations
helios runtime-core lib 1,284 passed / 37 ignored Reported Plausible; not independently reproduced here
runtime-core+server 1,894 passed, 6 failures from unset FLARE_TEST_TEMPLATE_DIR Reported Failure attributed to environment, not root-caused
Python 905 passed / 2 skipped, 3 tests/cli failures from a stale installed wheel Reported Same: attributed, not fixed
Multi-lane numerical parity on GPU 6/6 CUDA and 112/112 CPU tests pass, but in the companion recipes repo #153 No in-repo GPU parity evidence
scripts/scheduling_sim/ and learning.py (not opened) validation Not run, not mentioned Required by docs/design-review.md:195-208
TLA+ TLC, cargo kani Not run; disclosed as unavailable docs/design-review.md:209-230, 247-251 says disclosure is not an excuse

Reach

Process

Open draft, less than a day old at review time, no labels (peer scheduler PRs carried area:scheduling, performance, triage:review), no reviewers requested, no reviews, CI green on the head commit. No review cycle has started, so none of the substantive questions above has been put to the author.

Open questions / could not find