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.
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