Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 10 min read Research mediumAdept

BigCodeBench: The Next Generation of HumanEval

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.

Related posts

  • BigCodeArena: Judging code generations end to end with code executions

    Hugging Face mediumAdept

    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. It supports 10 languages and 8 environments, including React, Vue, Streamlit, Gradio, PyGame and Mermaid. Over five months it collected 14K conversations and 4.7K filtered preference votes. Bradley-Terry Elo with bootstrap confidence intervals ranked o3-mini and o1-mini on top, and per-language and per-environment win rates show weaknesses that aggregate scores hide. Two companion benchmarks are released: BigCodeReward, where giving LLM judges execution outputs raises their agreement with humans (e.g., GPT-4o from 54.6% to 63.8%), and AutoCodeArena, a 600-prompt automated benchmark judged by an LLM on which GPT-5 leads.

  • Beat GPT-4o at Python by searching with 100 dumb LLaMAs

    Modal mediumAdept

    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. This replicates the core claim of the Large Language Monkeys paper on a new model and dataset, with fail@k following a smooth log-log scaling law across three orders of magnitude. The setup used vLLM with prefix caching on ten A100s, reaching about 40k output tokens/s, plus Modal Sandboxes running about 3,000 isolated test executions in parallel, all for under $50. The larger argument is that search trades memory for compute and depends on fast, objective evaluation, so domains with verifiable outcomes like code and formal math benefit most.

  • Introducing the LiveCodeBench Leaderboard - Holistic and Contamination-Free Evaluation of Code LLMs

    Hugging Face easyNovice

    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. Beyond code generation it evaluates self-repair from error feedback, code execution (predicting a function's output) and test output prediction, all scored with Pass@1. GPT-4-Turbo leads most scenarios and widens its lead on self-repair, while Claude-3-Opus wins test output prediction and Mistral-Large does relatively better on reasoning-heavy tasks. Models can be evaluated with the lcb_runner CLI and submitted to the leaderboard.

  • StarCoder: A State-of-the-Art LLM for Code

    Hugging Face easyNovice

    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. With an 8K+ token context, they beat other open code models and match or exceed OpenAI's code-cushman-001 on HumanEval, MBPP, MultiPL-E and DS-1000. A solution-file prompt prefix lifts StarCoder's HumanEval score from 34% to 40.8%, and prompting alone turns the model into a technical assistant. The release includes weights under OpenRAIL-M, training code, an evaluation harness, a PII-redaction dataset and a code attribution tool.

  • Training CodeParrot 🦜 from Scratch

    Hugging Face mediumAdept

    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. Heavy duplication in that dump (10% of unique files made up 66% of all files) hurt model quality, so deduplication plus Codex-style filtering cut it to a 50 GB clean dataset. The guide walks through training a code-specific tokenizer, initializing a GPT-2-large config with attention stability flags, a streaming constant-length dataset, and a ~150-line distributed training loop with 🤗 Accelerate using gradient accumulation and checkpoints pushed to the Hub. Training ran on 16 A100s for 1 day (small) and 1 week (large) on about 25-30B tokens, and the models were evaluated on HumanEval with the pass@k metric.

The quest for software engineering knowledge.

Look:
Layout: