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为要下载的模型名称。



 

Logo

欢迎加入DeepSeek 技术社区。在这里,你可以找到志同道合的朋友,共同探索AI技术的奥秘。

更多推荐