Trainer.evaluate() >> TypeError: vars() argument must have __dict__ attribute

I assume you are using some higher-level API and the Trainer class comes from HuggingFace?
If so, I guess this issue might be related.