Hi, thanks for replying. This is the shape, (786 is the test dataset size)
np.array(test.encodings['input_ids']).shape
(786, 212)

I am obtaining X_test, y_test from a csv read and train-test split and get their tokens as above. How can I reshape the input_ids in the tokenization step? it also warns,
Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.

Furthermore, I used the trainer() API before trying the native Keras methods with the same inputs and input shapes. trainer.evaluate() and trainer.predict() gave proper outputs which are similar to input test dataset lengths.