shibing624 / pycorrector

pycorrector is a toolkit for text error correction. 文本纠错,实现了Kenlm,T5,MacBERT,ChatGLM3,Qwen2.5等模型应用在纠错场景,开箱即用。
https://www.mulanai.com/product/corrector/
Apache License 2.0
5.57k stars 1.1k forks source link

运行chatglm3-6b-csc-chinese-loraba报错 #466

Closed Guozonghai closed 9 months ago

Guozonghai commented 9 months ago

我在运行gpt demo.py时报错,我已将gpt_corrector.py模型路径改为本地路径,在启动 demo.py时报错:

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/chatglm3-6b 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

1843d7c06783fb6a10f38f6f9615fca
Guozonghai commented 9 months ago

报错信息:

64e11d78772ce2f60ebb2b22548d8a6
Guozonghai commented 9 months ago

解决了 环境问题 重新安装环境不报错了