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
transformers
@patil-suraj
examples
maybe not necessary
#13800
Looks same problem at MBartForConditionalGeneration.foward
It is written as:
if decoder_input_ids is None: decoder_input_ids = shift_tokens_right(labels, self.config.pad_token_id)
So, looks need edit to:
if decoder_input_ids is None and decoder_inputs_embeds is None: decoder_input_ids = shift_tokens_right(labels, self.config.pad_token_id)
The text was updated successfully, but these errors were encountered:
Maybe of interest to @ArthurZucker :)
Sorry, something went wrong.
Having a look right now! Thanks for finding this 🤗
No branches or pull requests
System Info
transformers
version: 4.22.0Who can help?
@patil-suraj
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
maybe not necessary
Expected behavior
#13800
Looks same problem at MBartForConditionalGeneration.foward
It is written as:
So, looks need edit to:
The text was updated successfully, but these errors were encountered: