下载HuggingFace模型的方法以及报错解决

方法

  1. 新建文件夹,右键,open git bash here
  2. 设置全局代理
# 设置全局代理
git config --global https.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
git config --global http.proxy socks5://127.0.0.1:7890
git config --global https.proxy socks5://127.0.0.1:7890
  1. 进入huggingface,复制运行这两个
    1

报错

fatal: unable to access 'https://huggingface.co/InstantX/InstantIR/': Could not resolve host: huggingface.co
解决

配置socks5

git config --global http.proxy socks5 127.0.0.1:7890
git config --global https.proxy socks5 127.0.0.1:7890

配置http

git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890

posted @   Chunleiii  阅读(399)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤
点击右上角即可分享
微信分享提示