AI EVALUATION, IN CONTEXT.BY EQUALITY MACHINE

OpenCompass Hub

HumanEval

HumanEval asks a model to implement a small Python function from a specification, then checks its behavior by running tests. Read pass@1 and pass@k separately.

Original 164-task Python HumanEval with its original tests. HumanEval+, multilingual variants and infilling variants remain separate evaluations.

Function completion from a specification

A prompt supplies a function signature and docstring. The original set contains 164 hand-written programming problems with tests, spanning language understanding, algorithms and elementary mathematics. The model supplies code that satisfies the requested behavior.

Evaluating Large Language Models Trained on Code · HumanEval and pass@k

Execution determines correctness

The harness executes each generated completion against the task's tests and records pass or failure. Matching reference wording or source code is unnecessary. Runtime errors and timeouts are failures under the harness configuration.

OpenAI HumanEval · Official evaluation harness · HumanEval · Functional evaluation and pass@k implementation

What pass@k measures

Pass@k estimates whether at least one of k generated candidates passes. The official estimator uses the number of samples and successful samples per problem. A high pass@100 does not mean a user receives correct code on the first attempt.

HumanEval · Functional evaluation and pass@k implementation

Match the sampling and test version

Compare the same k, sampling temperature, completion handling and test suite. The paper shows that preferred temperatures differ with k. Results from extra tests or other languages should retain their own variant labels.

Evaluating Large Language Models Trained on Code · HumanEval and pass@k · OpenAI HumanEval · Official evaluation harness

A compact coding signal

Passing a finite test suite is evidence about those cases, not a proof of all behavior. These short functions do not cover repository maintenance or long projects. The official repository now marks the original harness as unmaintained historical material.

OpenAI HumanEval · Official evaluation harness · Evaluating Large Language Models Trained on Code · HumanEval and pass@k

Evidence available for this benchmark

Numeric results have not been collected for this source record. Use the paper, code or dataset below to check the task and experiments; this does not imply that the original work contains no results.

Start with these resources

Cited documents and dates (1)

Catalog collected on 2026-08-18; resources and fields reflect that saved source.

Evaluation context and evidence

Source
OpenCompass Hub
Publisher
Not recorded
Benchmark release
2021-07-08
Collected
2026-08-18
Modality
Not recorded

These are source-reported observations, not independent reruns by this site. Check the task version, evaluation protocol, unit and reporting date before comparing models. Results from different setups are not a universal ranking.

Reported results 0

This source record has no numeric results in our collection. That does not mean a score of zero or that no public results exist. Consult the original resources above.

Related records in other sources