Skip to content

Mixed midtraining: build 2 rank batches ahead again - #926

Merged
jason718 merged 1 commit into
jasonr/olmo35-mixed-midtrainingfrom
rustins/prefetch-depth-2
Oct 23, 2026
Merged

jason718 merged 1 commit into
jasonr/olmo35-mixed-midtrainingfrom
rustins/prefetch-depth-2

Conversation

@RustinS

@RustinS RustinS commented Oct 18, 2026

Copy link
Copy Markdown

Into #916's branch, after #925 (eb8ebd4): the mixed mid-training recipe's batch_prefetch_depth goes back from 8 to 2.

Why

#925 raised the depth to 8 so the queue would ride out the file-system pauses left at 8 nodes, and said it was not yet measured end to end. Measured now, on the same setup as #925's 8-node row (90/10 split, crops balanced, batch_prefetch_process, prefetch_processes, 16 workers, 512 examples in flight, 128 GiB of shared memory), depth 8 is no faster:

64 GPUs, steps 11-300 Depth 2 Depth 8
s/step, median 8.42 9.06
s/step, mean 8.98 9.75
Rank-0 data waits over 1 s 4 (41, 2, 53, 27 s) 1 (156 s)
  • The time lost to late batches is about the same (134 s against 158 s over the 290 steps). The pause at depth 8 was longer than any queue covers.
  • A first depth-8 run ran during a file-system slowdown that stalled every job on these sources, including the v3 90/10 run. Over its clean steps (170-300) it took 8.75 s/step, against 8.37 at depth 2.
  • Over steps 11-31, both depth-8 runs were slower than all four of our other 8-node runs (9.51 and 9.98 s/step against 9.09-9.32, steps with data waits left out). The trainer side is the same at any depth, since the receiver holds at most one batch, so this may be node placement. But it went the same way twice.
  • With the batch prefetch process, the queued batches take /dev/shm: about batch_prefetch_depth + 1 batches per rank. At depth 2 that is about 150 GB a node on one node and 20 GB at 8 nodes, against 460 and 60 GB at depth 8.
  • CE matches [Do not merge yet] Mixed midtraining on OLMo 3.5: the OLMo-core side of scaling-ladders#83 #916 at every logged step (largest gap 0.0007).

Runs launched from eb8ebd4 get depth 8 unless they pass --recipe.batch_prefetch_depth=2.

Changes

  • MixedMidtrainingRecipeConfig.batch_prefetch_depth: 2, and its docstring without the depth-8 rationale.
  • batch_prefetch_process docstring: the /dev/shm figures for depth 2.
  • CHANGELOG: the prefetch_processes entry no longer says the recipe builds 8 batches ahead.
  • vision_midtraining_test.py: the default depth is 2.

How to test

pytest src/test/internal/vision_midtraining_test.py

🤖 Generated with Claude Code

https://claude.ai/code/session_0159PTUsp2w3YTANVDZ4BUss

#925 raised the recipe's batch_prefetch_depth from 2 to 8 to ride out file-system pauses. Measured
on 8 nodes (the 90/10 stage, steps 11-300, batch_prefetch_process and prefetch_processes on),
depth 8 was no faster than depth 2: 9.06 s/step median against 8.42, with about the same time
lost to late batches. With the batch prefetch process it also needs three times the /dev/shm.
Back to 2, the depth #925's measurements used.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0159PTUsp2w3YTANVDZ4BUss
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T02:51:32.626523Z 11fddb1 PR opened
ℹ️ 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 a275823 into jasonr/olmo35-mixed-midtraining Oct 23, 2026
1 check passed
@jason718
jason718 deleted the rustins/prefetch-depth-2 branch October 23, 2026 22:27
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.

2 participants