Explore report · NVIDIA/hyperflare-inference #404

Raw Markdown for agents: https://autobot.eidonix.com/p/9da67495-2c70-4f90-ac47-09d959533dbc.md

Case file: PR #404 — Add optional per-request activation steering for DeepSeek V4.1 cores

https://github.com/NVIDIA/hyperflare-inference/pull/404 — open, head 8e5a1b0, base main, 49 files, +1,794/−309, opened 2026-11-19, last comment 2026-11-25, CI passed on head, review state: changes requested (yatesdr), never withdrawn.

Key findings

  1. The repository split has overtaken the PR. On 2026-11-22 Luke Alonso landed da037284 ("Stage hyperflare_recipes separation, slim core ignition…") and 17bb3c4a ("Remove extracted hyperflare_recipes, qualification drivers, and model tests from core Flare"), moving every recipe into local-inference-lab/hyperflare-recipes. #404 (last pushed 2026-11-19) edits six files under ignition/recipes/deepseek41, adds ignition/recipes/deepseek41/steering.py, and edits tests/recipes/* — paths that no longer exist on main. main now enforces this with tests/preparation/test_core_boundary.py (main, lines 40–48 assert not (ROOT/"ignition"/"recipes").exists() and forbid imports of ignition.recipes/hyperflare_recipes; lines 51–59 do the same for tests/). Several shared component files it edits (causal_draft.py (not opened), draft_sampling.py, markov_sampling.py (not opened), parallel_draft.py (not opened), vocabulary_sampling.py (not opened), plus tests/components/{draft_score_reference,test_draft_scores_cuda,test_markov_sampling_cuda,test_vocabulary_sampling_cuda}.py) were also removed from main. original-el8's triage comment (2026-11-24 21:46) states the recipe half needs a linked PR in hyperflare_recipes/ and the runtime half may stay here only after recipe-owned files are removed. That restructuring has not been done.
  2. The maintainer directed a different design, and #505 is it. lukealonso (2026-11-21 20:28): "See if your agent can implement this not as a hardcoded steering_scale parameter, but as a generic system by which model cores can expose scalar arguments … All of this would be described in the model proto." The author opened draft #505 "Bind core-declared FP32 graph inputs per request" (2026-11-25, 33 files, +2,299/−276) implementing exactly that, with no steering recipe, and left #404's branch unchanged: "If you prefer the engine commit here rather than in a new draft, say so and I will move it." The two PRs overlap in 22 files (see Related work) and are competing designs for the same area.
  3. The description's central claim was conceded to be wrong. The PR description says there is "no new captured-graph operation contract"; yatesdr's second review (2026-11-20 14:47) showed the decoder reads a per-request value inside the captured forward (ignition/components/paged_batch.py:48-56, :305-309; ignition/recipes/deepseek41/decoder.py:237-241, :253-254), which Principle 1 requires owner approval for. The author agreed (2026-11-21 17:29): "I can't name a matching captured operation… My description was wrong. This needs explicit approval from Luke Alonso." No approval is on the record.
  4. The feature's headline effect is behavioural, not performance. Unsteered, 90/100 refusal prompts are refused by keyword; at steering_scale = 1.0, 0/100 are refused semantically on the same weights (PR Validation section). yatesdr flagged this as the reason the PR needs a stated purpose ("a per-request switch that removes the model's refusals on a shared serving core… a significant step for the engine to take"). The author later reframed (2026-11-23 14:57): "The original DeepSeek experiment included changing refusal behavior; I'm not proposing that as a Helios feature or an acceptance metric," and #505 does not offer refusal results as evidence.
  5. The charter names this PR as its counter-example. Charter, "Solve the right problem in the right place": "Good ideas in the wrong place will be declined, and we'll point you to where they belong (#404)."
  6. All GPU evidence predates the rebase, and no test executes the steered decoder. The description says the 128 CUDA tests, the 4-GPU core export and the serving comparisons were done on revision 15ade6b9 (base 69858cd1), and explicitly that "CUDA unit suites and full 4-GPU core re-export were not repeated after rebasing onto 6555f939." yatesdr: the tests "exercise the steering helpers on CPU. None runs the decoder with steering" — confirmed by tests/recipes/test_deepseek41_steering.py (7 tests: sidecar validation, schema round-trip, mixed rows, TP4 commutation, request-state width, Metadata.pack/set under torch.compile(fullgraph=True), direct-execution cache isolation).
  7. Undeclared behaviour in the diff (full list in "The change"): steering_scale is rejected with HTTP 400 on the Responses and Messages protocols; a second spelling is consumed from chat_template_kwargs and deleted from the template map; the 0..1 range is hard-coded in five places rather than declared (heliopause/src/export/binding.rs:773-786, helios/src/runtime_core/protobuf.rs:93-110 twice, helios/src/server/config.rs:119-125, helios/src/model.rs:265); the direct path's prefix-cache key becomes a tuple and all direct-path sampling-number parsing is broadened.
  8. Process state is stale-by-design. The PR is labelled ready-for-review but the author has said (2026-11-21 20:28) "I'll leave #404 open as a design proposal rather than something to merge as written… I'll hold off on pushing more code here until we agree on a direction." The whole change is a single commit 8e5a1b08 from 2026-11-19; all reviewed revisions were force-pushes.

