Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Daoming009 opened this issue Jul 14, 2023 · 3 comments
Open

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

Daoming009 opened this issue Jul 14, 2023 · 3 comments

Comments

@Daoming009
Copy link

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
Copy link

shen5455 commented Aug 3, 2023

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

@CXLiang123
Copy link

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

@JBYhjz
Copy link

JBYhjz commented Nov 28, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants