Skip to main content
Browse Models

Deepseek AI

DeepSeek V2.5

Released

2024-05-07

Family

DeepSeek V2

Type

Foundation Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

Chat model, 4-bit GGUF (Q4_K_M)

GGUF · DeepSeek-V2.5-1210-Q4_K_M.gguf

Chat model, 5-bit GGUF (Q5_K_M)

GGUF · DeepSeek-V2.5-1210-Q5_K_M.gguf

Chat model, 6-bit GGUF (Q6_K)

GGUF · DeepSeek-V2.5-1210-Q6_K.gguf

Chat model, 8-bit GGUF (Q8_0)

GGUF · DeepSeek-V2.5-1210-Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

DeepSeek V2.5 is a large-scale Mixture-of-Experts (MoE) language model developed by DeepSeek-AI, designed to facilitate efficient training, inference, and multilingual performance in large language modeling. Introduced as the successor to DeepSeek 67B, DeepSeek V2.5 implements architectural innovations that influence benchmark performance, operational costs, and long-context natural language understanding. Its design combines attention mechanisms, parameter efficiency, and scalable routing strategies to facilitate both English and Chinese language proficiency, as detailed in the technical report and arXiv preprint.

Scatter plot comparing activated parameters per token with performance (MMLU) for DeepSeek-V2 and other models

Figure 1. A scatter plot highlighting DeepSeek-V2’s parameter efficiency (activated parameters per token vs. MMLU performance), contrasted with other leading language models.

Technical Architecture

DeepSeek V2.5 is built on a Transformer-based backbone with modifications intended to optimize computational overhead and scale. The model architecture introduces Multi-head Latent Attention (MLA), which incorporates low-rank key-value compression to reduce memory requirements during inference, thereby addressing the KV cache bottleneck that often constrains large models. This mechanism compresses keys and values into a shared latent representation, reducing cache size and enabling efficient transformer self-attention computation.

The DeepSeekMoE framework is also integrated into the architecture. In this Mixture-of-Experts arrangement, the model consists of 236 billion total parameters, with 21 billion parameters activated per token. Experts are segmented finely to facilitate specialization, and a dedicated routing system ensures that the computational and communication load is distributed across devices efficiently. Auxiliary loss mechanisms at both expert and device levels—along with a communication balance component—are employed to prevent routing collapse and to balance computational efficiency.

A novel device-limited routing strategy restricts the set of active experts for each token to a maximum number of hardware devices, controlling communication cost during parallel processing. Further, a token-dropping method helps maintain load balance on each device during training. The model’s position encoding utilizes a decoupled Rotary Position Embedding (RoPE) strategy, addressing challenges introduced by low-rank compression techniques.

Diagram of DeepSeek-V2 architecture, showing MLA, DeepSeekMoE, and Transformer Block.

Figure 2. Technical diagram of DeepSeek-V2, illustrating its Multi-head Latent Attention (MLA) and DeepSeekMoE architecture as well as the overall Transformer block design.

Model Training and Datasets

Pretraining of DeepSeek V2.5 utilized a corpus of 8.1 trillion tokens, with a focus on bilingual (Chinese and English) coverage. The dataset curation process includes filtering to enhance linguistic quality and to minimize bias arising from regional and topical imbalances. Compared to its predecessor, DeepSeek V2.5 employs a modified data selection algorithm and a pretraining corpus with a higher proportion of Chinese language data.

The tokenizer used is based on Byte-level Byte-Pair Encoding (BBPE) with a 100,000-word vocabulary. Pretraining optimizations include a 60-layer Transformer stack, 128 attention heads per layer, and both shared and routed experts in each MoE layer. After the initial pretraining, context length is extended from 4,000 to 128,000 tokens using the YaRN (Yet another RoPE extension) method, which is specifically adapted for the positional embedding in long-context scenarios.

