PaddleNLP icon indicating copy to clipboard operation
PaddleNLP copied to clipboard

训练mbart模型报错 ,Logits和Label维度不匹配

Open Amy234543 opened this issue 5 months ago • 2 comments

paddlepaddle-gpu 2.5.2.post112 paddlenlp 2.7.1

报错信息: ValueError: (InvalidArgument) Input(Logits) and Input(Label) should in same shape in dimensions except axis. [Hint: Expected logits_dims[i] == labels_dims[i], but received logits_dims[i]:288 != labels_dims[i]:256.] (at ../paddle/phi/infermeta/binary.cc:909) 请问下怎么解决

Amy234543 avatar Jan 30 '24 06:01 Amy234543

请问下,是使用自己的数据来训练的吗?

wawltor avatar Feb 06 '24 06:02 wawltor

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

github-actions[bot] avatar Apr 27 '24 00:04 github-actions[bot]