Closed Mingyu-Wei closed 10 months ago
I think you should upgrade your transformers
package.
pip install git+https://github.com/huggingface/transformers
I think you should upgrade your
transformers
package.pip install git+https://github.com/huggingface/transformers
I've tried this, and I'm currently using transformers 4.35.0.dev
. The problem still exists.
Which version should I use?
Use AutoModel instead of AutoModelForCausalLM if you are using VisualGLM-6B.
Use AutoModel instead of AutoModelForCausalLM if you are using VisualGLM-6B.
Thanks, that is indeed the problem
I downloaded the model locally, and when I run this line, the error occurs.
I've looked at solutions in https://github.com/THUDM/ChatGLM-6B/issues/153 and https://github.com/THUDM/ChatGLM-6B/issues/37, but it doesn't seem to help.
I understand that the problem might be solved if I directly load the model from huggingface, but I think it's still a problem here