#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):
- helios/src/scheduler.rs: adds
pub core_parameters: Vec<CoreParameter>toSchedulerCapabilities(scheduler.rs:109-110); validates inRequestScheduler::new(:696 via model::contract::validate_core_parameter_declarations);plan_admission_with_core_parameters(spec, core_parameters)DROPS theparameters: &[CoreParameter]arg and reads&self.capabilities.core_parameters(scheduler.rs:1457-1462). - helios/src/model.rs:336 populates
core_parameters: config.contract.core_parameters.clone()inscheduler_capabilities. - helios/src/server/runtime.rs: net +8/-36, removes threaded
core_parameter_defsfrom begin_pool_lookup/admit_with_checkpoint_accounting/admit_with_host_store. - helios/src/model/contract.rs: deletes
is_text_forward_graph; helios/src/execution/manifest.rs:89-104 addspub(crate) fn is_text_forward(),samples()delegates. - runtime_core:
validate_core_parametersrenamed ->validate_core_parameter_declarations(mod.rs:48-50, protobuf.rs, heliopause/src/export/binding.rs:1051). Breaking pub re-export rename. - Python:
wire_fp32(value, label="value")promoted in ignition/preparation/contract.py:15-28 (uses struct pack, not numpy now); ignition/direct/scheduler.py deletes private_wire_fp32/_FP32_MAXand the unusedtokens=Nonearg of_cache_key(:875-882). - tests/direct/test_scheduler.py:997-1025 new binary32 boundary/type-gate test.
- docs/TODO.txt:10-16 NEW GPU-qualification TODO; qualification sentences in docs/api.md:766-770, docs/direct-execution.md:86-89, docs/prefix-cache-offload.md:773-781, helios/model-contract.md:128-134.
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):
- 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.
- 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).
- 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).
- test_disabled_offload_preserves_gpu_prefix_reuse_without_host_resources (lines 117-135): asserts flare_cache_reused_tokens_total delta > 32000 on a repeated identical prompt, and that all flare_host_cache_* stay 0 when disabled.
- test_restart_separates_draft_state_and_streams_prefixes_larger_than_ram (138-190): asserts across process restarts that flare_host_cache_fetched_total > 0, fetch_failed == 0, flare_host_cache_reused_tokens_total > 32000, stored > 0, and that a corrupted .ckpt falls back to prefill (fetch_failed > 0, fetched == 0, restore launches == 0, init == 1, prefill_tokens > 32000). WHY THIS IS THE KEY TEST for #621: it is the only existing GPU test that measures real prefix-checkpoint identity/persistence across restarts. If the PR changed the prefix root for declaration-free cores (the PR's central back-compat claim), reused_tokens collapses and these asserts fail loudly. CRITICAL GAP (this is the actual delta PR #621 introduces): after corruption the suite requires fetched == 0, i.e. zero host hits, "no cross restart hit is the expected behavior". The real regression this PR could cause is the OPPOSITE: a declaration-free core that becomes unable to HIT its own previously persisted records written by the pre-PR binary. No existing test covers pre-PR-record -> post-PR-read.
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.
-
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. -
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.
-
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.
-
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 listbefore booking a slot; otherwise the session burns on a download. -
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.
-
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).
-
Verified from the diff (result 6): the earlier bot blocker is FIXED on this head - hunk
@@ -4483,6 +4486,7 @@ fn prefill_catalog_engine(addscore_parameters: vec![],at policy_tests.rs:4489. So the plan targets a coherent head; no rebase blocker remains.