What it calculates
Paste one log-probability per token, separated by commas or whitespace, and pick the log base. The tool outputs four things.
- Perplexity = exp(mean NLL), where NLL is measured in nats (natural log).
- Mean NLL = average of −ln p across tokens, in nats per token.
- Bits per token = mean NLL / ln 2.
- Per-token surprisal in bits, in input order.
This is the language-model evaluation metric from information theory. It has no connection to any search product of a similar name.