Skip to content

Commit 9d313fc

Browse files
authored
[Fix] huggingface-cli to hf missed files (#12008)
fix
1 parent f83dd5c commit 9d313fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/mirror_community_pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ jobs:
7979
8080
# Check secret is set
8181
- name: whoami
82-
run: huggingface-cli whoami
82+
run: hf auth whoami
8383
env:
8484
HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }}
8585

8686
# Push to HF! (under subfolder based on checkout ref)
8787
# https://huggingface.co/datasets/diffusers/community-pipelines-mirror
8888
- name: Mirror community pipeline to HF
89-
run: huggingface-cli upload diffusers/community-pipelines-mirror ./examples/community ${PATH_IN_REPO} --repo-type dataset
89+
run: hf upload diffusers/community-pipelines-mirror ./examples/community ${PATH_IN_REPO} --repo-type dataset
9090
env:
9191
PATH_IN_REPO: ${{ env.PATH_IN_REPO }}
9292
HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }}

src/diffusers/commands/fp16_safetensors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def register_subcommand(parser: ArgumentParser):
5959
conversion_parser.add_argument(
6060
"--use_auth_token",
6161
action="store_true",
62-
help="When working with checkpoints having private visibility. When used `huggingface-cli login` needs to be run beforehand.",
62+
help="When working with checkpoints having private visibility. When used `hf auth login` needs to be run beforehand.",
6363
)
6464
conversion_parser.set_defaults(func=conversion_command_factory)
6565

0 commit comments

Comments
 (0)