Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
P
ptube
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 93
    • Issues 93
    • 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
  • Adolfo Whitlow
  • ptube
  • Issues
  • #65

Closed
Open
Opened Apr 08, 2025 by Adolfo Whitlow@adolfowhitlow
  • 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 current weeks. In this session, we dove deep into the advancement of the DeepSeek household - from the early designs through DeepSeek V3 to the development R1. We likewise checked out the technical developments that make R1 so special in the world of open-source AI.

The DeepSeek Family Tree: From V3 to R1

DeepSeek isn't just a single model; it's a family of significantly sophisticated AI systems. The advancement goes something like this:

DeepSeek V2:

This was the foundation design which leveraged a mixture-of-experts architecture, where just a subset of professionals are utilized at inference, significantly enhancing the processing time for each token. It likewise featured multi-head latent attention to lower memory footprint.

DeepSeek V3:

This model presented FP8 training strategies, which assisted drive down training costs by over 42.5% compared to previous models. FP8 is a less precise way to save weights inside the LLMs but can considerably enhance the memory footprint. However, training utilizing FP8 can usually be unstable, and it is hard to obtain the preferred training outcomes. Nevertheless, DeepSeek utilizes several tricks and attains remarkably stable FP8 training. V3 set the phase as a highly effective design that was currently affordable (with claims of being 90% cheaper than some closed-source options).

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 model not just to create responses but to "think" before addressing. Using pure support knowing, the model was motivated to create intermediate thinking steps, for instance, taking additional time (frequently 17+ seconds) to resolve a basic issue like "1 +1."

The crucial innovation here was making use of group relative policy optimization (GROP). Instead of counting on a standard process reward model (which would have needed annotating every action of the reasoning), GROP compares several outputs from the design. By sampling several possible responses and scoring them (utilizing rule-based procedures like precise match for math or confirming code outputs), the system learns to prefer thinking that results in the proper outcome without the requirement for specific guidance of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's not being watched technique produced reasoning outputs that could be difficult to check out or perhaps mix languages, the designers went back to the drawing board. They used the raw outputs from R1-Zero to generate "cold start" data and after that by hand curated these examples to filter and improve the quality of the thinking. This human post-processing was then utilized to fine-tune the original DeepSeek V3 design further-combining both reasoning-oriented support knowing and monitored fine-tuning. The result is DeepSeek R1: a model that now produces understandable, coherent, and reputable thinking while still maintaining the performance and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating element of R1 (zero) is how it developed reasoning abilities without specific supervision of the reasoning process. It can be even more enhanced by utilizing cold-start data and supervised support discovering to produce understandable reasoning on general jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, permitting scientists and developers to examine and build on its developments. Its expense effectiveness is a significant selling point particularly when compared to closed-source models (claimed 90% cheaper than OpenAI) that need huge calculate budgets.

Novel Training Approach:

Instead of relying exclusively on annotated thinking (which is both costly and lengthy), the design was trained utilizing an outcome-based method. It started with quickly proven jobs, such as mathematics problems and coding exercises, where the accuracy of the last response could be easily measured.

By utilizing group relative policy optimization, the training procedure compares numerous created answers to identify which ones meet the desired output. This relative scoring system permits the model to learn "how to think" even when intermediate thinking is produced in a freestyle manner.

Overthinking?

A fascinating observation is that DeepSeek R1 often "overthinks" simple issues. For example, when asked "What is 1 +1?" it may invest almost 17 seconds evaluating different scenarios-even thinking about binary representations-before concluding with the appropriate response. This self-questioning and verification procedure, although it may appear inefficient initially look, could prove advantageous in intricate jobs where much deeper reasoning is required.

Prompt Engineering:

Traditional few-shot prompting strategies, which have worked well for many chat-based designs, can in fact break down performance with R1. The developers suggest utilizing direct issue declarations with a zero-shot method that specifies the output format plainly. This ensures that the model isn't led astray by extraneous examples or hints that may hinder its internal thinking process.

Getting Started with R1

For those aiming to experiment:

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


Larger variations (600B) need considerable compute resources


Available through major cloud companies


Can be released locally by means of Ollama or vLLM


Looking Ahead

We're especially fascinated by several ramifications:

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


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


Possibilities for combining with other guidance methods


Implications for enterprise AI deployment


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

Open Questions

How will this affect the development of future reasoning designs?


Can this method be extended to less proven domains?


What are the implications for multi-modal AI systems?


We'll be enjoying these developments closely, especially as the neighborhood begins to try out and develop upon these strategies.

Resources

Join our Slack community for ongoing conversations and updates about DeepSeek and other AI advancements. We're seeing interesting applications currently 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 is worthy of more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is also a strong model in the open-source neighborhood, the option eventually depends on your usage case. DeepSeek R1 emphasizes sophisticated reasoning and a novel training approach that might be especially valuable in tasks where proven reasoning is important.

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

