2、配置镜像 export HF_ENDPOINT=hf-mirror.com 3、下载模型到缓存 huggingface-cli download repo_id 4、下载模型到指定目录 huggingface-cli download repo_id --local-dir /path/to/model 5、扫描缓存 huggingface-cli scan-cache 6、清理缓存 huggingface-cli delete-cache ...
正确的命令列表应该包括 env, login, whoami, logout, repo, lfs-enable-largefiles, lfs-multipart-upload, scan-cache, delete-cache 等。检查用户输入的命令: 你输入的命令 huggingface-cli download 是错误的,因为 download 并不是 huggingface-cli 的一个有效命令。
your proposition triggered a conversation on our side (cfinternal thread- sorry for the internal link). At the moment, the CLI is quite tiny with commands to login/logout/whoami, scan/delete the cache, create a repo and some LFS-specific stuff. The more commands we add, the more maintena...
export HF_HUB_ENABLE_HF_TRANSFER= 1 export HF_ENDPOINT= https://hf-mirror.com usage: huggingface-cli [] huggingface-cli: error: argument {env,login,whoami,logout,repo,lfs-enable-largefiles,lfs-multipart-upload,scan-cache,delete-cache}: i...
$ huggingface-cli upload --repo-type [repo_type] [repo_id] [path/to/local_file_or_directory] [path/to/repo_file_or_directory] Scan cache to see downloaded repositories and their disk usage $ huggingface-cli scan-cache Delete the cache interactively ...
EDIT (before reading below): motivation is the same but the plan has been slightly improved (see this comment). Basically, the plan is: add delete_patterns in upload_folder implement commit_in_chunks to chained commits in a PR implement ...
entire directory huggingface-cli upload my-cool-model ./models # Sync local Space with Hub (upload new files except from logs/, delete removed files) huggingface-cli upload Wauplin/space-example --repo-type=space --exclude="/logs/*" --delete="*" --commit-message="Sync local Space with...