Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S sarkiniyazdir
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • Ashlee Hinkler
  • sarkiniyazdir
  • Issues
  • #21

Closed
Open
Created Mar 06, 2025 by Ashlee Hinkler@ashleehinkler0Maintainer

Understanding DeepSeek R1


We have actually 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 development of the DeepSeek household - from the early designs through DeepSeek V3 to the advancement R1. We also explored the technical developments that make R1 so unique worldwide of open-source AI.

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

This was the structure 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 included multi-head hidden attention to decrease memory footprint.

DeepSeek V3:

This model presented FP8 training methods, which assisted drive down training expenses by over 42.5% compared to previous iterations. FP8 is a less exact way to store weights inside the LLMs but can greatly improve the memory footprint. However, training using FP8 can normally be unstable, and it is difficult to obtain the desired training outcomes. Nevertheless, DeepSeek utilizes multiple tricks and attains incredibly steady FP8 training. V3 set the phase as a highly effective design that was currently cost-efficient (with claims of being 90% cheaper than some closed-source alternatives).

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 just to generate answers but to "think" before responding to. Using pure reinforcement learning, the model was encouraged to generate intermediate reasoning actions, for example, taking extra time (frequently 17+ seconds) to overcome a simple problem like "1 +1."

The key innovation here was making use of group relative policy optimization (GROP). Instead of depending on a traditional procedure reward design (which would have required annotating every action of the thinking), GROP compares several outputs from the design. By tasting a number of possible responses and scoring them (using rule-based measures like exact match for math or verifying code outputs), the system discovers to prefer thinking that causes the right result without the requirement for specific guidance of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's without supervision approach produced thinking outputs that could be hard to check out or perhaps mix languages, the developers went back to the drawing board. They used the raw outputs from R1-Zero to create "cold start" data and then manually curated these examples to filter and enhance the quality of the thinking. This human post-processing was then utilized to tweak the initial DeepSeek V3 model further-combining both reasoning-oriented reinforcement learning and supervised fine-tuning. The result is DeepSeek R1: a design that now produces understandable, meaningful, and dependable thinking while still maintaining the performance and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating element of R1 (no) is how it developed thinking capabilities without explicit guidance of the thinking procedure. It can be further improved by utilizing cold-start information and monitored support 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 examine and develop upon its developments. Its expense performance is a major selling point specifically when compared to closed-source models (claimed 90% less expensive than OpenAI) that need huge calculate spending plans.

Novel Training Approach:

Instead of relying solely on annotated reasoning (which is both costly and time-consuming), the model was trained using an outcome-based approach. It started with easily proven tasks, such as mathematics problems and coding exercises, where the correctness of the last response could be quickly determined.

By utilizing group relative policy optimization, the training procedure compares multiple generated responses to figure out which ones satisfy the preferred output. This relative scoring mechanism enables the model to discover "how to think" even when intermediate thinking is generated in a freestyle way.

Overthinking?

An intriguing observation is that DeepSeek R1 sometimes "overthinks" easy issues. For example, when asked "What is 1 +1?" it might spend nearly 17 seconds evaluating different scenarios-even considering binary representations-before concluding with the proper answer. This self-questioning and confirmation process, although it might seem ineffective initially look, might prove useful in intricate jobs where deeper thinking is essential.

Prompt Engineering:

Traditional few-shot prompting methods, which have actually worked well for many chat-based designs, can actually break down efficiency with R1. The designers advise using direct issue statements with a zero-shot technique that specifies the output format plainly. This guarantees that the model isn't led astray by extraneous examples or hints that may interfere with its internal thinking procedure.

Starting with R1

For those aiming to experiment:

Smaller variants (7B-8B) can run on customer GPUs or perhaps just CPUs


Larger variations (600B) need considerable calculate resources


Available through significant cloud service providers


Can be deployed in your area through Ollama or vLLM


Looking Ahead

We're particularly fascinated by several ramifications:

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


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


Possibilities for integrating with other guidance strategies


Implications for business AI implementation


Thanks for reading 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 thinking designs?


Can this method be extended to less verifiable domains?


What are the ramifications for multi-modal AI systems?


We'll be seeing these developments closely, especially as the community begins to explore and construct upon these methods.

Resources

Join our Slack neighborhood for ongoing discussions and updates about DeepSeek and other AI advancements. We're seeing remarkable 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 should have more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is also a strong design in the open-source community, the option eventually depends on your use case. DeepSeek R1 emphasizes advanced thinking and a novel training method that may be particularly valuable in tasks where proven logic is important.

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

