Skip to content

Conversation

@S1ro1
Copy link
Contributor

@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 ?

4 participants