Skip to content

Redo D78182966: Extend backend_return_whole_row to support multiple optimizer states#4620

Closed
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D78879243
Closed

Redo D78182966: Extend backend_return_whole_row to support multiple optimizer states#4620
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D78879243

Conversation

@q10

@q10 q10 commented Jul 31, 2025

Copy link
Copy Markdown
Contributor

Summary:
This diff is a redo of D78182966.

There are 4 cases to handle when attempting to fetch the split optimizer states. All 4 cases have been already handled.

With D77666892, we introduce a 5th case - the KV ZCH case, where backend_return_whole_row is True.

This diff extends the work by cleaning up the code, handling the merge conflicts with diff D77666892, and expanding it to support returning multiple optimizer states.

Reviewed By: sryap

Differential Revision: D78879243

@netlify

netlify Bot commented Jul 31, 2025

Copy link
Copy Markdown

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 5e35c1f
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/688bfa8bdf761200083ed5d8
😎 Deploy Preview https://deploy-preview-4620--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D78879243

…ptimizer states

Summary:
X-link: facebookresearch/FBGEMM#1654

This diff is a redo of D78182966.  

There are 4 cases to handle when attempting to fetch the split optimizer states.  All 4 cases have been already handled.

With D77666892, we introduce a 5th case - the KV ZCH case, where  `backend_return_whole_row` is `True`.

This diff extends the work by cleaning up the code, handling the merge conflicts with diff D77666892, and expanding it to support returning multiple optimizer states.

Reviewed By: sryap

Differential Revision: D78879243
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D78879243

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in e42a408.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants