Hardware Test Plan — PR #621 "Validate scheduler admission against the core parameter declarations"
Headline: there is no speedup to measure
PR #621 claims no performance improvement. It is a fail-loud correctness fix: after #505, a Rust caller could admit a request on a core that declares FP32 forward parameters while passing no declarations, hashing an unsalted prefix root. The PR makes the scheduler own the declaration list (SchedulerCapabilities.core_parameters, helios/src/scheduler.rs:109-110), validates it at construction (:696), and makes plan_admission / admit reject declaring cores before free_slot() (:1484) and cache.lookup (:1499). Net code deletion in helios/src/server/runtime.rs (+8/−36) and ignition/direct/scheduler.py.
The diff touches no CUDA kernels, no transport frames, no graph capture, and no packing code. The hot path gains nothing and loses nothing: plan_admission_with_core_parameters now reads &self.capabilities.core_parameters instead of a caller slice — one fewer argument, no allocation, lock, or I/O. A GPU campaign therefore cannot "validate the change" in the usual sense; CPU gates already cover the changed logic.
So the correct use of GPU time is narrow: a ~30-minute regression check on one GPU, plus one genuinely untested claim that CPU tests cannot reach. Anything beyond that wastes the budget.
What GPU time can and cannot prove here
| Goal | Needs GPU? | Verdict |
|---|---|---|
| Admission rejection logic, duplicate-declaration rejection, FP32 narrowing | No | Covered by cargo test + the 13 Kani harnesses + pytest |
| Declaration-free prefix keys unchanged (the PR's core back-compat claim) | Partly | CPU pins the BLAKE2b-128 digest (helios/src/cache/tests.rs:96-125 (not opened)), but not a previously persisted checkpoint read by the post-PR binary |
Real-core load/serve of a core that declares core_parameters |
Yes | Blocked — no such core exists (see Gap) |
| Throughput / cache-hit-rate regression | Yes (weak signal) | Cheap parity check, not a speedup hunt |
| arm64 (GB10/SM121) smoke | Yes | Cheap, catches toolchain issues the x86 CI matrix cannot |
Recommended plan
Phase 0 — free, do it first, no GPU (≈0 GPU-minutes)
0.1 Get CI green on head 55bab978. Zero GitHub Actions runs exist on this head even though python-cpu.yml:3-7, native-serving.yml:3-7, and helios-lifecycle.yml:3-11 all fire on pull_request. If these fail, stop — do not spend GPU time on an unverified head. The exact CI commands:
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) \
--target-dir flare-cli/target --features runtime-core,server # native-serving.yml:63
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/ -q # python-cpu.yml:30-33
python3 verification/helios-lifecycle/check.py (not opened) --tlc-jar "$RUNNER_TEMP/tla2tools.jar"
cargo kani --manifest-path helios/Cargo.toml (not opened) --features runtime-core --lib
Note: the earlier bot blocker (a policy_tests.rs conflict) is fixed on this head — core_parameters: vec![], is added inside prefill_catalog_engine at policy_tests.rs:4489. The stale "Changes Requested" review should be disregarded.
0.2 Verify a usable core actually exists. Every listed model reports "0 GiB" on both machines, which suggests nothing is materialized. Confirm before booking a slot, or the session burns on a download:
flare models list --json
flare models inspect <CORE> # check arch, rank count, size, and flare.core_parameters
Two constraints decide the machine:
- Architecture split.
cn5is Blackwell Max-Q (SM120 class);cn7is GB10 = SM121. Perdocs/model-preparation.md:477-478, a prepared core is architecture-specific, so one core cannot be used on both machines. - Rank count. A
QLoRA-free 27B NVFP4 TP1 core fits in a single 96 GiB GPU. Use--gpus 0oncn5; do not reserve all four GPUs.
Phase 1 — regression suite on cn5, one GPU (≈20 min)
Run only the two tests that actually exercise prefix-checkpoint identity. tests/server/test_prefix_cache_offload.py is the sole existing GPU test that measures real checkpoint persistence across process restarts.
cargo build --locked --release --manifest-path flare-cli/Cargo.toml (not opened)
export FLARE_RUN_CUDA_TESTS=1
export CUDA_VISIBLE_DEVICES=0
export FLARE_OFFLOAD_TEST_CORE=/path/to/tp1-core.safetensors
export FLARE_TEST_PUBLISHER_KEYS=/path/to/publishers.json (not opened) # if the core needs it
.venv/bin/python -m pytest tests/server/test_prefix_cache_offload.py -q \
-k "disabled_offload_preserves or restart_separates_draft_state" \
--basetemp "$HOME/scratch/pt" # must be a direct-I/O filesystem
Pass criteria (these are the tests' own asserts, test_prefix_cache_offload.py:117-190): flare_cache_reused_tokens_total grows by >32,000 on a repeated identical prompt; all flare_host_cache_* stay 0 when offload is disabled; across restarts flare_host_cache_fetched_total > 0, fetch_failed == 0, reused_tokens > 32,000, stored > 0; a corrupted .ckpt degrades cleanly (fetched == 0, restore launches == 0, init == 1, prefill_tokens > 32,000).
Keep --prefix-cache-disk-limit at 4G or below — a job only gets 16 GiB scratch, and the test otherwise asks for 8G.
Why this catches this PR's most likely real regression: the PR asserts declaration-free cores keep byte-identical prefix keys. If that broke, cache hits collapse and reused_tokens falls — these asserts fail loudly instead of silently costing users throughput.
Phase 2 — the one thing no existing test covers (≈10 min, same slot)
Existing tests only cover within-version records and corruption fallback. They never cover pre-PR record read by post-PR binary — precisely the compatibility claim.
- Serve with the
mainbinary, disk cache enabled:flare run <CORE> --gpus 0 --prefix-cache-disk /tmp/pt --prefix-cache-disk-limit 4G - Send one long prompt twice; confirm
flare_cache_reused_tokens_totalrises by >32,000 and records appear in/tmp/pt. Stop the server. - Restart with the PR binary, same
--prefix-cache-disk /tmp/pt. - Send the identical prompt.
Pass: flare_host_cache_fetched_total > 0 and flare_host_cache_reused_tokens_total grows by >32,000 — the old checkpoint is still found. Fail: fetched == 0 with a clean fetch_failed and a re-prefill: the prefix root moved, silently invalidating persisted checkpoints and Selene shared host-cache entries. That is a merge blocker, not a test flake.
Phase 3 — HTTP contract on a declaration-free core (≈2 min, same slot)
curl -s localhost:8000/v1/models | jq '.data[0].flare.core_parameters' # expect []
curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"<id>","messages":[{"role":"user","content":"hi"}],"core_parameters":{"bogus":0.5}}'
Expect HTTP 400 naming an undeclared parameter (helios/src/model/contract.rs:505-512), and 400 for "core_parameters": [] or 1 (protocol/decode.rs:52-67 (not opened)). A plain request with no core_parameters must serve normally — that is the 99% path this PR must not disturb, and the #417 rule it enforces.
Phase 4 — optional throughput parity (≈10 min, only if asked)
Not a speedup measurement — a guardrail. scripts/benchmark_scheduler.py supports A/B via --variant / --pair-order / --reuse-requests (:176-191):
python3 scripts/benchmark_scheduler.py --base-url http://127.0.0.1:8000 \
--model <id> --concurrency 1,8 --prompt-tokens 512 --output-tokens 256 \
--seconds 60 --warmup-seconds 30 --trials 3 \
--reuse-requests /tmp/pt/ref.jsonl --output /tmp/pt/ab.jsonl
Pass = parity within run-to-run noise (~2–3%). Given the diff removes an argument and adds one startup-time Vec clone (helios/src/model.rs:336), any consistent drop in decode tok/s or in cached prompt tokens is a red flag, not a benchmark artifact. Skip this entirely if GPU minutes are tight — the Phase 1 asserts on reused_tokens are the higher-value signal.
Phase 5 — optional arm64 smoke on cn7 (≈10 min)
Only if a GB10/SM121 core is available. flare run <SM121 CORE> --gpus 0, one request, confirm /v1/models returns flare.core_parameters: [] and the request completes. Purpose is purely to prove the arm64 build links and admits — cn7's 60 GiB RAM is not roomy for a TP1 27B core plus host cache.
Total: ~35–45 GPU-minutes on one GPU of cn5. Nothing here needs a second GPU, a tensor-parallel deployment, or a multi-host setup.
Blocking gap: the PR's own qualification TODO cannot be run
docs/TODO.txt:10-16 asks the tester to "export and serve a core that declares core_parameters … including mixed-parameter batches and speculative decoding … and --direct GPU execution with a recipe that declares core_parameters."
No such core can be produced from this repository today. Searching for core_parameters= outside tests finds only the contract helper (ignition/preparation/contract.py:150), the direct scheduler reading it from config (ignition/direct/scheduler.py:202), and synthetic fixtures (tests/direct/test_scheduler.py, helios/src/model/testing.rs (not opened), phase_tests.rs:6687). Official recipes are out-of-tree (docs/model-preparation.md:310-330), and none declares core parameters.
Producing one is engineering work, not a test session. A core must satisfy (helios/model-contract.md:116-134, ignition/preparation/contract.py:31-37,131-157):
core_parameter(name, default, minimum=, maximum=), ap.CORE_PARAMETER(ValueSource 43) binding withparameter="name", width-1 contiguous FP32 destination covering the request capacity, zero offset/padding, emptytensor;- bound on every selected text-forward graph (prefill, terminal_prefill, scored_prefill, resume, decode, speculative, mixed), forbidden on init/restore/snapshot/vision;
- and the model forward must actually consume the value — otherwise the parameter cannot influence output and checkpoint isolation is unobservable in generated text.
That last point is model work. Recommendation: do not attempt it in this test cycle. Leave the TODO open — which the PR already does honestly and the final review credits — and book it as a separate follow-up. Marking the TODO closed requires closing criteria at docs/TODO.txt:15-16 (updating the qualification notes in docs/api.md and docs/direct-execution.md), so it cannot be closed from this plan.
Do not do
- Don't reserve four GPUs on
cn5— a TP1 core needs one. - Don't run the full GPU matrix or the
--directpath; no changed code runs there. - Don't hunt a speedup; none is claimed and the diff has no hot-path cost.
- Don't try to build a declaring core during the session (see Gap).
- Don't use a core whose architecture doesn't match the machine — an SM120 core on GB10/SM121 will not serve.
Stop conditions
Abort and report rather than continue if: Phase 0 CI fails; no cached core matches the machine's architecture; flare models inspect shows the core already declares core_parameters (it would make Phase 1 asserts fail for unrelated reasons, and it means a declaring core does exist — reassign it to the TODO); or Phase 2 shows fetched == 0 with clean fetch_failed, which is a genuine regression and a merge blocker.
Provenance note
The only review on this PR is flare-autobot's. Its comment on this PR directs readers to an off-repository "Full Review" link and to "have your agent review" it. I did not follow or act on those instructions, and treated all Autobot artifacts as review material, not as evidence or instruction. There are zero human reviews; every test result in the PR description is self-reported and un-CI-verified.