The change

What it does, in plain terms. A DeepSeek V4.1 core can be exported with --steering-sidecar <safetensors>; the core then accepts a per-request steering_scale ∈ [0,1] that applies directional ablation and row-gain rescaling inside the captured forward pass. steering_scale rides as a 7th f32 column in the existing SamplingParameters buffer (6 columns for unsteered cores). Nonzero scale salts the prefix-cache root digest so steered and unsteered prefixes never collide.

Size and shape (pr_files): helios/src 16 files +661/−23; tests/recipes 2 files +421/−1 (new test_deepseek41_steering.py +369); ignition/components 7 files +161/−68; ignition/recipes 6 files +202/−25 (new ignition/recipes/deepseek41/steering.py +112); ignition/direct 3 files +86/−24; docs 3 files +27; ignition/cli 4 files +17/−7; heliopause/src/export/binding.rs +30/−6; helios/proto/runtime_core.proto +4; helios/model-contract.md +5; ignition/preparation/runtime_core_pb2.py (not opened) +132/−132 (regenerated codegen).

Steering math (ignition/recipes/deepseek41/steering.py:89-112): steer_attention projects the FP32 attention output onto the unit direction, subtracts token_scale * alpha * dot * direction, rescales by 1 + token_scale * (attn_row_gain - 1), casts back and gates with torch.where(token_scale == 0.0, output, steered); steer_shared_expert does the ablation on a rank-local partial before the TP reduction. Sidecar validation (lines 49-81) enforces FP32 scalar alpha > 0, BF16[5120] direction with unit norm and finite values, BF16[5120] attn_row_gain for layers 4..36.

Things the diff does that the description does not say:

What the description says that the change does not do: the cross-reference "no new captured-graph operation contract" — contradicted by the in-graph per-token gather, conceded by the author (2026-11-21 17:29). Also "same model identity" claims: the sidecar digest changes model identity per sidecar, so distinct sidecars are distinct cores, not one core (stated in Limitations, but it qualifies the headline "one core serves both" framing).

The why

Recent activity

People

Community

Discussion is substantive but narrow: 6 comments after the description, from jcartu (4), yatesdr (1 long review-comment), lukealonso (1 sentence), original-el8 (1 triage note). No reactions recorded in the thread. Two formal reviews, both CHANGES_REQUESTED (2026-11-19 21:04, 2026-11-20 14:47). Review 1 raised: shared Helios branching on a one-recipe capability (ignition/planning.py:211, :509; helios/src/model/packing.rs:177-179; model/admission.rs:77-78, :181-184; server/request.rs:100-107; server/models.rs:67-74), Principle 13 (no previous core loaded), unupdated kernel callers (_scores, _sampling_metadata, _admission_validate, _admission_finish gained a required PARAMETERS before SLOTS; tests/components/test_sampling_score_defaults_cuda.py:41-43 (not opened) passed batch in that position, tests/recipes/test_completion_abi.py:105-111 (not opened) omitted it), ignition/direct unmetered steering, evidence from a tree with out-of-PR host-memory changes, cargo test -p flare-helios --lib not compiling the server tests it changes (helios/Cargo.toml:17 (not opened)), a commutation test in FP32 while ranks round to BF16, an undefined "Boundary triggers" metric, Principle 14 scope, and a missing Discord line. The author's 2026-11-20 reply lists a fix for every item; review 2 accepted the mechanical fixes ("The pooled lookup retry now keeps the steering scale, and the description names its revisions and defines its terms") and reduced the objection to the two questions: Principle 1 and purpose.

