Value proposition report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/5eec5d66-a8b4-4b18-b4ca-87087be169bc.md

Verdict: worth it with changes

The capability is needed, the layer is right, and the footprint is now small: 6 files, ~+69/−14, all Ignition Python plus docs — one optional field on the shared RecipeParameters base, one Plan.prepared_context accessor, one consumer line, no Helios change, no per-model branch. Omitting the flag is a strict no-op. All three defects I blocked on last round are fixed at head e6239855. What remains are test hygiene, one docs sentence and one reporting line — nothing touches the design.

The three blockers are closed, verified line by line

  1. Reproduction args. ignition/parameters.py:1484-1485 now emits --request-context beside --prefill-chunk-size, inside the override that :1492-1495 would otherwise skip by base-class name. repro_always (dead for base-class fields on this path) is gone. A capped export's manifest command now rebuilds a capped core, satisfying the #454 objection.
  2. The documented clamp is reachable. max_fn=_recipe_context_limit is dropped; context_target (parameters.py:1309-1319) declares only min_value=1, manifest_key, DEPLOYMENT scope and a status_label. planning.py:357-363 therefore delivers min(recipe.context, target), so tests/cli/test_planning.py:310-313 (500000 → recipe max) and the rejection at :319-321 (100) are now mutually consistent. The page check at planning.py:186-190 is gated on target <= recipe.context, which is exactly the set of values where prepared_context == target — so it validates the served quantity, not the request. That is a better resolution than the min(...) % page_tokens I asked for, because it leaves an oversized target a documented no-op rather than a rejection.
  3. A cap below the prefill chunk is rejected at export. planning.py:594-597 compares params.prefill_chunk against effective = min(result.context, result.prepared_context). --request-context 2048 with the default 4096 chunk now fails in planning instead of after a full GPU preparation with Helios refusing to load (helios/src/scheduler.rs:66-77 via model/catalog.rs:42).

Also done: the status_label (:1318) so the cap appears in the printed Select GPUs. line, serve.py:67-70 using prepared_context for max_body_bytes with the hint conditional on the cap being active, the --help wording at help.py:46 (not opened) ("max … can lower this"), both universal-field enumerations (docs/cli-design.md:449, docs/preparation-development.md:18 (not opened)), and the owner rows (cli-design.md:468, :1436).

Should fix before merge

  1. The new test calls the real source_identity(). tests/cli/test_planning.py:295 accepts monkeypatch and never uses it, but :323 reaches rebuild_manifest.from_plan, which calls source_identity() (rebuild_manifest.py:327) — hashing ignition, flashinfer and heliopause, and requiring find_spec("flashinfer") to succeed (source_identity.py:39-41). Both sibling tests patch it (:223, :333). In a CPU-only test environment this turns a pure planning test into an environment-dependent one. → One line: monkeypatch.setattr("ignition.preparation.source_identity.source_identity", lambda: "test-source").
  2. Nothing pins the seam that actually changes the core. Revert bootstrap.py:132 to plan.recipe.context and the new test still passes: :301-313 assert the accessor, :324-329 assert the manifest. → Two assertions in the pattern of tests/cli/test_commands.py:150-155: BasePreparationConfig(**common_preparation_kwargs(capped, …)).context == 131072, and the same for the stock plan.
  3. The one new safety check has no test. planning.py:594-597 was added this round and is untested. → One pytest.raises(UsageError, match="prefill-chunk-size") with context_target=2048 and the fixture's 4096 chunk, beside :315-321.
  4. docs/cli-design.md:468 under-documents the cap. It should say the cap also lowers the default output allowance (max_new_tokens defaults to max_sequence_tokens, helios/src/server/config.rs:210-213) and must be at least the prefill chunk. Both are real constraints a user will hit.
  5. Evidence is mode-scoped. Under the default --kv-cache-limit memory, page_ceiling returns Ok(None) (helios/src/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. Put the condition on the claim, and 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 (helios/src/server/models.rs:81).
  6. planning.py:320-321 — demand_pages still uses recipe.context, so the printed/to_dict KV demand overstates the very number this flag lowers (only consumer is :407).
  7. status_label prints the raw target: an oversized --request-context 500000 reports "request context 500,000 tokens" while the core serves 262,144.
  8. Description: "Helios's fit_context applies min(context, prepared_context)" is backwards — the min is Ignition's; fit_context (helios/src/model.rs:261-273) clamps to pages × page_tokens. And to_dict (planning.py:379-416) still carries context/checkpoint_context with no prepared_context, so a capped export differs in reporting only by context_target.

Charter mapping

Bottom line

Worth merging. The design is right, general and a no-op by default, and every defect that could produce a wrong or unloadable core is fixed. Merge after (1) the missing source_identity patch, (2) two seam assertions, (3) one pytest.raises for the prefill-chunk bound, and (4) the two constraint sentences in docs/cli-design.md:468. Items 5–8 are one revision of the description plus a line each; none justify holding the change.

Nothing was executed — the head has no CI checks and no pytest run happened here, so every claim above is a static read of the cited lines. pytest tests/cli/test_planning.py tests/cli/test_commands.py settles items 1–3 in one command.