xxw1995 / chatglm3-finetune

最容易上手的0门槛 chatglm3 & agent & langchain 项目
244 stars 36 forks source link

No module named 'model' #4

Open Jeru2023 opened 10 months ago

Jeru2023 commented 10 months ago

when running finetune error shows:

Traceback (most recent call last): File "D:\dev\chatglm3-finetune\finetune.py", line 8, in from model.modeling_chatglm import ChatGLMForConditionalGeneration ModuleNotFoundError: No module named 'model'

the first line in finetune.py is from model.modeling_chatglm import ChatGLMForConditionalGeneration

this should be chatglm model???

Jeru2023 commented 10 months ago

I fixed it with the model loaded from AutoModel instead of ChatGLMForConditionalGeneration