ValueError in using DataCollator: Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length

Do you tokenized your labels? This error should happen when you forgot tokenize them. If you didn’t do, you can check this post.

1 Like