最終更新:2025-01-24 (金) 09:45:24 (14d)
huggingface-cli
Top / huggingface-cli
https://huggingface.co/docs/huggingface_hub/guides/cli
コマンド
インストール
pip install -U "huggingface_hub[cli]"
- [cli]というのはextra指定
macOS
- /Users/tokkyo/Library/Python/3.9/bin/huggingface-cli
- macOS/~/Library/Python/3.9/bin
echo 'export PATH=$PATH:/Users/tokkyo/Library/Python/3.9/bin' >> ~/.zshrc && source ~/.zshrc
help
usage: huggingface-cli <command> [<args>] positional arguments: {download,upload,repo-files,env,login,whoami,logout,auth,repo,lfs-enable-largefiles,lfs-multipart-upload,scan-cache,delete-cache,tag,version,upload-large-folder} huggingface-cli command helpers download Download files from the Hub upload Upload a file or a folder to a repo on the Hub repo-files Manage files in a repo on the Hub 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 auth Other authentication related commands repo {create} Commands to interact with your huggingface.co repos. 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 (create, list, delete) tags for a repo in the hub version Print information about the huggingface-cli version. upload-large-folder Upload a large folder to a repo on the Hub optional arguments: -h, --help show this help message and exit