Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
1
104-6
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 61
    • Issues 61
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • Alanna Dollery
  • 104-6
  • Issues
  • #38

Closed
Open
Opened Apr 08, 2025 by Alanna Dollery@alannadollery9
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've been tracking the explosive increase of DeepSeek R1, which has taken the AI world by storm in recent weeks. In this session, we dove deep into the advancement of the DeepSeek household - from the early designs through DeepSeek V3 to the breakthrough R1. We also checked out the technical developments that make R1 so special worldwide of open-source AI.

The DeepSeek Family Tree: From V3 to R1

DeepSeek isn't just a single design; it's a household of significantly advanced AI systems. The evolution goes something like this:

DeepSeek V2:

This was the structure model which leveraged a architecture, where just a subset of experts are utilized at reasoning, considerably improving the processing time for each token. It likewise included multi-head latent attention to lower memory footprint.

DeepSeek V3:

This design presented FP8 training techniques, which assisted drive down training costs by over 42.5% compared to previous models. FP8 is a less accurate method to store weights inside the LLMs but can considerably improve the memory footprint. However, training utilizing FP8 can usually be unstable, and it is hard to obtain the wanted training outcomes. Nevertheless, DeepSeek uses multiple tricks and attains extremely steady FP8 training. V3 set the phase as an extremely effective design that was currently affordable (with claims of being 90% less expensive than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the team then introduced R1-Zero, the first reasoning-focused version. Here, the focus was on teaching the design not simply to produce responses but to "believe" before responding to. Using pure reinforcement knowing, the model was encouraged to produce intermediate reasoning steps, for example, taking additional time (frequently 17+ seconds) to resolve a simple issue like "1 +1."

The key innovation here was using group relative policy optimization (GROP). Instead of depending on a standard process reward model (which would have required annotating every step of the thinking), GROP compares several outputs from the design. By tasting a number of prospective answers and scoring them (using rule-based steps like specific match for mathematics or confirming code outputs), the system discovers to favor reasoning that leads to the correct outcome without the need for explicit guidance of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's without supervision approach produced thinking outputs that might be hard to read or perhaps blend languages, the designers returned to the drawing board. They utilized the raw outputs from R1-Zero to create "cold start" information and then manually curated these examples to filter and enhance the quality of the reasoning. This human post-processing was then utilized to fine-tune the initial DeepSeek V3 model further-combining both reasoning-oriented reinforcement knowing and supervised fine-tuning. The result is DeepSeek R1: a model that now produces readable, meaningful, and trusted reasoning while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating aspect of R1 (zero) is how it established reasoning capabilities without specific guidance of the reasoning procedure. It can be further enhanced by utilizing cold-start information and monitored reinforcement learning to produce readable reasoning on general jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling scientists and developers to inspect and build on its developments. Its cost performance is a significant selling point specifically when compared to closed-source models (claimed 90% cheaper than OpenAI) that need huge compute budgets.

Novel Training Approach:

Instead of relying entirely on annotated thinking (which is both costly and lengthy), the model was trained using an outcome-based approach. It started with easily proven jobs, such as mathematics issues and coding workouts, where the correctness of the last response might be easily determined.

By using group relative policy optimization, the training process compares several created responses to figure out which ones satisfy the preferred output. This relative scoring mechanism enables the model to learn "how to believe" even when intermediate reasoning is created in a freestyle way.

Overthinking?

A fascinating observation is that DeepSeek R1 sometimes "overthinks" easy issues. For instance, trademarketclassifieds.com when asked "What is 1 +1?" it may spend nearly 17 seconds examining various scenarios-even thinking about binary representations-before concluding with the appropriate answer. This self-questioning and verification procedure, although it may appear inefficient initially glance, might prove beneficial in complex jobs where much deeper thinking is required.

Prompt Engineering:

Traditional few-shot prompting techniques, which have worked well for many chat-based models, can really break down efficiency with R1. The developers recommend using direct problem statements with a zero-shot approach that defines the output format plainly. This guarantees that the design isn't led astray by extraneous examples or tips that may disrupt its internal thinking procedure.

Getting Started with R1

For those aiming to experiment:

Smaller versions (7B-8B) can work on customer GPUs and even just CPUs


Larger versions (600B) require significant compute resources


Available through major cloud providers


Can be released locally by means of Ollama or vLLM


Looking Ahead

We're particularly interested by a number of ramifications:

The capacity for this approach to be used to other reasoning domains


Effect on agent-based AI systems traditionally developed on chat models


Possibilities for combining with other guidance techniques


Implications for enterprise AI release


Thanks for reading Deep Random Thoughts! Subscribe totally free to get brand-new posts and support my work.

Open Questions

How will this impact the advancement of future thinking designs?


Can this method be extended to less proven domains?


What are the ramifications for multi-modal AI systems?


We'll be viewing these advancements closely, particularly as the neighborhood begins to explore and construct upon these techniques.

Resources

Join our Slack community for ongoing discussions and updates about DeepSeek and other AI developments. We're seeing remarkable applications already emerging from our bootcamp individuals dealing with these models.

Chat with DeepSeek:


https://www.deepseek.com/

Papers:

DeepSeek LLM


DeepSeek-V2


DeepSeek-V3


DeepSeek-R1


Blog Posts:

The Illustrated DeepSeek-R1


DeepSeek-R1 Paper Explained


DeepSeek R1 - a brief summary


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

Q1: Which model should have more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong model in the open-source community, the choice ultimately depends upon your use case. DeepSeek R1 stresses innovative reasoning and an unique training technique that might be especially important in tasks where proven reasoning is crucial.

Q2: Why did significant providers like OpenAI choose supervised fine-tuning rather than support learning (RL) like DeepSeek?

A: We must note upfront that they do utilize RL at least in the kind of RLHF. It is really likely that models from major service providers that have thinking abilities currently use something similar to what DeepSeek has done here, however we can't make certain. It is likewise likely that due to access to more resources, they favored monitored fine-tuning due to its stability and the all set availability of large annotated datasets. Reinforcement knowing, although powerful, can be less foreseeable and more difficult to control. DeepSeek's method innovates by applying RL in a reasoning-oriented manner, allowing the design to discover effective internal thinking with only very little process annotation - a method that has actually proven appealing in spite of its complexity.

Q3: Did DeepSeek use test-time compute strategies similar to those of OpenAI?

A: DeepSeek R1's design stresses efficiency by leveraging strategies such as the mixture-of-experts technique, which activates only a subset of parameters, to decrease calculate during inference. This concentrate on efficiency is main to its cost advantages.

Q4: What is the distinction between R1-Zero and R1?

A: R1-Zero is the preliminary model that learns thinking exclusively through support learning without specific procedure guidance. It produces intermediate reasoning actions that, while sometimes raw or mixed in language, work as the foundation for knowing. DeepSeek R1, on the other hand, refines these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero offers the without supervision "trigger," and R1 is the refined, more coherent variation.

Q5: How can one remain updated with thorough, technical research study while managing a hectic schedule?

A: Remaining present involves a combination of actively engaging with the research neighborhood (like AISC - see link to join slack above), following preprint servers like arXiv, participating in appropriate conferences and webinars, and participating in conversation groups and newsletters. Continuous engagement with online communities and collective research study projects likewise plays a crucial function in keeping up with technical advancements.

Q6: In what use-cases does DeepSeek outperform models like O1?

A: The short response is that it's prematurely to tell. DeepSeek R1's strength, however, depends on its robust thinking capabilities and its performance. It is especially well suited for tasks that require proven logic-such as mathematical problem solving, code generation, and structured decision-making-where intermediate thinking can be examined and verified. Its open-source nature further permits tailored applications in research study and enterprise settings.

Q7: What are the implications of DeepSeek R1 for enterprises and start-ups?

A: The open-source and cost-effective design of DeepSeek R1 lowers the entry barrier for deploying advanced language models. Enterprises and start-ups can utilize its innovative reasoning for agentic applications varying from automated code generation and client assistance to information analysis. Its versatile implementation options-on consumer hardware for smaller sized models or cloud platforms for larger ones-make it an attractive option to proprietary options.

Q8: Will the model get stuck in a loop of "overthinking" if no appropriate answer is found?

A: While DeepSeek R1 has been observed to "overthink" basic problems by exploring several reasoning courses, it includes stopping criteria and assessment systems to avoid boundless loops. The reinforcement learning structure encourages merging towards a proven output, even in uncertain cases.

Q9: Is DeepSeek V3 entirely open source, and is it based on the Qwen architecture?

A: Yes, DeepSeek V3 is open source and acted as the foundation for later models. It is developed on its own set of innovations-including the mixture-of-experts approach and FP8 training-and is not based upon the Qwen architecture. Its style emphasizes performance and expense decrease, setting the phase for the thinking developments seen in R1.

Q10: How does DeepSeek R1 carry out on vision jobs?

A: DeepSeek R1 is a text-based design and does not include vision capabilities. Its design and training focus solely on language processing and reasoning.

Q11: Can professionals in specialized fields (for example, laboratories working on remedies) apply these techniques to train domain-specific designs?

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based reasoning training and effective architecture-can be adapted to numerous domains. Researchers in fields like biomedical sciences can tailor these methods to develop designs that address their specific obstacles while gaining from lower calculate expenses and robust reasoning capabilities. It is likely that in deeply specialized fields, nevertheless, there will still be a need for supervised fine-tuning to get trustworthy results.

Q12: Were the annotators for the human post-processing experts in technical fields like computer technology or mathematics?

A: The discussion suggested that the annotators mainly concentrated on domains where correctness is quickly verifiable-such as mathematics and coding. This recommends that proficiency in technical fields was certainly leveraged to ensure the accuracy and clearness of the thinking information.

Q13: Could the design get things wrong if it depends on its own outputs for finding out?

A: While the model is created to optimize for correct answers by means of reinforcement learning, there is constantly a risk of errors-especially in uncertain circumstances. However, by assessing multiple prospect outputs and enhancing those that cause proven outcomes, the training process reduces the likelihood of propagating inaccurate thinking.

Q14: How are hallucinations minimized in the design given its iterative thinking loops?

A: Making use of rule-based, verifiable tasks (such as mathematics and coding) helps anchor the model's thinking. By comparing several outputs and utilizing group relative policy optimization to enhance only those that yield the appropriate result, the model is assisted far from generating unfounded or hallucinated details.

Q15: Does the model rely on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are essential to the application of mixture-of-experts and attention systems in DeepSeek R1. However, the main focus is on utilizing these methods to make it possible for reliable thinking instead of showcasing mathematical intricacy for its own sake.

Q16: Some worry that the design's "thinking" may not be as fine-tuned as human reasoning. Is that a valid concern?

A: Early iterations like R1-Zero did produce raw and often hard-to-read thinking. However, the subsequent refinement process-where human experts curated and improved the thinking data-has considerably boosted the clarity and dependability of DeepSeek R1's internal idea procedure. While it remains an evolving system, iterative training and feedback have resulted in meaningful enhancements.

Q17: Which design variations appropriate for local implementation on a laptop computer with 32GB of RAM?

A: For regional screening, a medium-sized model-typically in the variety of 7B to 8B parameters-is advised. Larger designs (for instance, those with hundreds of billions of criteria) require substantially more computational resources and are much better suited for cloud-based release.

Q18: Is DeepSeek R1 "open source" or does it provide just open weights?

A: DeepSeek R1 is supplied with open weights, indicating that its design parameters are publicly available. This aligns with the general open-source viewpoint, allowing scientists and designers to further explore and construct upon its innovations.

Q19: What would take place if the order of training were reversed-starting with supervised fine-tuning before unsupervised reinforcement knowing?

A: The present technique permits the design to first check out and create its own reasoning patterns through unsupervised RL, and after that refine these patterns with monitored techniques. Reversing the order might constrain the design's capability to discover diverse thinking paths, potentially limiting its total efficiency in jobs that gain from autonomous idea.

Thanks for checking out Deep Random Thoughts! Subscribe for totally free to receive brand-new posts and support my work.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: alannadollery9/104-6#38