Skip to content
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

[FSDP2] LoRA/QLoRA move state dict to cpu #1531

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

weifengpy
Copy link
Contributor

@weifengpy weifengpy commented Sep 10, 2024

follow up on #1412

FSDP2 will throw error with to remind user to move parameters to cpu when enabling cpu offloading: pytorch/pytorch#135156

Chaging torchtune LoRA/QLoRA to load from cpu state dict when enabling cpu offloading. This makes sure pytorch nightly does not break LoRA/QLoRA

Context

What is the purpose of this PR? Is it to

  • add a new feature
  • fix a bug
  • update tests and/or documentation
  • other (please add here)

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Sep 10, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/1531

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit bc780ff with merge base 66590b4 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 10, 2024
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.20%. Comparing base (66590b4) to head (bc780ff).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1531      +/-   ##
==========================================
- Coverage   27.22%   27.20%   -0.02%     
==========================================
  Files         286      286              
  Lines       13828    13828              
==========================================
- Hits         3764     3762       -2     
- Misses      10064    10066       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@weifengpy weifengpy marked this pull request as draft September 10, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants