text: 
  
  TITLE
  MBart prepare_seq2seq_batch
  
  COMMENTS
  6
  
  REACTIONS
  +1: 0
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  - `transformers` version: 4.1.1
  - mBART: @patrickvonplaten
  ## Information
  Model I am using (Bert, XLNet ...): mBART
  
  The problem arises when using:
  * [x] the official example scripts: (give details below)
  `example_english_phrase = "UN Chief Says There Is No Military Solution in Syria"
  expected_translation_romanian = "Şeful ONU declară că nu există o soluţie militară în Siria"
  batch = tokenizer.prepare_seq2seq_batch(example_english_phrase, src_lang="en_XX", tgt_lang="ro_RO", tgt_texts=expected_translation_romanian, return_tensors="pt")
  model(input_ids=batch['input_ids'], labels=batch['labels']) # forward pass`
  
  The encoded target sequence from "prepare_seq2seq_batch" is inconsistent with its description "[tgt_lang_code] X [eos]".
  Moreover, "labels" doesn't seem to be the appropriate param for the model input.
  