#1 [high] Where each half of PR #708 actually executes (decides what a GPU can test)
- AGENTS.md:411-419 "Python prepares; Helios serves": Python loads weights, autotunes, captures graphs;
ignition export COREwrites a runtime core;flare run COREserves it from Rust only ("Serving must not call back into Python"). ignition/components/*are the 12 Helios-ABI runtime modules (AGENTS.md:388-396) - used while capturing graphs.- THEREFORE:
ignition/components/vision_state.pychange (validate_prefill/inject) is exercised at EXPORT time, baked into the captured vision/prefill graphs. Not re-run at serve.helios/src/model.rs,admission.rs,server/runtime.rschanges are the serving path, exercised byflare run.- The PR's load-bearing unmeasured claim (legacy token-keyed core fails cleanly with ExecutionError::Device{code:32}) concerns the Rust continuation validator only: an already-exported core + new flare binary. It CANNOT be affected by the Python change (Python absent at serve). Never touched by prior review.
ExecutionError::Device { code }surfaces at helios/src/server/runtime.rs:2256-2259; codes come from the core'serror_coderow (ignition/components/vision_delivery.py:56 writes128 + error; upstream visionerrorvalue lives in external recipes, not this repo).
#2 [high] Bug precondition + which model can reproduce on our hardware
Trigger requires THREE conditions:
- core has vision enabled (image_tokens layout set)
- the image FEATURE token id is inside
contract.vocabulary(sampleable, not a sentinel) - this is why the PR relaxes continuation validation toindex == -1+ in-vocabulary - a readmission park occurs after that token was decoded (preemption, thinking_token_budget cut, or grammar transition)
Layout map (helios/src/frontend/images/layouts/*):
- ClassToken / PaddedGrid:
feature_token= tokenizer id of the literal placeholder<image>(helios/src/model/prompt.rs:445,464-465) => LOW, in-vocabulary id. Used by Gemma 4 and Inkling 2 (helios/src/model/contract.rs:1092-1101 asserts Inkling2 vision = PaddedGrid + ClassToken). - GLM: feature_token 154854 =
<|image|>(helios/tests/glm_frontend.rs:119) - a high special id; NOT the trigger unless the core's vocabulary exceeds it. (Final review's Nit 3 reasoning depends on Deepseek row-major sentinels starting exactly atcontract.vocabulary, helios/src/model/prompt.rs:79-96.) - Qwen:
<|image_pad|>; Deepseek: explicit ids 1000-1004 with ImageSpan. => BEST candidate on our hardware: google/gemma-4-E4B-it on cn7 (GB10, 1 GPU) - small, Gemma 4, ClassToken. => GLM-5.3-Flash is the legacy-compatibility model of choice instead: it is the in-tree "text prefill validates and injects those features" VLM (docs/core-design.md:566-572) and already has GPU HTTP image tests (tests/server/test_image_feature_windows.py).
#3 [high] How to measure/force the feature token, and how to observe readmission
MEASUREMENT (cheap, no blind sampling needed):
logit_biasandguided_jsonare REJECTED (helios/src/server/protocol/decode.rs:783-786) -> cannot force the feature token via sampling.logprob_token_ids: [id,...](docs/api.md:168-184) returns the exact probability of ANY chosen id at each generated position. Logprobs are computed BEFORE temperature/penalties/grammar/top-k/top-p/min-p (docs/api.md:107-112) => that is the raw full-vocabulary probability, i.e. the true sample probability.- Requires the core to have explicit-id logprob capacity (
config.logprob_token_id_capacity), else HTTP 400 "re-export to enable them" (helios/src/model/admission.rs:172-185).ignition exportwrites cores supporting explicit IDs by default (docs/api.md:114-116) - no extra flag documented; VERIFY before building the sub-test. - CAPTURE-TIME lever: the dummy/synthetic
examplestensors are handed to the forward before capture (ignition/preparation/examples.py:11-26). Substituting the feature token in the token-id example makes the capturing forward run the exactvalidate_prefill/injectpath the PR changes, on hardware - this is the ONLY way to validate the Python half on GPU without a checkpoint.
TRIGGER PHYSICALITY (honest): sampling allows rarer-than-uniform tokens via min-p (docs/api.md:109) and no sampling-side control-token mask exists (docs/api.md:508-523 says such text is "spelled" / scored as ordinary; docs/api.md:1211). So feature-token emission is physically possible but has no forced knob. Ranking method + probabilistic loop are therefore the plan.
READMISSION TRIGGERS that need no fault injection:
- preemption: no metric reason key for preemption;
flare_scheduler_execution_nanoseconds_totalexists only with reason ordinary/discovery/timing_refresh/acceptance_learning (helios/src/server/metrics.rs:931-938). What IS countable:flare_requests_admitted_total> number of HTTP requests sent. - thinking_token_budget:
flare_reasoning_budget_cuts_total(docs/api.md:334, helios/src/server/metrics.rs:1082). Cap = 1..5000 for cleaned reasoning; needs a reasoning core (GLM: glm53 preset docs/api.md:900). - grammar transition: parks too (docs/api.md:749,758); unsupported with thinking on some formats.
- preemption knob:
flare run --kv-cache-limit concurrency|context|memory(docs/cli-design.md:756,865) + concurrent long requests => 429 on admission if over capacity (docs/api.md:277).
#4 [high] Commands, env vars, and in-tree GPU test harness
EXPORT / RUN mechanics:
.venv/bin/ignition export MODEL --gpus 0,1 ...thenflare-cli/target/release/flare run CORE --gpus ...(docs/cli-design.md:411-419, AGENTS.md:415-416).- Useful export flags:
--max-concurrency N(default 32 for most recipes; Gemma4 default 4, docs/model-preparation.md:335-343),--image-concurrency N(default min(4, max-concurrency), docs/cli-design.md:424),--no-mtp(halves capture: docs/cli-design.md:476),--prefill-chunk-size,--reuse-weights(reuse cached weights, does NOT skip capture: docs/cli-design.md:431-436). - Recipes are EXTERNAL (
local-inference-lab/hyperflare-recipes, AGENTS.md:382-396).ignition exportreceives arbitrary HF ids (docs/cli-design.md:417) so checkpoints on the hosts map to recipes directly. - Recipe aliases in docs/model-preparation.md:317-327 include glm-5.3-flash, glm-5.3-flash-nvfp4, gemma-4-e4b, gemma-4-26b-a4b, qwen3.8-flash/27b, mimo-v2.6-*, step5-preview-nvfp4, minimax-m3-1-flash, nemotron-bolt.
- GPU HTTP image tests already exist and pin the harness:
tests/server/test_image_feature_windows.py, test_conditioned_input_cache.py, test_prefix_cache_offload.py.
Requirements: FLARE_RUN_CUDA_TESTS=1, CUDA_VISIBLE_DEVICES, FLARE_OFFLOAD_TEST_CORE=<vision core w/ ordinary+MTP graphs>, FLARE_TEST_TEMPLATE_DIR (daily CI exports it), and flare-cli/target/release/flare built.
server()launchesflare run <core> --gpus ... --mtp-draft-tokens 5 --offline --embedding-table-storage ram(test_prefix_cache_offload.py:26-108). They assert VISION/PREPARED/DECODED image counters and prefix-reuse behavior across memory/disk/combined tiers. - Existing synthetic (NO CHECKPOINT) GPU harness pattern: scripts/qualify_worker_failure.py - builds a tiny CUDA-graph catalog in Python, hands it to
flare_heliopause.Server(owner, manifest, json.dumps(config))in-process (real Rust Helios + HTTP), drives requests, asserts /health 503 + 500 error after worker death (lines 52-155). Its helperqualify_startup_validationis NOT in this repo -> non-runnable as shipped; must be listed as an unrun/absent harness, not as a cheap option. flare inspect CORE --json --allprints core metadata incl. vision section (flare-cli/src/inspect.rs:18-47, helios/src/runtime_core/describe.rs:120-162) - good for recording core identity; note describe.rs's vision_json does NOT expose feature_token, so get the feature token id from the recipe checkpoint tokenizer instead.