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