Repository navigation
Migrate use_flash callers to explicit attention backends - #878
Merged
Merged
Conversation
AkshitaB
requested review from
CalebOuellette,
YashasSamaga and
jacob-morrison
September 23, 2026 22:02
CalebOuellette
approved these changes
Sep 23, 2026
CalebOuellette
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Deprecating use_flash makes sense.
I wonder if it would be helpful if olmo-core could pick between flash2,3 or 4 dynamically based on hardware/what is installed. But i that might be a change for a different PR.
AkshitaB
force-pushed
the
akshitab/use-flash-cleanup
branch
from
September 25, 2026 04:58
5be0ce2 to
3a9febe
Compare
AkshitaB
added a commit
that referenced
this pull request
Sep 25, 2026
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.
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.
Repository callers still use the deprecated
use_flashboolean even though attention supports explicit backend selection. Migrate training scripts, generation/DDP/MoE tests, and attention test parameterization tobackend/attn_backend.Transformer factories now resolve legacy
use_flasharguments into canonical backend configs; the nGPT factory also gainsattn_backend. A shared resolver preserves existing compatibility behavior:Trueselects FA2 or rejects a conflicting explicit backend, whileFalseleaves explicit backends and sliding-window automatic selection unchanged. Legacy fused attention continues to ignore the flag. HF conversion clears the legacy flag when overriding the backend.Deprecated constructor/config inputs remain accepted for existing callers and old checkpoints. Add regression coverage for serialized legacy configs, backend conflicts, sliding-window selection, and all four affected model factories. Update the changelog. Local cleanup notes and parity audit scripts are excluded.
Also remove the unused, commented-out
_set_beaker_execution_units()helper and its commented call from the internal experiment setup (33 lines), with a changelog entry.Stop setting the deprecated, no-effect
force_recompute_fp8_weight_in_bwdflag inAOFloat8LinearConfig.recommended()and remove the corresponding test assertion. Retain the config field for old serialized inputs.Validation
Changed test suites: 198 passed, 1,072 skipped, with the network-dependent
test_load_olmo3_7b_configdeselected. GPU tests were skipped locally.Ruff over
src/: passed.Mypy over all 556 source files: passed.
Black/isort checks on changed Python files and
git diff --check: passed.Beaker helper cleanup: Python AST unchanged; focused Black/isort/Ruff checks passed.
Float8 config tests: 1 passed, 1 GPU test skipped.