文章目录
所需环境
- python
huggingface-cli 用法
安装 huggingface_hub
PS C:\Windows\system32> pip install -U huggingface_hub
查看 huggingface-cli
的用法
PS C:\Windows\system32> huggingface-cli --help
usage: huggingface-cli <command> [<args>]
positional arguments:
{
env,login,whoami,logout,repo,upload,download,lfs-enable-largefiles,lfs-multipart-upload,scan-cache,delete-cache,tag}
huggingface-cli command helpers
env Print information about the environment.
login Log in using a token from huggingface.co/settings/tokens
whoami Find out which huggingface.co account you are logged in as.
logout Log out
repo {
create} Commands to interact with your huggingface.co repos.
upload Upload a file or a folder to a repo on the Hub
download Download files from the Hub
lfs-enable-largefiles
Configure your repository to enable upload of files > 5GB.
scan-cache Scan cache directory.
delete-cache Delete revisions from the cache directory.
tag