文章预览
transformers 在seq2seq 模型中的decoder_input_ids
2023年08月22日
472 字
decoder\_input\_ids 是来自 huggingface 的labels decoder\_input\_ids(可选)对应标签,labels是提供decoder\_input\_ids的首选方式。 这是因为如果 decoder\_input\_ids 为 None,它们将通过将labels向右移动来派生,因此您不必自己进行移动。 …
阅读全文
浏览
评论