当前位置: 首页 > news >正文

使用清华大学的 Hugging Face 镜像

代码

model = AutoModel.from_pretrained("Qwen/Qwen3-Embedding-0.6B-GGUF", trust_remote_code=True)

报错

在这里插入图片描述

raise OSError(
OSError: We couldn’t connect to 'https://huggingface.co Hugging Face – The AI community building the future. Hugging Face – The AI community building the future. ’ to load the files, and couldn’t find them in the cached files.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode Installation Installation '.

解决方式

更换国内镜像
控制台输入

export HF_ENDPOINT=https://hf-mirror.com

然后运行代码时会自动下载模型,重启终端后环境变量会自动消失
或者离线模式加载模型
下载模型文件到本地目录,然后修改目录为本地模型地址运行

相关文章:

  • python中的面向对象:继承、封装、多态
  • AFE之MC33772B详解
  • yum降低软件包版本
  • 第六天 界面操作及美化(6.2 控件属性节点)
  • AIGC 基础篇 Python基础 06 函数基础
  • mvnd-快速打包maven项目
  • 【通用定时器TIM2 TIM3 TIM4 TIM5】
  • 大端小端以及判别方式
  • java集合篇(三) ---- Collection 接口
  • LINE 接入说明
  • 学了软件测试后可以做哪些工作
  • Linux系统下安装RocketMQ5.3
  • Blazor Web Assembly - 使用Power Automate Desktop来跟踪一下Blazor页面的内存使用情况
  • 【win10神州网信政府版开启远程桌面服务mstsc 】
  • GO 1.25
  • 什么是NIST CSF合规?ManageEngine卓豪合规指南!
  • linux用反汇编分析访问空指针问题
  • Android学习之Provider
  • linux 黑马 第1-2章
  • 北航自由指令驱动的多模态导航最新研究:OctoNav:开启通用智能体具身导航
  • 竞价网站同时做优化可以吗/设计网页的软件
  • 中国建设银行黄陂支行网站/关键词优化外包服务
  • 贵州华瑞网站建设有限公司/宁波seo排名公司
  • 韶关做网站公司/全网投放广告的渠道有哪些
  • 岳阳博物馆网站/泉州网站seo公司
  • 网站制作公司 沈阳/seo外链建设的方法