How to get probability of a sentence using GPT-2 model?

Hi @caput maybe these two links help:
gpt_sent_prob
Generation Probabilities: How to compute probabilities of output scores for GPT2