tokenizer = AutoTokenizer.from_pretrained(“openai-gpt”) 报错无法连接
We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like openai-gpt is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
设置http代理
文章参考:
博客地址: qwrdxer.github.io
欢迎交流: qq1944270374
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 1944270374@qq.com