Inference
An evaluation metric that counts a problem as solved if at least one of k sampled attempts passes, usually checked by unit tests.
An evaluation metric that counts a problem as solved if at least one of k sampled attempts passes, usually checked by unit tests. It was popularized by OpenAI's 2021 Codex paper, which introduced HumanEval and an unbiased estimator: generate n samples, count the c that pass, and compute 1 - C(n-c, k) / C(n, k). pass@1 approximates single-try accuracy, while a larger k shows what repeated sampling can reach if you have a reliable way to pick the right answer.
Primary source: arxiv.org
Example
In practice, developers reach for pass@k when they need the capability described above as part of an AI feature or workflow.
Hands-on guides, comparisons, and tutorials that cover Inference.
FAQ
An evaluation metric that counts a problem as solved if at least one of k sampled attempts passes, usually checked by unit tests.
pass@k sits in the Inference part of the AI stack. Understanding it helps you make better decisions when building, debugging, and shipping AI features.
Developers Digest publishes tutorials and videos that cover Inference topics including pass@k. Check the blog and YouTube channel for hands-on walkthroughs.
Related
A technique where you generate N candidate answers to the same prompt and keep the one a scorer ranks highest.
The computation a model spends while answering a prompt, as opposed to the compute spent training it.
The first phase of LLM inference, where the model processes the entire input prompt in parallel and builds the KV cache before producing any output.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.