# WizardCoder: Empowering Code Large Language Models with Evol-Instruct

Source: [WizardCoder: Empowering Code Large Language Models with Evol-Instruct](<https://www.sota2.com/research/paper/68fa78da1e209131cea7ad08>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T03:50:09.043Z

Authors: Ziyang Luo, Can Xu, Pu Zhao, Qingfeng Sun, Xiubo Geng, Wenxiang Hu, Chongyang Tao, Jing Ma, Qingwei Lin, Daxin Jiang

Published: 2023-06-14T15:18:48.000Z

## Abstract

Code Large Language Models (Code LLMs), such as StarCoder, have demonstrated exceptional performance in code-related tasks. However, most existing models are solely pre-trained on extensive raw code data without instruction fine-tuning. In this paper, we introduce WizardCoder, which empowers Code LLMs with complex instruction fine-tuning, by adapting the Evol-Instruct method to the domain of code. Through comprehensive experiments on four prominent code generation benchmarks, namely HumanEval, HumanEval+, MBPP, and DS-1000, we unveil the exceptional capabilities of our model. It surpasses all other open-source Code LLMs by a substantial margin. Moreover, our model even outperforms the largest closed LLMs, Anthropic's Claude and Google's Bard, on HumanEval and HumanEval+. Our code, model weights, and data are public at https://github.com/nlpxucan/WizardLM

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Code Generation on MultiPL-E 2022 (test)](<https://www.sota2.com/research/sota/code-generation-on-multipl-e-2022-test.md>): Code Generation; MultiPL-E 2022 (test); Java: 44.9.

- [Code Completion on DS-1000 1.0 (test)](<https://www.sota2.com/research/sota/code-completion-on-ds-1000-1-0-test.md>): Code Completion; DS-1000 1.0 (test); Success Rate (Matplotlib): 55.2.

- [Code Insertion on DS-1000 1.0 (test)](<https://www.sota2.com/research/sota/code-insertion-on-ds-1000-1-0-test.md>): Code Insertion; DS-1000 1.0 (test); Success Rate (Matplotlib): 55.2.

- [Code Generation on MultiPL-E HumanEval translated from Python](<https://www.sota2.com/research/sota/code-generation-on-multipl-e-humaneval-translated-from-python.md>): Code Generation; MultiPL-E HumanEval translated from Python; C++ Pass Rate: 47.2.

- [Code Generation on Code Benchmarks LCBv6 & MBPP+](<https://www.sota2.com/research/sota/code-generation-on-code-benchmarks-lcbv6-and-mbpp-plus.md>): Code Generation; Code Benchmarks LCBv6 & MBPP+; LCBv6 Score: 31.9.

- [Code Generation on DS-1000 Python](<https://www.sota2.com/research/sota/code-generation-on-ds-1000-python.md>): Code Generation; DS-1000 Python; Pass@1: 28.4.

- [Mathematical Reasoning on Olympiad Bench (Pass@1)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-olympiad-bench-pass-at-1.md>): Mathematical Reasoning; Olympiad Bench; Pass@1: 59.1.

- [Code Generation on MBPP v1 (test)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-v1-test.md>): Code Generation; MBPP v1 (test); Pass@1: 61.2.

- [Code Generation on MBPP Python](<https://www.sota2.com/research/sota/code-generation-on-mbpp-python.md>): Code Generation; MBPP Python; Pass@1: 51.8.

- [Code Generation on LiveCodeBench v6 (Pass rate)](<https://www.sota2.com/research/sota/code-generation-on-livecodebench-v6-pass-rate.md>): Code Generation; LiveCodeBench v6; Pass Rate: 58.

- [Mathematical Reasoning on AIME 2024 (Pass rate)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-aime-2024-pass-rate.md>): Mathematical Reasoning; AIME 2024; Pass Rate: 55.

- [Code Generation on HumanEval 1.0 (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-1-0-test.md>): Code Generation; HumanEval 1.0 (test); Pass@1: 73.2.

- [Mathematical Reasoning on AIME 2024, AIME 2025, and OlympiadBench](<https://www.sota2.com/research/sota/mathematical-reasoning-on-aime-2024-aime-2025-and-olympiadbench.md>): Mathematical Reasoning; Math Benchmarks AIME 2024 AIME 2025 OlympiadBench; AIME 2024 Score: 11.4.

- [Question Answering on COTEMPQA 1.0 (test)](<https://www.sota2.com/research/sota/question-answering-on-cotempqa-1-0-test.md>): Question Answering; COTEMPQA 1.0 (test); Equal Accuracy: 19.5.

- [Code Generation on MultiPL-E](<https://www.sota2.com/research/sota/code-generation-on-multipl-e.md>): Code Generation; MultiPL-E; Average Pass@1: 47.5.

- [Diagram Editing on DiagramGenBenchmark 1.0 (test)](<https://www.sota2.com/research/sota/diagram-editing-on-diagramgenbenchmark-1-0-test.md>): Diagram Editing; DiagramGenBenchmark 1.0 (test); Pass@1: 87.5.

- [Code Generation on MBPP subset of 500 (test)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-subset-of-500-test.md>): Code Generation; MBPP subset of 500 (test); Pass@1: 51.8.

- [Code Generation on DS-1000 (Library Proficiency)](<https://www.sota2.com/research/sota/code-generation-on-ds-1000-library-proficiency.md>): Code Generation; DS-1000; Matplotlib Score: 55.2.

- [Code Generation on HumanEval Python](<https://www.sota2.com/research/sota/code-generation-on-humaneval-python.md>): Code Generation; HumanEval Python; Pass@1: 57.3.

- [Code Repair on HumanEvalFix (test)](<https://www.sota2.com/research/sota/code-repair-on-humanevalfix-test.md>): Code Repair; HumanEvalFix (test); Success Rate (Python): 31.8.

- [Diagram Generation on Code Agent](<https://www.sota2.com/research/sota/diagram-generation-on-code-agent.md>): Diagram Generation; Code Agent; Pass@1: 28.89.

- [Code-to-text on HumanEvalExplain (test)](<https://www.sota2.com/research/sota/code-to-text-on-humanevalexplain-test.md>): Code-to-text; HumanEvalExplain (test); Python Acc: 32.5.

- [Function-level Code Generation on MBPP+ augmented (test)](<https://www.sota2.com/research/sota/function-level-code-generation-on-mbpp-plus-augmented-test.md>): Function-level Code Generation; MBPP+ augmented (test); Pass@1: 66.9.

- [Code Generation on HumanEval+ augmented (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-plus-augmented-test.md>): Function-level Code Generation; HumanEval+ augmented (test); Pass@1: 73.2.

- [Code Generation on MBPP Plus (test)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-plus-test.md>): Code Generation; MBPP Plus (test); Accuracy: 59.9.

- [Code Generation on HumanEval+ (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-plus-test.md>): Code Generation; HumanEval+ (test); Pass@1: 64.6.

- [Mathematical Reasoning on GSM8K (Accuracy & Accuracy (POT))](<https://www.sota2.com/research/sota/mathematical-reasoning-on-gsm8k-accuracy-and-accuracy-pot.md>): Mathematical Reasoning; GSM8K; Accuracy: 4.7.

- [Code Generation on CodeContests (test)](<https://www.sota2.com/research/sota/code-generation-on-codecontests-test.md>): Code Generation; CodeContests (test); Pass@1: 2.15.

- [Code Generation on MBPP (test)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-test.md>): Code Generation; MBPP (test); Pass@1: 73.2.

- [Code Generation on MBPP (pass@1, pass@80)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-pass-at-1-pass-at-80.md>): Code Generation; MBPP; Pass@1: 51.8.

- [Mathematical Reasoning on AIME 2025 (Accuracy and Average Tokens)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-aime-2025-accuracy-and-average-tokens.md>): Mathematical Reasoning; AIME 2025; Accuracy: 44.2.

- [Question Answering on TruthfulQA](<https://www.sota2.com/research/sota/question-answering-on-truthfulqa.md>): Question Answering; TruthfulQA; Accuracy: 36.32.

- [Code Generation on HumanEval (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-test.md>): Code Generation; HumanEval (test); Pass@1: 73.8.

- [Code Generation on MBPP+ (pass@1)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-plus-pass-at-1.md>): Code Generation; MBPP+; Pass@1: 51.9.

- [Question Answering on ARC](<https://www.sota2.com/research/sota/question-answering-on-arc.md>): Question Answering; ARC; Accuracy: 41.81.

- [Code Generation on HumanEval+](<https://www.sota2.com/research/sota/code-generation-on-humaneval-plus.md>): Code Generation; HumanEval+; Pass@1: 56.7.

- [Commonsense Reasoning on Winogrande (accuracy)](<https://www.sota2.com/research/sota/commonsense-reasoning-on-winogrande-accuracy.md>): Commonsense Reasoning; WinoGrande; Accuracy: 61.72.

- [Code Generation on HumanEval](<https://www.sota2.com/research/sota/code-generation-on-humaneval.md>): Code Generation; HumanEval; Pass@1: 73.2.

- [Multi-task Language Understanding on MMLU](<https://www.sota2.com/research/sota/multi-task-language-understanding-on-mmlu.md>): Multi-task Language Understanding; MMLU; Accuracy: 32.29.

- [Commonsense Reasoning on HellaSwag](<https://www.sota2.com/research/sota/commonsense-reasoning-on-hellaswag.md>): Commonsense Reasoning; HellaSwag; Accuracy: 65.06.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2306.08568>)

[PDF](<https://arxiv.org/pdf/2306.08568.pdf>)

[Implementation](<https://github.com/nlpxucan/WizardLM>)
