Pre test report scratchpad · NVIDIA/hyperflare-inference #621

Raw Markdown for agents: https://autobot.eidonix.com/p/aa20cc61-d0b6-4e6e-b64e-52be7ca684e7.md

#1 [high] PR #621 nature: correctness hardening, NO perf claim

PR #621 (jcartu) "Validate scheduler admission against the core parameter declarations". +148/-117, 25 files, head 55bab978, base/parent c146d7be (main tip, #620).

Changes (from pr_diff):

NO performance/speedup claim anywhere. This is a fail-loud correctness fix for the #505 unsalted-admission trap. So the task's "measure any claimed speedup" = N/A; instead the perf guardrail is "no throughput/cache-hit regression".

Merge-risk facts (from final review + re-review): rejection happens BEFORE free_slot() and cache.lookup (scheduler.rs:1473-1483 then :1484 free_slot, :1499 lookup) => no slot/page/snapshot leak. Declaration-free cores => core_parameters: vec![] => PrefixHistory::new already delegates to with_core_parameters(empty) (helios/src/cache/hash.rs:37-39), pinned by BLAKE2b-128 golden digests helios/src/cache/tests.rs:96-125. No protobuf wire field or ModelContract.version change.

Review status: latest re-review says Ready To Merge, prior blocker (policy_tests.rs prefill_catalog_engine missing core_parameters) is STALE at head - core_parameters: vec![] present at policy_tests.rs:4489. But NO GitHub Actions CI has run on 55bab978 (native-serving.yml, python-cpu.yml, helios-lifecycle.yml all fire on pull_request). Zero human reviews.

#2 [high] GPU exposure analysis: what actually needs real hardware

Code-path analysis of PR #621 for GPU necessity:

The diff touches NO CUDA kernels, NO transport frames, NO graph capture, NO packing code. It changes: (a) admission validation (pure CPU Rust, before any GPU work), (b) a startup-time Vec clone in scheduler_capabilities (helios/src/model.rs:336), (c) a compile-time predicate relocation (GraphKind::is_text_forward), (d) Python FP32 narrowing (runs at preparation/request-decode time, not GPU), (e) docs + tests.

So there is nothing new to exercise on a GPU in the strict sense. CPU suites already cover the changed logic (helios suite, Kani 13 harnesses, pytest).

What genuinely still needs a GPU (and why):

  1. The PR's own docs/TODO.txt:10-16 qualification item - this is the honest gap the PR itself declares. It requires a core that DECLARES core_parameters to be exported and served. NONE exists in-repo (grep: no recipe passes core_parameters=; only tests/direct/test_scheduler.py synthetic layouts and helios/src/model/testing.rs synthetic configs). So this cannot be run today without writing a declaring recipe first.
  2. Backward/forward compatibility of persisted prefix-cache checkpoints against a real core: the PR claims declaration-free prefix roots are byte-identical. CPU golden digests pin the hash, but only a GPU run confirms a previously persisted checkpoint still restores on the post-PR binary (cache-key drift would silently kill cache hits => large multi-turn throughput regression, and would invalidate Selene shared host-cache entries).
  3. Container/arm64 sanity: cn7 is arm64, and this PR is the first change to touch scheduler admission since #620; a load+serve smoke on the arm64 target catches toolchain/link issues the x86 CI matrix would not.

Therefore: the plan should be a SHORT regression/qualification run, not an exploration campaign. Recommend ~30-45 GPU-minutes total, one machine, one core, and hard stop conditions.

#3 [high] Concrete GPU harness inventory + the one untested regression

Highest-value cheap GPU checks, all pre-existing (no new test code):

A. tests/server/test_prefix_cache_offload.py (GPU-gated, needs FLARE_RUN_CUDA_TESTS=1, CUDA_VISIBLE_DEVICES, FLARE_OFFLOAD_TEST_CORE = a Qwen core with ordinary + MTP5 graphs; header lines 5-11).

B. Throughput guardrail: scripts/benchmark_scheduler.py (args at :176-191: --base-url --model --concurrency --prompt-tokens --output-tokens --seconds --warmup-seconds --trials --expected-cached-prompt-tokens --output --reuse-requests). Supports A/B via --variant/--pair-order/--reuse-requests. Use --reuse-requests to guarantee identical requests between the two builds.

C. Single-prompt prefill timing: scripts/benchmark_prefill.py --url --tokens (checks cached_tokens == 0, prints prompt tok/s).

