Skip to content

typo in error message instructing to install safetensors #3975

@YoraiLevi

Description

@YoraiLevi

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 safetenstors

System Info

colab with T4

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions