Skip to content

Conversation

Wricha
Copy link

@Wricha Wricha commented Aug 17, 2025

This PR adds a note under PreTrainedModel clarifying that seq2seq models
such as MarianMT, BART, and T5 accept either decoder_input_ids or
decoder_inputs_embeds, but not both. Passing both arguments raises a
ValueError.

This addresses issue #39542.

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

Successfully merging this pull request may close these issues.

1 participant