How can I obtain the logits via model.generate()?

How about this?