Explore report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/0946d4bc-60bb-4afa-8217-b7532335fc0e.md

Amendments to the 2026-11-26 report on PR #533 ("Cap the per-request context target")

New event: the head moved de1b5b545 → 02023eba (2026-11-26, branch requested-context-target → main), the description was rewritten (PR body updated 17:45), and roobyz posted a bare @flare-autobot re-review ping at 17:56. Diff is now +84 −18 in 9 files (was +98 −18); the shrink is rebase-only — the base now carries #543 (joint-tuning removal) and #508 (row-sharded attention). Per-file: docs/cli-design.md +3 −2, ignition/cli/__init__.py +2 −0, ignition/cli/bench.py +3 −1, ignition/cli/preparation.py +1 −1, ignition/cli/serve.py +5 −4, ignition/planning.py +19 −9, ignition/preparation/bootstrap.py +1 −1, ignition/preparation/rebuild_manifest.py +3 −0, tests/cli/test_planning.py +47 −0.

Everything below is an amendment. Findings not amended here stand as written in my 2026-11-26 report (run 1134) on head de1b5b545.

Key findings (amendments only)

  1. New blocker, caught by no review to date: all three subcommands crash on derive(context=...). ignition/cli/preparation.py:45-56 declares derive(...) ending in force_moe_decode_a16: bool | None = None) — there is no context parameter — yet :69, which is part of this PR's diff, writes row_shard_attention=row_shard_attention, context=context). Every caller passes context= as a keyword (ignition/cli/serve.py:207, :291, :476; ignition/cli/bench.py:177), so export, bench and debug-serve raise TypeError: derive() got an unexpected keyword argument 'context' unconditionally — with or without the flag. Callers that omit it hit NameError: name 'context' is not defined at :69, which breaks the existing suite (tests/cli/test_commands.py:88-91, :114-117). The diff proves it: the only preparation.py hunk is the single :69 line; the signature is untouched.
  2. Reversed — the page-multiple validation was deleted. The check I reported at planning.py:289-290 at de1b5b5 no longer exists. Plan.__post_init__ (ignition/planning.py:224-296) has no context_target branch, and a repo-wide search for multiple of the in ignition/ returns nothing about --request-context. The only validation left is positivity (ignition/planning.py:467-468). So a misaligned cap (--request-context 100000 on a 64-token page recipe) passes planning, exports, and produces a core Helios refuses at load (helios/src/model/catalog.rs:48-57). The original #454 blocker is back, and it is no longer even documented as a requirement.
  3. The added test still cannot pass — on two different assertions now. tests/cli/test_planning.py:238-240 expects match="multiple of the", which no longer exists (with context=100 it now trips the below-chunk error at planning.py:709-711, whose message is about --prefill-chunk-size); and :254 reads by_key["context_target"].value.int64_value, while from_plan writes uint_value (rebuild_manifest.py:329-333; the field set is int_value = 2 / uint_value = 3, helios/proto/runtime_core.proto:125-128), so it is an attribute error, not a zero. The clamp case :229-232 now passes — nothing rejects it any more.
  4. The rewritten description asserts three things the head does not do: a page-multiple validation (deleted), a below-chunk error that "distinguishes the default chunk from an explicit one" (collapsed to a single arm at planning.py:709-711), and a test covering "the bootstrap value" (bootstrap.py:58/common_preparation_kwargs is asserted by nothing; tests/cli/test_commands.py:94-97 checks only prefill_chunk_size and max_active).
  5. Three prior provenance findings are genuinely closed, so I withdraw them: Plan.to_dict now carries prepared_context (planning.py:438), the serve "Select GPUs" line prints the cap (serve.py:319), and the bench artifact whitelist includes "context_target", "prepared_context" (bench.py:248).
  6. Still blocking and unchanged: the evidence baseline. No stock core served with --kv-cache-limit context, no reduced --memory-limit row. The table still compares cap levels against each other only.
  7. Docs regressed and small targets stay unfixable. docs/cli-design.md:446 lost the --kv-cache-limit concurrency condition it had at de1b5b5 and is unconditional again; and a target below 64 still yields an unloadable core whose error advises an impossible chunk.
  8. Withdrawn for good: the charter/non-goal objection. No amendment needed — noting only that the co-hosting framing did not come back in the rewrite.

Net verdict: unchanged at request changes / not mergeable, but the PR is strictly worse than the head I last reviewed, and two of the "fixed" blockers have regressed.


A. New blockers

A1. derive() has no context parameter, and all three subcommands pass one

ignition/cli/preparation.py:45-56 — the keyword-only list ends row_shard_prefill: bool = False, row_shard_attention: bool = False, force_moe_decode_a16: bool | None = None) -> planning.Plan: There is no context parameter, and no module-level context name exists in the file (the only other occurrences are context_parallel at :47, :62 and the context_parallel() helper at :124-132). ignition/cli/preparation.py:69 (this PR's +1/−1 line):

        row_shard_attention=row_shard_attention, context=context)

Consequences, in order of severity:

A2. Page alignment: the check that was added at de1b5b5 has been removed

A3. The added test fails differently (detail for A2 and the schema mismatch)

