ValueError: 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

Farnazgh
Thu, 11 May 2023 07:49:47 +0000

There is a solution here : ValueError: 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. · Issue #15505 · huggingface/transformers · GitHub