Archive of AI

Source Snapshot / 2024-12-26-deepseek-21-2

deepseek-ai/DeepSeek-V3

Linked event: 2024-12-26 · Release of DeepSeek-V3

Publisher
DeepSeek / GitHub
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 5873868a7d14a504
Original URL
Open source ↗
Wayback Backup
Wayback archive ↗
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

Skip to content

Navigation Menu

Appearance settings

You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window. Reload to refresh your session.

You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Repository navigation

NotificationsYou must be signed in to change notification settings

Fork16.7k (16.7k)

Star105k (105k)You must be signed in to star a repository

No description, website, or topics provided.

MIT, License licenses found

Custom properties

104.9k stars

733 watching

Report repository

BranchesTags

Open more actions menu

Latest commit

Folders and files

Last commit message

Last commit date

LICENSE-CODE

LICENSE-MODEL

README_WEIGHTS.md

View all files

Repository files navigation

Paper Link👁️

Table of Contents

Introduction

Model Summary

Model Downloads

Evaluation Results

Chat Website & API Platform

How to Run Locally

1. Introduction

We present DeepSeek-V3, a strong Mixture-of-Experts (MoE) language model with 671B total parameters with 37B activated for each token.

To achieve efficient inference and cost-effective training, DeepSeek-V3 adopts Multi-head Latent Attention (MLA) and DeepSeekMoE architectures, which were thoroughly validated in DeepSeek-V2.

Furthermore, DeepSeek-V3 pioneers an auxiliary-loss-free strategy for load balancing and sets a multi-token prediction training objective for stronger performance.

We pre-train DeepSeek-V3 on 14.8 trillion diverse and high-quality tokens, followed by Supervised Fine-Tuning and Reinforcement Learning stages to fully harness its capabilities.

Comprehensive evaluations reveal that DeepSeek-V3 outperforms other open-source models and achieves performance comparable to leading closed-source models.

Despite its excellent performance, DeepSeek-V3 requires only 2.788M H800 GPU hours for its full training.

In addition, its training process is remarkably stable.

Throughout the entire training process, we did not experience any irrecoverable loss spikes or perform any rollbacks.

2. Model Summary

Architecture: Innovative Load Balancing Strategy and Training Objective

On top of the efficient architecture of DeepSeek-V2, we pioneer an auxiliary-loss-free strategy for load balancing, which minimizes the performance degradation that arises from encouraging load balancing.

We investigate a Multi-Token Prediction (MTP) objective and prove it beneficial to model performance.

It can also be used for speculative decoding for inference acceleration.

Pre-Training: Towards Ultimate Training Efficiency

We design an FP8 mixed precision training framework and, for the first time, validate the feasibility and effectiveness of FP8 training on an extremely large-scale model.

Through co-design of algorithms, frameworks, and hardware, we overcome the communication bottleneck in cross-node MoE training, nearly achieving full computation-communication overlap.

This significantly enhances our training efficiency and reduces the training costs, enabling us to further scale up the model size without additional overhead.

At an economical cost of only 2.664M H800 GPU hours, we complete the pre-training of DeepSeek-V3 on 14.8T tokens, producing the currently strongest open-source base model. The subsequent training stages after pre-training require only 0.1M GPU hours.

Post-Training: Knowledge Distillation from DeepSeek-R1

We introduce an innovative methodology to distill reasoning capabilities from the long-Chain-of-Thought (CoT) model, specifically from one of the DeepSeek R1 series models, into standard LLMs, particularly DeepSeek-V3. Our pipeline elegantly incorporates the verification and reflection patterns of R1 into DeepSeek-V3 and notably improves its reasoning performance. Meanwhile, we also maintain a control over the output style and length of DeepSeek-V3.

3. Model Downloads

#Total Params

#Activated Params

Context Length

DeepSeek-V3-Base

🤗 Hugging Face

The total size of DeepSeek-V3 models on Hugging Face is 685B, which includes 671B of the Main Model weights and 14B of the Multi-Token Prediction (MTP) Module weights.

To ensure optimal performance and flexibility, we have partnered with open-source communities and hardware vendors to provide multiple ways to run the model locally. For step-by-step guidance, check out Section 6: How_to Run_Locally.

