赞
踩
本站域名 hf-mirror.com
,用于镜像 huggingface.co 域名。
更多用法(多线程加速等)详见这篇文章。简介:
pip install -U huggingface_hub
(2) 基本命令示例: export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download --resume-download --local-dir-use-symlinks False bigscience/bloom-560m --local-dir bloom-560m
(3) 下载需要登录的模型(Gated Model)--token hf_***
参数,其中hf_***
是 access token,请在huggingface官网这里获取。示例: huggingface-cli download --token hf_*** --resume-download --local-dir-use-symlinks False meta-llama/Llama-2-7b-hf --local-dir Llama-2-7b-hf
huggingface.co
直接替换为本站域名hf-mirror.com
。使用浏览器或者 wget -c、curl -L、aria2c 等命令行方式即可。--header hf_***
参数,token 获取具体参见上文。HF_ENDPOINT=https://hf-mirror.com python your_script.py
不过有些数据集有内置的下载脚本,那就需要手动改一下脚本内的地址来实现了Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。