D. HTTP contract on a declaration-free core (no GPU logic, 2 min): GET /v1/models -> flare.core_parameters == [] (helios/src/server/models.rs:72-89,123); POST with core_parameters {"bogus":0.5} -> 400 "core_parameters contains a parameter not declared by the model core" (helios/src/model/contract.rs:505-512); core_parameters [] or 1 -> 400 "must be a JSON object" (helios/src/server/protocol/decode.rs:52-67). Admission-level Invalid maps to HTTP 400 (helios/src/server/protocol/decisions/mod.rs:219,285).

Metrics to record (docs/api.md:340-345, 359-390): flare_cache_reused_tokens_total, flare_prefill_tokens_total, flare_host_cache_hits_total, flare_host_cache_fetched_total, flare_host_cache_fetch_failed_total, flare_host_cache_stored_total, flare_host_cache_bytes_in_total, flare_cached_checkpoints, flare_snapshot_evictions_total, flare_graph_launches_total{kind="restore"|"init"}. CLI flags: --prefix-cache-memory SIZE, --prefix-cache-disk DIR, --prefix-cache-disk-limit SIZE (docs/cli-design.md:753-755).

#4 [high] Hardware-fit constraints and the blocking gap

Hardware-fit facts that decide the plan.

  1. NO declared-parameter core exists anywhere in the repo. grep for core_parameters= outside tests finds only: ignition/preparation/contract.py:150 (the model_contract helper param), ignition/direct/scheduler.py:202 (reads it from config), tests/direct/test_scheduler.py (synthetic CPU Layouts), helios/src/model/testing.rs + helios/src/server/runtime/phase_tests.rs:6687 (synthetic in-process configs). No recipe in-repo declares core parameters (recipes live out-of-tree in local-inference-lab/hyperflare-recipes per docs/model-preparation.md:310-330). So the PR's own TODO (docs/TODO.txt:10-16) CANNOT be executed today.

  2. Building a declaring core is not test-time work; it needs a model change too. Ignition contract requirements (ignition/preparation/contract.py:31-37,131-146,149-157 + helios/model-contract.md:116-134):

    • core_parameter(name, default, minimum=, maximum=) -> {name, default_value, range}
    • binding(buffer, p.CORE_PARAMETER (ValueSource 43), indexing, parameter="name")
    • must be bound on EVERY selected text-forward graph (prefill, terminal_prefill, scored_prefill, resume, decode, speculative, mixed); forbidden on init/restore/snapshot/vision; core with declarations needs >=1 text-forward graph.
    • destination: contiguous width-1 FP32, >= prepared request capacity, SUBMISSION_ROW|ACTIVE_ROW|REQUEST_ROW, offset 0, padding 0, tensor "".
    • And the model forward must actually consume the value, else the parameter cannot influence outputs and checkpoint isolation is unobservable in generated text. That is model work, not QC work.
  3. Architecture split: cn5 GPUs are Blackwell Max-Q (SM120 class) and cn7 is GB10 = SM121. docs/model-preparation.md:477-478 states a prepared core is architecture-specific ("Prepare an SM121 core on Spark; an SM120 core does not satisfy the architecture"). So one core CANNOT be used on both machines.

  4. All four/five listed models show "(0 GiB)" on both machines, which indicates nothing is actually materialized in the core cache. Must verify with flare models list before booking a slot; otherwise the session burns on a download.

  5. Resource fit: cn5 gives 48 CPUs/125 GiB RAM/16 GiB scratch, 96 GiB per GPU. A Qwen3.8-27B NVFP4 TP1 core fits in ONE GPU. Use --gpus 0, not four. The 16 GiB scratch is the binding constraint for the disk prefix-cache tier (the offload test asks for --prefix-cache-disk-limit 8G and needs a direct-I/O filesystem); keep it <=4G or drop the disk tier.

  6. Free prerequisite beats any GPU minute: NO GitHub Actions run exists on head 55bab978, although python-cpu.yml:3-7, native-serving.yml:3-7 and helios-lifecycle.yml:3-11 all fire on pull_request. CPU suite commands are fixed by CI: cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server (native-serving.yml:63), .venv/bin/python -m pytest tests/ -q with CUDA_VISIBLE_DEVICES="" (python-cpu.yml:30-33), python3 verification/helios-lifecycle/check.py (helios-lifecycle.yml:34), cargo kani --manifest-path helios/Cargo.toml --features runtime-core --lib (helios-lifecycle.yml:47).

  7. Verified from the diff (result 6): the earlier bot blocker is FIXED on this head - hunk @@ -4483,6 +4486,7 @@ fn prefill_catalog_engine( adds core_parameters: vec![], at policy_tests.rs:4489. So the plan targets a coherent head; no rebase blocker remains.