Output probability from model.generate
# 🚀 Feature request

Do we have the option to output the probability of the generated sequence from model.generate function? It will be super useful for evaluating the confidence score of the generated sequence. Thanks so much!
You'll have it soon 😉 , once #9150 is merged <|||||>> You'll have it soon 😉 , once #9150 is merged

That's awesome. Thanks!<|||||>@patil-suraj great, it got merged but how does translates now to your question_generation repo? How do I get the output probability/confidence score to the the predicted answers?<|||||>I only found this comment from you https://discuss.huggingface.co/t/text-generation-pipeline-output-scores-parameter/3294/2: 

*the text-generation pipeline doesn’t return scores, however you could the generate method directly, to get the scores, this should help*

Would be great if you could elaborate on that.
<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.<|||||>@patil-suraj Any chance that `generate_tf_utils` will get the same functionality? <|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.