Finetuning mBART

Hello !
I want to finetune mBART but when I use Seq2SeqTrainer I received this error :

‘TFMBartForConditionalGeneration’ object has no attribute ‘to’

Can anyone help me?