Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
1
132
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 62
    • Issues 62
    • 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
  • Alberto Perez
  • 132
  • Issues
  • #49

Closed
Open
Opened Apr 06, 2025 by Alberto Perez@alberto1591255
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've been tracking the explosive rise of DeepSeek R1, which has taken the AI world by storm in recent weeks. In this session, we dove deep into the evolution of the DeepSeek household - from the early designs through DeepSeek V3 to the development R1. We likewise explored the technical innovations that make R1 so special in the world of open-source AI.

The DeepSeek Ancestral Tree: From V3 to R1

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

DeepSeek V2:

This was the structure design which leveraged a mixture-of-experts architecture, where only a subset of professionals are used at reasoning, considerably enhancing the processing time for each token. It also featured multi-head latent attention to lower memory footprint.

DeepSeek V3:

This model presented FP8 training methods, which helped drive down training expenses by over 42.5% compared to previous models. FP8 is a less accurate way to save weights inside the LLMs but can significantly improve the memory footprint. However, training utilizing FP8 can usually be unstable, and it is tough to obtain the wanted training results. Nevertheless, DeepSeek utilizes several techniques and attains incredibly stable FP8 training. V3 set the phase as an extremely efficient model that was currently cost-effective (with claims of being 90% cheaper than some closed-source alternatives).

DeepSeek R1-Zero:

With V3 as the base, the team then presented R1-Zero, the very first reasoning-focused model. Here, the focus was on teaching the design not just to produce answers but to "think" before answering. Using pure support learning, the design was encouraged to create intermediate reasoning steps, for instance, taking extra time (frequently 17+ seconds) to work through a basic issue like "1 +1."

The crucial development here was making use of group relative policy optimization (GROP). Instead of depending on a standard process reward model (which would have required annotating every action of the reasoning), GROP compares multiple outputs from the model. By sampling a number of prospective responses and scoring them (using rule-based procedures like precise match for math or confirming code outputs), the system discovers to favor thinking that results in the appropriate result without the need for explicit guidance of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's not being watched technique produced thinking outputs that might be difficult to check out or perhaps blend languages, the developers returned to the drawing board. They used the raw outputs from R1-Zero to generate "cold start" information and then by hand curated these examples to filter and enhance the quality of the thinking. This human post-processing was then used 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 design that now produces readable, meaningful, and trusted thinking while still maintaining the effectiveness and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating element of R1 (zero) is how it developed thinking abilities without specific supervision of the reasoning procedure. It can be further enhanced by utilizing cold-start information and supervised support discovering to produce readable thinking on general tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, permitting researchers and developers to inspect and build on its developments. Its expense performance is a significant selling point particularly when compared to closed-source designs (claimed 90% less expensive than OpenAI) that need enormous compute budget plans.

Novel Training Approach:

Instead of relying solely on annotated thinking (which is both pricey and lengthy), the design was trained utilizing an outcome-based method. It started with quickly verifiable tasks, such as math problems and coding workouts, where the accuracy of the last answer could be easily measured.

By utilizing group relative policy optimization, the training procedure compares numerous created responses to determine which ones fulfill the desired output. This relative scoring mechanism allows the design to learn "how to believe" even when intermediate thinking is generated in a freestyle way.

Overthinking?

An interesting observation is that DeepSeek R1 sometimes "overthinks" basic issues. For example, when asked "What is 1 +1?" it might spend nearly 17 seconds examining different scenarios-even thinking about binary representations-before concluding with the correct response. This self-questioning and verification process, although it may seem ineffective initially look, could show beneficial in complex jobs where deeper thinking is needed.

Prompt Engineering:

Traditional few-shot triggering techniques, which have actually worked well for numerous chat-based models, can actually degrade efficiency with R1. The developers suggest using direct issue statements with a zero-shot method that defines the output format plainly. This makes sure that the design isn't led astray by extraneous examples or hints that may disrupt its internal thinking procedure.

Beginning with R1

For those aiming to experiment:

Smaller versions (7B-8B) can operate on consumer GPUs and even just CPUs


Larger variations (600B) require substantial calculate resources


Available through major cloud providers


Can be deployed locally via Ollama or vLLM


Looking Ahead

We're especially interested by several ramifications:

The capacity for this method to be used to other thinking domains


Influence on agent-based AI systems generally built on chat models


Possibilities for combining with other guidance methods


Implications for business AI implementation


Thanks for checking out Deep Random Thoughts! Subscribe free of charge to receive new posts and support my work.

Open Questions

How will this affect the advancement of future thinking designs?


Can this approach be encompassed less verifiable domains?


What are the ramifications for multi-modal AI systems?


We'll be enjoying these advancements closely, especially as the neighborhood begins to experiment with and build on these methods.

Resources

Join our Slack neighborhood for ongoing conversations and updates about DeepSeek and other AI developments. We're seeing fascinating applications already emerging from our bootcamp participants 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 short summary


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

Q1: Which design deserves more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is also a strong model in the open-source neighborhood, the choice ultimately depends upon your use case. DeepSeek R1 emphasizes sophisticated thinking and an unique training approach that might be particularly important in tasks where verifiable logic is vital.

Q2: Why did significant providers like OpenAI go with monitored fine-tuning instead of support knowing (RL) like DeepSeek?

