Code

DeepSeek-Coder-V2

First page
DeepSeek-Coder-V2
Paper summary

competes with closed-sourced models on code and math generation tasks; achieves 90.2% on HumanEval and 75.7% on MATH; these results are higher than GPT-4-Turbo-0409 performance according to their report; includes a 16B and 236B parameter model with 128K context length.

Ask this paper

Abstract

We present DeepSeek-Coder-V2, an open-source Mixture-of-Experts (MoE) code language model that achieves performance comparable to GPT4-Turbo in code-specific tasks. Specifically, DeepSeek-Coder-V2 is further pre-trained from an intermediate checkpoint of DeepSeek-V2 with additional 6 trillion tokens. Through this continued pre-training, DeepSeek-Coder-V2 substantially enhances the coding and mathematical reasoning capabilities of DeepSeek-V2, while maintaining comparable performance in general language tasks. Compared to DeepSeek- Coder-33B, DeepSeek-Coder-V2 demonstrates significant advancements in various aspects of code-related tasks, as well as reasoning and general capabilities. Additionally, DeepSeek-Coder- V2 expands its support for programming languages from 86 to 338, while extending the context length from 16K to 128K. In standard benchmark evaluations, DeepSeek-Coder-V2 achieves superior performance compared to closed-source models such as GPT4-Turbo, Claude 3 Opus, and Gemini 1.5 Pro in coding and math benchmarks.HumanEval MBPP+ MATH GSM8K 50 60 70 80 90 100 Accuracy (%) 90.2 76.2 75.7 94.9 88.2 72.2 73.4 93.7 83.5 74.6 67.7 90.8 84.9 72.0 60.1 95.0 81.7 69.0 50.4 93.0 81.1 68.2 Aider LiveCodeBench SWE-Bench 0 10 20 30 40 50 60 70 80 73.7 43.4 12.7 63.9 45.7 18.3 57.1 34.1 18.7 68.4 34.6 11.7 49.2 28.7 51.1 31.0 2.7 DeepSeek-Coder-V2 GPT-4-Turbo-0409 Gemini-1.5-Pro Claude-3-Opus Llama-3-70B Codestral Figure 1 | The Performance of DeepSeek-Coder-V2 on math and code benchmarks. *Core contributors

Every Monday
Get next week’s papers.
Subscribe on Substack