Skip to content
Merged
2 changes: 1 addition & 1 deletion src/diffusers/dependency_versions_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"filelock": "filelock",
"flax": "flax>=0.4.1",
"hf-doc-builder": "hf-doc-builder>=0.3.0",
"huggingface-hub": "huggingface-hub>=0.27.0",
"huggingface-hub": "huggingface-hub>=0.34.0",
"requests-mock": "requests-mock==1.10.0",
"importlib_metadata": "importlib_metadata",
"invisible-watermark": "invisible-watermark>=0.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/diffusers/guiders/guider_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ def from_pretrained(

<Tip>

To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
`hf auth login`. You can also activate the special
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
auth login`. You can also activate the special
["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
firewalled environment.

Expand Down
4 changes: 2 additions & 2 deletions src/diffusers/models/auto_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def from_pretrained(cls, pretrained_model_or_path: Optional[Union[str, os.PathLi

<Tip>

To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
`hf auth login`. You can also activate the special
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
auth login`. You can also activate the special
Comment on lines +120 to +121
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One can also do huggingface-hub login right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, in the meantime one can still use it but will get a warning:

image

["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
firewalled environment.

Expand Down
4 changes: 2 additions & 2 deletions src/diffusers/models/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P

<Tip>

To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
`hf auth login`. You can also activate the special
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
auth login`. You can also activate the special
["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
firewalled environment.

Expand Down
12 changes: 6 additions & 6 deletions src/diffusers/pipelines/auto_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def from_pretrained(cls, pretrained_model_or_path, **kwargs):

<Tip>

To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
`hf auth login`.
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
auth login`.

</Tip>

Expand Down Expand Up @@ -687,8 +687,8 @@ def from_pretrained(cls, pretrained_model_or_path, **kwargs):

<Tip>

To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
`hf auth login`.
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
auth login`.

</Tip>

Expand Down Expand Up @@ -997,8 +997,8 @@ def from_pretrained(cls, pretrained_model_or_path, **kwargs):

<Tip>

To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
`hf auth login`.
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
auth login`.

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions src/diffusers/pipelines/pipeline_flax_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P

<Tip>

To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
`hf auth login`.
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
auth login`.

</Tip>

Expand Down
8 changes: 4 additions & 4 deletions src/diffusers/pipelines/pipeline_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P

<Tip>

To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
`hf auth login`.
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
auth login`.

</Tip>

Expand Down Expand Up @@ -1430,8 +1430,8 @@ def download(cls, pretrained_model_name, **kwargs) -> Union[str, os.PathLike]:

<Tip>

To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
`hf auth login
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
auth login

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions src/diffusers/schedulers/scheduling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def from_pretrained(

<Tip>

To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
`hf auth login`. You can also activate the special
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
auth login`. You can also activate the special
["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
firewalled environment.

Expand Down
8 changes: 4 additions & 4 deletions src/diffusers/utils/dynamic_modules_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def get_cached_module_file(

<Tip>

You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or
[gated models](https://huggingface.co/docs/hub/models-gated#gated-models).
You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or [gated
models](https://huggingface.co/docs/hub/models-gated#gated-models).

</Tip>

Expand Down Expand Up @@ -505,8 +505,8 @@ def get_class_from_dynamic_module(

<Tip>

You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or
[gated models](https://huggingface.co/docs/hub/models-gated#gated-models).
You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or [gated
models](https://huggingface.co/docs/hub/models-gated#gated-models).

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions src/diffusers/utils/hub_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ def push_to_hub(
Whether to make the repo private. If `None` (default), the repo will be public unless the
organization's default is private. This value is ignored if the repo already exists.
token (`str`, *optional*):
The token to use as HTTP bearer authorization for remote files. The token generated when running
`hf auth login` (stored in `~/.huggingface`).
The token to use as HTTP bearer authorization for remote files. The token generated when running `hf
auth login` (stored in `~/.huggingface`).
create_pr (`bool`, *optional*, defaults to `False`):
Whether or not to create a PR with the uploaded files or directly commit.
safe_serialization (`bool`, *optional*, defaults to `True`):
Expand Down
Loading