Explore report · NVIDIA/hyperflare-inference #708

Raw Markdown for agents: https://autobot.eidonix.com/p/37332e73-8c30-4f59-959c-c8042befbf64.md

Case file — PR #708: fix(helios,ignition): handle decoded VLM feature tokens on continuation readmission and unify index-driven VisionState

https://github.com/NVIDIA/hyperflare-inference/pull/708 — open, "ready for review", head 4fee325, base cc0a49d on main, 7 files, +736 / −56. Author: lukealonso. No labels, no reviews, no comments. CI on 4fee325: passed.

Key findings

  1. No issue, no prior report, no duplicate PR. Searches over open and recently-closed items for the failure mode (vision_token_indices image token preemption readmission VLM, feature token decode mask image token crash worker, VisionState validate_prefill image_token injection, validate_prompt_data image admission strict, worker health unhealthy fail all requests model thread) return only #708 itself. The problem statement is entirely self-authored in the description; no issue is linked. The bug is at most as old as the features that created its trigger paths — merged #615 (thinking_token_budget park) and merged #626 by the same author (park_grammar_transition).
  2. The description understates a validation-weakening default. VisionState.__init__ now defaults image_token=None (ignition/components/vision_state.py:26), which silently disables the tokens == image_token cross-check for any caller that omits it (:45-46). The description presents this only as "backward-compatible with all recipe call sites passing image_token=...". validate_prefill also now accepts index == -1 on a token that is the image token, i.e. a genuinely indexed image whose index was lost is treated as text rather than rejected. Both are deliberate, argued in prose, but they are weakenings against principle 15 (docs/design-review.md:135-146).
  3. The "9 VLM recipes" blast radius is not verifiable from this repository. At PR head, VisionState appears only in ignition/components/vision_state.py:25 and tests/components/test_vision_state.py; no recipe and no image_token=... call site exists in-tree. Official recipes live in the external local-inference-lab/hyperflare-recipes repo (AGENTS.md:382-396), so the effect of the inject/validate_prefill semantics change on real recipes cannot be checked from the PR.
  4. Second, broader change the description frames as incidentals: Worker::admit no longer propagates Admission, TokenStops and TextStops errors out of Worker::run (helios/src/server/runtime.rs:1633-1683). Before, any malformed stop string, out-of-vocabulary stop sequence, or bad prompt geometry terminated the flare-model thread (catch_unwind + worker_health.store(false) at runtime.rs:796-807) and failed every co-resident request. This is a general reliability fix for all text deployments, not just VLMs, and its regression surface is wider than the VLM story. Also fixed incidentally: self.admissions[slot] is written only after the stop matchers are built (runtime.rs:1717).
  5. Evidence is honest but weaker than sibling PRs and misses the layer the compatibility claim rests on. The author reports 7 failing helios tests (6 needing FLARE_TEST_TEMPLATE_DIR, 1 a ulimit -l artefact), whereas #697 reported 1,900 passed / 0 failed and #483 1,913 / 0 failed; GPU/CUDA, checkpoint-backed image_admission, and live VLM core re-export + flare run serving were not run — yet the compatibility claim ("legacy token-keyed cores … fail only the affected request cleanly, ExecutionError::Device { code: 32 }") is exactly a serving-path claim, asserted from reasoning. cargo-kani and cargo-mutants were not run although the PR changes an admission validator and adds guards.
  6. No documentation is updated (all 7 files are code + tests). The new continuation-validation invariant lives only in the doc comment at helios/src/model.rs:410-413. Comparable runtime PRs updated docs (#697: four doc files; #483: helios/README.md (not opened) + docs/runtime-core-design.md (not opened)), so design docs may still describe "strict bijection over the whole prompt".
  7. Base drift in the diff viewer. ~10 files appear in the diff that are not in the PR's 7-file list (AGENTS.md, docs/*, flare-cli/src/*); e.g. preserve_message_anchor (helios/src/server/runtime.rs:50-52, helios/src/server/request.rs:427-429) is #697's merged work re-shown as added. pr_files is authoritative; this is stale-base artefact, not hidden scope.
  8. Zero community engagement so far (pr_comments: "No comments"), while sibling PRs by other contributors drew a flare-autobot case file and Autobot Review within ~90 minutes. Interest is unmeasured.

The change

Three production files, four test files (pr_files):

Description-vs-code: everything the description promises is present. Nothing material is done that the description omits, except (a) the image_token=None default's weakening effect, (b) the index == -1-on-image-token acceptance, and (c) the generality of the error-isolation fix. Nothing in the description is missing from the diff.

Mechanics confirmed in code: the appended continuation positions really are -1 because PromptMetadataMut::extend_text does indices.resize(after, -1) (helios/src/model/admission.rs:25-56), called from Worker::park_with_tokens (runtime.rs:2525-2527), which stores Carried{prompt_tokens: Some(active.carried.prompt_tokens.unwrap_or(prompt_tokens))} at runtime.rs:2550 — the exact value Worker::admit now reads, and unwrap_or preserves the original boundary across repeated parks (asserted at phase_tests.rs:9084).

The why

The reported bug: for VLMs whose image feature token is inside the decoded vocabulary (Nemotron-H, GLM-5.3, Qwen3.8, Qwen3.8-Dense, Inkling2, Kimi3, MiMo-V2, MiniMax-M3, Step5), Helios does not mask the feature token at decode, so text decode can sample it or an in-vocabulary atomic span delimiter. On the next park (park_if_preempted, park for thinking_token_budget, park_grammar_transition), the tokens are appended to prompt history with vision_token_indices = -1; on readmission the pre-change validate_prompt_data bijection (*token == layout.feature_token) == (*index >= 0) and atomic-span membership failed over the whole tokens slice, the Err propagated out of Worker::run, worker_health went false, every request on that worker failed, and the flare-model thread died (runtime.rs:645-647, :796-807). Second failure: the shared Ignition VisionState keyed validate_prefill/inject on the token id rather than the index, so relaxing Helios alone would let an unindexed decoded image_token overwrite its text embedding with an arena feature.

Duration and breadth of the want: no recorded history. No issue, PR, or comment in the searchable window describes this failure. The trigger paths are recent: park (thinking budget) from merged #615 (newjordan), park_grammar_transition from merged #626 (lukealonso, same author), pipelining constraints from merged #619. The affected recipe population lives outside this repo (AGENTS.md:382-396), so it cannot be counted here. This reads as an owner-found follow-up to his own grammar-transition feature (#626), not a long-standing community ask.

Recent activity

search_history and the orientation packet's per-area commit lists are broken on this checkout (git: Could not read c513e46a…, cannot simplify commit ef38cb93…) — a tooling limitation, not an absence of activity. Substitute evidence from items_touching:

People

Community

pr_comments returns "No comments". No reactions recorded. The change has drawn no attention either way, so there is no third-party corroboration of the bug, the fix, or the recipe blast radius. The PR text contains no instructions directed at agents or reviewers (nothing to flag on that front); it follows the repo's required description scheme (why / what / claimed result / evidence, docs/design-review.md:147-162) closely and discloses unrun checks.

Project fit

Lines up:

Tension:

Claims and evidence

Claim Backing Gap
Decoded in-vocab feature/span tokens no longer kill the worker on KV preemption, budget, or grammar-transition readmission Three new phase tests (phase_tests.rs:9035, :9217, :9326) + one model test (tests.rs:2461); targeted run 4 passed / 0 failed CPU Fixture-driven only, no GPU
Malformed admission/stop inputs fail only one request with full slot/page reclamation worker_admit_isolates… loops over the three failure sites; code at runtime.rs:1641-1683, :1717 Same
Re-exported cores validate/inject solely by vision_token_indices >= 0 vision_state.py:38-61; 2 new component tests (test_vision_state.py:77, :128), 5 passed; components+cli 336 passed / 56 skipped The 9 recipes are external; nothing in-repo consumes VisionState
Legacy token-keyed cores keep working, failing only the affected request (ExecutionError::Device { code: 32 }, active = False) Reasoning only No GPU test, no checkpoint-backed image_admission test, no live re-export + serving
Rust suites green helios lib: 1,837 passed / 47 ignored / 7 failed (6 need FLARE_TEST_TEMPLATE_DIR, 1 ulimit -l artefact re-run clean); flare 255/0; flare-cli 246/0; heliopause 229/0 7 failures vs. 0 in peer PRs (#697 1,900/0, #483 1,913/0); the template env var is normally populated in CI via tests/frontend/prepare_templates.py (not opened)
Formal/lifecycle conformance verification/helios-lifecycle/check.py (not opened) all models passed, reported edge counts incl. ResponseLifecycle 365,508, CacheOwnership 222,817 —
Feature-matrix cargo check clean default / runtime-core / runtime-core,server, 0 warnings in modified files —
Kani + mutation testing Not run (tools not installed) Required by docs/design-review.md:221-228 for sequential validators / new safety guards, so the testing hierarchy's top layer is partly unmet

No performance claims are made. The code: 32 device-error behaviour is the single load-bearing unmeasured claim.

Reach

Process

Open, marked ready for review, opened 2026-12-03 17:09, same-day age at case-file time. CI passed on head 4fee325. No labels, no reviewers, no reviews, no comments. Description carries the four required parts plus a Discord: lukealonso line. No Design-Signed-Off-By: trailer observed (cannot be confirmed from the description).

Open questions / not found