LetheSec / HuggingFace-Download-Accelerator

利用HuggingFace的官方下载工具从镜像网站进行高速下载。
648 stars 56 forks source link

huggingface-cli错误 #8

Closed Garand0o0 closed 6 months ago

Garand0o0 commented 6 months ago

我运行python hf_download.py --model mistralai/Mistral-7B-Instruct-v0.2 --save_dir ./hf_hub后报错:

export HF_HUB_ENABLE_HF_TRANSFER= 1
export HF_ENDPOINT= https://hf-mirror.com/
usage: huggingface-cli <command> [<args>]
huggingface-cli: error: argument {env,login,whoami,logout,repo,lfs-enable-largefiles,lfs-multipart-upload,scan-cache,delete-cache}: invalid choice: 'download' (choose from 'env', 'login', 'whoami', 'logout', 'repo', 'lfs-enable-largefiles', 'lfs-multipart-upload', 'scan-cache', 'delete-cache')

有人遇到过这种错误吗,怎么解决?

Garand0o0 commented 6 months ago

pip install -U "huggingface_hub[cli]"解决

Xingxiangrui commented 1 week ago

这个同时需要确保 python版本 >3.8,我用python3.7依然会出现报错。更新到python3.10就正常了。建议作者在readme里面说明一下。

pip install -U "huggingface_hub[cli]"解决