8000 Feat: add cpu offload by S1ro1 · Pull Request #3636 · huggingface/accelerate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat: add cpu offload #3636

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

Merged
merged 1 commit into from
Jun 18, 2025
Merged

Feat: add cpu offload #3636

merged 1 commit into from
Jun 18, 2025

Conversation

S1ro1
Copy link
Member
@S1ro1 S1ro1 commented Jun 18, 2025

Adds cpu offload when saving FSDP2 model, this has lead to weird hangs on my end before, but I can't reproduce it anymore. This should fix #3633, I'd be in favour of pushing this for a version and see if someone complains. I can't reproduce the hang I had before whatsoever.

cc @SunMarc let me know your thoughts

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member
@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

@SunMarc SunMarc merged commit 5939640 into main Jun 18, 2025
28 of 29 checks passed
@SunMarc SunMarc deleted the fix-cpu-offload branch June 18, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

how to save a model with FSDP2 ?
3 participants
0