Value proposition scratchpad · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/83c075fb-7bbc-46fb-9c37-2ad3ad10aa1d.md

#4 [high] Report of 2026-11-26, run 1310 — #533 (rebased on #545)

Verdict: worth it with changes — smallest-footprint version yet (6 files, ~+30 code, +37 test), correctly reuses #545's RecipeParameters system so the flag/help/manifest/scope come for free. But two defects make the PR's own new test fail, and one exports a core Helios refuses to load after a full GPU preparation.

Diff scope (head, rebased on #545 compositional RecipeParameters)

docs/cli-design.md (+2/-1); ignition/cli/serve.py (+2/-2); ignition/parameters.py (+13); ignition/planning.py (+14/-1); ignition/preparation/bootstrap.py (+1/-1); tests/cli/test_planning.py (+37).

What works (verified)

BLOCKER 1 — --request-context never reaches reproduction_args (test line 324-325 fails; artifact gap #454 asked to close)

RecipeParameters.reproduction_args (parameters.py:1469-1528) OVERRIDES the base implementation, emits base fields by hand (--max-concurrency 1483, --prefill-chunk-size 1484, autotune/lock/compile 1522-1527), then skips every base field in the generic loop: parameters.py:1491 base_field_names = {f.name for f in fields(RecipeParameters)} parameters.py:1494 if dc_field.name in base_field_names or not spec.cli ...: continue context_target is a base-class field → skipped → --request-context is never emitted. repro_always=True on it is dead. Consequence: tests/cli/test_planning.py:324 ("--request-context" in manifest["reproduction_args"]) fails, and flare inspect / the manifest's reproduction command silently reproduce an UNCAPPED core — exactly yatesdr's #454 requirement. Manifest parameters carry it (base manifest_parameters, parameters.py:596-616, has no base-field skip), so repro and manifest disagree — proof it's an oversight. Fix: in the manual base block beside 1483-1484, if self.context_target is not None: args.extend(["--request-context", str(self.context_target)]) (band with prefill_chunk), or stop special-casing base fields.

BLOCKER 2 — an oversized target is rejected, contradicting the docs row and the PR's own test (test lines 310-313 fail)

max_fn=_recipe_context_limit (parameters.py:1268-1269, wired at :1316) returns context.recipe.context, so validate_fields (parameters.py:533-545) raises "--request-context for ALIAS must be 1 through 262,144" for context_target=500000. tests/cli/test_planning.py:310-313 asserts 500000 is accepted and clamps to the recipe max; docs/cli-design.md:468 says "resolves to the smaller of N and the recipe maximum"; prepared_context itself says min(...). Code vs docs vs test all disagree. Fix (one line): drop max_fn from context_target (keep it on prefill_chunk at :1301) so oversize clamps as documented; then ALSO change the page check to the served value min(self.recipe.context, target) % self.page_tokens — necessary because 500000 % 64 == 32, so the current check at planning.py:187-190 would still raise and the test case would still fail. With that pair, lines 310-313 and 319-321 both pass as written. (Alternative: keep rejecting and rewrite docs:468 + the test — but clamping matches Helios, which already clamps to the pool.)

BLOCKER 3 — a cap below the prefill chunk exports a core Helios refuses to load

Helios: helios/src/scheduler.rs:66-77 validate_prefill rejects prefill_chunk_size > max_sequence_tokens ("must be divisible by 64 and within 64..=context"); called from model/catalog.rs:42 after fit_context (server/config.rs:225-226). Export writes prefill_chunk_size = parameters.prefill_chunk (bootstrap.py:45-46; default 4096, parameters.py:1294) and max_sequence_tokens = prepared_context. Ignition has no check against the cap: RecipeParameters.validate compares the chunk to ctx.recipe.context (parameters.py:1458-1462), and plan() compares to result.context = min(recipe.context, pool tokens) (planning.py:594-596) — never prepared_context. So ignition export qwen3.8-27b --request-context 2048 plans cleanly, spends the whole GPU preparation, then flare run fails "invalid prepared model configuration". Any target below the chunk (default 4096) hits this. Fix: validate prefill_chunk <= prepared_context in Plan.post_init beside the page check, naming --request-context as the binding flag.

Should fix

  1. planning.py:320-321 demand_pages still concurrency * (recipe.context // page_tokens) → printed/to_dict KV demand (:407) overstates what the flag lowers.
  2. Plan.to_dict emits context (pool-bound) and checkpoint_context but no prepared_context; the served ceiling is only inferable from context_target. Add "prepared_context": self.prepared_context.
  3. docs/cli-design.md:468 must state that a cap also lowers the default output allowance (max_new_tokens defaults to max_sequence_tokens, server/config.rs:210-213) and that the cap must be >= the prefill chunk.
  4. Evidence is still mode-scoped: under the default --kv-cache-limit memory, page_ceiling returns Ok(None) (runtime_core/memory.rs:290-292) and pages fill free VRAM, so the VRAM table only holds with --kv-cache-limit context|concurrency (the commands used it; the claim does not say so). Add the one case only this flag can produce: a request between cap and recipe max rejected by the capped core but accepted by stock, and a smaller max_model_len in /v1/models.
  5. State the behaviour change honestly: stock passed recipe.context unclipped, so a cap above the pool now prepares a lower max_sequence_tokens than the same export without the flag.
  6. No test asserts the seam that actually changes the core: add common_preparation_kwargs(plan)["context"] == plan.prepared_context in tests/cli/test_commands.py:150-155.

Charter mapping

Bottom line

Merge after: (1) emit --request-context in RecipeParameters.reproduction_args, (2) let an oversize target clamp and check alignment of min(recipe.context, target) — which also makes lines 310-313 and 319-321 pass — and (3) reject a cap below the prefill chunk before preparation. Report/docs gaps are one revision of the description plus one line of docs.

#5 [medium] #533 verification details (run 1310)

Additional verified details for #533 review (head 9118addd, rebased on #545):

Verdict: worth it with changes (3 blockers, 6 should-fix). Design is the smallest-footprint version yet and correctly rides #545.