https://hf-mirror.com/
域名 hf-mirror.com,用于镜像 huggingface.co 域名。
方法:使用huggingface 官方提供的 huggingface-cli 命令行工具。
pip install -U huggingface_hub
export HF_ENDPOINT=https://hf-mirror.com
然后是模型下载测试
huggingface-cli download --resume-download --local-dir-use-symlinks False bigscience/bloom-560m --local-dir bloom-560m
成功会看到

然后,修改资源库,比如,我要做的是faster-whiper
于是,参考库目录,修改命令:

huggingface-cli download --resume-download --local-dir-use-symlinks False openai/whisper-tiny --local-dir whisper-tiny
然后:

本文介绍了如何使用HuggingFace官方的huggingface-cli工具通过hf-mirror.com镜像HuggingFace库,包括下载大模型如bigscience/bloom-560m和进行模型修改,如将bigscience/bloom-560m替换为openai/whisper-tiny的过程。
4万+

被折叠的 条评论
为什么被折叠?



