---
title: "DeepSeek LLM — paper by DeepSeek-AI et al. (2024)"
description: "DeepSeek LLM studies how compute, data quality, and training choices shape open language systems, then tests bilingual base and chat versions."
canonical: "https://research.elamur.ai/free/en/papers/deepseek-2024-ai-deepseek-llm-scaling-open-source/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/deepseek-2024-ai-deepseek-llm-scaling-open-source/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / DeepSeek LLM: Scaling Open-Source Language Models with Longtermism

# DeepSeek LLM: Scaling Open-Source Language Models with Longtermism

Paper · 2024 · DeepSeek-AI, :, Xiao Bi et al.

**Authors:** [DeepSeek-AI](https://md.research.elamur.ai/free/en/authors/deepseek-ai/), :, [Xiao Bi](https://md.research.elamur.ai/free/en/authors/xiao-bi/), [Deli Chen](https://md.research.elamur.ai/free/en/authors/deli-chen/), [Guanting Chen](https://md.research.elamur.ai/free/en/authors/guanting-chen/), [Shanhuang Chen](https://md.research.elamur.ai/free/en/authors/shanhuang-chen/), [Damai Dai](https://md.research.elamur.ai/free/en/authors/damai-dai/), [Chengqi Deng](https://md.research.elamur.ai/free/en/authors/chengqi-deng/), [Honghui Ding](https://md.research.elamur.ai/free/en/authors/honghui-ding/), [Kai Dong](https://md.research.elamur.ai/free/en/authors/kai-dong/), [Qiushi Du](https://md.research.elamur.ai/free/en/authors/qiushi-du/), [Zhe Fu](https://md.research.elamur.ai/free/en/authors/zhe-fu/), [Huazuo Gao](https://md.research.elamur.ai/free/en/authors/huazuo-gao/), [Kaige Gao](https://md.research.elamur.ai/free/en/authors/kaige-gao/), [Wenjun Gao](https://md.research.elamur.ai/free/en/authors/wenjun-gao/), [Ruiqi Ge](https://md.research.elamur.ai/free/en/authors/ruiqi-ge/), [Kang Guan](https://md.research.elamur.ai/free/en/authors/kang-guan/), [Daya Guo](https://md.research.elamur.ai/free/en/authors/daya-guo/), [Jianzhong Guo](https://md.research.elamur.ai/free/en/authors/jianzhong-guo/), [Guangbo Hao](https://md.research.elamur.ai/free/en/authors/guangbo-hao/), [Zhewen Hao](https://md.research.elamur.ai/free/en/authors/zhewen-hao/), [Ying He](https://md.research.elamur.ai/free/en/authors/ying-he/), Wenjie Hu, [Panpan Huang](https://md.research.elamur.ai/free/en/authors/panpan-huang/), [Erhang Li](https://md.research.elamur.ai/free/en/authors/erhang-li/), [Guowei Li](https://md.research.elamur.ai/free/en/authors/guowei-li/), [Jiashi Li](https://md.research.elamur.ai/free/en/authors/jiashi-li/), [Yao Li](https://md.research.elamur.ai/free/en/authors/yao-li/), [Y. K. Li](https://md.research.elamur.ai/free/en/authors/y-k-li/), [Wenfeng Liang](https://md.research.elamur.ai/free/en/authors/wenfeng-liang/), [Fangyun Lin](https://md.research.elamur.ai/free/en/authors/fangyun-lin/), A. X. Liu, [Bo Liu](https://md.research.elamur.ai/free/en/authors/bo-liu/), [Wen Liu](https://md.research.elamur.ai/free/en/authors/wen-liu/), [Xiaodong Liu](https://md.research.elamur.ai/free/en/authors/xiaodong-liu/), [Xin Liu](https://md.research.elamur.ai/free/en/authors/xin-liu/), [Yiyuan Liu](https://md.research.elamur.ai/free/en/authors/yiyuan-liu/), [Haoyu Lu](https://md.research.elamur.ai/free/en/authors/haoyu-lu/), [Shanghao Lu](https://md.research.elamur.ai/free/en/authors/shanghao-lu/), [Fuli Luo](https://md.research.elamur.ai/free/en/authors/fuli-luo/), [Shirong Ma](https://md.research.elamur.ai/free/en/authors/shirong-ma/), [Xiaotao Nie](https://md.research.elamur.ai/free/en/authors/xiaotao-nie/), [Tian Pei](https://md.research.elamur.ai/free/en/authors/tian-pei/), [Yishi Piao](https://md.research.elamur.ai/free/en/authors/yishi-piao/), [Junjie Qiu](https://md.research.elamur.ai/free/en/authors/junjie-qiu/), [Hui Qu](https://md.research.elamur.ai/free/en/authors/hui-qu/), [Tongzheng Ren](https://md.research.elamur.ai/free/en/authors/tongzheng-ren/), [Zehui Ren](https://md.research.elamur.ai/free/en/authors/zehui-ren/), [Chong Ruan](https://md.research.elamur.ai/free/en/authors/chong-ruan/), [Zhangli Sha](https://md.research.elamur.ai/free/en/authors/zhangli-sha/), [Zhihong Shao](https://md.research.elamur.ai/free/en/authors/zhihong-shao/), [Junxiao Song](https://md.research.elamur.ai/free/en/authors/junxiao-song/), [Xuecheng Su](https://md.research.elamur.ai/free/en/authors/xuecheng-su/), [Jingxiang Sun](https://md.research.elamur.ai/free/en/authors/jingxiang-sun/), [Yaofeng Sun](https://md.research.elamur.ai/free/en/authors/yaofeng-sun/), [Minghui Tang](https://md.research.elamur.ai/free/en/authors/minghui-tang/), [Bingxuan Wang](https://md.research.elamur.ai/free/en/authors/bingxuan-wang/), [Peiyi Wang](https://md.research.elamur.ai/free/en/authors/peiyi-wang/), [Shiyu Wang](https://md.research.elamur.ai/free/en/authors/shiyu-wang/), [Yaohui Wang](https://md.research.elamur.ai/free/en/authors/yaohui-wang/), [Yongji Wang](https://md.research.elamur.ai/free/en/authors/yongji-wang/), [Tong Wu](https://md.research.elamur.ai/free/en/authors/tong-wu/), [Y. Wu](https://md.research.elamur.ai/free/en/authors/y-wu/), [Xin Xie](https://md.research.elamur.ai/free/en/authors/xin-xie/), [Zhenda Xie](https://md.research.elamur.ai/free/en/authors/zhenda-xie/), [Ziwei Xie](https://md.research.elamur.ai/free/en/authors/ziwei-xie/), [Yiliang Xiong](https://md.research.elamur.ai/free/en/authors/yiliang-xiong/), [Hanwei Xu](https://md.research.elamur.ai/free/en/authors/hanwei-xu/), R. X. Xu, [Yanhong Xu](https://md.research.elamur.ai/free/en/authors/yanhong-xu/), [Dejian Yang](https://md.research.elamur.ai/free/en/authors/dejian-yang/), [Yuxiang You](https://md.research.elamur.ai/free/en/authors/yuxiang-you/), [Shuiping Yu](https://md.research.elamur.ai/free/en/authors/shuiping-yu/), [Xingkai Yu](https://md.research.elamur.ai/free/en/authors/xingkai-yu/), B. Zhang, [Haowei Zhang](https://md.research.elamur.ai/free/en/authors/haowei-zhang/), [Lecong Zhang](https://md.research.elamur.ai/free/en/authors/lecong-zhang/), [Liyue Zhang](https://md.research.elamur.ai/free/en/authors/liyue-zhang/), [Mingchuan Zhang](https://md.research.elamur.ai/free/en/authors/mingchuan-zhang/), [Minghua Zhang](https://md.research.elamur.ai/free/en/authors/minghua-zhang/), [Wentao Zhang](https://md.research.elamur.ai/free/en/authors/wentao-zhang/), [Yichao Zhang](https://md.research.elamur.ai/free/en/authors/yichao-zhang/), [Chenggang Zhao](https://md.research.elamur.ai/free/en/authors/chenggang-zhao/), [Yao Zhao](https://md.research.elamur.ai/free/en/authors/yao-zhao/), [Shangyan Zhou](https://md.research.elamur.ai/free/en/authors/shangyan-zhou/), [Shunfeng Zhou](https://md.research.elamur.ai/free/en/authors/shunfeng-zhou/), [Qihao Zhu](https://md.research.elamur.ai/free/en/authors/qihao-zhu/) and [Yuheng Zou](https://md.research.elamur.ai/free/en/authors/yuheng-zou/) · **Year:** 2024 · **Venue:** arXiv:2401.02954 · **Licence:** [arXiv — non-exclusive licence to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**98** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4390690464) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2401.02954)
- [arXiv 2401.02954](https://arxiv.org/abs/2401.02954)
- [OpenAlex](https://openalex.org/W4390690464)

## Deep dive: DeepSeek LLM: Scaling Open-Source Language Models with Longtermism

DeepSeek LLM studies how compute, data quality, and training choices shape open language systems, then tests bilingual base and chat versions. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Training a capable language system requires choices that become expensive to reverse: how large the network should be, how much text it should process, and how its optimization settings should change as the budget grows. DeepSeek LLM investigates those choices before applying them to large training runs. Its central question concerns [scaling laws](https://md.research.elamur.ai/free/en/concepts/scaling-laws/): empirical relationships that describe how predictive performance changes with computational effort, network size, and training data. The authors argue that such relationships need careful calibration. A rule fitted under one optimization setup or on one corpus may give misleading advice elsewhere.

Their approach begins with smaller experiments. They search for effective batch sizes and learning rates, then compare different allocations of the same computational budget between network size and training tokens. They also change how network size enters the calculation. Instead of relying only on parameter counts, they measure the computation required per token outside the vocabulary components, including attention operations. This representation gives their most accurate forecasts of the large runs. A further finding is that the preferred allocation changes across datasets: in their comparisons, higher-quality text favors assigning more of an expanding budget to network growth. The paper therefore treats corpus quality as part of the scaling problem, rather than as a background detail.

The resulting DeepSeek LLM family contains 7B and 67B systems trained from scratch on 2 trillion tokens, chiefly Chinese and English. The architecture follows the LLaMA family in many respects, while changing network depth and adopting a learning-rate schedule designed to make continued training easier. The data pipeline combines broad deduplication, quality filtering, and adjustments to the mixture of sources. A multilingual byte-level tokenizer provides the input representation. Supervised instruction training and subsequent preference optimization produce the chat variants. Throughout this process, the authors examine practical problems that headline benchmark scores can hide, including repetitive responses, sensitivity to system instructions, and improvements confined to multiple-choice testing.

The evaluations support several distinct conclusions. DeepSeek 67B performs better than LLaMA-2 70B on the reported comparisons involving mathematics, code, reasoning, and Chinese tasks, while remaining competitive on English understanding. On English conversational evaluation, its MT-Bench score is 8.35 before preference optimization and 8.76 afterwards. The authors also report strong Chinese open-ended results and favorable safety evaluations. These findings do not establish universal superiority or factual reliability. The paper explicitly acknowledges hallucinations, knowledge that becomes outdated after pretraining, incomplete coverage of Chinese topics, and uncertain proficiency beyond Chinese and English. Its broader contribution is a connected account of training decisions: investigate scaling, prepare the corpus, train the base system, adapt conversational behavior, and evaluate whether the apparent gains survive changes in task format.

### Ideas worth borrowing

Calibrate optimization before fitting scale. A comparison between training budgets is hard to interpret when one run has suitable optimization settings and another does not. The authors first examine batch size and learning rate, then use the resulting relationships in their allocation experiments. This makes the later scaling analysis more informative because avoidable optimization failures are less likely to masquerade as limits of network size or data volume. The same principle applies whenever an engineering team uses small experiments to forecast a more expensive configuration: establish a reasonable operating region before drawing conclusions about growth.

Count the computation that actually changes. Parameter count is convenient, but it can conceal costs associated with attention and vocabulary processing. DeepSeek’s analysis replaces a parameter-based approximation with non-embedding computation per token. That choice matters especially in the smaller experiments used to fit the forecast. The reusable idea is to align the measurement with the mechanism under study. A useful resource variable should represent the work that changes across configurations, rather than merely provide a familiar label for system size.

Treat data quality as an experimental variable. The paper compares scaling behavior across successive internal corpora and OpenWebText2. Its preferred division between network growth and additional tokens changes with the dataset. This suggests a practical rule for research planning: after a substantial corpus revision, recheck the allocation assumptions. Cleaner or differently mixed data may change which investment is most productive. The result is also a warning against importing another project’s scaling coefficients without examining the text distribution on which they were fitted.

Design schedules for continuation. The multi-step learning-rate schedule is attractive because an early training segment can be reused when the planned amount of training changes. Its value is operational as well as statistical. The authors find final performance broadly comparable to a cosine schedule in their comparison, while gaining flexibility for continued runs. Other projects with uncertain data availability or changing budgets can borrow the underlying design goal: choose a training procedure that makes later extensions economical, provided the resulting performance remains acceptable.

Measure conversational failures directly. During instruction training, the authors monitor responses that do not finish and instead keep repeating text. This reveals a problem that improvements on mathematics or coding benchmarks would not necessarily expose. Their staged fine-tuning experiments then address that behavior explicitly. The general lesson applies to [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/): define measurements for the failures users actually encounter. Task accuracy and usable interaction are connected, but a gain in one does not guarantee a gain in the other.

Separate format adaptation from broader competence. Adding multiple-choice training material improves multiple-choice evaluations without producing corresponding benefits on the generative question-answering tests discussed in the paper. The authors therefore exclude that material from their final training approach. This controlled comparison is useful beyond benchmark design. Whenever training resembles the evaluation format closely, test whether the improvement transfers to a different way of asking for the same underlying ability. Otherwise, a more practiced response procedure can be mistaken for a more capable system.

Use several views of improvement. DeepSeek evaluates base prediction, instruction following, open-ended conversation, recently released tasks, and safety. Preference optimization improves conversational judgments while leaving many standard benchmark results mostly unchanged. That divergence is informative: different tests reveal different effects of training. An evaluation plan can borrow this structure by connecting each intervention to the behavior it is intended to change, then adding checks for unwanted side effects. A single aggregate score is unlikely to capture both predictive competence and interaction quality.

### How Mova uses it

For Mova, the small transparent language system implemented in Rust, the most useful contribution is the paper’s way of organizing evidence. There is no established implementation connection to claim here. The applications below are proposals for borrowing experimental habits and design questions, rather than statements that Mova already contains DeepSeek’s architecture, training pipeline, or alignment procedure.

A concrete starting point would be a transparent corpus audit. DeepSeek separates duplicate removal, quality assessment, and source balancing because these operations solve different problems. Mova could make a similar distinction explicit in its data records: why an item was retained, whether related items were removed, and which part of the corpus it represents. The paper’s broader deduplication comparison is particularly relevant. Repetition across collections can remain invisible when each collection is inspected separately. A small system could benefit from checking its full available corpus even when its total data volume is modest.

The scaling analysis suggests a second practice: make resource decisions from local measurements. Mova should not inherit DeepSeek’s fitted coefficients as if they were general constants. The experiments concern a particular training family, corpus, and computational setting. A more defensible adaptation would compare several feasible Mova configurations under a fixed local budget, keeping the data and evaluation conditions visible. The transferable question is simple: does the next unit of effort produce more benefit through additional capacity, additional examples, or better examples?

The evaluation findings also fit a transparent design. Mova could distinguish the ability to select a supplied answer from the ability to produce an answer independently. DeepSeek’s multiple-choice experiment shows why that distinction matters: training can improve the former without improving the generative evaluations used alongside it. For Mova, presenting those outcomes separately would help users understand what a score means. Such reporting would be especially useful when a compact system relies on a constrained response space or a structured task representation.

The repetition analysis offers another practical proposal. If Mova generates extended responses, repeated fragments and failures to stop should be measured directly. If its behavior is more constrained, the corresponding failure might instead be a repeated state or an output procedure that never reaches completion. The paper does not test those alternatives, so their relevance would need to be established within Mova. What carries over is the discipline of identifying an observable failure and checking it during adaptation, rather than assuming that better task scores make it disappear.

Finally, DeepSeek’s language limitations argue for narrow, explicit claims. Its extensive bilingual training does not justify assuming reliable performance in every language. Mova could apply the same restraint to each language and task it supports, recording what has actually been evaluated. Transparency here means making the boundary of evidence easy to inspect. The paper offers a useful example of how to combine ambitious development with concrete statements about missing coverage, unstable behavior, and the conditions under which a result was measured.

### The problem and its context

A training budget does not specify a training plan. The same amount of computation can support a larger network exposed to fewer tokens or a smaller network exposed to more tokens. Neither choice is automatically preferable. The outcome depends on how effectively the network learns, what the data contains, and whether the chosen configuration receives suitable optimization settings. DeepSeek LLM studies this allocation problem as a foundation for sustained development of open language systems.

The paper places that question within the rise of [large language models](https://md.research.elamur.ai/free/en/concepts/large-language-models/) trained to predict the next token. In this setup, continuous text supplies its own supervision: preceding tokens form the context, and the following token supplies the prediction target. The authors describe how this pretraining supports varied uses, including writing, summarization, and code completion. Further adaptation makes the resulting system more responsive to instructions and more suitable for conversation.

The architectural background is the decoder-only [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/), connected to the attention-based design introduced in [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/). For the immediate engineering baseline, however, the paper emphasizes [LLaMA](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-open-efficient-foundation-language/) and [Llama 2](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-2-open-foundation-fine/). The authors regard that family as an important reference for stable architecture and open-system performance. DeepSeek adopts much of its internal design rather than presenting a wholly new network architecture.

The authors’ concern is that reproducing familiar sizes can displace investigation of why those sizes make sense. They describe an open research landscape focused on strong systems at established parameter scales. Such work can produce useful checkpoints, but it does not necessarily reveal how the next training budget should be spent. For a project intended to keep improving, that missing explanation matters. A fixed configuration is a product decision; a validated allocation rule can guide a sequence of decisions.

Earlier scaling research offered a route towards that guidance. The paper discusses [Scaling Laws for Neural Language Models](https://md.research.elamur.ai/free/en/papers/kaplan-2020-scaling-laws-neural-language-models/) alongside the Chinchilla study. Both connect performance to increasing resources, but the authors identify differences in their recommended balance between network size and training data. DeepSeek does not treat those differences as proof that scaling analysis is useless. Instead, it asks whether measurement choices, optimization settings, and corpus properties help explain them.

#### Why optimization comes first

An empirical scaling curve can only summarize the experiments used to fit it. If those experiments train some configurations poorly, the curve incorporates that weakness. A network might appear too large for a budget when it actually needs a different learning rate. A batch setting might make a run inefficient enough to distort the apparent return from additional data.

The authors therefore revisit batch size and learning rate before estimating the preferred network–data allocation. They report that other training parameters can remain fixed across their investigated budgets, while these particular settings deserve closer examination. Earlier empirical guidance on batch size and optimization provides context, but their preliminary experiments suggest that those rules have limited applicability to their setup.

This ordering is an important part of the contribution. The paper does not merely fit another scaling curve and announce a new exponent. It tries to improve the experimental conditions from which that exponent is estimated. The resulting law is still empirical and conditional, but its construction addresses a plausible source of disagreement.

#### Why the corpus belongs in the explanation

The authors also observe that their data changes during development. Successive versions alter source proportions and improve quality. Rather than treating those revisions as incidental, they examine whether the scaling relationships change with them.

That comparison moves the discussion beyond a purely architectural account. The value of additional tokens depends on their contents. A corpus with substantial duplication, weak information density, or uneven coverage may reward a different allocation from one that has been processed more carefully. DeepSeek’s findings connect this intuition to observed differences in fitted scaling behavior.

The context for conversational adaptation is similarly practical. The paper draws on supervised instruction training associated with [Training language models to follow instructions with human feedback](https://md.research.elamur.ai/free/en/papers/ouyang-2022-training-language-models-follow-instructions/), then uses [Direct Preference Optimization](https://md.research.elamur.ai/free/en/papers/rafailov-2023-direct-preference-optimization-language-model/) for a later alignment stage. These techniques address a different problem from compute allocation: how to turn a predictive base system into a useful conversational one. DeepSeek studies both because an effective training program must connect underlying capability with the behavior exposed to users.

### The method, step by step

The full procedure connects data preparation, small-scale investigation, large-scale pretraining, and conversational adaptation. These are related stages, but they answer different questions. Data preparation determines what information reaches training. Scaling experiments determine how resources should be allocated. Pretraining builds the predictive system. Instruction and preference training shape how it responds.

From corpus preparation to evaluated conversation The steps in order.

#### Prepare diverse text without counting repetition as coverage

The authors organize corpus construction around deduplication, filtering, and remixing. Deduplication aims to prevent repeated material from occupying resources that could expose the system to something different. Filtering aims to retain informative documents. Remixing changes the representation of domains within the retained material.

The deduplication scope is important. The paper compares removing duplicates within individual Common Crawl dumps with searching across a much broader collection. Its discussion reports that processing 91 dumps together removes four times as many documents as the narrower method. The underlying point is about the boundary of inspection: a document can look unique inside one collection while repeating material that appears elsewhere.

The quality-filtering description considers both linguistic properties and semantic content. The authors distinguish assessments of individual documents from broader views of the corpus. They do not give enough operational detail to reproduce the complete quality system from this account alone. What is clear is the intended outcome: higher information density in the retained text.

Remixing then addresses imbalances among data sources and subject areas. Underrepresented domains receive more attention in the final mixture. This is separate from filtering because a high-quality collection can still be narrow. A corpus might contain well-formed, informative documents while failing to cover the range of material needed for a general bilingual system.

The final large-scale pretraining uses 2 trillion tokens, predominantly Chinese and English. That total describes the training material, not a guarantee of complete coverage within either language. The paper later returns to gaps in Chinese-specific knowledge and to the limited basis for claims about other languages.

#### Build a tokenizer suited to the corpus

[Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) converts text into the units processed by the network. DeepSeek uses byte-level Byte-Pair Encoding, implemented with the tokenizers library. The tokenizer is trained on a multilingual collection of approximately 24 GB.

Before learning merges, the preprocessing separates character categories so that certain boundaries remain intact. Newlines, punctuation, and CJK characters are among the categories discussed. Numbers are divided into individual digits, following the LLaMA approach described by the authors. These decisions influence how the same written material becomes a sequence of prediction targets.

The learned vocabulary contains 100,000 ordinary tokens. Adding 15 special entries produces 100,015 tokens in the tokenizer’s final inventory. During network training, the configured vocabulary size is 102,400. The authors attribute that larger configured size to computational convenience and room for future special entries.

These quantities should not be conflated. The text used to learn the tokenizer, the inventory of usable tokens, and the vocabulary dimension configured for training describe different parts of the system. The paper makes that distinction explicit enough to explain why the tokenizer’s final count and the training configuration do not match exactly.

#### Keep the familiar architecture, adjust the larger structure

At the level of individual layers, DeepSeek follows LLaMA closely. It places normalization before the main transformations, uses RMSNorm, and applies SwiGLU in the feed-forward component. Position information comes from rotary embeddings, associated with [RoFormer](https://md.research.elamur.ai/free/en/papers/su-2021-roformer-enhanced-transformer-rotary-position/).

The stated intermediate feed-forward width is:

```
d_FFN = (8/3) d_model
```

Here, d_FFN denotes the intermediate dimension of the feed-forward component, and d_model is the network’s hidden width. The expression specifies how those dimensions relate. It is an architectural setting, separate from the empirical scaling relationships fitted later.

The 7B network contains 30 layers, while the 67B network contains 95 layers. The authors explain that these depth choices also assist pipeline partitioning during training and inference. For the larger configuration, they use Grouped-Query Attention to reduce inference cost.

The larger design also allocates capacity differently from the widening strategy discussed in the paper. The authors favor additional depth instead of expanding the feed-forward intermediate width in the usual manner they describe for grouped-query systems. They state a performance motivation for that choice, but do not provide a controlled depth-versus-width comparison in the account of the architecture. It should therefore be understood as a design decision rather than a separately established causal result.

#### Establish a stable training procedure

Weights are initialized using a standard deviation of 0.006. Training uses AdamW with β₁ set to 0.9, β₂ set to 0.95, and weight decay set to 0.1. Gradient clipping uses 1.0. These settings remain part of the common experimental foundation while the authors investigate the more sensitive batch and learning-rate choices.

The learning-rate schedule differs from the cosine schedule common in the work they discuss. After 2000 warmup steps, the learning rate reaches its maximum. Once 80% of the planned tokens have been processed, it falls to 31.6% of that maximum. At 90% of the tokens, it falls again, reaching 10% of the maximum.

The practical motivation is reuse. A long initial phase can be shared among experiments or retained when training is extended. A cosine schedule ties the trajectory more continuously to the anticipated endpoint. The paper’s multi-step design makes changes in training scale easier to accommodate while preserving comparable final performance in its scheduler comparison.

The training framework is HAI-LLM. It combines several forms of parallel execution and uses FlashAttention to improve hardware utilization. Optimizer states are distributed with ZeRO-1, while communication overlaps with computation where possible. The numerical procedure uses bf16 for training and fp32 for gradient accumulation. These details matter because large runs require both memory efficiency and stable optimization.

Operational resilience is also part of the method. Weights and optimizer state are saved asynchronously every 5 minutes. The framework can resume with a different parallel configuration when cluster conditions change. For evaluation, the authors use vLLM on generative tasks and continuous batching on other tasks. The serving connection is the work on [PagedAttention](https://md.research.elamur.ai/free/en/papers/kwon-2023-efficient-memory-management-large-language/), which appears in the paper’s references.

#### Find a broad region of effective hyperparameters

The scaling investigation begins with grid searches over batch size and learning rate. An initial budget is 1e17, and the illustrated configuration has 177M FLOPs/token. The authors find a fairly broad region with similar generalization error. This matters because the objective is not to discover a uniquely correct setting, but to identify settings that train effectively.

They then expand the investigation across budgets ranging from 1e17 to 2e19, using the reusable early portion of the multi-step schedule. A setting counts as near-optimal when its generalization error is at most 0.25% above the observed minimum. The resulting selected settings support empirical power-law fits.

The fitted learning-rate relationship is:

```
η_opt = 0.3118 · C^(−0.1250)
```

The symbol η_opt is the fitted near-optimal learning rate, and C is the computational budget. The coefficient 0.3118 and exponent −0.1250 are estimated from the experiments. The negative exponent means that the recommended learning rate decreases as the budget increases.

The corresponding batch relationship is:

```
B_opt = 0.2920 · C^0.3271
```

B_opt is the fitted near-optimal batch size, and C again represents compute. The positive exponent 0.3271 describes growth in the preferred batch as the budget expands. The coefficient 0.2920 fixes the scale of that relationship in the authors’ measurement convention.

These are empirical operating rules. The broad near-optimal region is as important as the fitted central curve. A reader should not infer that a small departure from the formula necessarily produces a meaningful loss. The paper also validates the fitted settings at a budget of 1e20, with an illustrated configuration of 2.94B FLOPs per token, and finds them centrally placed in the effective region.

#### Represent network scale through computation

The traditional approximation discussed in the paper is:

```
C = 6ND
```

C is training compute, N is the parameter-based measure of network size, and D is the number of training tokens. The factor 6 belongs to the approximation used in the scaling literature discussed by the authors. Its convenience is that it connects familiar quantities, but it does not account for every computational contribution equally well.

DeepSeek distinguishes non-embedding parameters from complete parameter counts. Their non-embedding approximation is:

```
6N₁ = 72 n_layer d_model²
```

N₁ represents the non-embedding parameter count. The symbol n_layer is the number of layers, and d_model is hidden width. The expression shows the parameter-based estimate of work per token under the architecture considered.

The complete-parameter version adds a vocabulary term:

```
6N₂ = 72 n_layer d_model² + 6 n_vocab d_model
```

N₂ is the complete parameter count, including the vocabulary-related contribution. The symbol n_vocab denotes vocabulary size; n_layer and d_model retain their earlier meanings. This representation includes computation associated with the vocabulary, which the authors regard as less directly connected to the capacity they want the scale variable to capture.

Their proposed representation is:

```
M = 72 n_layer d_model² + 12 n_layer d_model l_seq
```

M denotes non-embedding FLOPs per token. The added symbol l_seq is sequence length. The additional term accounts for attention operations, while the vocabulary term from the complete-parameter representation is absent.

With this measure, the budget relationship becomes:

```
C = MD
```

C is compute, M is non-embedding computation per token, and D is the training-token count. This equation defines the budget convention used for the allocation analysis. It should not be read as an inventory of every operational cost of running the training infrastructure.

The authors report that parameter-based alternatives can diverge substantially from this representation, especially for small configurations, with discrepancies reaching 50%. Since small experiments supply the evidence for the large-scale forecast, systematic errors at that stage can affect the fitted conclusion.

#### Compare allocations at matched budgets

The allocation problem asks which combination of network scale and training tokens produces the lowest validation error for a specified budget. The paper writes the target as:

```
(M_opt(C), D_opt(C)) = argmin over M,D with C=MD of L(N,D)
```

M_opt(C) and D_opt(C) are the preferred network-computation scale and token count at compute budget C. The argmin operation selects the permitted allocation with the smallest loss. L denotes generalization error. The paper retains N in the loss notation even after changing its allocation variable to M; the experimental procedure varies network configurations and data amounts under the stated constraint.

The method follows the IsoFLOP approach from Chinchilla. Each profile holds computation fixed while testing different allocations. DeepSeek investigates 8 budgets spanning 1e17 to 3e20, with around 10 network–data combinations at each budget. Evaluation uses an independent validation collection containing 100M tokens and drawn from a distribution similar to training.

The general scaling objective is described through these relationships:

```
N_opt ∝ C^a
```

N_opt is the preferred parameter-based network scale in the general formulation, C is compute, and a is the network-scaling exponent. The proportionality sign indicates a power relationship without specifying its coefficient.

```
D_opt ∝ C^b
```

D_opt is the preferred number of training tokens, C is compute, and b is the data-scaling exponent. DeepSeek subsequently fits the network side with M instead of relying on N.

Its fitted network relationship is:

```
M_opt = 0.1715 · C^0.5243
```

M_opt is the preferred non-embedding computation per token. The fitted coefficient is 0.1715, and the network-scaling exponent is 0.5243.

The fitted token relationship is:

```
D_opt = 5.8316 · C^0.4757
```

D_opt is the preferred training-token count. The fitted coefficient is 5.8316, and the data-scaling exponent is 0.4757. These expressions describe the allocation observed for the relevant corpus and setup.

The authors also fit validation performance against compute and compare the forecast with the large DeepSeek runs. They report successful prediction at a compute scale 1000× beyond the small experiments. The validation metric is bits-per-byte, which measures predictive loss relative to the underlying text bytes and permits the performance curve to be expressed independently of a simple token-count loss.

#### Test whether the allocation survives a data change

The paper examines early internal data, the current internal corpus, and OpenWebText2. The authors’ internal assessment ranks their current data above the earlier version and places OpenWebText2 above the current internal corpus. They attribute the latter assessment to more careful processing made possible by its smaller scale.

Across these comparisons, higher assessed quality corresponds to a larger network-scaling exponent and a smaller data-scaling exponent. Hence, the preferred response to increasing compute shifts towards a larger network. The authors propose that clearer and more learnable material may help explain this pattern, but present that mechanism as an interpretation.

The experiment does not establish a universal numerical measure of quality. The datasets differ in their composition as well as their processing history. Its direct contribution is evidence that the allocation relationship changes across these corpora in a way consistent with the authors’ quality assessments.

#### Adapt the base system to instructions and preferences

The alignment collection contains around 1.5 million instruction instances in Chinese and English. Helpfulness material accounts for 1.2 million instances. Within it, general language tasks represent 31.2%, mathematics 46.6%, and coding 22.2%. A further 300K instances address safety-related material.

Supervised [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) uses different durations for the released sizes. The 7B configuration receives 4 epochs with a learning rate of 1e-5. The 67B configuration receives 2 epochs with a learning rate of 5e-6 because the authors observe stronger overfitting. They monitor benchmark behavior alongside repetition on 3868 Chinese and English prompts.

For the smaller system, a subsequent conversational stage excludes mathematics and code examples. The aim is to reduce looping responses while retaining the improvements from specialized instruction data. The larger system does not use that additional stage because its repetition is already lower and the extra stage damages benchmark performance.

Direct preference optimization follows supervised adaptation. The authors construct helpfulness and harmlessness preference material using prompts and candidate responses generated by their chat systems. DPO training uses a learning rate of 5e-6 and a batch size of 512, with warmup and a cosine schedule. The paper does not give its own expanded DPO objective, so the operational details and observed effects are the appropriate focus here.

### Experiments and results

The evaluation program separates predictive ability, task performance, conversational quality, transfer to newer tasks, and safety. This separation matters because training interventions do not move all measurements together. Instruction tuning can make a system easier to query while weakening sentence completion. Preference optimization can improve open-ended judgments while leaving conventional task scores largely stable.

#### What the benchmark measurements mean

For multiple-choice tasks, the authors score the available options and select the one with the lowest perplexity. Perplexity describes how surprising the text is under the predictive system. ARC and OpenBookQA use unconditional normalization; other option-scoring tasks use length normalization. These details affect the decision rule, so the results should be understood as outcomes of the stated evaluation procedure.

For generative tasks, the system produces text and the evaluator extracts an answer from that output. The paper uses greedy decoding for this group. That choice makes the comparison different from one that samples many answers and selects the best. It evaluates the answer produced by the chosen decoding procedure.

Pile-test receives a language-modeling evaluation measured in bits-per-byte. DROP uses F1, a measure of answer overlap. The main benchmark caption identifies accuracy as the metric for the remaining tasks in that comparison. Maximum evaluation sequence length is 2048 or 4096, depending on the benchmark.

The test collection covers several kinds of competence. MMLU and the Chinese examinations assess knowledge across subjects. HellaSwag and related tasks examine understanding or reasoning through constrained choices. TriviaQA and NaturalQuestions test closed-book answering. Code and mathematics receive separate attention through HumanEval, MBPP, GSM8K, and MATH.

The closed-book distinction is important. In evaluations such as [TriviaQA](https://md.research.elamur.ai/free/en/papers/joshi-2017-triviaqa-large-scale-distantly-supervised/) and [Natural Questions](https://md.research.elamur.ai/free/en/papers/kwiatkowski-2019-natural-questions-benchmark-question-answering/), the DeepSeek setup asks for answers without supplying an external retrieval stage. The results therefore concern information recoverable through the trained system and its prompt, rather than a complete search-and-answer pipeline.

#### Base-system comparisons

The principal base comparison is against LLaMA-2 at corresponding small and large scales. Both families process 2T tokens in the comparison described by the authors, while DeepSeek’s corpus is bilingual and the LLaMA-2 training emphasis is English.

The paper reports comparable English language-understanding performance despite that bilingual allocation. DeepSeek 67B performs better on the highlighted mathematical, coding, reasoning, and Chinese evaluations. The named areas of improvement include MATH, GSM8K, HumanEval, MBPP, and BBH, alongside Chinese tasks. The article’s available numerical evidence does not support reconstructing the complete benchmark table, so those comparisons should remain qualitative rather than acquire invented scores.

The gain over the large LLaMA-2 baseline is greater than the corresponding gain at the smaller size. The authors interpret this as evidence that competing language demands affect smaller systems more strongly. That is a plausible reading of the pattern, though the comparison does not isolate language conflict from every other consequence of changing network size.

Chinese mathematics and Chinese idioms illustrate a further distinction. The authors observe that LLaMA-2 can perform well on CMath despite lacking a specific Chinese training focus. They interpret that result as evidence of transferable mathematical ability. In contrast, idiom completion through CHID appears to depend much more on direct exposure to Chinese text. Transferable reasoning and language-specific cultural knowledge therefore need separate evaluation.

The appendix also compares DeepSeek with specialized code and mathematics systems. It reports code performance similar to CodeLlama despite less code data, while maintaining broader capabilities. For mathematics, the authors examine several language settings and report benefits from using programs to solve problems. These comparisons broaden the picture, but the numerical results needed for a detailed score-by-score assessment are not stated in the surrounding discussion.

#### What instruction tuning changes

The chat comparison uses a different prompting condition for several tasks. Chat variants receive zero-shot evaluation on the specified knowledge and mathematics tests, while the base results retain few-shot prompting. [Few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) here means that examples appear in the prompt; zero-shot evaluation supplies no such demonstrations.

This difference is central to the authors’ interpretation. A chat system matching a base system’s score under easier-to-use prompting has learned something useful about interaction, even if the score itself barely changes. The authors cite the comparison between zero-shot chat MMLU and 5-shot base MMLU as an example. They caution against treating small knowledge-score fluctuations as direct evidence that supervised adaptation inserted or erased knowledge.

Reasoning-oriented instruction material frequently includes worked solution paths, connected to [chain-of-thought prompting](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/). DeepSeek’s authors interpret some reasoning improvements as learning the expected form of a solution rather than acquiring a new general reasoning mechanism. That interpretation is narrower than saying the entire improvement comes from formatting, but it discourages reading every score increase as a new cognitive capability.

Mathematics and code show larger gains after supervised adaptation. The authors report improvements exceeding 20 points on HumanEval and GSM8K. They attribute these gains partly to additional learning from the specialized instruction collection, arguing that the base system had not fully absorbed those task areas. At the same time, they caution that competence may remain concentrated in code completion and algebraic problems.

Some completion-style tasks decline consistently after adaptation. HellaSwag is the example emphasized in the discussion. The authors regard a pure predictive base system as better matched to that task format. This is a useful reminder that conversational tuning changes the behavior being optimized; it need not improve every application of next-token prediction.

#### Open-ended English and Chinese evaluation

For English conversation, the paper uses MT-Bench, introduced in [Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena](https://md.research.elamur.ai/free/en/papers/zheng-2023-judging-llm-judge-mt-bench/). It covers 8 categories of multi-turn questions. DeepSeek 67B Chat receives 8.35, which the authors describe as comparable to GPT-3.5-turbo and above the open alternatives named in their comparison.

After DPO, the reported average becomes 8.76. The paper places that result behind GPT-4 within the reported comparison. The relevant conclusion is about this evaluation’s conversational judgments, instead of a universal ranking across every possible use.

DeepSeek 67B conversational variants on MT-Bench Preference optimization improves the reported English multi-turn score.

**The numbers**

| System or setting | MT-Bench score |
| --- | --- |
| DeepSeek 67B Chat | 8.35 |
| DeepSeek 67B Chat DPO (this paper) | 8.76 |

For Chinese open-ended evaluation, the authors use AlignBench. It contains 683 questions organized into 8 broad categories and 36 narrower categories. Reference answers and task-specific rating guidance support GPT-4-based judging.

The evaluation follows the official AlignBench repository. Generation temperature is 0.7 for writing, role-playing, and open-ended questions, while the other task types use 0.1. These settings matter because the test includes activities where response diversity and precision play different roles.

The authors report that DeepSeek 67B Chat surpasses ChatGPT and the other baseline systems in that comparison while remaining behind the GPT-4 variants overall. DPO improves almost all reported areas. They also identify particularly strong Chinese language and reasoning performance. Without the individual category scores, the most defensible account is the reported ranking and direction of improvement.

#### Newer tasks as a check on benchmark confidence

The held-out evaluation responds to contamination and benchmark overfitting. Instead of assuming that familiar tests represent all coding or mathematical ability, the authors include recently released tasks.

Their LeetCode collection contains 126 problems drawn from Weekly Contest 351-372 and Bi-Weekly Contest 108-117, covering July 2023 to Nov 2023. Each problem has over 20 test cases. A solution counts as successful only if it passes every test case, and the comparison uses pass@1. This examines a different coding distribution from the familiar HumanEval setting.

The Hungarian examination provides 33 mathematics problems. Human annotators assign scores using the examination’s solution-based scoring rules. IFEval adds instruction-following evaluation through around 500 prompts and 25 types of mechanically checkable instructions. The chosen IFEval metric is prompt-level loose accuracy.

The authors compare against systems including Qwen 72B Chat and Yi-34B Chat, alongside smaller alternatives. They report a substantial performance gap between large and small configurations on these tests, even where conventional scores look close. ChatGLM3’s MBPP score of 52.4 and GSM8K score of 72.3 serve as examples of familiar-benchmark strength that does not carry over equally well to the newer tasks.

This is evidence against assuming broad competence from a narrow score profile. It is not proof that every recently released test is uncontaminated, nor does publication timing eliminate all overlap with training material. The contribution is the additional perspective supplied by different tasks.

#### Safety evaluation

The safety study uses an expert group of 20 people to develop and review a test collection of 2400 questions. The questions vary in subject matter and presentation, including role-play and multi-turn forms. Human reviewers assign safe, unsafe, or refusal labels, with cross-checking of annotations.

For the reported safety outcome, both acceptable answers and refusals count as secure responses. That convention is essential to interpretation. It measures whether the system avoids an unsafe answer under the test procedure, while combining constructive safe assistance and refusal within the successful category.

The external Do-Not-Answer evaluation contains 939 prompts. DeepSeek 67B Chat receives 97.8, above the ChatGPT and GPT-4 results cited in that comparison. This supports a favorable result on the specified safeguard test. It does not establish that all attacks fail, that every refusal is appropriate, or that the system can safely resolve every difficult request.

### What the ablations show

The paper contains several controlled comparisons and diagnostic analyses. They concern training schedules, resource measurement, data mixtures, adaptation stages, and prompting. Their collective value is explanatory: they show why a training decision can be useful even when it does not maximize every familiar benchmark.

#### Scheduler choice trades flexibility against small performance changes

The scheduler comparison uses a system with 1.6 billion parameters trained on 100 billion tokens. Multi-step and cosine schedules follow different loss trajectories, but the authors describe their final performance as effectively comparable.

That result supports the practical use of the multi-step schedule. It does not show that multi-step scheduling is always better. Its advantage in this project is that earlier training can be reused when the endpoint changes. The authors also vary the proportions of the multi-step phases and observe that some alternatives perform slightly better.

Their chosen division of 80%, 10%, and 10% therefore reflects a tradeoff. They preserve a long reusable first segment while accepting the performance associated with that schedule. This is an example of optimization design shaped by the larger development process rather than by one isolated run.

#### The scale variable changes extrapolation

The appendix refits the performance curves using alternative representations of network scale while reusing the IsoFLOP experiments. This makes the comparison informative: the underlying trained configurations remain available, while the accounting used to interpret them changes.

At larger budgets, the preferred allocations do not diverge strongly across the representations. At smaller budgets, the differences are more visible. Using non-embedding parameter counts produces forecasts that are too optimistic for the large systems. Using complete parameter counts produces forecasts that are too pessimistic. Non-embedding FLOPs/token gives the closest predictions.

The result supports the authors’ measurement choice within this setup. More generally, it shows that a seemingly minor approximation in the independent variable can affect a large extrapolation. Because the small runs establish the fitted law, their accounting deserves particular scrutiny.

#### Corpus changes alter the fitted recommendation

The comparison of successive internal datasets and OpenWebText2 is an analysis of data dependence instead of a clean isolation of a single filtering rule. Higher assessed quality accompanies an increased preference for network growth as compute expands.

The finding helps explain why different research programs might obtain different allocation exponents. However, corpus quality is not manipulated independently of corpus identity. Differences in source mixture and content remain part of the comparison. The evidence establishes conditional variation across these datasets; the explanation through quality is supported by the authors’ assessment but is not a complete causal decomposition.

#### Conversational refinement reduces repetition in the smaller system

The staged fine-tuning experiment is motivated by a specific failure. More mathematics instruction material can improve relevant task performance while increasing repeated, non-terminating responses. The authors suggest that repeated structures in mathematical explanations may be difficult for the smaller system to learn appropriately.

For DeepSeek 7B, the first supervised stage uses all instruction categories. A subsequent stage removes mathematics and coding material and concentrates on conversation. The reported repetition ratio falls while benchmark performance is maintained. The discussion also reports improved instruction following.

DeepSeek 7B repetition across supervised training stages The conversational refinement stage reduces repetitive non-terminating responses.

**The numbers**

| System or setting | repetition ratio % |
| --- | --- |
| After the first supervised stage | 2.0 |
| After conversational refinement (this paper) | 1.4 |

The same intervention is not adopted for the larger configuration. Its repetition ratio is already below 1% after the initial supervised stage, and the additional stage harms benchmark results. This comparison argues against treating a successful small-system remedy as a universal training recipe.

#### Multiple-choice gains can stay inside the format

The authors test an additional 20 million Chinese multiple-choice examples during alignment. They remove overlaps with the C-Eval validation material and CMMLU test material used in the comparison.

The added training improves Chinese multiple-choice performance and also helps English multiple-choice evaluations. That cross-language effect is informative: at least part of the gain concerns the procedure of answering an option-based question rather than only memorizing Chinese subject matter.

The same benefit does not appear in the generative evaluations discussed alongside it, including TriviaQA and the internal ChineseQA collection. The authors interpret this divergence as increased familiarity with multiple-choice problem solving that does not translate into a comparable conversational gain.

Their final approach excludes such material from pretraining and fine-tuning. That decision reflects a stated priority: avoid optimizing presentation on benchmarks when the benefit does not appear in the interaction formats they care about. The comparison does not imply that multiple-choice data has no legitimate use. It shows why its effect needs to be measured separately from broader answer generation.

#### Moving instruction data earlier does not expand the final result

Another experiment adds 5 million instruction instances, mainly multiple-choice material, during the final 10% of pretraining. The base system improves on benchmarks after this intervention.

The authors then compare the eventual outcome with adding the same material during supervised adaptation. They report nearly identical final results. Their interpretation is that the early insertion improves the measured base checkpoint without increasing the final adapted system’s potential.

This distinguishes checkpoint timing from lasting capability. If a training intervention merely moves an improvement earlier in the pipeline, its value may be operational instead of a higher final ceiling. The authors leave room for using large instruction collections during pretraining, but do not adopt that approach for their final setup.

#### Preference optimization changes conversation more than standard scores

The DPO analysis shows relatively little movement on conventional benchmarks while open-ended scores improve. This pattern supports a narrower account of the intervention: it changes the quality or preference alignment of generated responses more clearly than it changes the fundamental capabilities measured by those benchmarks.

That conclusion is useful because an unchanged task score can otherwise be mistaken for a failed adaptation. Here, conversational evaluation supplies the evidence of benefit. Conversely, a higher conversational rating should not be described as proof of a matching increase in all underlying abilities.

#### System instructions interact with scale

The authors compare responses with and without a system prompt adapted from the LLaMA-2 approach. They observe a slight decline for the smaller chat system and an improvement for the larger one.

Their explanation is that the larger configuration understands and follows the instruction more effectively, while the smaller configuration may suffer from the mismatch between training and evaluation conditions. The comparison establishes different observed effects by scale. The proposed mechanism remains an interpretation instead of a direct measurement of internal understanding.

The practical lesson is to evaluate prompting decisions on the actual system. A well-intentioned instruction is still an intervention, and its effect cannot be assumed from its wording alone.

### Limitations

The authors state several limitations of the released chat systems. Knowledge does not update automatically after pretraining. Responses can contain unsupported claims, unreliable advice, or hallucinated information. Chinese coverage remains incomplete, and performance on topics requiring specific Chinese knowledge may suffer. Because the corpus chiefly contains Chinese and English, other-language use requires caution.

These are limits of capability, not merely presentation. Strong benchmark performance does not supply missing evidence for an unfamiliar language or guarantee a correct answer to a new factual question. The favorable safety findings likewise do not remove the possibility of misleading but non-prohibited content.

#### Limits acknowledged in the scaling study

The authors explicitly acknowledge that their hyper-parameter formulas use compute as the explanatory variable without fully investigating other influences. They observe that different allocations at the same budget can shift the effective hyper-parameter region slightly. That finding limits the precision of a rule expressed only through total compute.

The dataset comparison supplies another stated boundary. Scaling coefficients depend on the corpus. Accordingly, the fitted allocation and optimization relationships should be read as useful empirical results under the investigated conditions, rather than universal constants for every architecture, language mixture, or training distribution.

The proposed explanation for the quality effect is also tentative. The authors suggest that clearer, more learnable text changes the value of expanding capacity. They do not establish that mechanism independently. A careful account should preserve the difference between the observed direction of the fitted exponents and the hypothesized reason.

#### Limits visible in the experimental setup

A further limit is that the allocation analysis optimizes validation loss on data distributed similarly to training. This is a sensible way to study predictive generalization, but it does not directly optimize conversational usefulness, factual truthfulness, or safety. Those outcomes require separate evaluations, as the paper’s own design recognizes.

The large-scale forecasting result is also narrower than a complete capability forecast. Predicting bits-per-byte successfully does not mean predicting every later benchmark score or every behavior after instruction tuning. The relationship between predictive loss and particular task abilities is not reduced to a single universal equation here.

Several comparisons involve more than one changing condition. Base and chat systems can be tested with different numbers of demonstrations. The corpus-quality comparison changes datasets rather than isolating one processing operation. Network size changes alongside representational capacity and optimization behavior. These designs provide useful evidence, but they limit causal claims about any one underlying mechanism.

The safety measurements have an additional interpretive boundary. Counting refusals as safe responses is appropriate for assessing avoidance of unsafe output, but it does not separately establish helpfulness on benign requests. A system that declines a difficult request and one that answers it safely can both succeed under that combined category. Broader deployment judgments would need to distinguish those behaviors.

The recently released task evaluations reduce reliance on familiar benchmarks, but recency alone cannot certify the absence of training overlap. Nor do the reported tasks cover the full space of programming, mathematics, or instruction following. The authors themselves caution that mathematics and code strengths may remain concentrated in particular forms of work.

Finally, the paper presents a substantial development account without exposing every operational detail needed to reproduce it exactly. Corpus filtering criteria, mixture decisions, and several comparison tables are discussed more fully at the level of purpose or outcome than through complete reproducible specifications. The scientific value lies in the reported procedures and analyses, while exact replication would require additional detail. That boundary matters especially when transferring the recipes to a smaller project with different data and hardware.

### What came after

The subsequent citation record connects DeepSeek LLM to research on mathematical reasoning, training data, efficient adaptation, code evaluation, and multimodal systems. Those connections need careful wording. A citation establishes that a later work engages with the paper; it does not on its own establish that the work adopts DeepSeek’s equations, reproduces its pipeline, or confirms its conclusions. The available descriptions support a map of related directions, with some relationships more specific than others.

#### Mathematical reasoning becomes a separate focus

[DeepSeekMath](https://md.research.elamur.ai/free/en/papers/shao-2024-deepseekmath-pushing-limits-mathematical-reasoning/) takes mathematical reasoning as its central subject. That focus continues a problem already visible in DeepSeek LLM: a general bilingual system can improve substantially through mathematics-oriented data, yet still have uneven coverage across forms of mathematical work. The citation connects the projects, while the title supports the narrower statement that the later work concentrates on extending mathematical reasoning in open language systems. It does not supply grounds for attributing a particular training algorithm or score to that continuation.

[InternLM-Math](https://md.research.elamur.ai/free/en/papers/ying-2024-internlm-math-open-math-large/) represents another cited direction centered on mathematical reasoning, with an explicit interest in verifiability. It belongs alongside DeepSeek LLM’s distinction between answer scores, worked solution formats, and program-assisted problem solving. The connection is thematic and bibliographic; the available description does not identify a particular DeepSeek component reused by InternLM-Math.

[Common 7B Language Models Already Possess Strong Math Capabilities](https://md.research.elamur.ai/free/en/papers/li-2024-common-7b-language-models-already/) addresses a closely related question about what compact systems can already do. DeepSeek LLM finds large effects from adaptation and substantial differences between smaller and larger configurations. The later title places existing small-system mathematical ability under examination. Its citation makes it relevant to that discussion, but does not establish agreement with every explanation offered by DeepSeek’s authors.

#### Training data remains part of the scaling question

[DataComp-LM](https://md.research.elamur.ai/free/en/papers/li-2024-datacomp-lm-search-next-generation/) focuses on the search for improved language-training datasets. This direction is particularly close to DeepSeek LLM’s finding that changing the corpus can change the preferred compute allocation. The shared question is how data construction affects what can be learned from a resource budget. The citation alone does not show that DataComp-LM uses DeepSeek’s specific allocation coefficients.

[FineWeb2](https://md.research.elamur.ai/free/en/papers/penedo-2025-fineweb2-one-pipeline-scale-them/) concerns adapting pretraining-data processing across languages. It extends the surrounding research agenda towards a problem that DeepSeek LLM leaves open: how a processing strategy behaves beyond a corpus dominated by Chinese and English. The relevant continuity is attention to data pipelines and language coverage. Specific filtering decisions or results cannot be inferred from the title.

[MiniCPM](https://md.research.elamur.ai/free/en/papers/hu-2024-minicpm-unveiling-potential-small-language/) emphasizes small language systems and scalable training strategies. It is relevant to DeepSeek’s observation that compact configurations can need different adaptation choices and may respond differently to prompting. The later work’s stated focus supports that connection without establishing that it adopts the same scheduler or hyper-parameter laws.

#### Evaluation and adaptation develop alongside capability

[LiveCodeBench](https://md.research.elamur.ai/free/en/papers/jain-2024-livecodebench-holistic-contamination-free-evaluation/) makes code evaluation and contamination central concerns. DeepSeek LLM had already used newer programming-contest tasks to challenge conclusions drawn from familiar coding benchmarks. The citation links that concern to a later evaluation-focused work. The available description supports its focus on broader code assessment, but not a claim that it inherits DeepSeek’s particular contest collection.

[LlamaFactory](https://md.research.elamur.ai/free/en/papers/zheng-2024-llamafactory-unified-efficient-fine-tuning/) addresses unified, efficient fine-tuning. Its relevance lies in the adaptation side of the pipeline: the move from a pretrained predictor to a system suited to instructions and applications. DeepSeek LLM contributes practical observations about overfitting, repetition, and the different effects of supervised and preference training. The citation does not identify which of those observations becomes a concrete feature in LlamaFactory.

The wider citation record also includes [AgentBoard](https://md.research.elamur.ai/free/en/papers/ma-2024-agentboard-analytical-evaluation-board-multi/), whose title points toward analytical evaluation of multi-turn agents. That direction broadens the kind of behavior under examination beyond isolated answers. It is consistent with DeepSeek LLM’s insistence on evaluating interaction separately from conventional task scores, although the available description does not establish a direct methodological transfer.

#### The research program broadens beyond text-only training

[DeepSeek-VL](https://md.research.elamur.ai/free/en/papers/lu-2024-deepseek-vl-real-world/) turns toward vision-language understanding. Its citation places DeepSeek LLM within the background of a broader modality program. The earlier paper contributes an account of corpus preparation, scalable training, and conversational adaptation, but the citation does not establish which text-training decisions carry into the visual system.

[Janus](https://md.research.elamur.ai/free/en/papers/wu-2024-janus-decoupling-visual-encoding/) and [Janus-Pro](https://md.research.elamur.ai/free/en/papers/chen-2025-janus-pro-unified-multimodal/) concern combined multimodal understanding and generation, with the latter title explicitly emphasizing scaling of data and system capacity. They show the scaling question appearing in a wider setting. Their listed relationship to DeepSeek LLM supports discussion of that expanding research context, while leaving architecture details and measured improvements unspecified.

Across these directions, the enduring research question is conditional allocation: what should change when more resources become available, and what evidence supports that choice? DeepSeek LLM contributes a way to investigate that question through optimization studies, compute-matched comparisons, corpus analysis, and behavioral evaluation. The later citation record shows that these concerns remain relevant across specialized reasoning, data construction, adaptation, evaluation, and multimodal development.

## Cite

Cite as DeepSeek-AI, :, Xiao Bi, Deli Chen, Guanting Chen, Shanhuang Chen, Damai Dai, Chengqi Deng, Honghui Ding, Kai Dong, Qiushi Du, Zhe Fu, Huazuo Gao, Kaige Gao, Wenjun Gao, Ruiqi Ge, Kang Guan, Daya Guo, Jianzhong Guo, Guangbo Hao, Zhewen Hao, Ying He, Wenjie Hu, Panpan Huang, Erhang Li, Guowei Li, Jiashi Li, Yao Li, Y. K. Li, Wenfeng Liang, Fangyun Lin, A. X. Liu, Bo Liu, Wen Liu, Xiaodong Liu, Xin Liu, Yiyuan Liu, Haoyu Lu, Shanghao Lu, Fuli Luo, Shirong Ma, Xiaotao Nie, Tian Pei, Yishi Piao, Junjie Qiu, Hui Qu, Tongzheng Ren, Zehui Ren, Chong Ruan, Zhangli Sha, Zhihong Shao, Junxiao Song, Xuecheng Su, Jingxiang Sun, Yaofeng Sun, Minghui Tang, Bingxuan Wang, Peiyi Wang, Shiyu Wang, Yaohui Wang, Yongji Wang, Tong Wu, Y. Wu, Xin Xie, Zhenda Xie, Ziwei Xie, Yiliang Xiong, Hanwei Xu, R. X. Xu, Yanhong Xu, Dejian Yang, Yuxiang You, Shuiping Yu, Xingkai Yu, B. Zhang, Haowei Zhang, Lecong Zhang, Liyue Zhang, Mingchuan Zhang, Minghua Zhang, Wentao Zhang, Yichao Zhang, Chenggang Zhao, Yao Zhao, Shangyan Zhou, Shunfeng Zhou, Qihao Zhu and Yuheng Zou. 2024. DeepSeek LLM: Scaling Open-Source Language Models with Longtermism. arXiv:2401.02954.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2401.02954](https://doi.org/10.48550/arxiv.2401.02954) · [arXiv 2401.02954](https://arxiv.org/abs/2401.02954)

```bibtex
@misc{deepseekai2024deepseek,
  title = {{DeepSeek LLM: Scaling Open-Source Language Models with Longtermism}},
  author = {DeepSeek-AI, :, Xiao Bi, Deli Chen, Guanting Chen, Shanhuang Chen, Damai Dai, Chengqi Deng, Honghui Ding, Kai Dong, Qiushi Du, Zhe Fu, Huazuo Gao, Kaige Gao, Wenjun Gao, Ruiqi Ge, Kang Guan, Daya Guo, Jianzhong Guo, Guangbo Hao, Zhewen Hao, Ying He, Wenjie Hu, Panpan Huang, Erhang Li, Guowei Li, Jiashi Li, Yao Li, Y. K. Li, Wenfeng Liang, Fangyun Lin, A. X. Liu, Bo Liu, Wen Liu, Xiaodong Liu, Xin Liu, Yiyuan Liu, Haoyu Lu, Shanghao Lu, Fuli Luo, Shirong Ma, Xiaotao Nie, Tian Pei, Yishi Piao, Junjie Qiu, Hui Qu, Tongzheng Ren, Zehui Ren, Chong Ruan, Zhangli Sha, Zhihong Shao, Junxiao Song, Xuecheng Su, Jingxiang Sun, Yaofeng Sun, Minghui Tang, Bingxuan Wang, Peiyi Wang, Shiyu Wang, Yaohui Wang, Yongji Wang, Tong Wu, Y. Wu, Xin Xie, Zhenda Xie, Ziwei Xie, Yiliang Xiong, Hanwei Xu, R. X. Xu, Yanhong Xu, Dejian Yang, Yuxiang You, Shuiping Yu, Xingkai Yu, B. Zhang, Haowei Zhang, Lecong Zhang, Liyue Zhang, Mingchuan Zhang, Minghua Zhang, Wentao Zhang, Yichao Zhang, Chenggang Zhao, Yao Zhao, Shangyan Zhou, Shunfeng Zhou, Qihao Zhu and Yuheng Zou},
  year = {2024},
  doi = {10.48550/arxiv.2401.02954},
  eprint = {2401.02954},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2401.02954}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
