Repository navigation
Consolidate CLI code in public scripts - #379
Merged
Merged
Conversation
epwalsh
marked this pull request as ready for review
September 18, 2025 23:56
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
|
|
||
| train_module_config = TransformerTrainModuleConfig( | ||
| rank_microbatch_size=4 * SEQUENCE_LENGTH, | ||
| rank_microbatch_size=4 * 4096, |
There was a problem hiding this comment.
Bug: Scripts Ignore Sequence Length for Batch Size
The OLMo-2-0325-32B-train.py and OLMo-2-0325-32B-anneal.py scripts hardcode 4096 in global and microbatch size calculations. This means batch sizes don't scale with the configurable opts.sequence_length as they did previously, making the --sequence-length parameter ineffective for controlling batch sizes.
Additional Locations (1)
|
This PR has been released in v2.3.0. |
b-dickson
pushed a commit
to b-dickson/OLMo-core
that referenced
this pull request
Jan 26, 2026
jason718
added a commit
that referenced
this pull request
Sep 29, 2026
… 1 and 2); keep the last 5 in stage 1 (#893) Adds UnshardedModelExportCallback: after each permanent checkpoint, rank 0 re-reads the saved DCP state in a background bookkeeping thread and writes model.safetensors (the full model state dict, no optimizer state) and olmo_core_config.json into the step directory, next to model_and_optim/. The DCP state stays for resuming; evals (olmo-eval's olmo_core_vlm provider) read the single file instead of the 256-shard DCP state (olmo-eval issue #379). Ephemeral checkpoints are skipped, the files appear atomically, and no collectives are used, so it also works with async checkpointing. The reader, load_unsharded_model_state(), may run on one rank of a distributed job. Molmo2-Stage1.py and Molmo2-Stage2.py enable it; stage 1 now keeps the last 5 permanent checkpoints (was all). On the v2 stage-1 run's step 32000 (4.46B params, fp32): 814/814 tensors bit-identical to src/scripts/unshard.py's export, export 76 s off the training thread, +19.4 GB per checkpoint (49 -> 68 GB); a cold full load takes 9.8 s from safetensors.
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.
No description provided.