Repository navigation
Remove model ladder framework and retired training scripts - #879
Merged
Merged
Conversation
CalebOuellette
approved these changes
Sep 23, 2026
AkshitaB
force-pushed
the
akshitab/remove-model-ladder
branch
from
September 25, 2026 14:29
d3a7362 to
dff737c
Compare
AkshitaB
added a commit
that referenced
this pull request
Sep 25, 2026
…code (#881) `OLMoDDPTrainModuleConfig.max_grad_norm` was accepted but ignored: clipping used only the optimizer threshold. An explicit train-module value now overrides the optimizer threshold at build time, keeping the configuration field consistent with `TransformerTrainModuleConfig`. When the field is `None`, the optimizer threshold is retained. The override uses a copy and does not mutate the supplied optimizer config. The nine DDP recipes retain their train-module setting of `1.0`, matching their previous effective optimizer threshold. Old configs still load; if an explicit train-module value differs from the optimizer value, the train-module value now takes precedence. Clipping still runs inside the DDP optimizer. Remove the unused train-module constructor argument and attribute. Also replace `OLMoDDPModel.apply_ddp()`'s assertion and unreachable implementation with `NotImplementedError` directing callers to `apply_dp()`. This keeps the rejection active under `python -O` and removes the unused `replicate` import. Regular Transformer DDP and clipping behavior are unchanged. Updated the changelog. Stacked on #879; base is `akshitab/remove-model-ladder`. Validation: - DDP train-module and config tests: 34 passed, 3 GPU tests skipped. Includes JSON round-trips, explicit/missing clipping thresholds, conflicting values, zero thresholds, nonmutation, and distributed CPU construction. - Formatting, Ruff, mypy (538 source files), and `git diff --check` passed. - Earlier apply_ddp validation: 2 model tests passed; explicit rejection checked under normal Python and `python -O`.
jason718
added a commit
that referenced
this pull request
Sep 26, 2026
Second merge of main into this sync branch, taking main from 0589a03 to 718d08f. Conflicts: - nn/attention/__init__.py: take main's removal of FusedAttention (#873). Vision's only changes to it were NotImplementedError guards for or_mask/and_mask/position_ids; FusedAttentionV2 subclasses Attention and already threads position_ids. Keep vision's Dict import. - nn/transformer/model.py: activation checkpointing preserves RNG state when dropout is active (vision, #828) or EMO routing needs segment IDs (main, #872), which also resolves main's "preserve RNG state if dropout is active" TODO.
This was referenced Sep 26, 2026
|
This PR has been released in v3.0.0. |
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.
Retire the model-ladder orchestration API and its entry points. Remove
olmo_core.model_ladder, theolmo_core.internal.ladderCLI wrapper, all eleven ladder training scripts (including the standalone Gemma-like ladder), and the two dependent Slurm launchers. Also removesrc/scripts/train/private-olmo.py.Remove the ladder API docs and toctree entry and update the changelog. This deletes about 3,800 lines; the remaining internal experiment framework stays available. No dedicated ladder tests were found, and no remaining code/docs references to the deleted modules or script paths were found.
Existing ladder orchestration configs and commands require an earlier revision. Model and optimizer checkpoint formats are unchanged; there is no replacement for the retired orchestration API in this PR.
Stacked on #878; base branch is
akshitab/use-flash-cleanup. Local cleanup notes and parity audit scripts are excluded.Validation
src/and mypy over all 538 remaining source files: passed.git diff --check: passed.