大家好,我是爱编程的喵喵。双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中。从事机器学习以及相关的前后端开发工作。曾在阿里云、科大讯飞、CCF等比赛获得多次Top名次。现为CSDN博客专家、人工智能领域优质创作者。
本文主要介绍了OSError We couldn‘t connect to https://huggingface.co to load file, couldn‘t find chatglm2-6b解决方案,希望能对使用chatglm2的同学们有所帮助。
1. 问题描述
今天在运行ChatGLM2代码时,出现了OSError: We couldn’t connect to ‘https://huggingface.co’ to load this file, couldn’t find it in the cached files and it looks like THUDM/chatglm2-6b is not the path to a directory containing a file named config.json.的错误提示,报错信息见下图所示:
在经过了亲身的实践后,终于找到了解决问题的方案,