How to get the logits for the T5 model when using the `generate` method for inference?

you can use compute_transition_scores to get scores of each token
find more info here Generation