-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
use_safetensors parameter not passed to submodules when loading pipeline #9576
Comments
Thank you for the detailed steps of repro and possible fix! The solution seems correct to me and we don't pass |
I will try do my first PR. |
Is it correct to issue this warning ""Defaulting to unsafe serialization. Pass The scenarios I tested are the following:
So I believe that the warning message for the first scenario where nothing is passed in the pipeline should be something like: "The models weights are being loaded with insecure serialization." right? |
@a-r-r-o-w i added @yiyixuxu and @asomoza in review but i dont now if it would be you. |
… submodels (huggingface#9576) (huggingface#9587) * Fix for use_safetensors parameters, allow use of parameter on loading submodels (huggingface#9576)
Describe the bug
When a model is loading from_pretrained, if the model is .bin and not .safetensors i got warnings like
But is expected if i pass use_safetensors=False to supress this warning.
So i notice that after this line is need to pass
diffusers/src/diffusers/pipelines/pipeline_utils.py
Line 907 in 7f323f0
And after this line repass the parameter
diffusers/src/diffusers/pipelines/pipeline_loading_utils.py
Line 672 in 99f6082
Reproduction
Logs
No response
System Info
Who can help?
No response
The text was updated successfully, but these errors were encountered: