The warning is:
Truncation was not explicitly activated but
max_lengthis provided a specific value, please usetruncation=Trueto explicitly truncate examples to max length. Defaulting to 'longest_first' truncation strategy. If you encode pairs of sequences (GLUE-style) with the tokenizer you can select this strategy more precisely by providing a specific strategy totruncation.
and my code is
tokenizer = AutoTokenizer.from_pretrained("google/tapas-base")
item = tokenizer(table = table, queries = queries, max_length = 256, truncation=True)
The version of my transformers 4.15.0. I really wonder what the problem is.