Error Fine Tuning due to unexpected keyword argument

#13
by reganshen - opened

I was constantly getting the following error while trying to train the donut model.

[got an unexpected keyword argument 'num_items_in_batch'](TypeError: DonutSwinModel.forward() got an unexpected keyword argument 'num_items_in_batch')

After doing some googling I found the issue is due to the new transformers version not being compatible. If you come across this issue I found that transformers==4.45.2 works. Hope this saves you hours of thinking your dumb.

Thank you. One million times, thank you.

Sign up or log in to comment