MBPP
Harbor adapterMBPP: Python编程基础
- Samples
- 974
- Released
- 2021
- Scores
- 44
Automated Programming Progress Standard
Can Transformers crack the coding interview? We collected 10,000 programming problems to find out. GPT-3 does not perform well, but new models like GPT-Neo are starting to be able to solve introductory coding challenges.
$ npm i -g lettokenburn-cli$ ltb bench pull apps
External harness. pip install inspect-evals && inspect eval inspect_evals/apps --model <provider/model> https://github.com/UKGovernmentBEIS/inspect_evals
Runs happen on your machine with your own subscription; only the score summary is pushed. CLI docs
| Harness | Source | Confidence | Link | |||
|---|---|---|---|---|---|---|
| DeepSeek-Coder-Instruct 6.7B | 33.8 | N/A | Independent | medium | Jan 25, 2024 | arxiv.org |
| code-davinci-002 175B | 31.9 | N/A | Independent | medium | Jul 21, 2022 | arxiv.org |
| WizardCoder 15B | 26.3 | N/A | Independent | medium | Oct 13, 2023 | arxiv.org |
| GPT-Neo 2.7B | 3.9 | N/A | Independent | medium | May 20, 2021 | arxiv.org |
Every number links to where it was published. Low-confidence rows are muted and need per-cell verification.
While programming is one of the most broadly applicable skills in modern society, it is unclear how well state-of-the-art machine learning models can write code. Despite its importance, there has been surprisingly little work on evaluating code generation, and it can be difficult to assess code generation performance in an accurate and rigorous manner. To meet this challenge, we introduce APPS, a benchmark for code generation. Unlike prior work in more restricted settings, our benchmark measures the ability of models to take an arbitrary natural language specification and generate satisfactory Python code. Similar to how companies assess candidate software developers, we evaluate models by checking their generated code on test cases. Our benchmark includes 10,000 problems, which range from having simple one-line solutions to being substantial algorithmic challenges. We fine-tune large language models on both GitHub and our training set, and we find that the prevalence of syntax errors is decreasing exponentially as models improve. Recent models such as GPT-Neo can pass approximately 20% of the test cases of introductory problems, so we find that machine learning models are now beginning to learn how to code. As the social significance of automatic code generation increases over the coming years, our benchmark can provide an objective measure for tracking advancements.