Repository navigation
Conversation
|
@wz337 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D127258042. |
wz337
added a commit
to wz337/optimizers
that referenced
this pull request
Oct 23, 2026
Summary: Syncs the following changes from the internal dev tree to facebookresearch/optimizers via scripts/oss_sync.sh: - [shampoo] Fix the lossless FSDP2/HSDP2 distributors silently discarding model weights loaded after the optimizer was constructed. These distributors keep a gathered copy of the full parameters and write it back on every step; that copy was taken at construction, so loading weights into the model afterwards (without also loading optimizer state) reset every FSDP2-wrapped layer to its initial values at the first step. The copy is now marked stale at construction and rebuilt from the live model at the first optimizer step, at the cost of one extra all-gather per run. Loading weights before or after constructing the optimizer now trains identically. - [shampoo] Remove an unused type-checker suppression comment in `distributed_shampoo.py` (no behavior change). Internal revisions: D125752049, D126803644 All mirror files are script output. The only hand edit is to `CHANGELOG.md`, where the generated bullets were rewritten as release notes. The generator also listed D126125211 (OSS mypy fix). That bullet was dropped because the change already shipped in the 2026-10-19 sync; it was re-listed only because that sync hand-set the marker to the last public commit. New marker `ba2736b1e697` (D126803644) is public. Differential Revision: D127258042
wz337
force-pushed
the
export-D127258042
branch
from
October 23, 2026 23:28
f87873e to
bc8c540
Compare
Summary: Syncs the following changes from the internal dev tree to facebookresearch/optimizers via scripts/oss_sync.sh: - [shampoo] Fix the lossless FSDP2/HSDP2 distributors silently discarding model weights loaded after the optimizer was constructed. These distributors keep a gathered copy of the full parameters and write it back on every step; that copy was taken at construction, so loading weights into the model afterwards (without also loading optimizer state) reset every FSDP2-wrapped layer to its initial values at the first step. The copy is now marked stale at construction and rebuilt from the live model at the first optimizer step, at the cost of one extra all-gather per run. Loading weights before or after constructing the optimizer now trains identically. - [shampoo] Remove an unused type-checker suppression comment in `distributed_shampoo.py` (no behavior change). Internal revisions: D125752049, D126803644 All mirror files are script output. The only hand edit is to `CHANGELOG.md`, where the generated bullets were rewritten as release notes. The generator also listed D126125211 (OSS mypy fix). That bullet was dropped because the change already shipped in the 2026-10-19 sync; it was re-listed only because that sync hand-set the marker to the last public commit. New marker `ba2736b1e697` (D126803644) is public. Differential Revision: D127258042
wz337
force-pushed
the
export-D127258042
branch
from
October 23, 2026 23:29
bc8c540 to
4ecdcb4
Compare
|
This pull request has been merged in 2837ffc. |
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.
Summary:
Syncs the following changes from the internal dev tree to
facebookresearch/optimizers via scripts/oss_sync.sh:
distributed_shampoo.py(no behavior change).Internal revisions: D125752049, D126803644
All mirror files are script output. The only hand edit is to
CHANGELOG.md, where the generated bullets were rewritten as release notes. The generator also listed D126125211 (OSS mypy fix). That bullet was dropped because the change already shipped in the 2026-10-19 sync; it was re-listed only because that sync hand-set the marker to the last public commit.New marker
ba2736b1e697(D126803644) is public.Differential Revision: D127258042