Compute pico-lm/perplexity via the HuggingFace `evaluate` library. Use when the user has predictions + references and wants the canonical implementation of pico-lm/perplexity.
Installs into .claude/skills of the current project.
Are you the author of Pico Lm Perplexity?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/qhjqhj00-pico-lm-perplexity)
---
name: pico-lm-perplexity
description: Compute pico-lm/perplexity via the HuggingFace `evaluate` library. Use when the user has predictions + references and wants the canonical implementation of pico-lm/perplexity.
metadata:
skill_kind: metric
source_lib: huggingface-evaluate
hf_module: pico-lm/perplexity
source: library_introspection
---
# pico-lm-perplexity
> Metric `pico-lm/perplexity` from the HuggingFace `evaluate` library.
## When to invoke
User asks to compute `pico-lm/perplexity` or wants HF evaluate's canonical version.
## Recipe
```python
import evaluate
metric = evaluate.load("pico-lm/perplexity")
result = metric.compute(predictions=preds, references=refs)
print(result)
```
## Don'ts
- Don't assume your in-house `pico-lm/perplexity` matches HF — version conventions vary.
- Many evaluate metrics have task-specific arguments (`average=`, `lang=`, `model_type=`); read the metric card before reporting numbers.