For developers looking to dive deeper, we recommend exploring README_WEIGHTS.md for details on the Main Model weights and the Multi-Token Prediction (MTP) Modules. Please note that MTP support is currently under active development within the community, and we welcome your contributions and feedback.

4. Evaluation Results

Standard Benchmarks

Benchmark (Metric)

LLaMA3.1 405B

Architecture

# Activated Params

# Total Params

Pile-test (BPB)

MMLU-Redux (Acc.)

MMLU-Pro (Acc.)

ARC-Easy (Acc.)

ARC-Challenge (Acc.)

HellaSwag (Acc.)

WinoGrande (Acc.)

RACE-Middle (Acc.)

RACE-High (Acc.)

TriviaQA (EM)

NaturalQuestions (EM)

AGIEval (Acc.)

HumanEval (Pass@1)

MBPP (Pass@1)

LiveCodeBench-Base (Pass@1)

CRUXEval-I (Acc.)

CRUXEval-O (Acc.)

CLUEWSC (EM)

C-Eval (Acc.)

CMMLU (Acc.)

Multilingual

MMMLU-non-English (Acc.)

Best results are shown in bold. Scores with a gap not exceeding 0.3 are considered to be at the same level. DeepSeek-V3 achieves the best performance on most benchmarks, especially on math and code tasks.

For more evaluation details, please check our paper.

Context Window

Evaluation results on the Needle In A Haystack (NIAH) tests. DeepSeek-V3 performs well across all context window lengths up to 128K.

Standard Benchmarks (Models larger than 67B)

DeepSeek V2-0506

DeepSeek V2.5-0905

Qwen2.5 72B-Inst.

Llama3.1 405B-Inst.

Claude-3.5-Sonnet-1022

MMLU-Redux (EM)

MMLU-Pro (EM)

DROP (3-shot F1)

IF-Eval (Prompt Strict)

GPQA-Diamond (Pass@1)

SimpleQA (Correct)

FRAMES (Acc.)

LongBench v2 (Acc.)

HumanEval-Mul (Pass@1)

LiveCodeBench (Pass@1-COT)

LiveCodeBench (Pass@1)

Codeforces (Percentile)

SWE Verified (Resolved)

Aider-Edit (Acc.)

Aider-Polyglot (Acc.)

AIME 2024 (Pass@1)

MATH-500 (EM)

CNMO 2024 (Pass@1)

C-SimpleQA (Correct)

All models are evaluated in a configuration that limits the output length to 8K. Benchmarks containing fewer than 1000 samples are tested multiple times using varying temperature settings to derive robust final results. DeepSeek-V3 stands as the best-performing open-source model, and also exhibits competitive performance against frontier closed-source models.

Open Ended Generation Evaluation

AlpacaEval 2.0

DeepSeek-V2.5-0905

Qwen2.5-72B-Instruct

LLaMA-3.1 405B

Claude-Sonnet-3.5-1022

English open-ended conversation evaluations. For AlpacaEval 2.0, we use the length-controlled win rate as the metric.

5. Chat Website & API Platform

You can chat with DeepSeek-V3 on DeepSeek's official website: chat.deepseek.com

We also provide OpenAI-Compatible API at DeepSeek Platform: platform.deepseek.com

6. How to Run Locally

DeepSeek-V3 can be deployed locally using the following hardware and open-source community software:

DeepSeek-Infer Demo: We provide a simple and lightweight demo for FP8 and BF16 inference.

SGLang: Fully support the DeepSeek-V3 model in both BF16 and FP8 inference modes, with Multi-Token Prediction coming soon.

LMDeploy: Enables efficient FP8 and BF16 inference for local and cloud deployment.

TensorRT-LLM: Currently supports BF16 inference and INT4/8 quantization, with FP8 support coming soon.

vLLM: Support DeepSeek-V3 model with FP8 and BF16 modes for tensor parallelism and pipeline parallelism.

LightLLM: Supports efficient single-node or multi-node deployment for FP8 and BF16.

AMD GPU: Enables running the DeepSeek-V3 model on AMD GPUs via SGLang in both BF16 and FP8 modes.

Huawei Ascend NPU: Supports running DeepSeek-V3 on Huawei Ascend devices in both INT8 and BF16.

[...内容已截断,完整版请查看原文或 Wayback 快照]