See @Rocketknight1 's response in this thread.
Pass in the labels to your to_tf_dataset
call
columns=["attention_mask", "input_ids", "labels"],
Also consider using the model.prepare_tf_dataset
method which is supposed to shape the dataset appropriately - but I have not tried that out.
Also