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

@@ -246,7 +246,7 @@ resnet50d.model.load_state_dict(pretrained_model.state_dict())
现在要将模型推送到集线器,请确保你已登录。你看可以在终端中运行以下命令:
```bash
huggingface-cli login
hf auth login
```
或者在笔记本中运行以下代码:

View File

@@ -56,7 +56,7 @@ Model Hub的内置版本控制基于git和[git-lfs](https://git-lfs.github.com/)
```bash
huggingface-cli login
hf auth login
```
如果您正在使用像Jupyter或Colaboratory这样的`notebook`,请确保您已安装了[`huggingface_hub`](https://huggingface.co/docs/hub/adding-a-library)库。该库允许您以编程方式与Hub进行交互。

View File

@@ -331,7 +331,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`中指定的文件夹名称的仓库。