title: AttributeError: 'list' object has no attribute 'size' Hugging-Face transformers
body: <p>I am trying to use Huggingface to transform stuff from English to Hindi.
  This is the code snippet</p>
  <pre><code>from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
  
  tokenizer = AutoTokenizer.from_pretrained(&quot;Helsinki-NLP/opus-mt-en-hi&quot;)
  
  model = AutoModelForSeq2SeqLM.from_pretrained(&quot;Helsinki-NLP/opus-mt-en-hi&quot;)
  text = &quot;Hello my friends! How are you doing today?&quot;
  tokenized_text = tokenizer.prepare_seq2seq_batch([text])
  
  # Perform translation and decode the output
  translation = model.generate(**tokenized_text)
  translated_text = tokenizer.batch_decode(translation, skip_special_tokens=True)[0]
  
  # Print translated text
  print(translated_text)
  </code></pre>
  <p>I am getting this error while trying to call the method generate on 'model'.</p>
  <blockquote>
  <p>AttributeError: 'list' object has no attribute 'size'.</p>
  </blockquote>
  <p>I am running on transformer version 4.3.3.</p>