Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
H
hcmis
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 25
    • Issues 25
    • 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
  • Anderson Ericson
  • hcmis
  • Issues
  • #21

Closed
Open
Opened Apr 05, 2025 by Anderson Ericson@andersonericso
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've been tracking the explosive increase of DeepSeek R1, which has actually 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 advancement R1. We likewise explored the technical developments that make R1 so unique on the planet of open-source AI.

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

This was the foundation model which leveraged a mixture-of-experts architecture, where just a subset of experts are utilized at reasoning, considerably enhancing the processing time for each token. It also included multi-head latent attention to minimize memory footprint.

DeepSeek V3:

This model introduced FP8 training strategies, which assisted drive down training expenses by over 42.5% compared to previous models. FP8 is a less accurate method to keep weights inside the LLMs however can significantly enhance the memory footprint. However, training utilizing FP8 can usually be unsteady, and it is difficult to obtain the wanted training outcomes. Nevertheless, DeepSeek utilizes several tricks and attains incredibly stable FP8 training. V3 set the phase as a highly efficient design that was currently cost-efficient (with claims of being 90% more affordable than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the group then presented R1-Zero, the very first reasoning-focused iteration. Here, the focus was on teaching the model not just to generate responses but to "believe" before responding to. Using pure support knowing, the model was motivated to create intermediate thinking steps, for example, taking extra time (typically 17+ seconds) to work through a basic issue like "1 +1."

The crucial innovation here was the use of group relative policy optimization (GROP). Instead of relying on a standard procedure reward design (which would have needed annotating every action of the reasoning), GROP compares numerous outputs from the design. By tasting several prospective answers and scoring them (using rule-based procedures like exact match for math or validating code outputs), the system learns to favor thinking that leads to the right outcome without the need for explicit supervision of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's without supervision technique produced reasoning outputs that could be hard to read and even mix languages, the designers returned to the drawing board. They utilized the raw outputs from R1-Zero to generate "cold start" data and then by hand curated these examples to filter and improve the quality of the thinking. This human post-processing was then used to tweak the original DeepSeek V3 design further-combining both reasoning-oriented support knowing and monitored fine-tuning. The outcome is DeepSeek R1: a model that now produces legible, coherent, and reliable reasoning while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most remarkable aspect of R1 (zero) is how it established thinking capabilities without specific guidance of the thinking procedure. It can be even more improved by using cold-start information and monitored reinforcement finding out to produce legible thinking on general tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, permitting scientists and developers to check and build on its innovations. Its expense performance is a major selling point particularly when compared to closed-source models (claimed 90% cheaper than OpenAI) that need massive compute budget plans.

Novel Training Approach:

Instead of relying solely on annotated reasoning (which is both costly and lengthy), the model was trained utilizing an outcome-based technique. It started with easily proven jobs, such as mathematics problems and coding workouts, where the correctness of the last answer might be quickly measured.

By utilizing group relative policy optimization, the training procedure compares numerous produced responses to identify which ones satisfy the preferred output. This relative scoring mechanism allows the model to learn "how to believe" even when intermediate thinking is generated 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 might spend almost 17 seconds evaluating different scenarios-even thinking about binary representations-before concluding with the proper response. This self-questioning and verification process, although it might appear inefficient at first look, might prove useful in complicated tasks where much deeper thinking is necessary.

Prompt Engineering:

Traditional few-shot prompting techniques, which have worked well for numerous chat-based designs, can actually degrade performance with R1. The designers advise utilizing direct issue statements with a zero-shot method that specifies the output format plainly. This guarantees that the model isn't led astray by extraneous examples or tips that may hinder its internal thinking process.

Getting Going with R1

For those aiming to experiment:

Smaller versions (7B-8B) can operate on consumer GPUs or perhaps only CPUs


Larger versions (600B) need considerable calculate resources


Available through major cloud companies


Can be deployed locally via Ollama or vLLM


Looking Ahead

We're particularly captivated by numerous implications:

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


Impact on agent-based AI systems generally constructed on chat designs


Possibilities for combining with other guidance strategies


Implications for enterprise AI implementation


Thanks for reading Deep Random Thoughts! Subscribe for free to receive new posts and support my work.

Open Questions

How will this impact the development of future thinking designs?


Can this approach be encompassed less proven domains?


What are the ramifications for multi-modal AI systems?


We'll be enjoying these advancements carefully, particularly as the community starts to explore and build on these strategies.

Resources

Join our Slack neighborhood for continuous discussions and updates about DeepSeek and other AI developments. We're seeing interesting applications currently emerging from our bootcamp individuals working 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 is worthy of more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong model in the open-source neighborhood, the choice ultimately depends upon your use case. DeepSeek R1 emphasizes sophisticated reasoning and an unique training technique that may be specifically important in jobs where proven logic is important.

Q2: Why did major service providers like OpenAI opt for monitored fine-tuning instead of support learning (RL) like DeepSeek?

A: We must keep in mind upfront that they do utilize RL at least in the type of RLHF. It is likely that designs from major companies that have thinking abilities already utilize something comparable to what DeepSeek has actually done here, however we can't make certain. It is also most likely that due to access to more resources, they preferred supervised fine-tuning due to its stability and the all set availability of large annotated datasets. Reinforcement knowing, although powerful, can be less predictable and harder to control. DeepSeek's method innovates by using RL in a reasoning-oriented manner, allowing the design to discover effective internal reasoning with only minimal procedure annotation - a technique that has actually shown promising in spite of its complexity.

Q3: Did DeepSeek use test-time calculate techniques similar to those of OpenAI?

A: DeepSeek R1's style highlights effectiveness by leveraging techniques such as the mixture-of-experts technique, which activates only a subset of criteria, to lower calculate throughout inference. This concentrate on effectiveness is main to its expense advantages.

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

A: R1-Zero is the preliminary model that finds out reasoning entirely through support learning without specific process supervision. It produces intermediate reasoning actions that, while in some cases raw or blended in language, work as the foundation for learning. DeepSeek R1, on the other hand, improves these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero supplies the not being watched "spark," and R1 is the refined, more coherent version.

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

A: Remaining current includes a combination of actively engaging with the research study neighborhood (like AISC - see link to join slack above), following preprint servers like arXiv, participating in pertinent conferences and webinars, and getting involved in conversation groups and newsletters. Continuous engagement with online communities and collaborative research study tasks likewise plays a crucial role in keeping up with technical developments.

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

A: The brief answer is that it's too early to tell. DeepSeek R1's strength, nevertheless, depends on its robust thinking capabilities and its performance. It is especially well suited for tasks that need verifiable logic-such as mathematical issue resolving, code generation, and structured decision-making-where intermediate thinking can be reviewed and verified. Its open-source nature even more permits for tailored applications in research study and business settings.

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

A: The open-source and cost-efficient design of DeepSeek R1 decreases the entry barrier for releasing advanced language models. Enterprises and start-ups can leverage its innovative thinking for agentic applications varying from automated code generation and consumer assistance to data analysis. Its versatile release options-on customer hardware for smaller models or cloud platforms for bigger ones-make it an attractive alternative to exclusive options.

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

A: While DeepSeek R1 has been observed to "overthink" simple issues by exploring several thinking courses, it includes stopping requirements and examination systems to loops. The support discovering structure encourages convergence 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 acted as the foundation for later versions. It is developed on its own set of innovations-including the mixture-of-experts method and FP8 training-and is not based upon the Qwen architecture. Its design highlights performance and expense decrease, setting the phase for the reasoning developments seen in R1.

Q10: How does DeepSeek R1 perform on vision jobs?

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

Q11: Can specialists in specialized fields (for instance, labs dealing with remedies) apply these techniques to train domain-specific models?

A: Yes. The innovations 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 construct models that resolve their specific challenges while gaining from lower compute expenses and robust reasoning abilities. It is likely that in deeply specialized fields, nevertheless, there will still be a need for supervised fine-tuning to get reliable results.

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

A: The conversation showed that the annotators mainly focused on domains where correctness 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 reasoning data.

Q13: Could the model get things wrong if it counts on its own outputs for learning?

A: While the model is developed to enhance for right answers through support learning, there is always a threat of errors-especially in uncertain scenarios. However, by assessing several candidate outputs and reinforcing those that result in proven results, the training process reduces the probability of propagating incorrect reasoning.

Q14: How are hallucinations decreased in the design provided its iterative thinking loops?

A: Making use of rule-based, verifiable tasks (such as math and coding) assists anchor the design's reasoning. By comparing multiple outputs and utilizing group relative policy optimization to enhance only those that yield the appropriate outcome, the design is directed 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 important to the execution of mixture-of-experts and attention mechanisms in DeepSeek R1. However, the main focus is on utilizing these techniques to make it possible for effective thinking instead of showcasing mathematical intricacy for its own sake.

Q16: Some worry that the design's "thinking" might not be as refined as human reasoning. Is that a valid issue?

A: Early iterations like R1-Zero did produce raw and in some cases hard-to-read reasoning. However, the subsequent refinement process-where human specialists curated and enhanced the reasoning data-has significantly improved the clearness and reliability of DeepSeek R1's internal idea process. While it remains an evolving system, iterative training and feedback have resulted in meaningful enhancements.

Q17: Which model versions are ideal for local deployment on a laptop with 32GB of RAM?

A: For regional screening, a medium-sized model-typically in the variety of 7B to 8B parameters-is suggested. Larger models (for example, those with numerous billions of parameters) need significantly more computational resources and are much better matched for cloud-based deployment.

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

A: DeepSeek R1 is offered with open weights, suggesting that its model parameters are openly available. This aligns with the overall open-source philosophy, allowing researchers and garagesale.es designers to further explore and build on its developments.

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 method permits the model to initially check out and generate its own thinking patterns through not being watched RL, and after that improve these patterns with supervised approaches. Reversing the order may constrain the model's capability to discover varied thinking paths, potentially limiting its total efficiency in tasks that gain from autonomous thought.

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: andersonericso/hcmis#21