Skip to content

Conversation

@patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Dec 16, 2022

Some recent changes in transformers: huggingface/transformers#20602 and accelerate: huggingface/accelerate#920 that force us to also align the behavior in diffusers. 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

@patrickvonplaten patrickvonplaten changed the title [Dtype] Align automatic dtype [Dtype] Align dtype casting behavior with Transformers and Accelerate Dec 16, 2022
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 16, 2022

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

@patrickvonplaten
Copy link
Contributor Author

patrickvonplaten commented Dec 16, 2022

This pretty much reverses: #1449

@patrickvonplaten
Copy link
Contributor Author

Wait until huggingface/accelerate#920 is merged.

@patrickvonplaten patrickvonplaten changed the title [Dtype] Align dtype casting behavior with Transformers and Accelerate [Wait][Dtype] Align dtype casting behavior with Transformers and Accelerate Dec 17, 2022
@patrickvonplaten patrickvonplaten changed the title [Wait][Dtype] Align dtype casting behavior with Transformers and Accelerate [Dtype] Align dtype casting behavior with Transformers and Accelerate Dec 20, 2022
@patrickvonplaten
Copy link
Contributor Author

@pcuenca @patil-suraj feel free to merge whenever. Maybe a nice message here explaining what changed would make sense as well

Copy link
Contributor

@patil-suraj patil-suraj left a 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!

@patil-suraj patil-suraj merged commit f2e521c into main Dec 29, 2022
@patil-suraj patil-suraj deleted the align_dtype branch December 29, 2022 13:36
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…huggingface#1725)

* [Dtype] Align automatic dtype

* up

* up

* fix

* re-add accelerate
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