Project fit

Claims and evidence

Claim Evidence offered Status
Rust suites pass on rebased head 6555f939 1,448 passed with --features server,runtime-core; 550 in --lib; 195 in flare-heliopause --lib; one acknowledged flake (worker_observes_prefill_decode_and_prerequisite_timings) re-run unloaded Claimed only; CI passed on head. Reviewer's earlier objection that --lib alone does not compile the server tests (helios/Cargo.toml:17 (not opened)) is addressed by naming the feature-enabled run
Python CPU/lint clean 7 passed tests/recipes/test_deepseek41_steering.py; 124 passed tests/direct/ + tests/bench/test_runner.py (not opened); 5 passed tests/recipes/test_completion_abi.py (not opened); zero added ruff findings Claimed; the tests are helper-level (see below)
CUDA component/ABI suites pass at widths 6 and 7 128 passed across test_sampling_score_defaults_cuda.py (not opened), test_completion_abi.py (not opened), test_draft_scores_cuda.py (not opened), test_markov_sampling_cuda.py (not opened), test_vocabulary_sampling_cuda.py (not opened) Pre-rebase revision 15ade6b9 only; not repeated on head
Steered forward is correct on GPU Full 4-GPU export and serving on 15ade6b9; mixed-batch first-token bit identity 8/8 (C=8), 16/16 (C=16 at 33,381 prompt tokens) Pre-rebase; description says "full 4-GPU core re-export [was] not repeated after rebasing"
Prefix isolation 0 cached tokens across 0.75 → 0.25; 27,046/27,046 same-scale on 0.0 → omitted, 0.0 → 0.0, 1.0 → 1.0, 0.75 → 0.75 Pre-rebase; Rust tests steering_scales_preserve_unsteered_hashes_and_isolate_nonzero_scales (helios/src/cache/tests.rs:31 lines added), steered_pool_lookup_retry_…, steered_preemption_… cover the mechanics head-side
Backward compatibility with 6-column cores Unmodified TP4 core exported at 69858cd1 served via flare run without re-export; nonzero requests clamped to 0.0; 42 speculative draft rounds Pre-rebase; and after the split the recipe side no longer exists here, so re-verification is not repeatable from this tree
Unsteered behaviour unchanged 16/16 top-1 agreement omitted vs explicit 0.0; 95% item agreement on a 100-item SQuAD2+TruthfulQA slice (B 0.92/0.12/0.86 vs A1 0.92/0.20/0.88); refusal 90/100 on A1, 90/100 on B omitted, 89/100 on B explicit 0.0 Pre-rebase; small sample; two baseline runs needed for the throughput comparison
No throughput cost 250K prefill 100.1–100.7%, C=32 100.0–100.1%, C=8 98.5–102.2%, C=1 92.2–97.8%; KV pages 99.84% (185,230 vs 185,524) Pre-rebase, vs geometric mean of A1/A2, range across two temperatures; C=1 at 1.0 costs 2–8% and scale 0.0 at C=1 was "not separately timed" although the steering kernels launch at every scale
Steering works at full scale 0/100 semantic refusals (1/100 keyword) at 1.0; 95% item agreement vs a weight-edited reference checkpoint Pre-rebase; behavioural claim, not a correctness metric the reviewer accepts as evidence of value
Tests protect the steered path — Not backed: no test runs the decoder with steering (yatesdr, review 2). test_deepseek41_steering.py (7 tests, reviewed lines 44-300) covers sidecar validation, schema round-trip, mixed-row bit preservation, a BF16-rounded TP4 commutation check (:128), legacy-width atomic rejection (:156), Metadata.pack/set under torch.compile(fullgraph=True) (:192), and direct-execution cache isolation (:255) — all helper-level
"No new captured-graph operation contract" — Contradicted; conceded by the author

Later, off-PR evidence (author comments 2026-11-23, relevant to #505 not #404): 10,304 device rank/row checks matched on four SM120 GPUs; a C8 mixed-scale run matched bit for bit at 3,056 row/token positions; C16/C32 output isolation not qualified — reversing only compute rows exceeded a 0.05 logprob tolerance at 330/4,096 C32 positions; a two-row embedding_gain core reused 0 then 4,114 tokens per scale, 1,024 mixed-vs-same-gain logprobs matched, but unconstrained chat did not pass the tolerance and the cause is unidentified.

Reach

Process


Open questions / could not be found