Repository navigation
Mixed midtraining: build 2 rank batches ahead again - #926
Merged
jason718 merged 1 commit intoOct 23, 2026
Merged
Conversation
#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
Codex Review SummaryThis 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 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.
Into #916's branch, after #925 (eb8ebd4): the mixed mid-training recipe's
batch_prefetch_depthgoes 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:/dev/shm: aboutbatch_prefetch_depth + 1batches 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.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_processdocstring: the/dev/shmfigures for depth 2.prefetch_processesentry no longer says the recipe builds 8 batches ahead.vision_midtraining_test.py: the default depth is 2.How to test
🤖 Generated with Claude Code
https://claude.ai/code/session_0159PTUsp2w3YTANVDZ4BUss