MinhVo

Minh Vo

rss feed

Slaying code & making it lit fr fr 🔥 tagline

Hey there 👋 I'm an AI Engineer with 7 years of experience building scalable web and mobile applications. Currently at Neurond AI (May 2025 — present), architecting an Enterprise AI Assistant Platform with multi-tenant RAG on pgvector, multi-provider LLM orchestration, and Azure-native infrastructure. Previously spent 5+ years at SNAPTEC (Sep 2019 — Apr 2025), leading SaaS themes, admin dashboards, and e-commerce platforms — earned the Hero of the Year award in 2021. I specialize in TypeScript, React, Next.js, and AI-Native engineering with Claude Code and Cursor.bio

Back to blogs

DeepSeek R1 Open Source Reasoning Model Changing AI

How DeepSeek R1 became the leading open-source reasoning model — architecture, training, benchmarks, and impact on the AI industry.

deepseekopen-source-aireasoning-modelsllmchina-ai

By MinhVo

Introduction

When DeepSeek released R1 on January 20, 2025, it sent shockwaves through the AI industry. Here was an open-source reasoning model from a Chinese AI lab that matched OpenAI o1's performance on math, code, and reasoning benchmarks — released under the MIT License with full model weights, technical report, and API access. The implications were immediate and far-reaching: the assumption that frontier AI capabilities required billions of dollars in proprietary investment was fundamentally challenged.

DeepSeek, founded by quantitative hedge fund High-Flyer, had been quietly building competitive AI models. But R1 was different. It wasn't just competitive — it was genuinely comparable to OpenAI's o1 on the tasks that mattered most for reasoning and problem-solving. On AIME 2024 (a competition math benchmark), DeepSeek R1 scored 79.8% Pass@1 versus o1's 79.2%. On MATH-500, it achieved 97.3% versus o1's 96.4%. These weren't cherry-picked results on obscure benchmarks — they were on the most respected evaluation suites in AI research.

The open-source nature of R1 amplified its impact dramatically. Under the MIT License, anyone could download the model weights, run the model locally, fine-tune it for specific tasks, distill it into smaller models, and deploy it commercially without restrictions. This was in stark contrast to OpenAI's o1, which was only available through a paid API with significant usage restrictions.

The release included not just the full 671B parameter R1 model, but also six distilled variants ranging from 1.5B to 70B parameters. These distilled models, built on Qwen2.5 and Llama3 architectures, made reasoning capabilities accessible to developers running models on consumer hardware. The 32B distilled variant alone outperformed OpenAI's o1-mini across multiple benchmarks, demonstrating that reasoning capabilities could be efficiently compressed into smaller models.

The market reaction was dramatic. NVIDIA's stock dropped significantly as investors questioned whether the massive GPU spending assumed necessary for frontier AI was actually required. DeepSeek had reportedly trained R1 at a fraction of the cost of comparable Western models, challenging the narrative that AI progress required ever-increasing compute budgets.

DeepSeek R1: The Open Source Reasoning Revolution

ai illustration

When DeepSeek released R1 on January 20, 2025, it sent shockwaves through the AI industry. Here was an open-source reasoning model from a Chinese AI lab that matched OpenAI o1's performance on math, code, and reasoning benchmarks — released under the MIT License with full model weights, technical report, and API access. The implications were immediate and far-reaching: the assumption that frontier AI capabilities required billions of dollars in proprietary investment was fundamentally challenged.

DeepSeek, founded by quantitative hedge fund High-Flyer, had been quietly building competitive AI models. But R1 was different. It wasn't just competitive — it was genuinely comparable to OpenAI's o1 on the tasks that mattered most for reasoning and problem-solving. On AIME 2024 (a competition math benchmark), DeepSeek R1 scored 79.8% Pass@1 versus o1's 79.2%. On MATH-500, it achieved 97.3% versus o1's 96.4%. These weren't cherry-picked results on obscure benchmarks — they were on the most respected evaluation suites in AI research.

The open-source nature of R1 amplified its impact dramatically. Under the MIT License, anyone could download the model weights, run the model locally, fine-tune it for specific tasks, distill it into smaller models, and deploy it commercially without restrictions. This was in stark contrast to OpenAI's o1, which was only available through a paid API with significant usage restrictions.

