Setting an array with a sequence using Huggingface dataset map()

I have the same problem with another model, I can train the model but when I want to evaluate it I get that error! the training dataset and evaluation dataset are just like each other! so how it can train the model with one type of data but can not evaluate if using the same type? Weird!