1 下载安装包
pip install huggingface_hub -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install hf_transfer -i https://pypi.tuna.tsinghua.edu.cn/simple
3. 下载数据集
开启镜像网站并加速:
export HF_ENDPOINT=https://hf-mirror.com
export HF_HUB_ENABLE_HF_TRANSFER=1
export HUGGINGFACE_TOKEN=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
3 注册
huggingface-cli login
4 下载镜像 默认下载到/root/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-V3-Base//root/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-V3-Base/
huggingface-cli download deepseek-ai/DeepSeek-V3-Base
huggingface-cli download deepseek-ai/DeepSeek-V3-Base --local-dir /root/tools/dp3