add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -0,0 +1,37 @@
# huggingface-cli
> 与 Hugging Face Hub 互动。
> 登录,管理本地缓存,下载或上传文件。
> 更多信息:<https://huggingface.co/docs/huggingface_hub/guides/cli>。
- 登录 Hugging Face Hub
`huggingface-cli login`
- 显示已登录用户的名字:
`huggingface-cli whoami`
- 登出:
`huggingface-cli logout`
- 打印环境信息:
`huggingface-cli env`
- 从仓库下载文件并打印路径(省略文件名以下载整个仓库):
`huggingface-cli download --repo-type {{repo_type}} {{repo_id}} {{filename1 filename2 ...}}`
- 上传整个文件夹或文件到 Hugging Face
`huggingface-cli upload --repo-type {{repo_type}} {{repo_id}} {{path/to/local_file_or_directory}} {{path/to/repo_file_or_directory}}`
- 扫描缓存以查看已下载的仓库及其磁盘使用情况:
`huggingface-cli scan-cache`
- 交互式删除缓存:
`huggingface-cli delete-cache`