large-language-model

How to compute sentence level perplexity from hugging face language models?

How to compute sentence level perplexity from hugging face language models? Question: I have a large collection of documents each consisting of ~ 10 sentences. For each document, I wish to find the sentence that maximises perplexity, or equivalently the loss from a fine-tuned causal LM. I have decided to use Hugging Face and the …

Total answers: 1