WritingFireworks AIFireworks AIpublished Jan 20, 2025seen Jun 26

Deepseek R1 Deepdive

Open original ↗

Captured source

source ↗
published Jan 20, 2025seen Jun 26captured Jun 27http 200method plain

DeepSeek-R1 Overview: Features, Capabilities, Parameters

GLM 5.2 is live! Opus-level intelligence at open-source rates. Pay per token on serverless. Try it today.

Blog

Deepseek R1 Deepdive DeepSeek R1: All you need to know 🐳

PUBLISHED 1/24/2025

Table of Contents What we’ll cover in this blog Brief Overview of DeepSeek R1 Key Features and Capabilities Open-Source and Accessibility DeepSeek R1 Model Architecture & Parameters Reinforcement Learning Training Variants and Distilled Models DeepSeek R1 Use Cases and Applications Migrating From Proprietary Models to Open-Source Potential Benefits of Migration (Speed, Cost, Control) Try it out today 🐳

Table of Contents

What we’ll cover in this blog

Brief Overview of DeepSeek R1 Key Features and Capabilities Open-Source and Accessibility DeepSeek R1 Model Architecture & Parameters Reinforcement Learning Training Variants and Distilled Models DeepSeek R1 Use Cases and Applications Migrating From Proprietary Models to Open-Source

Brief Overview of DeepSeek R1

LLM research space is undergoing rapid evolution, with each new model pushing the boundaries of what machines can accomplish. DeepSeek R1 , released on January 20, 2025, by DeepSeek, represents a significant leap in the realm of open-source reasoning models. With capabilities rivaling top proprietary solutions, DeepSeek R1 aims to make advanced reasoning, problem-solving, and real-time decision-making more accessible to researchers and developers across the globe. DeepSeek R1 is an open-source AI model that stands out for its reasoning-centric design. While many large language models excel at language understanding, DeepSeek R1 goes a step further by focusing on logical inference, mathematical problem-solving, and reflection capabilities—features that are often guarded behind closed-source APIs. Reasoning models are crucial for tasks where simple pattern recognition is insufficient. From complex mathematical proofs to high-stakes decision-making systems, the ability to reason about problems step-by-step can vastly improve accuracy, reliability, and transparency in AI-driven applications. Image source: DeepSeek GitHub Key Features and Capabilities

DeepSeek R1 excels at tasks demanding logical inference, chain-of-thought reasoning, and real-time decision-making. Whether it’s solving high-level mathematics, generating sophisticated code, or breaking down complex scientific questions, DeepSeek R1’s RL-based architecture allows it to self-discover and refine reasoning strategies over time. Various independent benchmarks highlight the model’s strong performance: • Mathematical Competitions: Achieves ~79.8% pass@1 on the American Invitational Mathematics Examination (AIME) and ~97.3% pass@1 on the MATH-500 dataset. • Coding: Surpasses previous open-source efforts in code generation and debugging tasks, reaching a 2,029 Elo rating on Codeforces-like challenge scenarios. • Reasoning Tasks: Shows performance on par with OpenAI’s o1 model across complex reasoning benchmarks.

Image source: DeepSeek R1 Research Paper (Modified) Despite having a massive 671 billion parameters in total, only 37 billion are activated per forward pass, making DeepSeek R1 more resource-efficient than most similarly large models. The Mixture of Experts (MoE) approach ensures scalability without proportional increases in computational cost. Open-Source and Accessibility

DeepSeek R1 is distributed under the permissive MIT license, granting researchers and developers the freedom to inspect and modify the code, use the model for commercial purposes, and integrate it into proprietary systems One of the most striking benefits is its affordability. Operational expenses are estimated at only around 15%-50% based on the input/output token size (likely closer to 15% since output token counts could dominate for reasoning models) of what users typically spend on OpenAI’s o1 model. Cost of running DeepSeek R1 on Fireworks AI is $8/ 1 M token (both input & output), whereas, running OpenAI o1 model costs $15/ 1M input tokens and $60/ 1M output tokens.. This cost efficiency democratizes access to high-level AI capabilities, making it feasible for startups and academic labs with limited funding to leverage advanced reasoning. Because it is fully open-source, the broader AI community can examine how the RL-based approach is implemented, contribute enhancements or specialized modules, and extend it to unique use cases with fewer licensing concerns. DeepSeek R1 Model Architecture & Parameters

DeepSeek R1 employs a Mixture of Experts (MoE) framework: • 671 Billion Parameters: Encompasses multiple expert networks. • 37 Billion Activated per Forward Pass: Keeps computational overhead in check by routing queries to the most relevant expert “clusters.”

This structure is built upon the DeepSeek-V3 base model, which laid the groundwork for multi-domain language understanding. MoE allows the model to specialize in different problem domains while maintaining overall efficiency. Reinforcement Learning Training

DeepSeek-R1 employs a distinctive training methodology that emphasizes reinforcement learning (RL) to enhance its reasoning capabilities. Initially, the model undergoes supervised fine-tuning (SFT) using a curated dataset of long chain-of-thought examples. Following this, RL is applied to further develop its reasoning skills. This approach encourages the autonomous emergence of behaviors such as chain-of-thought reasoning, self-verification, and error correction. By integrating SFT with RL, DeepSeek-R1 effectively fosters advanced reasoning capabilities. • Stage 1 - Cold Start: The DeepSeek-V3-base model is adapted using thousands of structured Chain-of-Thought (CoT) examples. • Stage 2 - Reasoning-Oriented RL: A large-scale RL phase focuses on rule-based evaluation tasks, incentivizing accurate and formatted-coherent responses. • Stage 3 - Supervised Fine-Tuning: Reasoning SFT data was synthesized with Rejection Sampling on generations from Stage 2 model, where DeepSeek V3 was used as a judge. Non-reasoning data is a subset of DeepSeek V3 SFT data augmented with CoT (also generated with DeepSeek V3). Combine both data and fine tune DeepSeek-V3-base. • Stage 4 - RL for All Scenarios: A second RL phase refines the model’s helpfulness and harmlessness while preserving advanced reasoning skills.

DeepSeek R1’s RL-first approach: • Reduces reliance on large-scale human-annotated data • Uncovers emergent behaviors like...

Excerpt shown — open the source for the full document.

Notability

notability 5.0/10

Deep dive analysis of existing model, no release.