Skip to content

Commit 1fbcc78

Browse files
authored
typo in safetensors (safetenstors) (#3976)
* Update pipeline_utils.py typo in safetensors (safetenstors) * Update loaders.py typo in safetensors (safetenstors) * Update modeling_utils.py typo in safetensors (safetenstors)
1 parent 51593da commit 1fbcc78

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/diffusers/loaders.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def load_attn_procs(self, pretrained_model_name_or_path_or_dict: Union[str, Dict
177177

178178
if use_safetensors and not is_safetensors_available():
179179
raise ValueError(
180-
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors"
180+
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetensors"
181181
)
182182

183183
allow_pickle = False
@@ -589,7 +589,7 @@ def load_textual_inversion(
589589

590590
if use_safetensors and not is_safetensors_available():
591591
raise ValueError(
592-
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors"
592+
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetensors"
593593
)
594594

595595
allow_pickle = False
@@ -806,7 +806,7 @@ def load_lora_weights(self, pretrained_model_name_or_path_or_dict: Union[str, Di
806806

807807
if use_safetensors and not is_safetensors_available():
808808
raise ValueError(
809-
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors"
809+
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetensors"
810810
)
811811

812812
allow_pickle = False
@@ -1054,7 +1054,7 @@ def _load_text_encoder_attn_procs(
10541054

10551055
if use_safetensors and not is_safetensors_available():
10561056
raise ValueError(
1057-
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors"
1057+
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetensors"
10581058
)
10591059

10601060
allow_pickle = False

src/diffusers/models/modeling_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
456456

457457
if use_safetensors and not is_safetensors_available():
458458
raise ValueError(
459-
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors"
459+
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetensors"
460460
)
461461

462462
allow_pickle = False

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def variant_compatible_siblings(filenames, variant=None) -> Union[List[os.PathLi
204204
transformers_index_format = r"\d{5}-of-\d{5}"
205205

206206
if variant is not None:
207-
# `diffusion_pytorch_model.fp16.bin` as well as `model.fp16-00001-of-00002.safetenstors`
207+
# `diffusion_pytorch_model.fp16.bin` as well as `model.fp16-00001-of-00002.safetensors`
208208
variant_file_re = re.compile(
209209
rf"({'|'.join(weight_prefixes)})\.({variant}|{variant}-{transformers_index_format})\.({'|'.join(weight_suffixs)})$"
210210
)
@@ -213,7 +213,7 @@ def variant_compatible_siblings(filenames, variant=None) -> Union[List[os.PathLi
213213
rf"({'|'.join(weight_prefixes)})\.({'|'.join(weight_suffixs)})\.index\.{variant}\.json$"
214214
)
215215

216-
# `diffusion_pytorch_model.bin` as well as `model-00001-of-00002.safetenstors`
216+
# `diffusion_pytorch_model.bin` as well as `model-00001-of-00002.safetensors`
217217
non_variant_file_re = re.compile(
218218
rf"({'|'.join(weight_prefixes)})(-{transformers_index_format})?\.({'|'.join(weight_suffixs)})$"
219219
)
@@ -1168,7 +1168,7 @@ def download(cls, pretrained_model_name, **kwargs) -> Union[str, os.PathLike]:
11681168

11691169
if use_safetensors and not is_safetensors_available():
11701170
raise ValueError(
1171-
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetenstors"
1171+
"`use_safetensors`=True but safetensors is not installed. Please install safetensors with `pip install safetensors"
11721172
)
11731173

11741174
allow_pickle = False

0 commit comments

Comments
 (0)