A: We need to note upfront that they do utilize RL at the very least in the kind of RLHF. It is very likely that models from major companies that have thinking abilities already use something similar to what DeepSeek has actually done here, but we can't make certain. It is likewise most likely that due to access to more resources, they preferred supervised fine-tuning due to its stability and higgledy-piggledy.xyz the ready availability of big annotated datasets. Reinforcement learning, although effective, can be less foreseeable and more difficult to control. DeepSeek's method innovates by using RL in a reasoning-oriented way, enabling the model to discover effective internal thinking with only minimal process annotation - a technique that has actually shown promising despite its intricacy.

Q3: Did DeepSeek use test-time calculate methods comparable to those of OpenAI?

A: DeepSeek R1's design emphasizes effectiveness by leveraging strategies such as the mixture-of-experts method, which activates only a subset of criteria, to minimize compute throughout reasoning. This focus on effectiveness is main to its cost benefits.

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

A: R1-Zero is the initial model that discovers thinking solely through reinforcement learning without explicit process guidance. It creates intermediate thinking steps that, while often raw or mixed in language, function as the structure for learning. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero offers the unsupervised "trigger," and R1 is the refined, more meaningful variation.

Q5: How can one remain upgraded with in-depth, technical research while managing a busy schedule?

A: Remaining existing involves a mix of actively engaging with the research (like AISC - see link to join slack above), following preprint servers like arXiv, going to relevant conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online neighborhoods and collective research tasks also plays a key function in staying up to date with technical improvements.

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

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

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

A: The open-source and affordable design of DeepSeek R1 lowers the entry barrier for releasing advanced language designs. Enterprises and start-ups can take advantage of its innovative thinking for agentic applications ranging from automated code generation and customer support to data analysis. Its versatile release options-on consumer hardware for smaller sized designs or cloud platforms for bigger ones-make it an attractive alternative to proprietary options.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple problems by exploring several reasoning paths, it integrates stopping requirements and assessment mechanisms to avoid limitless loops. The reinforcement discovering structure motivates merging towards a verifiable output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and functioned as the structure for later iterations. It is developed on its own set of innovations-including the mixture-of-experts technique and FP8 training-and is not based on the Qwen architecture. Its style stresses effectiveness and expense reduction, setting the phase for the thinking innovations seen in R1.

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

A: DeepSeek R1 is a text-based model and does not integrate vision abilities. Its style and training focus solely on language processing and thinking.

Q11: Can experts in specialized fields (for example, laboratories dealing with treatments) use these techniques to train domain-specific designs?

A: Yes. The developments behind DeepSeek R1-such as its outcome-based reasoning training and effective architecture-can be adjusted to numerous domains. Researchers in fields like biomedical sciences can tailor these approaches to construct designs that address their particular difficulties while gaining from lower calculate expenses and robust reasoning abilities. It is likely that in deeply specialized fields, nevertheless, there will still be a requirement for supervised fine-tuning to get dependable outcomes.

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

A: The conversation indicated that the annotators mainly concentrated on domains where accuracy is quickly verifiable-such as mathematics and coding. This recommends that knowledge in technical fields was certainly leveraged to guarantee the accuracy and clearness of the thinking data.

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

A: While the design is created to optimize for right answers by means of reinforcement knowing, there is always a danger of errors-especially in uncertain situations. However, by examining numerous candidate outputs and reinforcing those that result in proven results, the training process lessens the probability of propagating incorrect reasoning.

Q14: How are hallucinations reduced in the design provided its iterative reasoning loops?

A: The usage of rule-based, proven jobs (such as mathematics and coding) helps anchor the design's reasoning. By comparing several outputs and utilizing group relative policy optimization to strengthen only those that yield the proper result, the model is assisted away from producing unproven or hallucinated details.

Q15: Does the design depend on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are essential to the implementation of mixture-of-experts and attention mechanisms in DeepSeek R1. However, the main focus is on using these techniques to enable effective thinking rather than showcasing mathematical intricacy for its own sake.

Q16: Some fret that the design's "thinking" might not be as fine-tuned as human reasoning. Is that a valid issue?

A: Early versions like R1-Zero did produce raw and sometimes hard-to-read thinking. However, the subsequent refinement process-where human specialists curated and enhanced the reasoning data-has significantly enhanced the clarity and dependability of DeepSeek R1's internal thought process. While it remains an evolving system, iterative training and feedback have actually led to significant enhancements.

Q17: Which design variations appropriate for regional deployment on a laptop with 32GB of RAM?

A: For local testing, a medium-sized model-typically in the variety of 7B to 8B parameters-is advised. Larger models (for example, those with numerous billions of parameters) require considerably more computational resources and are much better fit for cloud-based implementation.

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

A: DeepSeek R1 is provided with open weights, implying that its model parameters are publicly available. This aligns with the general open-source viewpoint, enabling researchers and developers to more explore and build on its innovations.

Q19: What would happen if the order of training were reversed-starting with monitored fine-tuning before without supervision reinforcement knowing?

A: The existing method enables the model to initially check out and produce its own thinking patterns through without supervision RL, and after that refine these patterns with monitored methods. Reversing the order may constrain the design's ability to find varied thinking paths, possibly limiting its total efficiency in jobs that gain from self-governing idea.

Thanks for reading Deep Random Thoughts! Subscribe for 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: alberto1591255/132#49