A: We should note in advance that they do use RL at the extremely least in the kind of RLHF. It is most likely that designs from significant companies that have reasoning abilities already utilize something similar to what DeepSeek has done here, but we can't make certain. It is also likely that due to access to more resources, they favored monitored fine-tuning due to its stability and the prepared availability of big annotated datasets. Reinforcement knowing, although effective, can be less foreseeable and more difficult to manage. DeepSeek's technique innovates by applying RL in a reasoning-oriented way, making it possible for the design to find out reliable internal reasoning with only very little procedure annotation - a method that has shown promising in spite of its intricacy.

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

A: DeepSeek R1's design emphasizes effectiveness by leveraging techniques such as the mixture-of-experts approach, which activates just a subset of specifications, to minimize calculate throughout inference. This concentrate on efficiency is main to its expense advantages.

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

A: R1-Zero is the preliminary model that finds out reasoning solely through reinforcement learning without explicit procedure guidance. It creates intermediate reasoning steps that, while in some cases raw or combined in language, archmageriseswiki.com function 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 "trigger," and R1 is the polished, more coherent version.

Q5: How can one remain updated with in-depth, technical research while managing a busy 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, attending pertinent conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online communities and collective research study jobs also plays a key role in staying up to date with technical advancements.

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

A: The short response is that it's too early to inform. DeepSeek R1's strength, however, lies in its robust thinking capabilities and its performance. It is particularly well matched for tasks that require verifiable logic-such as mathematical issue fixing, code generation, and structured decision-making-where intermediate reasoning can be reviewed and confirmed. Its open-source nature even more enables tailored applications in research and business settings.

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

A: The open-source and cost-effective style of DeepSeek R1 decreases the entry barrier for deploying sophisticated language designs. Enterprises and start-ups can take advantage of its sophisticated thinking for agentic applications ranging from automated code generation and customer assistance to data analysis. Its flexible deployment options-on customer hardware for smaller sized models or cloud platforms for bigger ones-make it an attractive alternative to exclusive options.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple issues by exploring multiple reasoning paths, it incorporates stopping requirements and assessment mechanisms to avoid infinite loops. The support learning structure encourages convergence toward a proven 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 worked as the foundation for later versions. It is built on its own set of innovations-including the mixture-of-experts approach and FP8 training-and is not based upon the Qwen architecture. Its design highlights effectiveness and cost reduction, setting the stage for the thinking innovations 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 abilities. Its style and training focus entirely on language processing and thinking.

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

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based thinking training and efficient architecture-can be adjusted to different domains. Researchers in fields like biomedical sciences can tailor these techniques to develop models that address their specific obstacles while gaining from lower calculate costs and robust thinking abilities. It is likely that in deeply specialized fields, nevertheless, there will still be a requirement for supervised fine-tuning to get trustworthy results.

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

A: The conversation indicated that the mainly focused on domains where accuracy is quickly verifiable-such as mathematics and coding. This suggests that knowledge in technical fields was certainly leveraged to make sure the accuracy and clarity of the thinking information.

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

A: While the model is developed to optimize for right responses through support learning, there is always a danger of errors-especially in uncertain situations. However, by examining several candidate outputs and strengthening those that cause proven outcomes, the training procedure minimizes the probability of propagating incorrect reasoning.

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

A: Using rule-based, verifiable tasks (such as math and coding) assists anchor the design's thinking. By comparing multiple outputs and using group relative policy optimization to strengthen only those that yield the proper result, the design is assisted away from creating unfounded or hallucinated details.

Q15: Does the model 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 utilizing these methods to enable efficient reasoning rather than showcasing mathematical intricacy for its own sake.

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

A: Early iterations like R1-Zero did produce raw and sometimes hard-to-read thinking. However, the subsequent improvement process-where human specialists curated and improved the thinking data-has substantially improved the clarity and reliability 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 versions appropriate for local deployment on a laptop computer with 32GB of RAM?

A: For local testing, a medium-sized model-typically in the variety of 7B to 8B parameters-is advised. Larger designs (for instance, those with numerous billions of parameters) require significantly more computational resources and are better matched 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, meaning that its design parameters are publicly available. This aligns with the total open-source philosophy, permitting researchers and designers to additional check out and build upon its innovations.

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

A: The current technique allows the model to initially check out and create its own reasoning patterns through unsupervised RL, and after that refine these patterns with monitored methods. Reversing the order may constrain the design's capability to discover diverse reasoning courses, possibly restricting its overall efficiency in jobs that gain from autonomous thought.

Thanks for checking out 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