To enhance your user experience on our website, this site uses cookies.
If you continue to browse, you accept the use of cookies on our site.
See our Privacy Policy
for more information.
(Chinese: 梁文锋; pinyin: Liáng Wénfēng; born 1985) is a Chinese entrepreneur and businessman who is the co-founder of the quantitative hedge fund High-Flyer, as well as the founder and CEO of its artificial intelligence arm DeepSeek.
Mixture of experts (MoE) is a machine learning technique where multiple expert networks (learners) are used to divide a problem space into homogeneous regions.[1] MoE represents a form of ensemble learning.[2]
See more on DeepSeek Experts website after MEDIA
DeepSeek Janus Pro
DeepSeek R1 Explained by retired Microsoft Engineer
The DeepSeek-R1 model provides responses comparable to other contemporary LLMs, such OpenAI's GPT-4o and o1,[1] despite being trained at a significantly lower cost—stated at US$6 million compared to $100 million for OpenAI's GPT-4 in 2023[2]—and requiring a tenth of the computing power of a comparable LLM.[2][3][4][5] DeepSeek's A.I. models were developed amid United States sanctions on China for Nvidia chips, which were intended to restrict the country's ability to develop advanced A.I. systems.[6][7]
On 10 January 2025, DeepSeek released its first free chatbot app, based on the DeepSeek-R1 model, for Apple IOS and Android; by 27 January, DeepSeek-R1 had surpassed ChatGPT as the most-downloaded free app on the iOS App Store in the United States,[8] causing Nvidia's share price to drop by 18%.[9][10] DeepSeek's success against larger and more established rivals has been described as "upending AI",[8] constituting "the first shot at what is emerging as a global AI space race",[11] and ushering in "a new era of A.I. brinkmanship".[12]
DeepSeek makes its generative artificial intelligence algorithms, models, and training details open-source, allowing its code to be freely available for use, modification, viewing, and designing documents for building purposes.[13] The company reportedly vigorously recruits young A.I. researchers from top Chinese universities,[8] and hires from outside the computer science field to diversify its models' knowledge and abilities.[4]
DeepSeek AI chatbot is developed entirely by Chinese software engineers, whereas AI models established in Silicon Valley are created by people of various nationalities, including H-1B visa holders from different countries working in the US. DeepSeek AI models can be seen as a significant step toward developing indigenous high-end technologies by Asian countries, helping to retain talent and reduce brain drain from nations like India and China.[14]
Background
In February 2016, High-Flyer was co-founded by AI enthusiast Liang Wenfeng, who had been trading since the 2007–2008 financial crisis while attending Zhejiang University.[15] By 2019, he established High-Flyer as a hedge fund focused on developing and using AI trading algorithms. By 2021, High-Flyer exclusively used AI in trading.[16] DeepSeek has made its generative artificial intelligencechatbotopen source, meaning its code is freely available for use, modification, and viewing. This includes permission to access and utilize the source code, as well as design documents, for building purposes.[13]
Per 36Kr, Liang had built up a store of 10,000 Nvidia A100 GPUs before the United States federal government imposed AI chip restrictions on China.[16] Some estimates put the number as high as 50,000.[15]
In April 2023, High-Flyer started an artificial general intelligence lab dedicated to research developing AI tools separate from High-Flyer's financial business.[17][18] In May 2023, with High-Flyer as one of the investors, the lab became its own company, DeepSeek.[16][19][18]Venture capital firms were reluctant in providing funding as it was unlikely that it would be able to generate an exit in a short period of time.[16]
After releasing DeepSeek-V2 in May 2024, which offered strong performance for a low price, DeepSeek became known as the catalyst for China's AI model price war. It was quickly dubbed the "Pinduoduo of AI", and other major tech giants such as ByteDance, Tencent, Baidu, and Alibaba began to cut the price of their AI models to compete with the company. Despite the low price charged by DeepSeek, it was profitable compared to its rivals that were losing money.[20]
DeepSeek is focused solely on research and has no detailed plans for commercialization;[20] this also allows its technology to avoid the most stringent provisions of China's A.I. regulations, such as requiring consumer-facing technology to comply with the government’s controls on information.[4]
DeepSeek's hiring preferences target technical abilities rather than work experience, resulting in most new hires being either recent university graduates or developers whose AI careers are less established.[18][4] Likewise, the company recruits individuals without any computer science background to help its technology understand other topics and knowledge areas, including being able to generate poetry and perform well on the notoriously difficult Chinese college admissions exams (Gaokao).[4]
Release history
DeepSeek LLM
On 2 November 2023, DeepSeek released its first series of model, DeepSeek-Coder, which is available for free to both researchers and commercial users. The code for the model was made open-source under the MIT license, with an additional license agreement ("DeepSeek license") regarding "open and responsible downstream usage" for the model itself.[21]
They are of the same architecture as DeepSeek LLM detailed below. The series includes 8 models, 4 pretrained (Base) and 4 instruction-finetuned (Instruct). They all have 16K context lengths. The training was as follows:[22][23][24]
Pretraining: 1.8T tokens (87% source code, 10% code-related English (GitHub markdown and Stack Exchange), and 3% code-unrelated Chinese).
Long-context pretraining: 200B tokens. This extends the context length from 4K to 16K. This produced the Base models.
Supervised finetuning (SFT): 2B tokens of instruction data. This produced the Instruct models.
On 29 November 2023, DeepSeek released the DeepSeek-LLM series of models, with 7B and 67B parameters in both Base and Chat forms (no Instruct was released). It was developed to compete with other LLMs available at the time. The paper claimed benchmark results higher than most open source LLMs at the time, especially Llama 2.[26]: section 5 Like DeepSeek Coder, the code for the model was under MIT license, with DeepSeek license for the model itself.[27]
In April 2024, they released 3 DeepSeek-Math models specialized for doing math: Base, Instruct, RL. It was trained as follows:[28]
Initialize with a previously pretrained DeepSeek-Coder-Base-v1.5 7B.
Further pretrain with 500B tokens (6% DeepSeekMath Corpus, 4% AlgebraicStack, 10% arXiv, 20% GitHub code, 10% Common Crawl). This produced the Base model.
Train an instruction-following model by SFT Base with 776K math problems and their tool-use-integrated step-by-step solutions. This produced the Instruct model.
Reinforcement learning (RL): The reward model was a process reward model (PRM) trained from Base according to the Math-Shepherd method.[29] This reward model was then used to train Instruct using group relative policy optimization (GRPO) on a dataset of 144K math questions "related to GSM8K and MATH". The reward model was continuously updated during training to avoid reward hacking. This resulted in the RL model.
V2
In May 2024, they released the DeepSeek-V2 series. The series includes 4 models, 2 base models (DeepSeek-V2, DeepSeek-V2-Lite) and 2 chatbots (-Chat). The two larger models were trained as follows:[30]
Pretrain on a dataset of 8.1T tokens, where Chinese tokens are 12% more than English ones.
Extend context length from 4K to 128K using YaRN.[31] This resulted in DeepSeek-V2.
SFT with 1.2M instances for helpfulness and 0.3M for safety. This resulted in DeepSeek-V2-Chat (SFT) which was not released.
RL using GRPO in two stages. The first stage was trained to solve math and coding problems. This stage used 1 reward model, trained on compiler feedback (for coding) and ground-truth labels (for math). The second stage was trained to be helpful, safe, and follow rules. This stage used 3 reward models. The helpfulness and safety reward models were trained on human preference data. The rule-based reward model was manually programmed. All trained reward models were initialized from DeepSeek-V2-Chat (SFT). This resulted in the released version of DeepSeek-V2-Chat.
They opted for 2-staged RL, because they found that RL on reasoning data had "unique characteristics" different from RL on general data. For example, RL on reasoning could improve over more training steps.[30]
The two V2-Lite models were smaller, and trained similarly, though DeepSeek-V2-Lite-Chat only underwent SFT, not RL. They trained the Lite version to help "further research and development on MLA and DeepSeekMoE".[30]
Architecturally, the V2 models were significantly modified from the DeepSeek LLM series. They changed the standard attention mechanism by a low-rank approximation called multi-head latent attention (MLA), and used the mixture of experts (MoE) variant previously published in January. Compared to the standard sparsely-gated MoE, their variant had "shared experts" that are always queried, and "routed experts" that might not be.[32]
DeepSeek V2 properties[30]: Section 3.1.2, Appendix B [33][34]
Name
Params.
Active params
Context length
V2-Lite
15.7B
2.4B
27
32K
2
64
V2
236B
21B
60
128K
2
160
The Financial Times reported that it was cheaper than its peers with a price of 2 RMB for every million output tokens. The University of Waterloo Tiger Lab's leaderboard ranked DeepSeek-V2 seventh on its LLM ranking.[19]
In June, they released 4 models in the DeepSeek-Coder-V2 series: V2-Base, V2-Lite-Base, V2-Instruct, V2-Lite-Instruct. They were trained as follows:[35][note 4]
The Base models were initialized from corresponding intermediate checkpoints after pretraining on 4.2T tokens (not the version at the end of pretraining), then pretrained further for 6T tokens, then context-extended to 128K context length. This produced the Base models.
DeepSeek-Coder and DeepSeek-Math were used to generate 20K code-related and 30K math-related instruction data, then combined with an instruction dataset of 300M tokens. This was used for SFT.
RL with GRPO. The reward for math problems was computed by comparing with the ground-truth label. The reward for code problems was generated by a reward model trained to predict whether a program would pass the unit tests.
DeepSeek-V2.5 was released in September and updated in December. It was made by combining DeepSeek-V2-Chat and DeepSeek-Coder-V2-Instruct.[36]
V3
In December 2024, they released a base model DeepSeek-V3-Base and a chat model DeepSeek-V3. The model architecture is essentially the same as V2. They were trained as follows:[37]
Pretraining on 14.8T tokens of a multilingual corpus, mostly English and Chinese. It contained a higher ratio of math and programming than the pretraining dataset of V2.
Extend context length twice, from 4K to 32K and then to 128K, using YaRN.[31] This produced DeepSeek-V3-Base.
SFT for 2 epochs on 1.5M samples of reasoning (math, programming, logic) and non-reasoning (creative writing, roleplay, simple question answering) data. Reasoning data was generated by "expert models". Non-reasoning data was generated by DeepSeek-V2.5 and checked by humans.
The "expert models" were trained by starting with an unspecified base model, then SFT on both <problem, original response> data, and synthetic <system prompt, problem, R1 response> data generated by an internal DeepSeek-R1 model. The system prompt asked the R1 to reflect and verify during thinking. Then the expert models were RL using an unspecified reward function.
Each expert model was trained to generate just synthetic reasoning data in one specific domain (math, programming, logic).
Expert models were used, instead of R1 itself, since the output from R1 itself suffered "overthinking, poor formatting, and excessive length".
Model-based reward models were made by starting with a SFT checkpoint of V3, then finetuning on human preference data containing both final reward and chain-of-thought leading to the final reward. The reward model produced reward signals for both questions with objective but free-form answers, and questions without objective answers (such as creative writing).
A SFT checkpoint of V3 was trained by GRPO using both reward models and rule-based reward. The rule-based reward was computed for math problems with a final answer (put in a box), and for programming problems by unit tests. This produced DeepSeek-V3.
They performed extensive low-level engineering to achieve efficiency. They used mixed-precision arithmetic. Much of the forward pass was performed in 8-bit floating point numbers (5E2M: 5-bit exponent and 2-bit mantissa) rather than the standard 32-bit, requiring special GEMM routines to accumulate accurately. They used a custom 12-bit float (E5M6) for only the inputs to the linear layers after the attention modules. Optimizer states were in 16-bit (BF16). They minimized the communication latency by overlapping extensively computation and communication, such as dedicating 20 streaming multiprocessors out of 132 per H800 for just inter-GPU communication. They lowered communication by rearranging (every 10 minutes) the exact machine each expert was on in order to avoid certain machines being queried more often than the others, adding auxiliary load-balancing losses to the training loss function, and other load-balancing techniques.[37]
After training, it was deployed on H800 clusters. The H800 within a cluster are connected by NVLink. The clusters are connected by InfiniBand.[37]
Total cost of training the DeepSeek-V3 model[37]: Table 1
On 20 November 2024, DeepSeek-R1-Lite-Preview became accessible via DeepSeek's API and chat.deepseek.com.[42] It was trained for logical inference, mathematical reasoning, and real-time problem-solving. DeepSeek claimed that it exceeded performance of OpenAI o1 on benchmarks such as American Invitational Mathematics Examination (AIME) and MATH.[43] However, The Wall Street Journal stated when it used 15 problems from the 2024 edition of AIME, the o1 model reached a solution faster than DeepSeek-R1-Lite-Preview.[44]
On 20 January 2025, DeepSeek-R1 and DeepSeek-R1-Zero were released.[45] Both were initialized from DeepSeek-V3-Base, and share its architecture. The company also released some "DeepSeek-R1-Distill" models, which are not initialized on V3-Base, but instead are initialized from other pretrained open-weight models, including LLaMA and Qwen, then fine-tuned on synthetic data generated by R1.[46]
Template for DeepSeek-R1-Zero
A conversation between User and Assistant. The user asks a question, and the Assistant solves it. The assistant first thinks about the reasoning process in the mind and then provides the user with the answer. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>. User: <prompt>. Assistant:
– <prompt> is replaced with the specific reasoning question during training.
DeepSeek-R1-Zero was trained exclusively using GRPO RL without SFT. Unlike previous versions, they used no model-based reward. All reward functions were rule-based, "mainly" of two types (other types were not specified): accuracy rewards and format rewards. Accuracy reward was checking whether a boxed answer is correct (for math) or whether a code passes tests (for programming). Format reward was checking whether the model puts its thinking trace within <think>...</think>.[46]
As R1-Zero has issues with readability and mixing languages, R1 was trained to address these issues and further improve reasoning:[46]
SFT DeepSeek-V3-Base on "thousands" of "cold-start" data all with the standard format of |special_token|<reasoning_process>|special_token|summary>.
Apply the same RL process as R1-Zero, but also with a "language consistency reward" to encourage it to respond monolingually. This produced an internal model not released.
Synthesize 600K reasoning data from the internal model, with rejection sampling (i.e. if the generated reasoning had a wrong final answer, then it is removed). Synthesize 200K non-reasoning data (writing, factual QA, self-cognition, translation) using DeepSeek-V3.
SFT DeepSeek-V3-Base on the 800K synthetic data for 2 epochs.
GRPO RL with both rule-based reward (for reasoning tasks) and model-based reward (for non-reasoning tasks, helpfulness, and harmlessness). This produced DeepSeek-R1.
Distilled models were trained by SFT on 800K data synthesized from DeepSeek-R1, in a similar way as step 3 above. They were not trained with RL.[46]
Assessment and reactions
DeepSeek released its A.I. Assistant, which utilizes the V3 model as a chatbot app for Apple IOS and Android. By 27 January 2025 the app had surpassed ChatGPT as the highest-rated free app on the iOS App Store in the United States; its chatbot reportedly answers questions, solves logic problems and writes computer programs on par with other chatbots on the market, according to benchmark tests used by American A.I. companies.[4]
DeepSeek-V3 uses significantly fewer resources compared to its peers; for example, whereas the world's leading A.I. companies train their chatbots with supercomputers using as many as 16,000 graphics processing units (GPUs), if not more, DeepSeek claims to have needed only about 2,000 GPUs, namely the H800 series chip from Nvidia. It was trained in around 55 days at a cost of US$5.58 million,[37] which is roughly 10 times less than what U.S. tech giant Meta spent building its latest A.I. technology.[4]
DeepSeek's competitive performance at relatively minimal cost has been recognized as potentially challenging the global dominance of American A.I. models.[47] Various publications and news media, such as The Hill and The Guardian, described the release of its chatbot as a "Sputnik moment" for American A.I.[48][49] The performance of its R1 model was reportedly "on par with" one of OpenAI's latest models when used for tasks such as mathematics, coding, and natural language reasoning;[50] echoing other commentators, American Silicon Valley venture capitalist Marc Andreessen likewise described R1 as "AI's Sputnik moment".[50]
Deepseek's founder, Liang Wenfeng has been compared to Open AI CEO Sam Altman. With CNN calling him the Sam Altman of China and an evangelist for AI.[51]
DeepSeek's optimization of limited resources has highlighted potential limits of U.S. sanctions on China's A.I. development, which include export restrictions on advanced A.I. chips to China.[18][52] The success of the company's A.I. models consequently "sparked market turmoil" [53] and caused shares in major global technology companies to plunge on 27 January: Nvidia's stock fell by as much as 17–18%,[54] as did the stock of rival Broadcom. Other tech firms also sank, including Microsoft (down 2.5%), Google's owner Alphabet (down over 4%), and Dutch chip equipment maker ASML (down over 7%).[50] A global selloff of technology stocks on Nasdaq, prompted by the release of the R1 model, had led to record losses of about $593 billion in the market capitalizations of AI and computer hardware companies;[55] by 28 January, a total of $1 trillion of value was wiped off American stocks.[49]
Leading figures in the American A.I. sector had mixed reactions to DeepSeek's success and performance.[56] Microsoft CEO Satya Nadella and OpenAI CEO Sam Altman—whose companies are involved in the U.S. government-backed "Stargate Project" to develop American A.I. infrastructure—both called DeepSeek "super impressive".[57][58] American President Donald Trump, who announced The Stargate Project, called DeepSeek a wake-up call[59] and a positive development.[60][49][61][62] Other leaders in the field, including Scale AI CEO Alexandr Wang, Anthropic cofounder and CEO Dario Amodei, and Elon Musk expressed skepticism of the app's performance or of the sustainability of its success.[56][63][64] Various companies, including Amazon Web Services, Toyota and Stripe, are seeking to use the model in their program.[65]
On 27 January, DeepSeek limited its new user registration to Chinese mainland phone numbers, email, and Google login after a reported cyberattack that caused a slowdown to its servers and services.[66][67][68]
Some sources have observed that the official API version of R1 uses censorship mechanisms for topics that are considered politically sensitive for the government of the People's Republic of China. For example, the model refuses to answer questions about the 1989 Tiananmen Square protests and massacre, persecution of Uyghurs, or human rights in China.[69][70] The AI may initially generate an answer, but then deletes it shortly afterwards and replaces it with a message such as: "Sorry, that's beyond my current scope. Let's talk about something else."[70] The integrated censorship mechanisms and restrictions can only be removed to a limited extent in the open-source version of the R1 model. If the "core socialist values" defined by the Chinese Internet regulatory authorities are touched upon or the political status of Taiwan is raised, discussions are terminated.[71] When tested by NBC News, DeepSeek's R1 described Taiwan as "an inalienable part of China's territory," and stated: "We firmly oppose any form of 'Taiwan independence' separatist activities and are committed to achieving the complete reunification of the motherland through peaceful means."[72] Western researchers were able in January 2025 to trick DeepSeek into giving accurate answers to some of these topics by tailoring the question asked.[73]
There are also fears that the AI system could be used for foreign influence operations, spreading disinformation, surveillance and the development of cyberweapons for the government of the People's Republic of China.[74][75][76] DeepSeek's privacy terms and conditions say "We store the information we collect in secure servers located in the People's Republic of China... We may collect your text or audio input, prompt, uploaded files, feedback, chat history, or other content that you provide to our model and Services". Although the data storage and collection policy is consistent with ChatGPT's privacy policy,[77] a media article reports this as security concerns.[78] In response, the Italian data protection authority is seeking additional information on DeepSeek's collection and use of personal data and the United States National Security Council announced that it had started a national security review.[79][80] However, when using DeepSeek AI locally, data is not shared publicly.[81]