Repository navigation
Mixed mid-training: routers take EMo from the stage's text config (on #916) - #949
Merged
jason718 merged 1 commit intoNov 7, 2026
Conversation
…t config With an alignment parent, the multimodal model's routers came from the parent checkpoint, whose LM carries alignment's routing (EMO off), so a text stage built with EMO on (e.g. causal pools, #948) silently trained with EMO off. _build_model now copies each routed block's emo from the stage's text config. Existing runs are unchanged: their text configs and parents both have EMO off.
jason718
marked this pull request as ready for review
November 7, 2026 07:23
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #948, found while dry-running the EMo causal-pool hero run (Run 2's config with
HERO256K_EMO=causal).Problem
With
recipe.parent_checkpoint(an alignment checkpoint),_build_modeltakes the multimodal model, routers included, from the parent's config.emo=NonedespiteHERO256K_EMO=causal.Change
_build_modelcopies each routed block'semofrom the stage's text config (Noneor anEmoRouterConfig), matching blocks by the same pairing it already uses for the EP fields.Existing runs are unchanged: Runs 1–7 have EMo off in both their text configs and their parents.
Tests
test_mixed_stage_routers_take_the_text_stage_emo, parametrized:emo=None.src/test/internal/vision_midtraining_test.py: 98 passed. Ruff, isort and black are clean.🤖 Generated with Claude Code