How to get the pre-trained language model loss for an input text?

After pre-training the LM model (AWD-LSTM) on Wikitext-103, I was wondering how can we get
the LM loss for an input text. Any idea?