-
Notifications
You must be signed in to change notification settings - Fork 6.9k
typo in error message instructing to install safetensors #3975
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
typo in line
| "`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors" |
Reproduction
load a DiffusionPipeline.from_pretrained(..., use_safetensors=True, variant="fp16") with use_safetensors=True then try to pip install acoording to the message.
did you mean pip install safetensors ? https://github.com/huggingface/safetensors
if so, there are more lines with the safetenstors typo in the file.
pip install safetensors
pip install safetenstors
Logs
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-1962d302192d> in <cell line: 4>()
2 import torch
3
----> 4 pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
5 # pipe.to("cuda")
6
1 frames
/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/pipeline_utils.py in download(cls, pretrained_model_name, **kwargs)
1168
1169 if use_safetensors and not is_safetensors_available():
-> 1170 raise ValueError(
1171 "`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors"
1172 )
ValueError: `use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstorsSystem Info
colab with T4
Who can help?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working