windows系统配置huggingface镜像下载模型
进入虚拟环境,安装依赖
pip install -U huggingface_hub
右击电脑,点击属性,进入高级系统设置,环境变量——系统变量——新建变量,
输入名称:HF_ENDPOINT
,值:[https://hf-mirror.com](https://hf-mirror.com)
下载Deepseek模型到本地文件夹
huggingface-cli download --resume-download deepseek-ai/DeepSeek-R1-Distill-Qwen-7B --local-dir D:\llm\DeepSeek-R1-Distill-Qwen-7B