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

fixing fsdp autowrap functionality #475

Merged
merged 4 commits into from
Jul 1, 2022

Conversation

pacman100
Copy link
Contributor

What does this PR do?

  1. PyTorch has renamed default_auto_wrap_policy to size_based_auto_wrap_policy. This PR updates the same.

@pacman100 pacman100 requested review from muellerzr and sgugger June 28, 2022 11:04
@muellerzr
Copy link
Collaborator

@pacman100 I'd recommend perhaps doing a version check to see what version of torch we're on to import one vs the other?

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 28, 2022

The documentation is not available anymore as the PR was closed or merged.

@pacman100
Copy link
Contributor Author

@pacman100 I'd recommend perhaps doing a version check to see what version of torch we're on to import one vs the other?

Done. As the FSDP support needs torch nightlies, just bumping up the version is viable.

@pacman100 pacman100 merged commit 6ebddcd into huggingface:main Jul 1, 2022
@pacman100 pacman100 deleted the smangrul/fsdp-fix-autowrap branch July 13, 2022 02:40
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.

4 participants