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 ...
If file is tracked as regular: download the remote file into the cache using hf_hub_download. Compute the sha of the local file and the cached file. If different, we want to upload it. Downloading regular files shouldn't be a problem in most cases (only "small" files and not a lot...