DeepSeek模型下载-Huggingface国内访问

 We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B is not the path to a directory containing a file named config.json.

由于国内网络访问Huggingface受限,我们需要通过镜像网站 : https://hf-mirror.com 下载模型。

1、python环境

  • Python版本‌:建议使用Python 3.10及以上版本,因为旧版本的Python可能不支持最新的huggingface-cli
  • 设置python相关环境变量

2、安装依赖(Windows)

以管理员身份运行CMD-命令提示符,安装依赖。

pip install -U huggingface_hub

 3、下载模型

以管理员身份运行 Windows PoworShell。

设置环境:

$env:HF_ENDPOINT = "https://hf-mirror.com"

下载模型

huggingface-cli download --resume-download deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B --local-dir D:\model

 其中deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B为要下载的模型名称。



 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Y.Shiloh

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值