Pre test report report · NVIDIA/hyperflare-inference #496

Raw Markdown for agents: https://autobot.eidonix.com/p/1b8130bd-5c1d-4fdf-b869-d195a5001238.md

Pre-test report — PR #496 "Coalesce shared ancestor reads across concurrent Selene disk fetches" (round 2, head 0c04b1e2)

Decision: REFER to hardware testing, with a deliberately small plan (≈2–2.5 h of cn7 GPU time), after a Step 0 desk gate.

Last round I said do not test yet. All three blockers from that report are now settled at this head, and the three lenses that were negative on substance have flipped to clean (Correctness: clean; Simplicity: clean; Prose: clean; Architecture: no blocking finding). What remains is one internal-API layering objection, one silent-drift hazard, two duplications and a pile of nits — none of which changes a byte of the path a hardware test would exercise, and none of which any reviewer asks to be re-measured. Two lenses independently endorse the approach ("belongs in the repo", "worth merging, with changes").

Head 0c04b1e2 (base main c0c4f798), 3 files, +3358/−933: selene/src/disk_store.rs, selene/src/shard.rs (not opened), docs/prefix-cache-offload.md. Author FujitsuPolycom. One author response in the thread, no human maintainer sign-off, no CI at head. Security screen: all clear (test-fixture strings such as injected private transfer failure and the unreachable!("window rate samples stay local to rank zero") guard are benign; the only agent-directed text in the thread is this repo's own flare-autobot footer, which I did not act on).

The three prior blockers, re-verified at this head

  1. Logical vs physical byte accounting feeding admission — fixed. TransportEvent::InboundWindowSample { bytes, elapsed } is emitted once per completed physical shared window (in apply_shared_disk), and DiskStore::apply short-circuits it into self.inbound_rate.observe(bytes, elapsed) before stats.progress += 1 (disk_store.rs:3632-3635); the Fetched arm no longer samples the rate and only does self.stats.bytes_in += bytes (:3669), so bytes_in stays logical. hit()'s estimated_seconds (:3625) is now priced from physical bandwidth. A dedicated test, coalesced_restores_keep_inbound_rate_physical_and_bytes_in_logical, asserts rate stability and logical bytes_in across 1 vs 8 restore concurrency. The split is documented (docs/prefix-cache-offload.md:362-366 and :1528-1531).
  2. The 61.3K 8/9-vs-7/9 accuracy regression — resolved, not swallowed. The author showed Flare has no greedy decoding (temperature 0 is clamped into a positive sampling range) and that the original script used per-build prompt nonces; five cold-VRAM repeats (seed = 1234..1238, 60,534 tokens, top_logprobs = 5) produced identical FP32 top-5 logprobs and token IDs on both arms (6/9, 8/9, 7/9, 9/9, 4/9 each). The suspect hazard is now directly covered by misaligned_follower_attaching_to_shared_partial_tail_and_row_matches_private_restore, which byte-compares a skip_pages = 13 follower against a private-store baseline across a partial ancestor tail ([64..71)) and a partial leaf chunk carrying row = true — the exact pair I asked for.
  3. Benchmarks predating the tree — fixed. The table is keyed main c0c4f798 vs 0c04b1e2, the head under review: 18,177.5 → 4,306.7 MB (4.22×) and TTFT 7,974.6 → 5,662.8 ms (−29.0%) simultaneous; 18,194.2 → 4,843.6 MB (3.76×) and 6,883.6 → 5,951.9 ms (−13.5%) staggered; Flash-Next 7,944.9 → 1,981.1 MB with only −3.1% TTFT. Un-rerun multi-host rows moved to "Not covered"; the single-restore cost is now labelled an expected bound with build_pending_demand's device_inbound.len() <= 1 fast path named.

What still stands, and why none of it blocks the test

Expected value of the hardware test

High, but sharply bounded. The mechanism is host-side Rust I/O bookkeeping: no CUDA, no record-format or Header change, no new flag/env/recipe knob, no per-model branch, sharing keyed on (path, expected Header) identity, failure isolation preserved (private child/upload errors fail one restore; shared open/read errors fail the cohort and route through is_record_read() → drop_row). Unit tests assert the right properties — byte-exact SimulatedGpu pages and rows, pool.free_slots() == pool.slot_count(), no pinned index nodes.

Two things only a run settles:

  1. Does the ~4× physical-read reduction and the −29% burst TTFT reproduce at head on GB10? This is the load-bearing claim.
  2. Is the admission-rate change harmless? Single-stream restore TTFT/bytes must stay at parity with main; the metering nit predicts a small optimism, not a cliff.

The description's own inconsistency (8 branches claimed, but "before" 18.18 GB is ≈4.5 copies of a ~4.0 GB prefix, not 8, while bytes_in is stated as 8× single) is answered for free by testing 4 branches.

Do not spend hardware time on

Minimal test plan — cn7, ≈2–2.5 h of GPU time (≈4 h wall clock)

Target cn7: 1× GB10 (SM121, the same class as the author's evidence). Job gets 10 CPUs / 60 GiB RAM / 16 GiB scratch. Use nvidia/Qwen3.8-27B-NVFP4 (matches the load-bearing row). The model list shows all three checkpoints at 0 GiB — confirm the NP4 weights are actually cached before starting, or a cold download will dominate the run.

Two setup traps to avoid (both verified in the docs):

Step 0 — desk, on the node, no GPU (≈20 min). Stop if red. cargo test -p selene --features test-support at 0c04b1e2; expect ≈476 passing. Watch specifically: coalesced_restores_keep_inbound_rate_physical_and_bytes_in_logical, misaligned_follower_attaching_to_shared_partial_tail_and_row_matches_private_restore, and the == 10 assertion in staggered_arrival_attaches_out_of_order_to_in_flight_windows. Also build main (c0c4f798) once for the A/B arm.

Step 1 — the burst, A/B, simultaneous (≈60 min GPU). Start flare run with --prefix-cache-memory 0 --prefix-cache-disk <scratch dir> --prefix-cache-disk-limit 8G. Warm one ~61K-token shared prefix plus 4 distinct child branches to disk; restart so VRAM is cold. Send 4 concurrent /v1/chat/completions follow-ups. Repeat the identical script on main. Three trials per arm, interleaved (main, head, main, head…) to cancel drift. Measure:

Three trials is enough: a 25–30% effect needs no tighter bound to be actionable.

Step 2 — correctness of the coalesced path (≈20 min, folded into Step 1's runs).

Step 3 — regressions this PR can plausibly break (≈30 min).

Stop conditions. No read reduction in Step 1 → mechanism failure, stop and report. Any differing output in Step 2 → correctness defect, stop and report (and say which configuration diverged, since the private-baseline test should have caught it). Single-stream regression beyond noise in Step 3 → report as the under-stated cost.

Budget: 20 min desk + 60 min burst A/B + 20 min correctness + 30 min regressions + 20 min slack ≈ 2–2.5 h cn7 GPU time, one node, one model, no multi-host.

Bottom line

The change solves a real, measured, charter-aligned bandwidth problem in the correct layer. At this head its evidence is attributable to the commit that would ship, its accuracy question is answered with a five-seed parity run plus a dedicated misalignment test, and its metering error is corrected. Residual issues — a statistic riding the wire-event enum, a hand-written Hash that will rot when Header gains a field, two duplications, a stale doc paragraph, and a maintainer sign-off that has not been recorded — are worth fixing before merge but change nothing a hardware test measures. Refer it, run the plan above once on cn7, and the merge decision rests on Step 1's physical-read delta and Step 2's output parity.