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

Handle Manual Wrapping in FSDP. Minor fix of fsdp example. #342

Merged
merged 8 commits into from
May 5, 2022

Conversation

pacman100
Copy link
Contributor

@pacman100 pacman100 commented May 5, 2022

What does this PR do?

  • Minor Fix of the FSDP example fsdp_with_peak_mem_tracking.py. Logging peak memory usage to trackers such as wandb only when it is enabled.
  • Handling Manual wrapping of the model when FSDP is enabled. If user has manually wrapped the model, then don't wrap it again.

@pacman100 pacman100 requested a review from sgugger May 5, 2022 14:58
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

LGTM, don't forget to write a description of your PR before merging though :-)

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 5, 2022

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

@pacman100 pacman100 merged commit be0f7ce into huggingface:main May 5, 2022
@pacman100 pacman100 deleted the fsdp_blog branch May 5, 2022 15:46
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.

3 participants