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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to 0.10.0.dev0 + deprecations #1490
Conversation
def unwrap_model(model: torch.nn.Module) -> torch.nn.Module: | ||
""" | ||
Recursively unwraps a model from potential containers (as used in distributed training). |
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.
Not technically deprecated, but we've had this replaced by accelerate.unwrap_model
a loooong time ago.
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.
Makes sense!
"Please make sure to instantiate your scheduler with `prediction_type` instead. E.g. `scheduler =" | ||
" DDPMScheduler.from_pretrained(<model_id>, prediction_type='epsilon')`." | ||
) | ||
predict_epsilon = deprecate("predict_epsilon", "0.10.0", message, take_from=kwargs) |
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.
The predict_epsilon
deprecation was only introduced 3 weeks ago, and we've had two rapid releases since then, so I'm keen on keeping it at least until next week.
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.
Agree - thanks for double-checking!
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.
Perfect - thanks!
No description provided.