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
/root/PaddleMIX/paddlemix/models/blip2/modeling.py 文件中,以下语句报错: with paddle.amp.auto_cast(level="O2"): outputs = self.language_model( inputs_embeds=inputs_embeds, attention_mask=attention_mask, return_dict=True, labels=labels, ) loss = outputs.loss 报错信息如下: *** TypeError: ChatGLMv2Model.forward() got an unexpected keyword argument 'labels'
The text was updated successfully, but these errors were encountered:
导入模型的时候用language_model = ChatGLMv2ForCausalLM.from_pretrained("THUDM/chatglm2-6b"),不要用 AutoModel
Sorry, something went wrong.
No branches or pull requests
/root/PaddleMIX/paddlemix/models/blip2/modeling.py 文件中,以下语句报错:
with paddle.amp.auto_cast(level="O2"):
outputs = self.language_model(
inputs_embeds=inputs_embeds,
attention_mask=attention_mask,
return_dict=True,
labels=labels,
)
loss = outputs.loss
报错信息如下:
*** TypeError: ChatGLMv2Model.forward() got an unexpected keyword argument 'labels'
The text was updated successfully, but these errors were encountered: