AttributeError: 'DatasetDict' object has no attribute 'to'


Any suggestions about fixing this?

You have passed a dataset to the model key in the Trainer. Try passing a model and the error should disappear.