Space: pico-lm/perplexity
title: Perplexity
sdk: static
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)
Tags: static, evaluate, metric, region:us