Skip to content

Realtime: revalidate H3 source pins after the training speedup (#25) - #26

Merged
Junchao-cs merged 1 commit into
mainfrom
fix/h3-realtime-pins-after-pr25
Nov 20, 2026
Merged

Junchao-cs merged 1 commit into
mainfrom
fix/h3-realtime-pins-after-pr25

Conversation

@Junchao-cs

Copy link
Copy Markdown
Owner

Why

#25 changed model.py, sgf_attention.py, sgf_rollout.py and distributed.py under
solar/backends/minimax_h3/. The standard realtime acceleration pins these files by sha256
(deploy/solar_wm/backends/standard/acceleration/compatibility.json), so cpu-contracts has
failed at pytest since the merge (5 failures in tests/realtime_interaction/test_compatibility.py),
and the realtime engine would refuse to start a scene ("source changed").

Updating the digests alone is not enough: _sgf_attention_forward now routes segment attention
through fast_attention.attention instead of flash_attn_func, so the realtime candidate's AST
projection (projected_source_matches) no longer matched the native function and
installed_candidate would raise "candidate differs beyond video-only SDPA branch".

Changes

  • The realtime candidate's segment_attention imports solar.backends.minimax_h3.fast_attention
    like the native function (FlashAttention-2 by default, unchanged behavior); the projection
    accepts that relocated import alongside the existing sgf_attention relocation.
  • Update the four digests in compatibility.json.
  • New test: the realtime candidate still projects the native SGF forward. It fails if only the
    digests are updated.

Verification

🤖 Generated with Claude Code

#25 changed model.py, sgf_attention.py, sgf_rollout.py and distributed.py,
which the standard realtime acceleration pins by sha256, so cpu-contracts
failed on main. model._sgf_attention_forward now routes segment attention
through fast_attention.attention (FA2 by default), so the realtime
candidate's AST projection also no longer matched and installed_candidate
would refuse to start.

- candidate segment attention imports solar.backends.minimax_h3.fast_attention
  like the native function; the projection accepts that relocated import
- update the four digests in compatibility.json
- test that the candidate still projects the native SGF forward

The pinned functions realtime replaces (_all_to_all_raw, sgf_attention,
H3RawKVCache, h3_student_forward) behave as before with every
SOLARWM_H3_* switch unset. Not yet re-qualified on SP8 GPUs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Junchao-cs
Junchao-cs merged commit bef0290 into main Nov 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant