Value proposition report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/57847030-9251-4f7a-8fb6-995ccc37a5d3.md

Verdict: worth it with changes

The capability is needed, the layer is right, and this is the smallest-footprint version of the change yet: after the rebase onto #545's compositional RecipeParameters, the whole thing is 6 files, ~+30 code, +37 test, and the flag, --help row, manifest entry and SCOPE_DEPLOYMENT scope all come for free from the shared parameter machinery. Omitting the flag is a strict no-op (prepared_context returns recipe.context). 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.

What it does, verified on the head

Blockers

  1. --request-context never reaches reproduction_args, so the new test fails at tests/cli/test_planning.py:324 and the manifest's reproduction command rebuilds an uncapped core — exactly the #454 objection. RecipeParameters.reproduction_args (parameters.py:1469) overrides the base implementation, emits base fields by hand (:1483-1484, :1522-1527), and then skips every base-class field in its generic loop: :1491 builds base_field_names from fields(RecipeParameters) and :1494 continues when the name is in it. context_target is a base field, so repro_always=True on it is dead. The manifest parameters list does carry context_target (base manifest_parameters, :596-616, has no such skip), so artifact and reproduction command disagree — proof it is an oversight. → Emit it beside --prefill-chunk-size at :1484.
  2. An oversized target is rejected, contradicting the docs row and the PR's own test (tests/cli/test_planning.py:310-313). max_fn=_recipe_context_limit (:1268-1269, wired at :1316) returns the recipe context, so validate_fields (:533-545) raises "--request-context for ALIAS must be 1 through 262,144" for context_target=500000. But planning.py:363 promises min(recipe.context, target), and docs/cli-design.md:468 says "resolves to the smaller of N and the recipe maximum". The test asserts acceptance. → Drop max_fn from context_target (keep it on prefill_chunk at :1301) and align the page check to the value actually served — min(self.recipe.context, target) % self.page_tokens (planning.py:187-190) — because 500000 % 64 == 32, so the current check alone still rejects it. With that pair, lines 310-313 and 319-321 both pass unchanged. (The target=0 case at :315-317 still trips min_value=1 first, so it stays valid.)
  3. A cap below the prefill chunk exports a core Helios refuses to load. Helios rejects prefill_chunk_size > max_sequence_tokens (helios/src/scheduler.rs:66-77, via model/catalog.rs:42 after fit_context). Export writes prefill_chunk_size = parameters.prefill_chunk (bootstrap.py:45-46; default 4096) and max_sequence_tokens = prepared_context. Ignition never compares the two against the cap: RecipeParameters.validate compares the chunk to ctx.recipe.context (parameters.py:1458-1462) and plan() compares to result.context (planning.py:594-596) — never prepared_context. So ignition export qwen3.8-27b --request-context 2048 plans cleanly, spends the entire GPU preparation, then flare run fails "invalid prepared model configuration". → Validate prefill_chunk <= prepared_context in Plan.__post_init__ beside the page check, naming --request-context.

Should fix

  1. planning.py:320-321 — demand_pages still uses recipe.context, so the printed/to_dict KV demand overstates the very number this flag lowers.
  2. Plan.to_dict (planning.py:379-416) carries context, checkpoint_context and context_target but no prepared_context, and context_target has no status_label, so the "Select GPUs" line (serve.py:268-272, parameters.py:1540-1562) never mentions the cap. A capped export and a stock one differ in reporting only by context_target.
  3. docs/cli-design.md:468 should say a cap also lowers the default output allowance (max_new_tokens defaults to max_sequence_tokens, server/config.rs:210-213) and must be at least the prefill chunk.
  4. Evidence is 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 holds only with --kv-cache-limit context|concurrency (the commands used it; the claim does not say so). Add the case only this flag can produce: a request between cap and recipe max rejected by the capped core and accepted by stock, plus a smaller max_model_len in /v1/models.
  5. No test pins the seam that actually changes the core — add common_preparation_kwargs(plan)["context"] == plan.prepared_context at tests/cli/test_commands.py:150-155.

Charter mapping

Bottom line

Merge once (1) --request-context is emitted in RecipeParameters.reproduction_args, (2) an oversized target clamps and the page check validates the served min(recipe.context, target), and (3) a cap below the prefill chunk is rejected before preparation. The reporting/docs gaps are one revision of the description plus one line of docs; none touch the design, which is well placed, general, and a no-op by default.