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.
核心贡献 · Key contributions
开源 MoE 代码模型,在代码任务上达到 GPT4-Turbo 级别性能。 Open-source MoE code model achieving GPT4-Turbo-level performance in code tasks.
在 6 万亿 token 上继续预训练,增强了编码和数学推理能力,同时保持通用语言性能。 Continued pre-training on 6T tokens enhances coding and math reasoning while maintaining general language performance.
将编程语言支持从 86 种扩展到 338 种,上下文长度从 16K 扩展到 128K。 Expands programming language support from 86 to 338 and context length from 16K to 128K.
在编码和数学基准上优于 GPT4-Turbo、Claude 3 Opus 和 Gemini 1.5 Pro 等闭源模型。 Outperforms closed-source models like GPT4-Turbo, Claude 3 Opus, and Gemini 1.5 Pro on coding and math benchmarks.
首个在 SWEBench 上超过 10%的开源模型,在 HumanEval 上达到 90.2%。 First open-source model to exceed 10% on SWEBench, achieving 90.2% on HumanEval.
使用 GRPO 进行对齐,利用编译器反馈和奖励模型优化人类偏好。 Uses GRPO for alignment with human preferences, leveraging compiler feedback and reward models.
局限 · Limitations
与 GPT-4 Turbo 相比,指令遵循能力存在显著差距,导致在 SWEbench 等复杂任务上表现不佳。 Significant gap in instruction-following capabilities compared to GPT-4 Turbo, leading to poor performance on complex tasks like SWEbench.
预训练数据截止于 2023 年 11 月前,可能限制对近期事件的了解。 Pre-training data cutoff before November 2023 may limit knowledge of recent events.
在 TriviaQA 等知识密集型基准上,自然语言性能略逊于 DeepSeek-V2。 Natural language performance slightly lags behind DeepSeek-V2 on knowledge-intensive benchmarks like TriviaQA.
236B 模型仅使用下一个词预测目标,未使用 Fill-In-Middle,限制了代码补全能力。 236B model uses only next-token prediction objective, not Fill-In-Middle, limiting code completion capabilities.
由于指数归一化导致训练不稳定,需回退到传统方法。 Training instability observed due to exponential normalization, requiring reversion to conventional method.