#1 [high] Change: what PR #673 does mechanically (logprobs.py)
PR #673 (kbenkhaled, head 1337213, base main, 2 files +317/-22).
File 1: ignition/components/logprobs.py (+39/-22)
- New module constant
_MERGE_BLOCK = 512with assert_MERGE_BLOCK > _TILE_CANDIDATES and power of two(logprobs.py:21-24)._MERGE_WARPS8 -> 4 (logprobs.py:26)._TILE_CANDIDATES = next_power_of_2(MAX_TOP_LOGPROBS)= 32;_VOCAB_TILE = 1024(logprobs.py:18-20). WIDTH: tl.constexpr-> runtime argwidthwith@triton.jit(do_not_specialize=["width"])in_statistics(:59-62),_normalization(:76-79),_candidates(:93-97),_finish(:112-117). Row offset promoted to 64-bit:pos = row.to(tl.int64) * width + colthen... + pos * V/pos * TILESetc._finishmerge loop (logprobs.py:136-150):total: tl.constexpr = TILES * CANDIDATES; loads BLOCK-sized first chunk, sorts, then iftotal > BLOCKloopsfor offset in range(BLOCK, total, step)withstep = BLOCK - CANDIDATES(480 when BLOCK=512), merging incoming viatl.where(k < CANDIDATES, keys, incoming)and re-sorting each iteration.PreparedLogprobs.__init__computesmerge_block = min(triton.next_power_of_2(tiles * _TILE_CANDIDATES), _MERGE_BLOCK)(logprobs.py:164) and passes it as the_finishBLOCK argument (logprobs.py:183), keeping_MERGE_WARPS= 4 warps. Untouched:_sort_key(:29-33),_sort_pair(:36-40),_position(:43-56),_merge(:248-261), the rest of the PreparedLogprobs class (prepare/functional/run).
File 2: tests/components/test_logprobs.py (new, +278) — whole file is new; previously there was no test file for logprobs.py at all (see separate note).
Verification: the difference in behaviour beyond the description — kernels _statistics, _candidates now use 64-bit pos in address computation (int64 arithmetic may be slightly slower but avoids overflow for large V*width); _finish also uses pos * V for the chosen/requested token loads, i.e. int64 there too. Note that total = TILES * CANDIDATES remains a tl.constexpr and the loop is unrolled at compile time (range(BLOCK, total, step) with constexpr bounds), so the number of iterations still depends on TILES (i.e., on vocabulary), not on width. So the cubin count reduction is width-only, while vocab still yields distinct _finish compilations (but now bounded block=512 instead of up to 8192).
#2 [high] Change: docs not updated — logprobs design doc still describes old merge
The PR touches exactly 2 files (ignition/components/logprobs.py, tests/components/test_logprobs.py) — no doc changes. The repo documents this mechanism in docs/logprobs-design.md:90-100 ("Preparation and scratch"): "Four prepared Triton launches reduce requested positions … Tiles retain their best 32 integer sort keys; a final merge stores K pairs and the chosen token." After the PR the final merge is chunked (512-element blocks, 480 new candidates per iteration) and kernels are width-agnostic; that section and docs/logprobs-design.md:128-130 ("A zero request flag bypasses vocabulary reads, sorting…") are unchanged. docs/api.md:38,107-122 (max_top_logprobs, tie ordering by decreasing logprob then increasing token ID) also unchanged and still accurate per the PR's bit-exactness claim.
Charter/AGENTS.md:194-199 asks a PR to "describe its problem, resulting behavior, validation, and material limitations" — the description does; but AGENTS.md also treats "inaccurate documentation" as a contribution basis, and no doc is updated to reflect the new preparation/scratch shape.
Reach note: docs/core-design.md:1276-1279 states "threshold ties must never be truncated to a fixed number of candidates" — this PR keeps 32 candidates across chunk boundaries rather than a fixed 32 overall, so that constraint is respected (merge carries the running top 32, not a per-chunk top 20); the PR description says so explicitly and the new CUDA test plants >32 ties straddling chunk boundaries.
#3 [high] Change: how logprobs.py is wired (callers, constants, ABI)
Wiring facts (verified by reading, ref pr/673):
PreparedLogprobsis constructed only inignition/components/sampling.py:539(PreparedSampling.prepare()), fromself._logprob_args = (logits, completion, row_slot_ids, row_generations, live_rows, frame_index)(sampling.py:524).prepare/functional/runused at sampling.py:540,607,635,679. Within this repoPreparedSamplingitself is only instantiated bytests/components/test_sampling_flashinfer.py:52— i.e. the production consumer (recipes) lives in the separatehyperflare_recipesrepo; the module is nonetheless a retained core module (tests/preparation/test_core_boundary.py:11-25lists "logprobs"), so the change is inside the supported core boundary, not a leaf script.- Shapes/ABI untouched:
CompletionOutputs(ignition/components/completion.py:15-23) defines MAX_TOP_LOGPROBS=20, MAX_LOGPROB_TOKEN_IDS=128, LOGPROB_FIELDS=258;_merge(logprobs.py:248-261) and its BLOCK=512 argument incompletion.py:108-112are unmodified.PreparedLogprobs.__init__signature and scratch layout (stats,lse,keysat logprobs.py:167-173) are unchanged, so scratch bytes are identical before/after — only the_finishBLOCK/num_warps launch config and the specialization key change. - Existing benchmark harness
scripts/benchmark_logprobs.py:19,33,67-69already sweepswidth in (1, 6)and rows 1/8/16 and prints µs per state; the PR does not use or modify it, but it is the in-repo way to reproduce the_finish/ whole-reduction latency claims. prepare_triton/PreparedTriton(ignition/preparation/triton.py:28-51) expose.compiled(and.kernel), which the new test uses (op.statistics.compiled.hash), andPreparedTriton.__call__swaps totorch.library.wrap_tritonduring compile_forward — so the shared cubin also serves the compiled-forward path the description says it verified.
#4 [high] Change: undeclared or under-declared behaviour differences
Things a reader should know beyond the headline (all read from pr/673 diff and current file):
_MERGE_WARPS8 -> 4 (logprobs.py:26) applies to every vocabulary, not only large ones; combined withmerge_block = min(next_pow2(tiles*32), 512)(logprobs.py:164) a small vocabulary now runs_finishwith BLOCK=32 and 4 warps (before: BLOCK up to next_pow2(tiles*32) with 8 warps). So the change alters launch config for small vocabularies too; the description frames it only as capping at 512/4 warps.- 64-bit indexing (
pos = row.to(tl.int64) * width + col, logprobs.py:66,83,101,121) applies to all four kernels and is defensive: for the shapes in play (batchwidthV ≈ 8.4M elements at V=262144, width=16, batch=2) int32 would not overflow; it does add int64 address arithmetic to every kernel. Not measured separately in the description. - The merge loop is
for offset in range(BLOCK, total, step)withtotal: tl.constexpr = TILES * CANDIDATESandstep: tl.constexpr = BLOCK - CANDIDATES(logprobs.py:137-147), so it is compile-time unrolled and the iteration count still depends on the vocabulary (V=262144 -> 256 tiles -> 8192 candidates -> 16 extra sorts). Consequently per-vocabulary_finishcompilations still exist; only width no longer multiplies them. The description's "4 logprob cubins instead of 24" is consistent with that (width-only multiplication). _statistics/_candidates/_finishgrids and theKeyslayout are unchanged, so the chunked merge reads the same[batch,width,tiles,32]uint64 keys buffer (logprobs.py:170).- Nothing in the diff changes behaviour for the requested-IDs branch (
count > 0) except thatposis int64; the sorted-top-20 branch is gated oncount == 0exactly as before.
#5 [high] Claims and evidence: what backs each performance and correctness claim
Claims in the description, and what is available to support them:
- Cold
prepare()65.40 s -> 4.46 s (Thor SM110) and ~19.5 min -> 11.83 s (Orin Nano SM87, CUDA 13.2),_finish84.2 us -> 38.2 us at width 6, V=262144: all author-measured, no artifacts, no baseline commit logs, no bench script invocation quoted. The in-repo harness that could reproduce latency isscripts/benchmark_logprobs.py(sweeps width 1 and 6), not cited in the PR. - "4 logprob cubins instead of 24": supported indirectly by the new CUDA test asserting all four kernels'
compiled.hashare identical across widths (1,2,6,16) (tests/components/test_logprobs.py, test_logprobs_kernels_share_one_specialization_and_execute_across_widths) — but export itself was not run (stated limitation). - "bit-for-bit identical output": the new CUDA test compares against a CPU/torch reference (
_reference_logprobs, stable descending argsort) for vocab 1..262144, BF16 and FP32, plus +0.0/-inf/<20 padding and requested-ID/NaN cases; the author additionally reports raw int32 equality vs parent commit 1fbcc3c9 and bit-exactcompile_forward()at widths 1 and 4 (V=16385) — the latter two are not reproducible from the PR contents. - "87 passed, 0 failed" across test_logprobs.py + test_completion_outputs.py + test_completion_capacity.py on Thor and Orin Nano: no CI run exists on head 1337213 (0 checks per orientation packet;
.github/workflows/python-cpu.ymlis the only Python job and runs CPU only withCUDA_VISIBLE_DEVICES: ""). - The PR does not measure Orin Nano's old runtime latency for BLOCK=8192 (stated), SM103/SM120/SM121, or end-to-end
ignition export/flare run— the charter (line 42) anddocs/design-review.mdprinciples ask for the supported arch matrix, so these gaps matter for a merge decision.
#6 [high] Tests: test_logprobs.py is brand new; no prior coverage existed; CI reach
- Before this PR
tests/components/had notest_logprobs.py(file list ofpr/673shows it asadded, +278 -0; search ofref=mainfor logprobs tests finds onlytests/components/test_completion_outputs.pywhich exercisesCompletionOutputsbuffers andCompletionOutputs.merge, not the four Triton kernels). So the PR adds the first direct coverage of_statistics/_normalization/_candidates/_finish— i.e. the "87 passed" figure is largely the new file. - CI:
.github/workflows/python-cpu.yml:30-33runspytest tests/ -qon ubuntu-24.04 withCUDA_VISIBLE_DEVICES: ""; the new CPU test (test_finish_merge_block_is_bounded_for_large_vocabularies, meta tensors, asserts_finishBLOCK per vocab) will run there. Every CUDA test is skipped unlessFLARE_RUN_CUDA_TESTS=1(AGENTS.md:302, and the@pytest.mark.skipif(os.environ.get("FLARE_RUN_CUDA_TESTS") != "1")markers in the file), so CI proves only the block-size table, not the ordering/bit-exactness claims. - The CPU test asserts on private internals: it zips
_finish.arg_nameswithop._preparation[3][1]and expects BLOCK values{32,32,32,64,512,512,512,512}for vocab{1,64,1024,1025,16384,16385,31744,262144}— tightly coupled to the_preparationtuple layout and argument order that this same PR edits (logprobs.py:176-186). - Gaps in the new tests versus the change: the CUDA width-sharing test covers widths (1,2,6,16) at V=262144 only; the ordering tests use batch 3/width 6 at one vocab each; nothing tests that
do_not_specializesurvives a different Triton version, and nothing exercises_merge(completion.py) which still moves 258-field rows.
#7 [high] Why: the problem, prior reports, and whether it was requested
Searches for an originating issue/report came up empty: search_items "logprobs", "Triton compile time specialization", "preparation slow compile minutes" return no issue about logprob kernel compile time (only #231, which states the underlying Triton rule). So the "problem" is documented only by the author's own measurements in the PR description (Orin Nano 8 GiB ~19.5 min for 6 _finish specializations; Thor cold prepare 65.40 s).
Context that makes the problem real and recurring:
ignition/components/capacity.py:80-91,160-169builds speculative shapes/widths;ignition/direct/scheduler.py:207-209deriveswidthsfrom every speculative graph signature — so a prepared core naturally multiplies per-width kernel variants, which is what the PR collapses.- #231 (open,
original-el8) states the same Triton invariant this PR relies on: "Triton memoizes compiled kernels by specialization and launch options only" and reports an "undeclared programs" failure when identities shift — a note that changing specialization keys has repository-level consequences (program identity), relevant to a change that alters four kernels' specialization. - #652 (merged 2026-12-01,
lukealonso) attacks the same export-size/load-time symptom from the export side (pruning unreferenced kernels from cubins; on Orin NanoPrepare kernels0.5s -> 0.1s, 166.51 -> 19.46 MiB uncompressed cubins). Complementary, not overlapping files.
#12 [high] Project fit: charter, contribution rules, and design-review principles
- Charter line 12 ("Keep the runtime small and model-agnostic") and line 38ish scope: this change is inside a retained core component (
tests/preparation/test_core_boundary.py:11-25), adds no flags, no per-model branch, no new dependency, no config surface — it lines up. - Charter line 42: "Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs… verify that existing data, artifacts, and exported cores still load." The PR explicitly does not measure SM103/SM120/SM121 nor end-to-end export/serve, and does not load an already-exported core — that is the main charter gap. Charter line 21 names SM103/SM120/SM121 as primary targets.
AGENTS.md:165-169: a contribution must address "a demonstrated defect, a measured performance or memory problem, or inaccurate documentation". This PR's basis is a measured performance problem (compile time / latency) — allowed.AGENTS.md:176-186bans runtime compilation and weakened guarantees: this change removes pre-capture compilation work (aligned) and claims bit-identical output with tests (aligned, subject to verification).docs/core-design.md:1276-1279: "Bounded top-k optimization is not implemented. Measure sampler cost inside the complete graph before changing it; threshold ties must never be truncated to a fixed number of candidates." The PR measures_finishoutside the complete graph (single-kernel latency) — the end-to-end serving measurement the doc asks for is explicitly listed as a limitation, so this is a doc tension to note.docs/logprobs-design.md:128-130: "Performance claims about the reduction require complete replay and service measurements." The PR's headline numbers are coldprepare()wall-clock and isolated_finishµs, not service measurements — a direct, quotable mismatch with the project's own standard.
#16 [high] Research summary
Case file prepared for PR #673 (kbenkhaled, logprobs-chunked-finish, head 1337213, +317/−22 in 2 files, open/ready-for-review, no comments, no labels, no CI checks).
All ten angles have scratchpad entries (15 notes, 8 high). Highlights a reader cannot get from the description: (1) _MERGE_WARPS drops 8→4 and merge_block collapses to 32 for small vocabularies, so launch configuration changes for every vocabulary, not just 262k ones; (2) the merge loop's bounds are tl.constexpr, so _finish still recompiles per vocabulary (16 unrolled extra sorts at 256 tiles) — only width stops multiplying cubins; (3) 64-bit pos indexing is now on all four kernels' hot address path; (4) no documentation is updated, though docs/logprobs-design.md:90-100 still describes the pre-PR single 32-key merge, and both that doc (:128-130, "performance claims require complete replay and service measurements") and docs/core-design.md:1276-1279 set standards the PR's isolated _finish/cold-prepare numbers don't meet; (5) in-repo callers pass 2-D logits (width==1) — widths 1..6 come from the external hyperflare_recipes package, so only scripts/benchmark_logprobs.py reproduces the multi-width case in this repo.
Also recorded: the new tests/components/test_logprobs.py is the first direct test coverage of these four kernels (CUDA half can never be CI-gated, since the only Python workflow runs CPU-only); no issue or report requested this work; no other PR has touched logprobs.py in 180 days and nothing on main conflicts; _merge, buffers and ABI are untouched so previously exported cores still load; the file's history is derek → lukealonso, making lukealonso the natural reviewer and derek the author of the merge semantics being changed; zero engagement so far (age, not objection); the PR body's Discord: line is empty, which AGENTS.md:144-153 forbids (same nit raised on the author's #671); and the untested SM103/SM120/SM121 matrix plus unrun end-to-end ignition export/flare run is exactly the gap charter line 42 and the logprob doc's measurement standard point at.
#8 [medium] Related work: nothing else touches logprobs.py; neighbours and supersession
items_touching("ignition/components/logprobs.py")(180 days) returns only #673 — no competing, stacked, or superseding open PR edits this file, and the orientation packet's note "Commits on the default branch since this PR branched … none" confirms no conflict with main.items_touching("tests/components")shows the same-area PRs are unrelated (collectives #471/#557/#546/#499/#491/#479, speculative capacity #555, engram #539, recipes #134/#192/#191/#312/#386, CI/test restoration #608). The nearest topical ones: #555 (intermediate batch capacities 6/12/24 — changes which speculative shapes get prepared, indirectly multiplying per-width kernels) and #608 (restored CPU Python tests in CI,9a054b49, which is why the new CPU test will actually gate this PR).- History of the file (search_history): 2a65f7f3 derek "Report generation logprobs through prepared completion outputs" (2026-10-19) → 7c805294 derek "Add opt-in prompt logprobs" (10-20) → 48bae6bb derek "Add requested generation logprob token IDs" (10-22, added MAX_LOGPROB_TOKEN_IDS/
_merge) → bce032c0, 5be93f8f, 16bb710f, 4a24d78a (lukealonso: scheduling overlap, ABI 6 completion buffers, Inductor temporaries) → 13372138 kbenkhaled (this PR). So the file is derek-originated and lukealonso-maintained; kbenkhaled is the first outside contributor to touch it. - Sibling PRs by the same author, all open, all Jetson small-memory themed: #671 (Ignition prep memory budgets for <=16 GiB integrated), #669 (host-backed CUDA VMM fallback), #664 (single-plane BF16 offloaded embedding). This PR is the compile-time member of the same campaign; none of them share files with it.
#9 [medium] Recent activity: what changed lately around this file and these tests
From the orientation packet plus verification:
ignition/componentslast-updated ancestors within 60 days: 555db719 (2026-11-30, lukealonso, #648 "Migrate ignition runtime patches and preparation onto public b12x contracts"), 50c876df (#484 gridDim stride), 9031847a, 7745deea (#566 engram prefetch), 4d957175, 74618652 (#557), c9693765 (#555), 966df82e (#482). The PR builds on that state: it uses@triton.jit(do_not_specialize=...), which is resolved by whatever Triton/b12x stack #648 pinned, and the 4-kernel prepare path inignition/preparation/triton.py(unchanged by #648's public-contract migration as far as this PR's call sites go).tests/componentsrecent: 9a054b49 (#608, 2026-11-29) "restore catalog validation, CPU Python tests, and script separation" — directly relevant: it is whypytest tests/ -qin CI now includes this directory, so the new CPU test becomes a real gate.- Nothing in main touches logprobs.py or its consumers since the PR branched (1fbcc3c), so the change does not conflict with or reverse recent work; it is additive on top of derek's Oct-2026 logprob series and lukealonso's ABI-6 completion-buffer work (5be93f8f).
#10 [medium] People: author history and area owners
- Author:
kbenkhaled, GitHub association CONTRIBUTOR. Last 180 days: merged #592 "Add sm110/thor identifiers" (2026-11-29 — the same SM110 Thor whose measurements this PR reports, so the author's hardware-naming work and this benchmark share a thread); open #671 (2026-12-02, Ignition prep memory budgets <=16 GiB integrated), #669 (2026-12-01, host-backed CUDA VMM fallback), #664 (2026-12-01, single-plane BF16 offloaded embedding). Merged PR areas: docs, ignition, ignition/cli, ignition/preparation, tests/preparation — this is their first change toignition/components/and totests/components/. - What #671 shows about how this author's PRs are received: Autobot reviewed it twice with "Changes Requested" (blockers about unvalidated memory floors, unrun tests, no CI on head), and its description carries live-hardware measurement tables in the same style as #673. So the author's pattern is: Jetson hardware measurements, large validation tables,
Discord:line left empty (see #671 body "#673" here and #671's nit 3 asking for the Discord line to be filled). - Area owners (commits in last 180 days):
ignition/components— lukealonso 108, Martin Vit 58, jasonc 26;tests/components— lukealonso 116, Martin Vit 39, Jason Cook 8. Logprobs.py itself was authored by derek (2a65f7f3, 7c805294, 48bae6bb) and later maintained by lukealonso (ABI-6, Inductor, scheduling). A reviewer for this PR would naturally be lukealonso; derek is the original author of the merge semantics being changed. - Engagement so far: none.
pr_commentsreturns "No comments";read_item(673)shows "Discussion (0)"; no reviews, no labels, no reactions.
#11 [medium] Community: zero engagement; PR is a day-zero draft-quality submission marked ready
read_item(673): by kbenkhaled (CONTRIBUTOR), opened 2026-12-02 04:42, updated 2026-12-02 04:42,logprobs-chunked-finish-> main, head 133721382b427c5907ebf4c39f1e39788a325dc7, +317 -22, "Discussion (0)". No labels (contrast: sibling #671 carries area:memory, area:preparation, enhancement, performance, triage:review). No Autobot case file comment appears on #673 either, unlike #671/#652/#231 — i.e. triage has not engaged yet.- Every other performance PR in this repo shows an Autobot case-file + review comment thread; #673 having none yet means the "no community/reviewer input" state is simply age, not rejection.
#13 [medium] Reach: who is affected, compatibility, dependencies
- Users/operators: faster preparation of speculative models (fewer Triton compilations at capture/catalog time), especially on 8 GiB Jetsons; no CLI flag, default, manifest, or exported-core format change (2 files, both Python;
_merge, buffers, dtypes, shapes untouched — see change note). Runtime latency at V=262144 improves per author (84.2 -> 38.2 us) but was not measured on Orin Nano's old BLOCK=8192 path, and small-vocabulary_finishnow launches with 4 warps instead of 8 (unmeasured). - Compatibility: exported cores created before this PR still load (no wire/ABI change) — nothing in the diff touches
core_proto/runtime_core/_merge; co-tenancy withheliosis unaffected. Already-exported cores are unaffected in size unless re-exported (fewer logprob cubins only on re-export). - Dependencies: relies on Triton supporting
do_not_specialize=[...]on JIT functions (used elsewhere in-repo:ignition/components/engram.py:23,helios/tests/fixed_core_fixture.py:27,33), so no new library requirement; but the specialization key also feeds Triton's program cache identity — #231 documents a case where a changing Triton identity broke preparation ("preparation used undeclared programs"), so a stale on-disk Triton cache after upgrade is a plausible operator-visible side effect worth flagging. - Documentation: none updated (see docs note) — operators reading docs/logprobs-design.md still see the pre-PR description of the merge.
- Downstream repo: recipes in
local-inference-lab/hyperflare-recipesconstructPreparedSampling/PreparedLogprobs; they need no change (constructor and methods unchanged), which the PR states as "no runtime core format or ABI changes".
#14 [medium] Process: ready-for-review, no CI, no review, same-day submission; Discord line empty
- State: open, "ready for review" per the orientation packet, base main, head 1337213, opened and last updated 2026-12-02 04:42 (same minute — a single push, no follow-ups). Size: 2 files, +317/-22 (39/-22 in
ignition/components/logprobs.py, +278 new test file). - CI: "no checks" on head 1337213. The only relevant workflow is
.github/workflows/python-cpu.yml(on: pull_request), which would runpytest tests/ -q(so the new CPU test) and the heliopause Rust tests; no GPU job exists in the repo, so the CUDA half of the new test file can never be CI-gated here. - Review: none. No reviewers requested, no labels (no
triage:review,performance,area:kernels), and no Autobot case-file comment, unlike every comparable performance PR (#231, #652, #671). - Convention breach: the PR body ends with an empty
Discord:line.AGENTS.md:144-153requires either a username or the literalDiscord: no username providedand says "Never omit the line"; the same nit was raised on the author's #671 (nit 3). - Risk framing for a reviewer: the change is small and localized (one component, one new test file), but it rewrites the specialization identity of four kernels used in every prepared speculative core and changes a merge that the docs describe as a single sort; the safest review scope is the
_finishchunk-index arithmetic (logprobs.py:136-150) against the tie-ordering contract indocs/logprobs-design.md:92-100anddocs/api.md:107-112.
#15 [medium] Reach: the multi-width case is exercised by external recipes, not in-repo callers
Where the width dimension actually comes from (affects how a reviewer can verify the headline claim):
- In this repo,
PreparedSampling.__init__requires 2-D logits(rows, vocab)(ignition/components/sampling.py:484-489), andPreparedLogprobs.__init__reshapes 2-D tologits[:, None, :]⇒width == 1for every in-repo path (ignition/components/logprobs.py:156-157). The speculative widths 1..6 therefore arrive from recipe-side construction in the externallocal-inference-lab/hyperflare-recipesrepo (which builds one sampler per prepared graph width), not from anything in this repository. The only in-repo consumers arescripts/benchmark_logprobs.py:22-33(which explicitly sweepswidth in (1, 6)with 3-D logits, so it does reproduce the multi-width case) and the new test file. - Consequence for the case file: "6 specializations of
_finishtook ~19.5 min" can only be reproduced withscripts/benchmark_logprobs.py-style 3-D logits or a full recipe export; a reviewer inside this repo cannot reproduce the cold-prepare number without the recipe package and a Jetson. The claim is self-consistent but its reproduction harness is only partly in-repo. PreparedSampling.prepare()(sampling.py:537-561) compiles logprobs first, before_scores,_complete,_metadata,_sanitize,_normalize,_min_pand the FlashInfer workspaces, so logprob compile time sits at the very front of each sampler's cold prepare — consistent with it dominating a cold catalog build.
#17 [medium] Related work: triage of every orientation-packet lead
The orientation packet listed 20 "possibly related items". Triage, so nobody re-walks them: Followed and useful (recorded elsewhere):
- #671, #669, #664 — same author, Jetson memory/compile campaign; no shared files (notes: People, Related work).
- #652 (merged, lukealonso, cubin pruning) — same symptom class on the export side,
heliopause/src/export/cubin.rs; complementary, no file overlap (note: Why). - #231 (open, original-el8) — states the Triton specialization/program-identity rule this PR depends on and a real "preparation used undeclared programs" failure when identities shift; no file overlap (notes: Why, Reach).
- #555 (merged, c9693765, intermediate capacities 6/12/24) and #608 (merged, 9a054b49, restored CPU Python tests) — nearest same-area work; #555 multiplies prepared speculative shapes (the pressure this PR relieves), #608 makes the new CPU test an actual CI gate (note: Recent activity). Checked and NOT relevant:
- #616 (closed issue, "v0.4.4 takes over 15 minutes to prepare a 119 GiB host prefix cache on fragmented Linux memory"): host prefix-cache preparation, not Triton compile; matched only on "prepare/minutes".
- #549 (open, "Report KV pages held by active requests"): matched on the token name
requested_ids; unrelated component. - #647 (merged, "Fix externalized core signing, stream-0 weight race, export I/O, multi-host tuning"): matched on
current_stream; touches export/signing, notignition/components/logprobs.py. - #644 (merged, per-step speculative calibration), #578 (merged, DSML parameter openers), #642 (open, relocate_inductor epilogue candidates), #483 (open, Gemma 4 images), #332 (open, unresolved address candidates during export), #229 (open, Muse Glimmer image profile), #637 (merged, tool-call id length), #447 (closed, synthesized id length), #82 (closed, TileLang on SM120/121): all matched on generic words ("speculative", "prepare", "width", "transfer"); no shared files, no shared mechanism.
- Issues that mention logprobs only as a verification instrument: #118, #193 (corrupt DeepSeek logits), #14 (NaN tails), #20 (MTP speculative proposal). They are users of the logprob path, not reports about its compile cost — but worth knowing that the community repeatedly uses top-20 logprob equality as its correctness oracle (e.g. #496, #429, #413, #140, #455), which is exactly the guarantee this PR claims to preserve bit-for-bit. Nothing in the local copy of PRs/issues competes with, stacks on, or supersedes #673.
#18 [medium] Project fit: charter roadmap lines quoted and applied
Roadmap/charter wording relevant to how this PR should be judged (from read_charter, quoted as facts):
- line 12: "Keep the runtime small and model-agnostic. Ignition writes the recipes that handle model computation. Helios (the runtime) handles scheduling, caches, and requests, and shouldn't accumulate per-model branches." → the change lives in a shared ignition component with no model branch: aligned.
- line 21: "Prepare supported model recipes with Ignition and serve captured CUDA graphs from Rust on SM103, SM120, and SM121." → the PR's own limitations say SM103/SM120/SM121 were not measured; the target architectures in the roadmap were not exercised.
- line 24: "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene." → unrelated to this PR.
- line 28 (non-goal): "Broad production coverage across arbitrary models, GPUs, or deployment setups, as well as rack-scale features like disaggregation." → i.e. untested arches are a stated limitation rather than a scope violation; the change does not add coverage claims.
- line 42: "Supported matrix & compatibility: Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs. Check state and CUDA-graph transitions, and verify that existing data, artifacts, and exported cores still load." → this is the checklist item the PR partly meets: CUDA-graph capture/replay is covered by a new test, but "exported cores still load" and the hardware matrix are explicitly unrun.
Note the interplay: the change is in
ignition/components/logprobs.py, whichtests/preparation/test_core_boundary.py:11-25lists as one of the 13 retained core modules — so editing it is inside the core boundary, but it is also documented underdocs/logprobs-design.md(a doc that was not updated).