Skip to content

Clean up WeightRow in preparation for optimizer state offloading #4021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

q10
Copy link
Contributor

@q10 q10 commented Apr 24, 2025

Summary:

  • Clean up WeightRow implementation in preparation for optimizer state offloading
  • Add documentation for the class

Differential Revision: D73473546

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit d069b99
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/680c318df886d40007b27b98
😎 Deploy Preview https://deploy-preview-4021--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 site configuration.

Summary:
- Replace if-statements with if-constexpr blocks to optimize out some code
  branches completely.  This is to facilitate `WeightRow` class cleanups

- Replace uses of WeightRow with WeightRowAccessor where cache loading and
  eviction are not used

Differential Revision: D73678501
@q10 q10 force-pushed the export-D73473546 branch 4 times, most recently from 5afcdf0 to bdf4726 Compare April 25, 2025 18:51
@facebook-github-bot
Copy link
Contributor

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

@q10 q10 force-pushed the export-D73473546 branch from bdf4726 to 96c6a47 Compare April 25, 2025 18:51
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 96c6a47 to c1ccb51 Compare April 25, 2025 18:58
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from c1ccb51 to 88c5cdd Compare April 25, 2025 19:02
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch 2 times, most recently from 2e7ddaf to 174e1da Compare April 25, 2025 21:29
q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 174e1da to 7695283 Compare April 25, 2025 21:30
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 7695283 to a9a88db Compare April 25, 2025 21:33
q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from a9a88db to 174d20f Compare April 25, 2025 21:38
@facebook-github-bot
Copy link
Contributor

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

@q10 q10 force-pushed the export-D73473546 branch from 2028c8b to 7994159 Compare April 25, 2025 21:48
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 7994159 to 8c2c733 Compare April 25, 2025 21:54
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 8c2c733 to 43f9dde Compare April 25, 2025 22:02
Summary:
- Fix `int32_t` to `auto` for code around `WeightRow`

- Fix `kINT8QparamsBytes` from `float` to `int32_t`

Differential Revision: D73690651
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 43f9dde to 5064553 Compare April 25, 2025 22:14
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 5064553 to 2ec1f28 Compare April 25, 2025 22:29
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 25, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 2ec1f28 to 8406854 Compare April 25, 2025 22:33
Summary: - Simplify weight row cache load and evict routines

Differential Revision: D73693209
@facebook-github-bot
Copy link
Contributor

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

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 26, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 8406854 to 12c2d11 Compare April 26, 2025 00:50
@facebook-github-bot
Copy link
Contributor

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

@q10 q10 force-pushed the export-D73473546 branch from 12c2d11 to 07a0a1c Compare April 26, 2025 00:54
q10 added a commit to q10/FBGEMM that referenced this pull request Apr 26, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
q10 added a commit to q10/FBGEMM that referenced this pull request Apr 26, 2025
…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@q10 q10 force-pushed the export-D73473546 branch from 07a0a1c to 5457c95 Compare April 26, 2025 01:00
@facebook-github-bot
Copy link
Contributor

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

…ytorch#4021)

Summary:
Pull Request resolved: pytorch#4021

X-link: facebookresearch/FBGEMM#1109

- Clean up `WeightRow` implementation in preparation for optimizer state offloading
- Add documentation for the class

Differential Revision: D73473546
@facebook-github-bot
Copy link
Contributor

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

@q10 q10 force-pushed the export-D73473546 branch from 5457c95 to d069b99 Compare April 26, 2025 01:06
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