Coding

HumanEval

by OpenAI

What is HumanEval? HumanEval is a coding eval made by OpenAI. A classic set of hand-written Python function problems, each checked by running hidden tests. Useful as a baseline, though top models have largely mastered it.

Page last updated 2026-10-22 · Evals Review

Editor note

A classic set of hand-written Python function problems, each checked by running hidden tests. Useful as a baseline, though top models have largely mastered it.

What it tests
Writing a short correct function from a docstring.
Original source
github.com/openai/human-eval
Last updated
Repo last commit 2025-01-17
License
MIT

Facts come only from the linked source (checked 15–16 Oct 2026). Credit belongs to the creators. We don't score or rank evals: how we review.

When to use HumanEval

  • You need a quick, cheap sanity check that a model can write short, correct Python functions from a docstring.
  • You want pass@k numbers that can be compared with the many papers that report HumanEval.

Limitations

  • It dates from 2021 and its problems are public, so newer models may have seen them during training.
  • Problems are short, single functions. The paper notes models struggled with docstrings that describe long chains of operations, but the set does not test multi-file or repository work.
  • The harness runs untrusted model-written code. The maintainers ship with execution disabled and tell users to run it only inside a security sandbox.

How to run it

  1. Install the harness and enable execution only after reading the safety note in execution.py.
  2. Write completions to a JSONL file with task_id and completion fields.
  3. Score with the provided command, which reports pass@1, pass@10 and pass@100.
git clone https://github.com/openai/human-eval
pip install -e human-eval
evaluate_functional_correctness samples.jsonl

Notable results

  • In the paper, Codex solved 28.8% of problems with one sample (GPT-3: 0%), and 70.2% when 100 samples per problem were drawn. [Paper (arXiv)]

Sources

Everything above comes from the sources listed, read on 15–16 Oct 2026. Commands are copied from the official instructions; check the source for changes.

Related on Evals Review

Reviews

No reviews yet.

Reviews are written by people who sign in with GitHub, one per account per eval. We can't confirm that each reviewer used the eval; we remove reviews that break our rules, never just for being negative, and we never add, buy or edit reviews. Averages, when shown, come only from these reviews.

Sign in with GitHub to review

Related coding evals

All Coding evals · Comparison table

Discussion

No one has discussed HumanEval yet. Have you run it? Share what it caught, what it missed or how you set it up.

Sign in with GitHub to comment

Be specific and kind. No promotion or affiliate links. Community rules · All discussions

Related reading