Alignment is conducted over two main stages. First, supervised fine-tuning leverages 1.5 million conversational interactions covering math, code, writing, reasoning, and safety. In the second stage, preference alignment is achieved via reinforcement learning using Group Relative Policy Optimization (GRPO, aiming to influence output characteristics such as helpfulness and safety through a reward modeling strategy.

Performance and Evaluation

DeepSeek V2.5 performance is evaluated on a range of standard large language model benchmarks across English and Chinese. When compared to other contemporary models, its performance on benchmarks is achieved while operating with a relatively lower proportion of activated parameters per token.

Benchmarks reveal the model’s efficacy on language understanding and reasoning tasks (such as MMLU, BBH, C-Eval, and CMMLU) as well as its code generation capabilities (HumanEval, MBPP, and LiveCodeBench). For mathematical problem-solving, evaluations on GSM8K and MATH datasets illustrate its reasoning skills.

Bar charts comparing training cost, KV cache, and throughput between DeepSeek-V2 and DeepSeek 67B.

Figure 3. Comparative analysis of DeepSeek-V2 versus DeepSeek 67B, showing reduced training costs, lower KV cache requirements, and higher generation throughput.

Heatmap of DeepSeek-V2's performance on long context (Needle In A Haystack) tests.

Figure 4. Heatmap demonstrating DeepSeek-V2’s ability to handle long-context retrieval (up to 128K tokens) in 'Needle In a Haystack' (NIAH) evaluations.

The model retrieves specific information from long sequences, as indicated by its NIAH test results. The chat variant (DeepSeek-V2-Chat) is evaluated on MTBench and AlpacaEval 2.0, with results comparable to open and closed-source conversational models.

Scatter plot of DeepSeek-V2 chat model vs. others on MTBench and AlpacaEval 2.0.

Figure 5. Evaluation of DeepSeek-V2-Chat (RL) in open-ended English generation, visualized by MTBench and AlpacaEval 2.0 win-rates compared to other models.

Scatter plot for HumanEval and LiveCodeBench coding benchmarks.

Figure 6. Performance of DeepSeek-V2-Chat (RL) and peer models on HumanEval and LiveCodeBench coding benchmarks.

Applications, Availability, and Limitations

DeepSeek V2.5 is suitable for a range of tasks, including general text generation, open-domain conversation, code completion and synthesis, mathematical reasoning, and bilingual applications in English and Chinese. Its extended context window supports processing of long documents, making it relevant for summarization and information retrieval tasks.

DeepSeek V2.5 retains limitations typical of large pretrained models: post-training knowledge is static, and the possibility remains for generating inaccurate or misleading information. The model's performance focus is on Chinese and English; proficiency in other languages may be limited due to the training data’s linguistic composition. At present, DeepSeek V2.5 operates exclusively in the text modality.

Licensing and Model Family

DeepSeek V2.5 is distributed under the MIT License for code, while the model weights are governed by a custom Model License Agreement, permitting research and commercial use. A smaller-scale variant, DeepSeek-V2-Lite, with 15.7 billion parameters, is also available, which can be used for community exploration and research.

External Resources

About DeepSeek V2: DeepSeek V2 and its 16-billion-parameter counterpart, DeepSeek V2 Lite, are Mixture-of-Experts (MoE) language models that utilize Multi-head Latent Attention (MLA) and the DeepSeekMoE architecture to achieve efficient inference and economical training, delivering high performance with reduced computational costs.

More from Deepseek AI

Deepseek AI /

DeepSeek R1 Distill Qwen 1.5B

A 1.5 billion parameter language model created through distillation techniques, focusing on mathematical reasoning and chain-of-thought problem-solving capabilities.
Deepseek AI /

DeepSeek R1 Distill Qwen 7B

A 7.62B parameter distilled language model based on Qwen2.5-Math-7B, trained via knowledge distillation for mathematical and logical reasoning tasks.
Deepseek AI /

DeepSeek R1 Distill Qwen 14B

A 14B dense language model distilled from a mixture-of-experts architecture, optimized for mathematical reasoning and code generation tasks.
Deepseek AI /

DeepSeek R1 Distill Qwen 32B

A 32B parameter language model created through knowledge distillation, optimized for mathematical reasoning, code generation, and complex problem-solving tasks.
Deepseek AI /

DeepSeek R1 Distill Llama 8B

Distilled 8B-parameter model optimized for mathematical reasoning and code generation through knowledge transfer from larger reinforcement learning-trained teacher models.
Deepseek AI /

DeepSeek R1 Distill Llama 70B

A 70B parameter dense language model distilled from DeepSeek-R1 using Llama 3.3 architecture, optimized for mathematical and coding reasoning tasks.
Deepseek AI /

DeepSeek R1 (0528)

A 671B-parameter MoE model with 37B active parameters featuring enhanced reasoning capabilities through reinforcement learning and chain-of-thought training methodologies.
Deepseek AI /

DeepSeek R1

A 671B parameter Mixture-of-Experts model trained with reinforcement learning to enhance reasoning capabilities in mathematics, coding, and logical tasks.
Deepseek AI /

DeepSeek V3 (0324)

Large-scale MoE language model utilizing 671B parameters with 37B activated per token, featuring enhanced reasoning and multilingual capabilities.
Deepseek AI /

DeepSeek V3

A 671-billion parameter Mixture-of-Experts language model with 37 billion active parameters per token, featuring auxiliary-loss-free load balancing and FP8 mixed-precision training.
Deepseek AI /

DeepSeek VL2

A Mixture-of-Experts vision-language model series featuring dynamic image tiling, visual grounding capabilities, and efficient sparse computation across three parameter variants.
Deepseek AI /

DeepSeek VL2 Small

A 2.8B parameter mixture-of-experts vision-language model with dynamic tiling for multimodal understanding, OCR, and visual grounding tasks.
Deepseek AI /

DeepSeek VL2 Tiny

A compact Mixture-of-Experts vision-language model with 1.0B activated parameters supporting multimodal tasks including OCR, document analysis, and visual grounding.