I did print the shapes of the variables inside of compute_metrics but they seem to be fine (at least they have the same shape):
Shape logits:  (148, 128, 50265)
Shape labels: (148, 128)
Shape predictions:  (148, 128)

Or is it something off here?