-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
from_pretrained
downloads *.bin
and *.safetensors
weights if both are present in the repo
#1811
Comments
diffusers/src/diffusers/modeling_utils.py Line 569 in 9be94d9
diffusers/src/diffusers/modeling_utils.py Line 802 in 9be94d9
diffusers/src/diffusers/modeling_utils.py Lines 435 to 503 in 9be94d9
diffusers/src/diffusers/modeling_utils.py Line 601 in 9be94d9
diffusers/src/diffusers/modeling_utils.py Line 834 in 9be94d9
|
@camenduru do you use Developer mode on Windows? If yes, those snapshots would be symlink'ed to the actual files (i.E. not duplicated on disk space) |
Hi @julien-c 👋 yes snapshots pointing to same thing it is not a bug but I think this is a bug 🐜 |
@apolinario I'm not able to reproduce this using diffusers @
Edit: tested with diffusers |
Ok, I've been able to reproduce it when a repo contains safetensors versions of just some files, but not all. This is the case for @camenduru's example. |
Describe the bug
If both
*.bin
and*.safetensors
weights exist in a repository both are downloaded even thought only the*.safetensors
version are used, doubling the disk size & time to download models.As we load
*.safetensors
by default, we should only download them.Reproduction
Logs
No response
System Info
diffusers==0.11.1
The text was updated successfully, but these errors were encountered: