We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用internlm2-1.8b进行微调的时候,会报AttributeError: 'InternLM2ForCausalLM' object has no attribute 'lm_head'。但是使用internlm2-1.8b增量预训练又没有报错。
The text was updated successfully, but these errors were encountered:
在代码里面加上: if getattr(config, "model_type", None) == "internlm2": setattr(model, "lm_head", model.output) setattr(model, "_keys_to_ignore_on_save", ["lm_head.weight"])
Sorry, something went wrong.
update internlm2, #395
5751d23
thanks,fixed。
No branches or pull requests
使用internlm2-1.8b进行微调的时候,会报AttributeError: 'InternLM2ForCausalLM' object has no attribute 'lm_head'。但是使用internlm2-1.8b增量预训练又没有报错。
The text was updated successfully, but these errors were encountered: