Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: clarify decoder_input_ids vs decoder_inputs_embeds usage (#39542)#40225

Open
Wricha wants to merge 1 commit into
huggingface:mainfrom
Wricha:fix-docs-typo
Open

docs: clarify decoder_input_ids vs decoder_inputs_embeds usage (#39542)#40225
Wricha wants to merge 1 commit into
huggingface:mainfrom
Wricha:fix-docs-typo

Conversation

@Wricha

@Wricha Wricha commented Aug 17, 2025

Copy link
Copy Markdown

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