The release included not just the full 671B parameter R1 model, but also six distilled variants ranging from 1.5B to 70B parameters. These distilled models, built on Qwen2.5 and Llama3 architectures, made reasoning capabilities accessible to developers running models on consumer hardware. The 32B distilled variant alone outperformed OpenAI's o1-mini across multiple benchmarks, demonstrating that reasoning capabilities could be efficiently compressed into smaller models.

The market reaction was dramatic. NVIDIA's stock dropped significantly as investors questioned whether the massive GPU spending assumed necessary for frontier AI was actually required. DeepSeek had reportedly trained R1 at a fraction of the cost of comparable Western models, challenging the narrative that AI progress required ever-increasing compute budgets.

Architecture and Reinforcement Learning Training

DeepSeek R1 is built on DeepSeek-V3-Base, which uses a Mixture-of-Experts (MoE) architecture with 671 billion total parameters but only 37 billion activated per forward pass. This sparse activation is key to the model's efficiency — it achieves the capacity of a much larger dense model while requiring only a fraction of the compute per inference step. The context window extends to 128,000 tokens, enabling processing of long documents, codebases, and multi-turn conversations.

The training methodology is what makes R1 genuinely innovative. DeepSeek developed a two-stage approach that combines reinforcement learning (RL) with supervised fine-tuning (SFT) in a way that hadn't been demonstrated at this scale before.

The precursor model, DeepSeek-R1-Zero, was trained purely with large-scale reinforcement learning on the base model — no supervised fine-tuning step at all. This experiment demonstrated a remarkable finding: reasoning capabilities can emerge through RL alone. The model developed chain-of-thought reasoning, self-verification, and reflection behaviors spontaneously, without being explicitly trained on examples of these behaviors. R1-Zero exhibited issues like repetition, poor readability, and language mixing, but it proved the fundamental concept.

DeepSeek-R1 improved on R1-Zero with a four-stage pipeline. First, a cold-start SFT stage using curated reasoning examples to seed the model with good reasoning patterns. Second, an RL stage focused on reasoning tasks (math, code, logic) using rule-based reward signals. Third, a rejection sampling and SFT stage that creates high-quality training data from the RL-trained model. Fourth, a final RL stage that aligns the model with human preferences across all task types, including helpfulness and harmlessness.

The rule-based reward signals are particularly noteworthy. Instead of using a learned reward model (which can be gamed), DeepSeek used verifiable rewards: correctness for math problems, test case passing for code, and format compliance for structured outputs. This approach is more robust and avoids the reward hacking that plagues RLHF-based training.

The combination of MoE architecture for efficiency and RL-based training for capability represents a paradigm shift in how frontier AI models are developed. It suggests that the bottleneck for AI progress may be algorithmic innovation rather than raw compute scale.

Benchmark Performance: Matching Frontier Models

DeepSeek R1's benchmark performance is remarkably competitive with the most capable proprietary models available. The results across major evaluation suites demonstrate genuine reasoning capability, not just pattern matching to training data.

On AIME 2024 (American Invitational Mathematics Examination), DeepSeek R1 achieves 79.8% Pass@1, slightly exceeding OpenAI o1's 79.2%. AIME problems are competition-level mathematics that require multi-step reasoning, proof construction, and creative problem-solving — exactly the kind of tasks where reasoning models should excel.

MATH-500, a benchmark of 500 challenging mathematics problems across algebra, geometry, number theory, and combinatoria, shows R1 scoring 97.3% versus o1's 96.4%. The near-perfect scores on this benchmark indicate that both models have essentially mastered undergraduate-level mathematics.

Codeforces competitive programming ratings tell a similar story. R1 achieves a rating of 2029, compared to o1's 2061. While o1 has a slight edge here, R1's performance places it at the level of a competitive programmer who would rank in the top percentile globally. This isn't just code completion — it's algorithm design, optimization, and problem-solving under constraints.

LiveCodeBench, which evaluates coding ability on recent competitive programming problems (reducing the risk of training data contamination), shows R1 at 65.9% Pass@1 versus o1's 63.4%. GPQA Diamond, a benchmark of graduate-level science questions, shows R1 at 71.5%. MMLU (Massive Multitask Language Understanding), which tests knowledge across 57 academic subjects, shows R1 at 90.8%.

