ChatGLM-Tuning icon indicating copy to clipboard operation
ChatGLM-Tuning copied to clipboard

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

Open Daoming009 opened this issue 1 year ago • 3 comments

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'

Daoming009 avatar Jul 14 '23 11:07 Daoming009

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

shen5455 avatar Aug 03 '23 11:08 shen5455

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

CXLiang123 avatar Oct 08 '23 07:10 CXLiang123

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

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

JBYhjz avatar Nov 28 '23 09:11 JBYhjz