Rename huggingface_cli to hf (#39630)

* Rename huggingface_cli to hf

* hfh
This commit is contained in:
Lysandre Debut
2025-07-25 14:10:04 +02:00
committed by GitHub
parent 3b3f9c0c46
commit f90de364c2
111 changed files with 132 additions and 132 deletions

View File

@@ -270,7 +270,7 @@ resnet50d.model.load_state_dict(pretrained_model.state_dict())
モデルをHubに送信するには、ログインしていることを確認してください。ターミナルで次のコマンドを実行します
```bash
huggingface-cli login
hf auth login
```
またはノートブックから:

View File

@@ -56,7 +56,7 @@ Model Hubの組み込みバージョニングはgitおよび[git-lfs](https://gi
モデルをHubに共有する前に、Hugging Faceの認証情報が必要です。ターミナルへのアクセス権がある場合、🤗 Transformersがインストールされている仮想環境で以下のコマンドを実行します。これにより、アクセストークンがHugging Faceのキャッシュフォルダに保存されますデフォルトでは `~/.cache/` に保存されます):
```bash
huggingface-cli login
hf auth login
```
JupyterやColaboratoryのようなートブックを使用している場合、[`huggingface_hub`](https://huggingface.co/docs/hub/adding-a-library)ライブラリがインストールされていることを確認してください。

View File

@@ -337,7 +337,7 @@ python examples/pytorch/summarization/run_summarization.py
すべてのスクリプトは、最終的なモデルを [Model Hub](https://huggingface.co/models) にアップロードできます。開始する前に Hugging Face にログインしていることを確認してください。
```bash
huggingface-cli login
hf auth login
```
次に、スクリプトに `push_to_hub` 引数を追加します。この引数は、Hugging Face のユーザー名と `output_dir` で指定したフォルダ名でリポジトリを作成します。