-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[Dtype] Align dtype casting behavior with Transformers and Accelerate #1725
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
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
|
This pretty much reverses: #1449 |
|
Wait until huggingface/accelerate#920 is merged. |
|
@pcuenca @patil-suraj feel free to merge whenever. Maybe a nice message here explaining what changed would make sense as well |
patil-suraj
left a comment
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.
Looks good to me!
…huggingface#1725) * [Dtype] Align automatic dtype * up * up * fix * re-add accelerate
Some recent changes in
transformers: huggingface/transformers#20602 andaccelerate: huggingface/accelerate#920 that force us to also align the behavior indiffusers. For more information also have a look at: https://discuss.pytorch.org/t/discrepancy-between-loading-models-with-meta-tensors-and-normal-load-from-state-dict/168295