Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
surgiteams
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 27
    • Issues 27
    • 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
  • Alethea Skertchly
  • surgiteams
  • Issues
  • #20

Closed
Open
Opened Apr 07, 2025 by Alethea Skertchly@alethea41l9729
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We have actually 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 family - from the early designs through DeepSeek V3 to the breakthrough R1. We likewise checked out the technical innovations that make R1 so unique in the world of open-source AI.

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

This was the foundation design which leveraged a mixture-of-experts architecture, where only a subset of experts are used at inference, significantly improving the processing time for each token. It likewise featured multi-head hidden attention to reduce memory footprint.

DeepSeek V3:

This design introduced FP8 training techniques, which helped drive down training costs by over 42.5% compared to previous models. FP8 is a less exact method to store weights inside the LLMs however can considerably improve the memory footprint. However, training utilizing FP8 can usually be unstable, and it is tough to obtain the preferred training outcomes. Nevertheless, DeepSeek uses multiple tricks and attains incredibly steady FP8 . V3 set the phase as an extremely effective design that was already cost-efficient (with claims of being 90% cheaper than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the team then introduced R1-Zero, the first reasoning-focused model. Here, the focus was on teaching the model not simply to generate answers however to "think" before responding to. Using pure support knowing, the design was motivated to produce intermediate thinking steps, for instance, taking extra time (frequently 17+ seconds) to overcome an easy issue like "1 +1."

The essential innovation here was making use of group relative policy optimization (GROP). Instead of relying on a conventional procedure reward design (which would have required annotating every step of the thinking), GROP compares numerous outputs from the design. By tasting several possible answers and scoring them (utilizing rule-based measures like specific match for math or verifying code outputs), the system finds out to favor reasoning that results in the correct result without the requirement for explicit guidance of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised approach produced thinking outputs that could be hard to check out or even blend languages, the developers returned to the drawing board. They used the raw outputs from R1-Zero to produce "cold start" data and after that by hand curated these examples to filter and enhance the quality of the reasoning. This human post-processing was then used to tweak the initial DeepSeek V3 model further-combining both reasoning-oriented reinforcement knowing and monitored fine-tuning. The result is DeepSeek R1: a model that now produces legible, coherent, and trusted reasoning while still maintaining the performance and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most remarkable aspect of R1 (zero) is how it developed thinking capabilities without explicit guidance of the reasoning process. It can be even more improved by utilizing cold-start information and monitored reinforcement finding out to produce understandable reasoning on general jobs. 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 efficiency is a significant selling point particularly when compared to closed-source models (claimed 90% cheaper than OpenAI) that require enormous calculate budgets.

Novel Training Approach:

Instead of relying solely on annotated reasoning (which is both pricey and lengthy), the model was trained using an outcome-based approach. It began with quickly proven jobs, such as math problems and coding exercises, where the accuracy of the last response could be quickly determined.

By utilizing group relative policy optimization, the training procedure compares multiple generated answers to figure out which ones meet the wanted output. This relative scoring mechanism permits the model to learn "how to think" even when intermediate reasoning is created in a freestyle way.

Overthinking?

A fascinating observation is that DeepSeek R1 sometimes "overthinks" easy problems. For instance, when asked "What is 1 +1?" it may invest nearly 17 seconds evaluating various scenarios-even thinking about binary representations-before concluding with the right response. This self-questioning and verification procedure, although it may seem inefficient at first glimpse, might prove beneficial in complicated jobs where much deeper reasoning is needed.

Prompt Engineering:

Traditional few-shot prompting strategies, which have worked well for numerous chat-based models, can in fact break down performance with R1. The developers recommend utilizing direct problem declarations with a zero-shot approach that specifies the output format plainly. This guarantees that the design isn't led astray by extraneous examples or tips that might hinder its internal thinking procedure.

Starting with R1

For those aiming to experiment:

Smaller variations (7B-8B) can run on consumer GPUs or perhaps only CPUs


Larger variations (600B) need significant calculate resources


Available through major cloud suppliers


Can be deployed in your area through Ollama or vLLM


Looking Ahead

We're especially fascinated by numerous ramifications:

The potential for this approach to be applied to other reasoning domains


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


Possibilities for integrating with other guidance techniques


Implications for business AI implementation


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

Open Questions

How will this affect the advancement of future reasoning models?


Can this method be encompassed less proven domains?


What are the ramifications for multi-modal AI systems?


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

Resources

Join our Slack neighborhood for ongoing conversations and updates about DeepSeek and other AI advancements. We're seeing interesting applications already 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 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 likewise a strong design in the open-source community, the choice ultimately depends upon your use case. DeepSeek R1 stresses advanced thinking and a novel training method that may be especially important in tasks where verifiable logic is vital.

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

A: We ought to note in advance that they do utilize RL at least in the form of RLHF. It is extremely most likely that designs from significant providers that have thinking abilities currently use something similar to what DeepSeek has done here, however we can't make certain. It is likewise most likely that due to access to more resources, they favored monitored fine-tuning due to its stability and the all set availability of big annotated datasets. Reinforcement knowing, although effective, can be less foreseeable and more difficult to manage. DeepSeek's method innovates by applying RL in a reasoning-oriented manner, allowing the model to discover reliable internal reasoning with only very little procedure annotation - a technique that has actually shown promising regardless of its intricacy.

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

A: DeepSeek R1's design highlights effectiveness by leveraging techniques such as the mixture-of-experts method, which activates just a subset of specifications, to lower compute throughout inference. This concentrate on efficiency is main to its cost benefits.

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

A: R1-Zero is the preliminary model that learns thinking exclusively through reinforcement learning without specific process guidance. It produces intermediate reasoning steps that, while often raw or larsaluarna.se mixed in language, function as the foundation for knowing. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero offers the without supervision "stimulate," and R1 is the polished, more meaningful version.

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

A: Remaining existing includes a mix of actively engaging with the research community (like AISC - see link to join slack above), following preprint servers like arXiv, participating in relevant conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online communities and collective research study tasks likewise plays an essential role in staying up to date with technical advancements.

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

A: The short answer is that it's prematurely to tell. DeepSeek R1's strength, however, depends on its robust reasoning abilities and its performance. It is especially well fit for jobs that require verifiable logic-such as mathematical issue solving, code generation, and structured decision-making-where intermediate reasoning can be examined and validated. Its open-source nature even more enables tailored applications in research study 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 decreases the entry barrier for releasing advanced language designs. Enterprises and start-ups can take advantage of its advanced reasoning for agentic applications ranging from automated code generation and customer assistance to data analysis. Its flexible 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 right response is found?

A: While DeepSeek R1 has been observed to "overthink" basic issues by exploring multiple reasoning courses, it incorporates stopping requirements and assessment mechanisms to prevent infinite loops. The support learning framework encourages convergence toward 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 technique and FP8 training-and is not based upon the Qwen architecture. Its design highlights effectiveness and cost 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 model and does not incorporate vision capabilities. Its design and training focus entirely on language processing and reasoning.

Q11: Can specialists in specialized fields (for instance, laboratories dealing with cures) apply these methods to train domain-specific designs?

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 approaches to build models that resolve their particular challenges while gaining from lower compute expenses and robust reasoning capabilities. It is likely that in deeply specialized fields, however, there will still be a requirement for monitored fine-tuning to get dependable results.

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

A: The discussion showed that the annotators mainly focused on domains where correctness is easily verifiable-such as mathematics and coding. This suggests that competence in technical fields was certainly leveraged to make sure the precision and clarity of the reasoning information.

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

A: While the model is created to enhance for proper answers by means of support learning, there is constantly a threat of errors-especially in uncertain scenarios. However, by evaluating several prospect outputs and reinforcing those that result in proven outcomes, the training procedure decreases the probability of propagating incorrect reasoning.

Q14: How are hallucinations lessened in the model given its iterative thinking loops?

A: The use of rule-based, proven tasks (such as math and coding) helps anchor the model's thinking. By comparing numerous outputs and using group relative policy optimization to reinforce only those that yield the right result, the design is directed away from generating unfounded or hallucinated details.

Q15: Does the design rely on complex vector mathematics?

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

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

A: Early models like R1-Zero did produce raw and sometimes hard-to-read thinking. However, the subsequent refinement process-where human experts curated and enhanced the thinking data-has substantially boosted the clearness and dependability of DeepSeek R1's internal thought procedure. While it remains a developing system, iterative training and feedback have actually resulted in significant improvements.

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

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

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

A: DeepSeek R1 is provided with open weights, implying that its design parameters are publicly available. This lines up with the total open-source philosophy, permitting researchers and designers to further check out and build on its innovations.

Q19: What would occur if the order of training were reversed-starting with monitored fine-tuning before unsupervised reinforcement learning?

A: The present technique allows the model to initially check out and create its own reasoning patterns through without supervision RL, and after that fine-tune these patterns with monitored methods. Reversing the order might constrain the model's capability to find varied thinking paths, potentially restricting its overall efficiency in jobs that gain from autonomous idea.

Thanks for checking out Deep Random Thoughts! Subscribe totally free to receive 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: alethea41l9729/surgiteams#20