---
title: "BigCodeBench: The Next Generation of HumanEval"
description: "BigCodeBench is a code-generation benchmark of 1,140 Python function-level tasks that require composing calls from 139 libraries."
url: "https://swe.quest/articles/bigcodebench-the-next-generation-of-humaneval-19fbda5688a2d115"
canonical: "https://huggingface.co/blog/leaderboard-bigcodebench"
source: "Hugging Face"
published: "2024-06-18"
difficulty: "medium"
kind: "Research"
reading_minutes: 10
tags: ["evals","ai-coding","llms","python"]
---

# BigCodeBench: The Next Generation of HumanEval

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-06-18, 10 min read, Research. Original: [https://huggingface.co/blog/leaderboard-bigcodebench](https://huggingface.co/blog/leaderboard-bigcodebench)

## Summary

BigCodeBench is a code-generation benchmark of 1,140 Python function-level tasks that require composing calls from 139 libraries. Each task averages 5.6 unittest-based test cases with 99% branch coverage, and the tasks were built by expanding ODEX Stack Overflow intents with GPT-4 under human-expert refinement. It comes in Complete (docstring completion) and Instruct (conversational prompt) variants, scored by calibrated Pass@1 and Elo ratings. The best model, GPT-4o, reaches 61.1% and 51.1% respectively, against 97% for human experts, and an open-source PyPI harness with Docker images supports generation, sanitization and sandboxed evaluation.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- LLM code generation ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Pass@k metrics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- Python unittest ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))

## Keywords

BigCodeBench, HumanEval, GPT-4o, EvalPlus, ODEX, Pass@1, Elo rating

## Related posts

- [BigCodeArena: Judging code generations end to end with code executions](https://swe.quest/articles/bigcodearena-judging-code-generations-end-to-end-with-code-executions-e01cca9057c6a3ce.md): Hugging Face · 2025-10-07 · Medium · 9 min read · Evaluation, AI for coding, LLMs, Sandboxing & isolation
  BigCodeArena is a human-in-the-loop arena for code generation models that runs generated code in sandboxes, letting users interact with the output and vote on it.
- [Beat GPT-4o at Python by searching with 100 dumb LLaMAs](https://swe.quest/articles/beat-gpt-4o-at-python-by-searching-with-100-dumb-llamas-907f6997678a8d61.md): Modal · 2024-08-05 · Medium · 7 min read · LLMs, Inference & serving, Evaluation, AI for coding, Serverless
  Sampling LLaMA 3.1 8B Instruct many times and checking each candidate against HumanEval's unit tests raises pass@k from 66.4% at k=1 to 90.5% at k=100, matching GPT-4o's reported 90.2% pass@1, and to 95.1% at k=1000.
- [Introducing the LiveCodeBench Leaderboard - Holistic and Contamination-Free Evaluation of Code LLMs](https://swe.quest/articles/introducing-the-livecodebench-leaderboard-holistic-and-contamination-free-cd05ed71356a1cca.md): Hugging Face · 2024-04-16 · Easy · 4 min read · Evaluation, LLMs, AI for coding
  LiveCodeBench is a code-LLM benchmark built from LeetCode, AtCoder and CodeForces contest problems annotated with release dates, so models can be scored only on problems published after their training cutoff to avoid contamination.
- [StarCoder: A State-of-the-Art LLM for Code](https://swe.quest/articles/starcoder-a-state-of-the-art-llm-for-code-ae224d2374e67db4.md): Hugging Face · 2023-05-04 · Easy · 5 min read · LLMs, AI for coding, Evaluation, Open source
  StarCoder and StarCoderBase are ~15B-parameter code LLMs trained on 1 trillion tokens of permissively licensed GitHub data from The Stack 1.2, covering 80+ languages, commits, issues and notebooks, with StarCoder further fine-tuned on 35B Python tokens.
- [Training CodeParrot 🦜 from Scratch](https://swe.quest/articles/training-codeparrot-from-scratch-20fa62d39adc1089.md): Hugging Face · 2021-12-08 · Medium · 11 min read · Model training, LLMs, AI for coding, Python
  CodeParrot is a GPT-2 model (110M and 1.5B parameters) trained from scratch for Python code completion, using a 180 GB GitHub Python dump from BigQuery.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
