-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Avoid double wrapping of all accelerate.prepare objects #1555
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Add step reset to free memory * Check if not Accelerated Optimizer * Continue * Another try * Check the rest * Try with just check on init * Change logic based on review * Update * Oops very big logic issue!
@muellerzr @sgugger Hi! I have zero familiarity with the code base, but is it intentional that the added |
Nope, it is not! Would you like to put in a fix @Yura52? Otherwise I can do so quickly :) |
Here is the PR: #1560 @muellerzr |
Solves double nested wrapping issues linked as a side-effect to huggingface/transformers#24050.
Also resets step to 0 during free_memory