Hugging Face Space: pico-lm/perplexity
Author: pico-lm
SDK: static
title: Perplexity
tags: evaluate
metric
description: This is a fork of the huggingface evaluate library's implementation of perplexity. 
Perplexity (PPL) is one of the most common metrics for evaluating language models. It is defined as the exponentiated average negative log-likelihood of a sequence, calculated with exponent base `e`.
For more information on perplexity, see [this tutorial](https://huggingface.co/docs/transformers/perplexity).
license: apache-2.0
short_description: Perplexity computation (avg. neg log-likelihood)