Skip to content

Mixed mid-training: routers take EMo from the stage's text config (on #916) - #949

Merged
jason718 merged 1 commit into
jasonr/olmo35-mixed-midtrainingfrom
jasonr/mm-midtrain-emo-from-text
Nov 7, 2026
Merged

jason718 merged 1 commit into
jasonr/olmo35-mixed-midtrainingfrom
jasonr/mm-midtrain-emo-from-text

Conversation

@jason718

@jason718 jason718 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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_model takes the multimodal model, routers included, from the parent's config.

  • The parent's LM carries alignment's routing, which has EMo off.
  • The stage's text config is consulted only for runtime fields (recompute, EP scratch sharing).
  • So a text stage built with EMo on still trained with EMo off. In the dry run, every router showed emo=None despite HERO256K_EMO=causal.

Change

_build_model copies each routed block's emo from the stage's text config (None or an EmoRouterConfig), 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:

  • Text EMo off gives emo=None.
  • Text EMo with causal pools gives causal EMo with the text config's pool sizes on every routed block.

src/test/internal/vision_midtraining_test.py: 98 passed. Ruff, isort and black are clean.

🤖 Generated with Claude Code

…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
jason718 marked this pull request as ready for review November 7, 2026 07:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T07:26:00.688093Z d3ba934 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jason718
jason718 merged commit bef63fc into jasonr/olmo35-mixed-midtraining Nov 7, 2026
1 check passed
@jason718
jason718 deleted the jasonr/mm-midtrain-emo-from-text branch November 7, 2026 07:24
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