Closed Garand0o0 closed 6 months ago
我运行python hf_download.py --model mistralai/Mistral-7B-Instruct-v0.2 --save_dir ./hf_hub后报错:
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')
有人遇到过这种错误吗,怎么解决?
pip install -U "huggingface_hub[cli]"解决
pip install -U "huggingface_hub[cli]"
这个同时需要确保 python版本 >3.8,我用python3.7依然会出现报错。更新到python3.10就正常了。建议作者在readme里面说明一下。
我运行
python hf_download.py --model mistralai/Mistral-7B-Instruct-v0.2 --save_dir ./hf_hub
后报错:有人遇到过这种错误吗,怎么解决?