mymusise / ChatGLM-Tuning

基于ChatGLM-6B + LoRA的Fintune方案
MIT License
3.73k stars 440 forks source link

AttributeError: 'ChatGLMModel' object has no attribute 'lm_head' #261

Open Daoming009 opened 1 year ago

Daoming009 commented 1 year ago

File "/app/ydm/myenv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1614, in getattr raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'ChatGLMModel' object has no attribute 'lm_head'

shen5455 commented 1 year ago

我也遇到了同样的问题 还在看 怎么解决

CXLiang123 commented 12 months ago

注释掉lm_head哪行就可以运行了,我在跑不知道能顺利跑完么

JBYhjz commented 10 months ago

注释掉lm_head哪行就可以运行了,我在跑不知道能顺利跑完么

你好请问跑完有效果么?我看这好像是chatglm2微调才会出现的bug