The distilled models also perform impressively. DeepSeek-R1-Distill-Qwen-32B, a 32-billion parameter model, outperforms OpenAI o1-mini on AIME 2024 (72.6% vs 63.6%), MATH-500 (94.3% vs 90.0%), and LiveCodeBench (57.2% vs 53.8%). This demonstrates that reasoning capabilities can be effectively transferred from large models to smaller, more deployable ones through knowledge distillation.

These results are significant because they were achieved with reportedly much lower training costs than comparable Western models, challenging assumptions about the relationship between compute investment and model capability.

Open Source Impact and Community Adoption

ai illustration

The MIT License release of DeepSeek R1 catalyzed an unprecedented wave of community adoption and innovation. Within weeks of release, R1 became the most downloaded model on Hugging Face, and derivative works began appearing at a pace never seen before for an AI model.

The six distilled models — ranging from 1.5B to 70B parameters — were immediately adopted by the community. The Qwen-based distillations (1.5B, 7B, 14B, 32B) and Llama-based distillations (8B, 70B) provided options for every deployment scenario. Developers ran the 1.5B model on smartphones and the 70B model on high-end GPUs, making reasoning AI accessible across the entire hardware spectrum.

The open-source nature enabled rapid experimentation. Researchers fine-tuned R1 for specialized domains: medical reasoning, legal analysis, scientific research, and code generation. Companies integrated R1 into production systems, taking advantage of the permissive license to build commercial products without API costs or usage restrictions.

Community benchmarks and evaluations proliferated. Independent researchers tested R1 on novel benchmarks, edge cases, and real-world tasks, building a comprehensive understanding of the model's strengths and weaknesses that no single organization could have produced alone. This collective evaluation process is one of open source's greatest strengths — it surfaces issues and capabilities that internal testing misses.

The distillation research that R1 enabled was particularly impactful. Researchers discovered that reasoning patterns could be efficiently transferred to much smaller models, leading to a new generation of small reasoning models. This work influenced the broader AI community's understanding of how to make reasoning capabilities accessible and affordable.

Frameworks for running R1 optimized rapidly. vLLM, SGLang, llama.cpp, and Ollama all added optimized support for R1's architecture, making deployment straightforward. Quantized versions (GGUF, GPTQ, AWQ) reduced memory requirements while maintaining reasoning quality, enabling deployment on consumer hardware.

DeepSeek V3: The Foundation Model

DeepSeek R1's capabilities are built on the foundation of DeepSeek-V3, which was released in December 2024 and immediately recognized as one of the most capable open-source base models available.

DeepSeek-V3 uses a Mixture-of-Experts (MoE) architecture with 671 billion total parameters and 37 billion activated per token. The model was pre-trained on 14.8 trillion tokens of diverse data, including web text, code, mathematics, and scientific literature. The training used FP8 mixed precision and auxiliary-loss-free load balancing to achieve efficient training across large GPU clusters.

The MoE architecture is central to DeepSeek's efficiency story. By activating only 37B parameters per token (roughly 5.5% of the total), V3 achieves inference costs comparable to much smaller dense models while maintaining the knowledge capacity of a 671B model. This architectural choice is why DeepSeek can offer API pricing that undercuts competitors significantly.

V3 introduced several technical innovations that carried over to R1. Multi-head Latent Attention (MLA) reduces the memory overhead of the attention mechanism. DeepSeekMoE uses fine-grained expert segmentation and shared expert isolation to improve expert utilization. These innovations contribute to both training efficiency and inference speed.

The pre-training data composition emphasized quality and diversity. Mathematical and code data were upsampled to improve reasoning capabilities. The data pipeline included rigorous deduplication, quality filtering, and contamination detection to ensure benchmark results reflect genuine capability rather than memorization.

On standard benchmarks, V3 was competitive with GPT-4o and Claude 3.5 Sonnet, establishing DeepSeek as a serious player in frontier AI development. The transition from V3 to R1 through reinforcement learning demonstrated that strong base models could be efficiently converted into reasoning models through post-training techniques.

