Skip to content

Remove model ladder framework and retired training scripts - #879

Merged
AkshitaB merged 1 commit into
mainfrom
akshitab/remove-model-ladder
Sep 25, 2026
Merged

AkshitaB merged 1 commit into
mainfrom
akshitab/remove-model-ladder

Conversation

@AkshitaB

Copy link
Copy Markdown
Contributor

Retire the model-ladder orchestration API and its entry points. Remove olmo_core.model_ladder, the olmo_core.internal.ladder CLI wrapper, all eleven ladder training scripts (including the standalone Gemma-like ladder), and the two dependent Slurm launchers. Also remove src/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

  • Config and transformer train-module config tests: 12 passed, including the distributed CPU case with local socket access.
  • Ruff over src/ and mypy over all 538 remaining source files: passed.
  • Remaining Python source parsing, deleted-path/module reference checks, and git diff --check: passed.
  • No GPU training runs were performed for this removal.

Base automatically changed from akshitab/use-flash-cleanup to main September 25, 2026 14:21
@AkshitaB
AkshitaB force-pushed the akshitab/remove-model-ladder branch from d3a7362 to dff737c Compare September 25, 2026 14:29
@AkshitaB
AkshitaB merged commit 5e607f8 into main Sep 25, 2026
25 checks passed
@AkshitaB
AkshitaB deleted the akshitab/remove-model-ladder branch September 25, 2026 14:43
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.
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

This PR has been released in v3.0.0.

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