MBPP
Models write short Python functions from a one-line task description. A solution counts as correct if it passes the task's three assert tests.
EvalPlus released MBPP+ with many more tests per task because the original three tests miss wrong solutions.
In the authors’ words
This paper explores the limits of the current generation of large language models for program synthesis in general purpose programming languages. We evaluate a collection of such models (with between 244M and 137B parameters) on two new benchmarks, MBPP and MathQA-Python, in both the few-shot and fine-tuning regimes. Our benchmarks are designed to measure the ability of these models to synthesize short Python programs from natural language descriptions. The Mostly Basic Programming Problems (MBPP) dataset contains 974 programming tasks, designed to be solvable by entry-level programmers. The MathQA-Python dataset, a Python version of the MathQA benchmark, contains 23914 problems that evaluate the ability of the models to synthesize code from more complex text. On both datasets, we find that synthesis performance scales log-linearly with model size. Our largest models, even without finetuning on a code dataset, can synthesize solutions to 59.6 percent of the problems from MBPP using few-shot learning with a well-designed prompt. Fine-tuning on a held-out portion of the dataset improves performance by about 10 percentage points across most model sizes. On the MathQA-Python dataset, the largest fine-tuned model achieves 83.8 percent accuracy. Going further, we study the model's ability to engage in dialog about code, incorporating human feedback to improve its solutions. We find that natural language feedback from a human halves the error rate compared to the model's initial prediction. Additionally, we conduct an error analysis to shed light on where these models fall short and what types of programs are most difficult to generate. Finally, we explore the semantic grounding of these models by fine-tuning them to predict the results of program execution. We find that even our best models are generally unable to predict the output of a program given a specific input.
- Level
- School Students, from grade school to high school
- Scored
- Checked automatically A program checks the result against an answer key, unit tests or the expected final state.
- Answers
- Code A program or patch run against tests.
Sarvam 30B leads with 92.7% among models released by Apr 2026
Best score per model as labs report them in their own cards. Labs pick their own settings, so these compare less cleanly than independent runs.
The newest model with a score here came out in Apr 2026, and nobody has reported a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- GPT-6 Astra
- Claude Opus 5.5
- GPT-6.1 Terra
- GPT-6.1 Sol
- and 16 more
- 92.7 Sarvam 30B
- 91.3
Llama-3.3-Nemotron-Super-49B-v1
- 88.6
Llama 3.1-405B
- 88.2
Qwen2.5-72B
- 87.6
Llama 3.3 70B Instruct
- 86.4 Claude 3 Opus
- 86.0
Llama 3.1-70B
- 85.5 Granite 4.1 30B
- 85.2
Seed-Coder-8B-Instruct
- 84.0
Qwen2.5-32B
- 84.0 Granite 4.0 H Small
- 83.9
Falcon-H1-34B
- 82.8
Qwen-Turbo
- 82.0
Qwen2.5-14B
- 80.8
Phi-3.5-MoE
- 80.4 Claude 3 Haiku
- 80.2
Qwen2-72B
- 80.2
Codestral
- 80.2
Qwen2.5-14B-Instruct-1M
- 80.2
ERNIE-4.5-21B-A3B-Thinking
- 80.0
Mistral Large 2
- 79.4 Claude 3 Sonnet
- 79.4
Seed Diffusion Preview
- 79.2
Qwen2.5-7B
- 77.6
Llama 4 Maverick
- 76.6 Mercury Coder Small
- 75.4
DeepSeek-V3
- 75.2
phi-3-medium 14B
- 75.0 Sarvam-M
- 74.7
Mistral Small 3.1
- 74.4
Gemma 3 27B
- 73.4
Code World Model (CWM)
- 73.2
Qwen2.5-Omni-7B
- 73.1
Mistral Large
- 73.0
Gemma 3 12B
- 72.8
Llama 3.1-8B
- 72.0
DeepSeek-V2 (MoE-236B, May 2024)
- 71.7
phi-3-small 7.4B
- 71.7
MiniMax-Text-01
- 70.0
phi-3-mini 3.8B
- 69.6
Mistral Small 3
- 68.6
Phi-3.5-mini
- 67.8
Llama 4 Scout
- 67.4
Gemma 2 27B
- 65.3
Phi-4 Mini
- 65.0 granite-4.0-1b
- 63.8 Moonlight-16B-A3B
- 63.6
Gemma 3n E4B
- 63.2
Gemma 3 4B
- 61.4
DeepSeek LLM 67B
- 60.7
Mixtral 8x7B
- 59.2
Gemma 2 9B
- 59.1
Phi-2
- 53.4
Qwen1.5-72B
- 52.4 ChatGLM3-6B
- 47.5
Mistral 7B v0.1
- 47.0
Apertus 70B
- 46.4
Qwen-14B
- 45.0
Llama 2-70B
- 44.4
Gemma 7B
- 35.8
Qwen-7B
- 35.2
Gemma 3 1B
- 33.0
Llama 2-34B
- 30.6
Llama 2-13B
- 29.2
Gemma 2B
- 20.8
Llama 2-7B
- 1 Sarvam 30B 92.7%
- 2
Llama-3.3-Nemotron-Super-49B-v1 91.3%
- 3
Llama 3.1-405B 88.6%
- 4
Qwen2.5-72B 88.2%
- 5
Llama 3.3 70B Instruct 87.6%
- 6 Claude 3 Opus 86.4%
- 7
Llama 3.1-70B 86%
- 8 Granite 4.1 30B 85.5%
- 9
Seed-Coder-8B-Instruct 85.2%
- 10
Qwen2.5-32B 84%
- 11 Granite 4.0 H Small 84%
- 12
Falcon-H1-34B 83.9%
- 13
Qwen-Turbo 82.8%
- 14
Qwen2.5-14B 82%
- 15
Phi-3.5-MoE 80.8%
- 16 Claude 3 Haiku 80.4%
- 17
Qwen2-72B 80.2%
- 18
Codestral 80.2%
- 19
Qwen2.5-14B-Instruct-1M 80.2%
- 20
ERNIE-4.5-21B-A3B-Thinking 80.2%
- 21
Mistral Large 2 Jul 2024 80%
- 22 Claude 3 Sonnet 79.4%
- 23
Seed Diffusion Preview 79.4%
- 24
Qwen2.5-7B 79.2%
- 25
Llama 4 Maverick 77.6%
- 26 Mercury Coder Small 76.6%
- 27
DeepSeek-V3 75.4%
- 28
phi-3-medium 14B 75.2%
- 29 Sarvam-M 75%
- 30
Mistral Small 3.1 74.7%
- 31
Gemma 3 27B 74.4%
- 32
Code World Model (CWM) 73.4%
- 33
Qwen2.5-Omni-7B 73.2%
- 34
Mistral Large 73.1%
- 35
Gemma 3 12B 73%
- 36
Llama 3.1-8B 72.8%
- 37
DeepSeek-V2 (MoE-236B, May 2024) 72%
- 38
phi-3-small 7.4B 71.7%
- 39
MiniMax-Text-01 71.7%
- 40
phi-3-mini 3.8B 70%
- 41
Mistral Small 3 69.6%
- 42
Phi-3.5-mini 68.6%
- 43
Llama 4 Scout 67.8%
- 44
Gemma 2 27B 67.4%
- 45
Phi-4 Mini 65.3%
- 46 granite-4.0-1b 65%
- 47 Moonlight-16B-A3B 63.8%
- 48
Gemma 3n E4B 63.6%
- 49
Gemma 3 4B 63.2%
- 50
DeepSeek LLM 67B 61.4%
- 51
Mixtral 8x7B 60.7%
- 52
Gemma 2 9B 59.2%
- 53
Phi-2 59.1%
- 54
Qwen1.5-72B 53.4%
- 55 ChatGLM3-6B 52.4%
- 56
Mistral 7B v0.1 47.5%
- 57
Apertus 70B 47%
- 58
Qwen-14B 46.4%
- 59
Llama 2-70B 45%
- 60
Gemma 7B 44.4%
- 61
Qwen-7B 35.8%
- 62
Gemma 3 1B 35.2%
- 63
Llama 2-34B 33%
- 64
Llama 2-13B 30.6%
- 65
Gemma 2B 29.2%
- 66
Llama 2-7B 20.8%
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Sarvam 30B | 92.7% | Mar 2026 | Model card | |
| 2 | | 91.3% | Mar 2025 | Model card | |
| 3 | | 88.6% | Jul 2024 | Model card | |
| 4 | | 88.2% | Sep 2024 | Model card | |
| 5 | | 87.6% | Dec 2024 | Model card | |
| 6 | Claude 3 Opus | 86.4% | Mar 2024 | Model card | |
| 7 | | 86% | Jul 2024 | Model card | |
| 8 | Granite 4.1 30B | 85.5% | Apr 2026 | Model card | |
| 9 | | 85.2% | May 2025 | Model card | |
| 10 | | 84% | Dec 2024 | Model card | |
| 11 | Granite 4.0 H Small | 84% | Oct 2025 | Model card | |
| 12 | | 83.9% | May 2025 | Model card | |
| 13 | | 82.8% | Dec 2024 | Model card | |
| 14 | | 82% | Dec 2024 | Model card | |
| 15 | | 80.8% | Aug 2024 | Model card | |
| 16 | Claude 3 Haiku | 80.4% | Mar 2024 | Model card | |
| 17 | | 80.2% | Jun 2024 | Model card | |
| 18 | | 80.2% | Jan 2025 | Model card | |
| 19 | | 80.2% | Jan 2025 | Model card | |
| 20 | | 80.2% | Sep 2025 | Model card | |
| 21 | | 80% | Jul 2024 | Model card | |
| 22 | Claude 3 Sonnet | 79.4% | Mar 2024 | Model card | |
| 23 | | 79.4% | Jul 2025 | Model card | |
| 24 | | 79.2% | Dec 2024 | Model card | |
| 25 | | 77.6% | Apr 2025 | Model card | |
| 26 | Mercury Coder Small | 76.6% | Feb 2025 | Model card | |
| 27 | | 75.4% | Dec 2024 | Model card | |
| 28 | | 75.2% | Aug 2024 | Model card | |
| 29 | Sarvam-M | 75% | May 2025 | Model card | |
| 30 | | 74.7% | Mar 2025 | Model card | |
| 31 | | 74.4% | Mar 2025 | Model card | |
| 32 | | 73.4% | Sep 2025 | Model card | |
| 33 | | 73.2% | Mar 2025 | Model card | |
| 34 | | 73.1% | Feb 2024 | Model card | |
| 35 | | 73% | Mar 2025 | Model card | |
| 36 | | 72.8% | Jul 2024 | Model card | |
| 37 | | 72% | May 2024 | Model card | |
| 38 | | 71.7% | Aug 2024 | Model card | |
| 39 | | 71.7% | Jan 2025 | Model card | |
| 40 | | 70% | Aug 2024 | Model card | |
| 41 | | 69.6% | Jan 2025 | Model card | |
| 42 | | 68.6% | Aug 2024 | Model card | |
| 43 | | 67.8% | Apr 2025 | Model card | |
| 44 | | 67.4% | Jul 2024 | Model card | |
| 45 | | 65.3% | Mar 2025 | Model card | |
| 46 | granite-4.0-1b | 65% | Oct 2025 | Model card | |
| 47 | Moonlight-16B-A3B | 63.8% | Feb 2025 | Model card | |
| 48 | | 63.6% | Jun 2025 | Model card | |
| 49 | | 63.2% | Mar 2025 | Model card | |
| 50 | | 61.4% | Jan 2024 | Model card | |
| 51 | | 60.7% | Dec 2023 | Model card | |
| 52 | | 59.2% | Jul 2024 | Model card | |
| 53 | | 59.1% | Dec 2023 | Model card | |
| 54 | | 53.4% | Feb 2024 | Model card | |
| 55 | ChatGLM3-6B | 52.4% | Oct 2023 | Model card | |
| 56 | | 47.5% | Sep 2023 | Model card | |
| 57 | | 47% | Sep 2025 | Model card | |
| 58 | | 46.4% | Sep 2023 | Model card | |
| 59 | | 45% | Jul 2023 | Model card | |
| 60 | | 44.4% | Feb 2024 | Model card | |
| 61 | | 35.8% | Sep 2023 | Model card | |
| 62 | | 35.2% | Mar 2025 | Model card | |
| 63 | | 33% | Jul 2023 | Model card | |
| 64 | | 30.6% | Jul 2023 | Model card | |
| 65 | | 29.2% | Mar 2024 | Model card | |
| 66 | | 20.8% | Jul 2023 | Model card |
10 models have held number one since 2023
Lab claims count from the day the card came out, independent runs from the model’s release.
The best score passed 85% in Mar 2024
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Labs headline it less often now, last in Apr 2026
Launch posts from every lab that has listed it, one tick per post. Tall colored ticks include it, and short gray ones leave it out.
| Date | Launch post | Score | As the post writes it |
|---|---|---|---|
| 29 Apr 2026 | Granite 4.1 30B | 85.5 | MBPP (pass@1) |
| 6 Mar 2026 | Sarvam 30B | 92.7 | MBPP |
| 28 Oct 2025 | granite-4.0-1b | 65 | MBPP (pass@1) |
| 2 Oct 2025 | Granite 4.0 H Small | 84 | MBPP (pass@1) |
| 9 Sep 2025 | 80.2 | MBPP (Pass@1) | |
| 31 Jul 2025 | 79.4 | Mbpp (Figure 1, equals MBXP Python) | |
| 26 Jun 2025 | 63.6 | MBPP pass@1 3-shot (IT) | |
| 23 May 2025 | Sarvam-M | 75 | MBPP (0.75) |
| 20 May 2025 | 83.9 | MBPP | |
| 8 May 2025 | 85.2 | MBPP | |
| 5 Apr 2025 | 67.8 | MBPP (3-shot, pass@1) [pretrained] | |
| 5 Apr 2025 | 77.6 | MBPP (3-shot, pass@1) [pretrained] | |
| 27 Mar 2025 | 73.2 | MBPP | |
| 18 Mar 2025 | 91.3 | MBPP 0-shot (reasoning on) | |
| 17 Mar 2025 | 74.7 | MBPP | |
| 12 Mar 2025 | 74.4 | MBPP 3-shot (IT); PT = 65.6 | |
| 26 Feb 2025 | Mercury Coder Small | 76.6 | MBPP |
| 22 Feb 2025 | Moonlight-16B-A3B | 63.8 | MBPP |
| 30 Jan 2025 | 69.6 | MBPP pass@1 [base] | |
| 28 Jan 2025 | MBPP | ||
| 15 Jan 2025 | 71.7 | MBPP + | |
| 13 Jan 2025 | 80.2 | MBPP | |
| 26 Dec 2024 | 75.4 | MBPP (Pass@1) | |
| 6 Dec 2024 | 87.6 | MBPP EvalPlus (base), 0-shot, pass@1 | |
| 19 Sep 2024 | 88.2 | Best of MBPP / MBPP+ | |
| 20 Aug 2024 | 80.8 | MBPP (3-shot) | |
| 24 Jul 2024 | 80 | Best of MBPP Base / MBPP Plus | |
| 23 Jul 2024 | 88.6 | MBPP EvalPlus (0-shot) | |
| 27 Jun 2024 | 62.6 | MBPP (3-shot) | |
| 7 Jun 2024 | 80.2 | MBPP | |
| 7 May 2024 | 72 | MBPP | |
| 22 Apr 2024 | 74.5 | MBPP (3-Shot) | |
| 4 Mar 2024 | Claude 3 Opus | 86.4 | MBPP (Pass@1) |
| 26 Feb 2024 | 73.1 | MBPP (pass@1) | |
| 21 Feb 2024 | 44.4 | MBPP (3-shot) | |
| 5 Feb 2024 | 53.4 | MBPP | |
| 12 Dec 2023 | 59.1 | MBPP, Table 2 | |
| 11 Dec 2023 | 60.7 | MBPP (pass@1) | |
| 27 Oct 2023 | ChatGLM3-6B | 52.4 | MBPP |
| 27 Sep 2023 | 47.5 | MBPP (hand-verified subset) | |
| 25 Sep 2023 | 40.8 | MBPP (3-shot) |
50 system cards report it, from 11 labs
Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.
| Date | Document | Score | As the document writes it | Section |
|---|---|---|---|---|
| 30 Sep 2025 | | 73.4 | MBPP, without reasoning (Table 13) | Capabilities |
| 17 Sep 2025 | | 47 | MBPP (Pass@1) (Table 18) | Capabilities |
| 4 Aug 2025 | | 79.4 | Mbpp (Figure 1), equal to MBXP Python in Table 2 | Capabilities |
| 30 Jul 2025 | | 83.9 | MBPP pass@1 (Table 24) | Capabilities |
| 17 Jun 2025 | Mercury Coder Small technical report | 76.6 | MBPP, pass@1 (Table 1) | Capabilities |
| 4 Jun 2025 | | 85.2 | MBPP, EvalPlus (Table 7) | Capabilities |
| 5 Apr 2025 | | 67.8 | MBPP, 3-shot, pass@1, pretrained (Pre-trained models table) | Capabilities |
| 5 Apr 2025 | | 77.6 | MBPP, 3-shot, pass@1, pretrained (Pre-trained models table) | Capabilities |
| 26 Mar 2025 | | 73.2 | MBPP (Table 1) | Capabilities |
| 25 Mar 2025 | | 63.2 | MBPP, IT, 3-shot pass@1 (Table 18) | Capabilities |
| 25 Mar 2025 | | 74.4 | MBPP, IT, 3-shot pass@1 (Table 18) | Capabilities |
| 25 Mar 2025 | | 35.2 | MBPP, IT, 3-shot pass@1 (Table 18) | Capabilities |
| 25 Mar 2025 | | 73 | MBPP, IT, 3-shot pass@1 (Table 18) | Capabilities |
| 3 Mar 2025 | | 65.3 | MBPP (3-Shot) (Tables 7 and 8) | Capabilities |
| 26 Jan 2025 | | 80.2 | MBPP (Table 6) | Capabilities |
| 19 Dec 2024 | | 79.2 | MBPP, Qwen2.5-7B-Instruct (Table 8) | Capabilities |
| 19 Dec 2024 | | 88.2 | MBPP, Qwen2.5-72B-Instruct (Table 6) | Capabilities |
| 19 Dec 2024 | | 84 | MBPP, Qwen2.5-32B-Instruct (Table 7) | Capabilities |
| 19 Dec 2024 | | 82 | MBPP, Qwen2.5-14B-Instruct (Table 7) | Capabilities |
| 19 Dec 2024 | | 82.8 | MBPP, Qwen2.5-Turbo (Table 7) | Capabilities |
| 6 Dec 2024 | | 87.6 | MBPP EvalPlus (base), 0-shot, pass@1 (Instruction tuned models table) | Capabilities |
| 23 Nov 2024 | | 72.8 | MBPP EvalPlus (0-shot), post-trained (Table 2). Plain MBPP = 60.8 (Table 18) | Capabilities |
| 23 Nov 2024 | | 86 | MBPP EvalPlus (0-shot), post-trained (Table 2). Plain MBPP = 75.4 (Table 18) | Capabilities |
| 23 Nov 2024 | | 88.6 | MBPP EvalPlus (0-shot), post-trained (Table 2). Plain MBPP = 78.8 (Table 18) | Capabilities |
| 30 Aug 2024 | | 71.7 | MBPP (3-Shot) (Section 3 table) | Capabilities |
| 30 Aug 2024 | | 70 | MBPP (3-Shot) (Section 3 table) | Capabilities |
| 30 Aug 2024 | | 75.2 | MBPP (3-Shot) (Section 3 table) | Capabilities |
| 30 Aug 2024 | | 80.8 | MBPP (3-shot) (Table 3) | Capabilities |
| 30 Aug 2024 | | 68.6 | MBPP (3-shot) (Table 3) | Capabilities |
| 31 Jul 2024 | | 59.2 | MBPP, IT, 3-shot (Table 17). PT 3-shot (Table 13): 52.4 | Capabilities |
| 31 Jul 2024 | | 67.4 | MBPP, IT, 3-shot (Table 17). PT 3-shot (Table 13): 62.6 | Capabilities |
| 23 Jul 2024 | | 72.8 | MBPP ++ base version, 0-shot, pass@1, instruction tuned (Instruction tuned models table) | Capabilities |
| 23 Jul 2024 | | 86 | MBPP ++ base version, 0-shot, pass@1, instruction tuned (Instruction tuned models table) | Capabilities |
| 23 Jul 2024 | | 88.6 | MBPP ++ base version, 0-shot, pass@1, instruction tuned (Instruction tuned models table) | Capabilities |
| 15 Jul 2024 | | 80.2 | MBPP, Qwen2-72B-Instruct (Table 6) | Capabilities |
| 7 May 2024 | | 72 | MBPP 3-shot, DeepSeek-V2 Chat (RL) (Table 3) | Capabilities |
| 13 Mar 2024 | | 44.4 | MBPP, PT, 3-shot (Table 6). 54.5 on the Mistral split | Capabilities |
| 13 Mar 2024 | | 29.2 | MBPP, PT, 3-shot (Table 6) | Capabilities |
| 4 Mar 2024 | Claude 3 Sonnet model card | 79.4 | MBPP, Pass@1 (Table 1) | Capabilities |
| 4 Mar 2024 | Claude 3 Opus model card | 86.4 | MBPP, Pass@1 (Table 1) | Capabilities |
| 4 Mar 2024 | Claude 3 Haiku model card | 80.4 | MBPP, Pass@1 (Table 1) | Capabilities |
| 8 Jan 2024 | | 60.7 | MBPP (pass@1), hand-verified subset, 3-shot (Table 3; same in Table 2) | Capabilities |
| 5 Jan 2024 | | 61.4 | MBPP, DeepSeek 67B Chat (Table 6) | Capabilities |
| 10 Oct 2023 | | 47.5 | MBPP, hand-verified subset, 3-shot (Table 2) | Capabilities |
| 28 Sep 2023 | | 35.8 | MBPP pass@1 (Table 10) | Capabilities |
| 28 Sep 2023 | | 46.4 | MBPP pass@1 (Table 10) | Capabilities |
| 19 Jul 2023 | | 20.8 | MBPP pass@1, 3-shot, pretrained (Table 21). pass@80 = 62.8 | Capabilities |
| 19 Jul 2023 | | 45 | MBPP pass@1, 3-shot, pretrained (Table 21). pass@80 = 81.4 | Capabilities |
| 19 Jul 2023 | | 33 | MBPP pass@1, 3-shot, pretrained (Table 21). pass@80 = 76.1 | Capabilities |
| 19 Jul 2023 | | 30.6 | MBPP pass@1, 3-shot, pretrained (Table 21). pass@80 = 69.0 | Capabilities |
Versions
More in Coding
- SWE-bench Verified In use 500 human-validated GitHub issues from 12 Python repos. Agent writes a patch that must pass hidden tests. Claude Opus 4.7 83.5%
- SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Opus 5.5 93.9%
- LiveCodeBench v6 In use Competitive programming problems collected after model cutoffs from LeetCode, AtCoder, Codeforces. Scored pass@1 on hidden tests.
DeepSeek-V4-Pro 93.5%
- DeepSWE In use 113 original long-horizon engineering tasks across 91 repos and five languages, written from scratch. Hand-written verifiers accept alternative solutions. GPT-6 Astra 74.1%
- SciCode In use Scientist-curated research coding problems split into subproblems across natural sciences. Code checked against test cases.
Seed2.1 Pro 59.8%
- Codeforces rating In use Model solves recent Codeforces contest problems. An Elo-style rating is computed from simulated contest performance.
DeepSeek V4.1 Flash 3,471