tests/cli/test_planning.py:211-254, test_request_context_target_prepared_context_and_manifest (43-line body; three blank lines before :258, i.e. E303 — further evidence it was never linted or executed):


B. Description and docs

B1. Three stale claims in the rewritten description

The body (updated 2026-11-26 17:45) says "What Changed: … a positive-target validation, a page-multiple validation, and a below-chunk error that compares the chunk against prepared_context and distinguishes the default chunk from an explicit one", and that "tests/cli/test_planning.py gains a test covering the no-op path, clamp, both validations, manifest keys, and the bootstrap value". None of the three survives at 02023eba: no page-multiple check (A2), a single-arm chunk error (planning.py:709-711, applied from the 09:57 Subtract/Simplify item — the collapse itself is fine, the description just wasn't updated), and no bootstrap-value assertion anywhere. Also still mislocated: "the recipes' prepare() read context=plan.prepared_context" — the seam is ignition/preparation/bootstrap.py:58 → BasePreparationConfig.context (bootstrap.py:33), and recipes live in the external hyperflare_recipes repo. Ordering is still What Changed → Evidence → Result with the why as a Workload line inside Evidence, against AGENTS.md:72-80.

B2. The docs row is unconditional again (a regression against de1b5b5)

docs/cli-design.md:446 now reads, in full: "Cap the prepared per-request context and max_sequence_tokens at N tokens, below the recipe's maximum. Command line only; a core's catalog is fixed at export, so changing it requires re-export." The conditional sentence the 09:57 review added ("With --kv-cache-limit concurrency, shortening the per-request context frees VRAM for additional concurrent requests") is gone — I had withdrawn that objection at de1b5b5 and now reinstate it. A reader who exports with a cap and serves with defaults sees no VRAM change: page_ceiling returns Ok(None) for KvCacheLimit::Memory (helios/src/runtime_core/memory.rs:290-292 (not opened); default memory at docs/cli-design.md:738), and only Context/Concurrency size a ceiling from the prepared context (:298-320). The description does keep the condition, so docs and description now disagree. Also still unmentioned in both docs/cli-design.md:446 and the help (ignition/cli/__init__.py:167-170): the page-multiple requirement, which is now unenforced in code but still required at load. Minor: docs/cli-design.md:1443 says "The checkpoint maximum" where :446 says "the recipe's maximum".

B3. Sub-64 targets still produce an error with no valid remedy (unchanged, now single-arm)

ignition/planning.py:709-711 is now one message: "--prefill-chunk-size 4,096 exceeds the {effective_context:,}-token context this plan allows". With --request-context 32 and no --prefill-chunk-size, the only remedy is a chunk ≤ 32, but chunks must be 64..recipe.context and a multiple of 64 (ignition/planning.py:634-637) and Helios independently requires 64..=max_sequence_tokens (helios/src/scheduler.rs:66-77). Such a target always exports an unloadable core. Reject targets below 64 — or below the recipe's default chunk when no chunk was given — outright.


C. Closed, shrunk, or still open

C1. Closed (three items I withdraw from my last report)

C2. Residual nits, unchanged in substance

C3. Export-time sizing untouched (unchanged)

Plan.demand_pages (planning.py:331-332, concurrency * (recipe.context // page_tokens)) and the pages sizing in fit (:550-556) still use the recipe max, so fits/CapacityError output is identical with and without the flag. The saving appears only at load/serve via max_sequence_tokens (bootstrap.py:58 → helios/src/server/config.rs:131,148). Worth stating in review, since the framing implies an export-time saving.

C4. The evidence baseline is still missing (unchanged, still blocking)

Same matrix: Qwen3.8-27B, one RTX PRO 6000 Blackwell (SM120, 96 GB), base revision now f377dc8, exports --max-concurrency 8 --online-mxfp8 with target unset / 196608 / 131072, served at concurrency 1–4 under --kv-cache-limit concurrency. It compares cap levels against each other. Missing: (a) a stock core served with --kv-cache-limit context — pool = one prepared context (maximum = ceil(context/page_tokens) × histories, histories = 1 for Context, helios/src/runtime_core/memory.rs:298-302 (not opened), :316-320), i.e. ~256K of pool at concurrency 4 for a 256K recipe, versus 4 × 128K = 512K with a 128K per-request ceiling; (b) a reduced --memory-limit row. Those two rows are what decide whether an export-time knob earns its footprint. (The description's stale-base problem I flagged earlier is partly repaired: it now says "with the flag active (base revision f377dc8)" and drops the unverifiable "thirteen recipes" count.)


D. Thread state and collision surface

E. Priority order for the author (amended)

  1. Declare context: int | None = None on derive (ignition/cli/preparation.py:45-56) — the head is red for every subcommand until then.
  2. Re-add the page-multiple check, on the clamped value, in Plan.__post_init__.
  3. Fix the two test assertions (:238-240, :254), add the source_identity monkeypatch, and add the bootstrap.py:58 assertion plus the multi-host one.
  4. Restore the --kv-cache-limit concurrency condition in docs/cli-design.md:446.
  5. Correct the three stale description claims (B1).
  6. Add the two baseline rows (C4).

Open questions / not determinable from this tree