Value proposition report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/51a4ee41-5327-41f1-b001-cb84f73c44e0.md

Verdict: worth it with changes — the capability is real, the layer and footprint are right, and every blocker from the closed #454 and my previous review is now addressed. What is left is a genuinely broken new test (it cannot pass), a couple of untested wiring paths, and documentation gaps. Fix those and this should merge.

What the change is now

9 files, +35/−14 plus one new test, entirely in Ignition's Python CLI/planner — no Rust, no per-model branches:

Charter mapping

Blockers (must fix before merge)

  1. The new test cannot pass — two independent defects.
    • tests/cli/test_planning.py:257 asserts by_key["context_target"].value.int64_value == 131072. The proto field is int_value (helios/proto/runtime_core.proto:127), so this raises AttributeError; and rebuild_manifest._preparation_value (rebuild_manifest.py:329-333) emits uint_value for a non-negative int, so the correct assertion is uint_value == 131072.
    • tests/cli/test_planning.py:230-232 plans with context=500000 and expects the clamp. 500000 % 64 == 32, so the new page-multiple validation (planning.py:289-290) raises UsageError and the test errors out before reaching the assertion. Use a page-aligned value above the recipe max (e.g. 327680 or 500032). Both are one-line fixes, but as pushed the PR does not pass its own suite.
  2. Two wiring paths the test does not cover. common_preparation_kwargs returning prepared_context (bootstrap.py:58) is the only line that changes the exported core, and the multi-host export path (cli/serve.py:206) was the previous blocker; neither is asserted. Add assert kwargs["context"] == capped.prepared_context (mirroring tests/cli/test_commands.py:88-91) and one assertion that the --ranks > 1 plan carries the target.

Should fix

  1. Plan.demand_pages is uncapped. planning.py:325-326 still computes concurrency * (recipe.context // page_tokens), so the plan's printed/to_dict demand (planning.py:440) overstates the KV demand of a capped core — the exact number this flag exists to lower. Use prepared_context there.
  2. Cap-affected derived values still use the recipe max. _server_options sets max_body_bytes from recipe.context and tells clients "context is limited by the checkpoint and available cache capacity" (cli/serve.py:68-69); that hint is what users see on a context admission error (helios/src/server/http.rs:59 (not opened)). With a cap the hint should name the export cap, and max_body_bytes should follow min(recipe.context, prepared_context) or be left deliberately oversized with a comment. Related: a cap also lowers the default output allowance, since max_new_tokens defaults to max_sequence_tokens (config.rs:210-212) — one sentence in the docs/cli-design.md:446 row.
  3. Evidence still does not show the capability the flag uniquely provides. The table uses --kv-cache-limit concurrency for every column, so it measures the pool, which --kv-cache-limit context / --memory-limit already move at serve time. Add one case at equal prompt and output length proving the ceiling: a request between the cap and the recipe max rejected by the capped core and accepted by stock, plus /v1/models reporting the smaller max_model_len. That is the claim no runtime knob can reproduce.
  4. The min(…, self.tokens) clamp bakes export-host VRAM into the artifact. planning.py:375 means --request-context 131072 can silently prepare less on a fuller GPU. It is legal (the catalog only requires max_sequence_tokens <= prepared_sequence_tokens and page alignment, helios/src/model/catalog.rs:48-57) and the description now says it, but to_dict() prints the target, not the effective value; printing prepared_context next to it makes the artifact self-describing.
  5. Say the accepted multiple in help. cli/__init__.py:167-170 (not opened) says nothing about the page multiple that planning.py:289-290 enforces; the neighbouring --prefill-chunk-size line states its multiple. Also consider naming the kwarg context_target= rather than context= in fit()/plan() (planning.py:455,593), since Plan.context keeps a different meaning; the current naming invites future misuse.

Cost, benefit, alternatives

Bottom line

Merge after fixing the two broken assertions in tests/cli/test_planning.py:230-232,257, adding the common_preparation_kwargs/multi-host assertions, and using prepared_context in demand_pages (planning.py:325-326). The evidence gap (5) and the hint/body-limit/default-output notes (4) are worth one revision of the description and one line of docs; none of them touch the design, which is well placed, general, and a no-op by default.