AttributeError: 'str' object has no attribute 'item' - Bert Fine tuning

@sgugger Can u take a look at the problem, It is not yet solved!