A: ratemywifey.com We ought to note upfront that they do use RL at the minimum in the form of RLHF. It is highly likely that designs from significant companies that have reasoning abilities currently use something similar to what DeepSeek has actually done here, but 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 manage. DeepSeek's technique innovates by using RL in a reasoning-oriented way, allowing the design to learn efficient internal reasoning with only minimal process annotation - a strategy that has actually shown promising in spite of its intricacy.

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

A: DeepSeek R1's style highlights effectiveness by leveraging methods such as the mixture-of-experts approach, which triggers just a subset of criteria, to lower calculate during inference. This focus on efficiency is main to its cost advantages.

Q4: What is the difference in between R1-Zero and R1?

A: R1-Zero is the initial design that discovers thinking entirely through support learning without explicit process guidance. It generates intermediate reasoning steps that, while often raw or combined in language, work as the structure for knowing. DeepSeek R1, on the other hand, improves these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero offers the unsupervised "stimulate," and R1 is the polished, more meaningful version.

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

A: Remaining current involves a mix of actively engaging with the research study community (like AISC - see link to sign up with slack above), following preprint servers like arXiv, participating in pertinent conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online communities and collective research study tasks likewise plays a key role in keeping up with technical improvements.

Q6: systemcheck-wiki.de In what use-cases does DeepSeek surpass designs like O1?

A: The brief response is that it's too early to tell. DeepSeek R1's strength, nevertheless, lies in its robust thinking abilities and its effectiveness. It is especially well matched for jobs that require verifiable logic-such as mathematical problem solving, code generation, and structured decision-making-where intermediate thinking can be reviewed and confirmed. Its open-source nature even more permits for tailored applications in research and business settings.

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

A: The open-source and affordable design of DeepSeek R1 reduces the entry barrier for releasing innovative language models. Enterprises and start-ups can take advantage of its sophisticated reasoning for agentic applications varying from automated code generation and client support to data analysis. Its versatile implementation options-on customer hardware for smaller sized models or cloud platforms for bigger ones-make it an appealing option to exclusive options.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple problems by exploring multiple reasoning paths, it incorporates stopping requirements and examination mechanisms to prevent boundless loops. The reinforcement learning framework encourages merging toward a proven output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and acted as the structure for later iterations. It is constructed on its own set of innovations-including the mixture-of-experts technique and FP8 training-and is not based upon the Qwen architecture. Its style stresses effectiveness and expense reduction, setting the phase for the reasoning 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 capabilities. Its style and training focus exclusively on language processing and reasoning.

Q11: Can professionals in specialized fields (for example, laboratories dealing with remedies) apply these approaches to train domain-specific designs?

A: Yes. The developments behind DeepSeek R1-such as its outcome-based reasoning training and efficient architecture-can be adapted to various domains. Researchers in fields like biomedical sciences can tailor these techniques to develop designs that address their specific difficulties while gaining from lower compute expenses and robust thinking capabilities. It is likely that in deeply specialized fields, nevertheless, there will still be a requirement for monitored fine-tuning to get trusted results.

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

A: The discussion indicated that the annotators mainly focused on domains where correctness is easily verifiable-such as mathematics and coding. This recommends that proficiency in technical fields was certainly leveraged to ensure the precision and clearness of the reasoning data.

Q13: Could the model get things incorrect if it depends on its own outputs for discovering?

A: While the design is created to optimize for correct responses via reinforcement learning, there is always a threat of errors-especially in uncertain scenarios. However, by assessing numerous prospect outputs and reinforcing those that result in proven results, the training process reduces the possibility of propagating incorrect thinking.

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

A: The usage of rule-based, verifiable tasks (such as mathematics and coding) assists anchor the design's thinking. By comparing multiple outputs and using group relative policy optimization to enhance just those that yield the right result, the design is guided away from generating unproven or hallucinated details.

Q15: Does the model depend on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are important to the execution of mixture-of-experts and attention systems in DeepSeek R1. However, the main focus is on using these strategies to make it possible for efficient thinking rather than showcasing mathematical for its own sake.

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

A: Early models like R1-Zero did produce raw and sometimes hard-to-read thinking. However, the subsequent refinement process-where human professionals curated and enhanced the reasoning data-has substantially enhanced the clearness and dependability of DeepSeek R1's internal idea process. While it remains an evolving system, iterative training and feedback have actually caused meaningful improvements.

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

A: For local testing, a medium-sized model-typically in the series of 7B to 8B parameters-is recommended. Larger designs (for example, those with hundreds of billions of parameters) need substantially more computational resources and are better suited for cloud-based deployment.

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

A: DeepSeek R1 is offered with open weights, indicating that its model parameters are openly available. This lines up with the total open-source viewpoint, enabling scientists and designers to more check out and build on its innovations.

Q19: What would happen if the order of training were reversed-starting with monitored fine-tuning before not being watched support learning?

A: The current technique enables the design to initially check out and produce its own reasoning patterns through unsupervised RL, and after that refine these patterns with monitored methods. Reversing the order might constrain the design's capability to find diverse reasoning courses, potentially restricting its overall efficiency in tasks that gain from autonomous idea.

Thanks for reading Deep Random Thoughts! Subscribe free of charge 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: adolfowhitlow/ptube#65