Renaissance Labs · Code
Benchmark · 2021-07

HumanEval

Function-from-docstring Python problems with unit tests, introduced with Codex. The original functional-correctness benchmark.

How to use it

Use only as a cheap smoke test that a code model is not broken. Do not use it to rank current models. Runs in seconds to minutes on one GPU.

Caveats

Execution-based (unit tests). Saturated: current frontier models are near ceiling, so differences are mostly noise. Public since 2021 and widely copied, so contamination is likely in web-scale pretraining data; the EvalPlus paper also showed the original tests are too weak (see HumanEval+). Measures short self-contained function synthesis only; not repo context, debugging, or design. Historical score in the paper abstract: Codex 28.8% (arXiv 2107.03374).

load
from datasets import load_dataset
ds = load_dataset("openai/openai_humaneval", split="test")

Related

  • APPS: Interview-level and competition Python problems with solutions and test...
  • BigCodeBench: Python tasks requiring calls into many libraries with complex instructions,...
  • BigCodeBench-Hard: Harder 148-task subset of BigCodeBench selected for lower solve rates, cheaper to...
  • CanItEdit: Hand-crafted instructional code editing problems with descriptive and lazy instruction variants, tested by...
  • ClassEval: Manually crafted class-level generation tasks (multiple interdependent methods), about 500 person-hours to...
  • Commit0: Agent must implement a library from its spec using interactive unit tests; measures long-form spec...