Geopolitical Implications of Chinese Open Source AI

DeepSeek R1's release had geopolitical implications that extended far beyond the AI research community. It challenged Western assumptions about AI supremacy, the effectiveness of export controls, and the relationship between compute access and AI capability.

The United States had implemented export controls restricting the sale of advanced AI chips (particularly NVIDIA's H100 and A100) to China. The implicit assumption was that limiting China's access to cutting-edge hardware would slow its AI progress. DeepSeek R1's performance suggested this assumption was flawed — algorithmic innovation could partially compensate for hardware limitations.

The cost efficiency of R1 was particularly striking. Reports suggested DeepSeek trained the model at a fraction of the cost of comparable Western models, though exact figures are debated. If frontier reasoning capabilities can be achieved with significantly less compute, the strategic value of hardware export controls is diminished. This realization contributed to policy debates about the most effective approaches to managing AI development internationally.

The open-source release amplified the geopolitical impact. By making R1 freely available, DeepSeek ensured that its innovations would be adopted globally, not just within China. Western companies and researchers immediately began building on R1, creating a situation where Chinese AI innovation was powering Western AI applications. This dynamic challenges the notion of AI development as a zero-sum competition.

The response from Western AI labs was significant. Meta accelerated plans for Llama reasoning models. OpenAI adjusted pricing and increased free-tier access. Anthropic and Google both emphasized their own open-source contributions. The competitive pressure from R1 benefited the entire ecosystem through lower costs, faster innovation, and increased openness.

The incident also highlighted the growing sophistication of China's AI ecosystem beyond the well-known players (Baidu, Alibaba, Tencent). DeepSeek, with its quantitative finance background, represented a new breed of Chinese AI company — technically sophisticated, research-oriented, and willing to invest in long-term capability building. The Chinese AI ecosystem is broader and more capable than many Western observers had assumed.

Practical Deployment and Cost Advantages

ai illustration

DeepSeek R1's practical deployment characteristics make it one of the most cost-effective reasoning models available. The combination of MoE architecture, competitive API pricing, and open-source flexibility provides multiple deployment options for different use cases and budgets.

API pricing for DeepSeek R1 is remarkably competitive. Input tokens cost 0.55permillion(cachemiss)or0.55 per million (cache miss) or 0.14 per million (cache hit), while output tokens cost $2.19 per million. Compared to OpenAI's o1 pricing (which can be 5-10x higher for comparable usage), R1 offers dramatic cost savings for applications that require reasoning capabilities at scale.

Self-hosting is the most cost-effective option for high-volume usage. The full R1 model requires significant hardware (multiple high-end GPUs with substantial VRAM), but the distilled models are much more accessible. The 32B distilled model can run on a single high-end consumer GPU (like an RTX 4090 with 24GB VRAM when quantized to 4-bit), and even the 14B model runs comfortably on mid-range hardware.

Quantization options further reduce hardware requirements. GGUF quantizations (available in 2-bit to 8-bit precision) enable deployment on increasingly modest hardware. The 4-bit quantized 32B model maintains most of its reasoning capability while fitting in 16-20GB of VRAM — accessible to many developers.

Deployment frameworks with optimized R1 support include vLLM (for high-throughput serving), SGLang (for structured generation), Ollama (for local development), and llama.cpp (for CPU and edge deployment). Each framework has specific optimizations for R1's MoE architecture that improve throughput and reduce latency.

For teams evaluating R1 for production use, the recommended approach is to start with the API for prototyping, evaluate distilled models for specific tasks, and move to self-hosted deployment when usage volume justifies the infrastructure investment. The 32B distilled model is the sweet spot for most production use cases — strong reasoning performance with manageable hardware requirements.

The cost advantages extend beyond raw pricing. Open-source models eliminate vendor lock-in, provide full control over data privacy, and enable customization that's impossible with API-only models. For organizations with data sovereignty requirements or specific domain needs, self-hosted R1 offers capabilities that no proprietary API can match.

Conclusion

The topics covered in this article represent important developments in modern software engineering. By understanding these concepts deeply and applying them in your projects, you can build more robust, scalable, and maintainable systems. Continue exploring, experimenting, and building — the technology landscape rewards those who stay curious and keep learning.