Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
T tqmusic
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 1
    • Issues 1
    • 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
  • Stepanie Humphrey
  • tqmusic
  • Issues
  • #1

Closed
Open
Created Feb 17, 2025 by Stepanie Humphrey@stepaniewya793Maintainer

Understanding DeepSeek R1


We have actually been tracking the explosive rise 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 innovations that make R1 so unique worldwide of open-source AI.

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

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

DeepSeek V3:

This design presented FP8 training techniques, which assisted drive down training expenses by over 42.5% compared to previous iterations. FP8 is a less precise way to store weights inside the LLMs however can greatly enhance the memory footprint. However, training utilizing FP8 can typically be unsteady, and it is tough to obtain the desired training results. Nevertheless, DeepSeek utilizes multiple tricks and attains extremely stable FP8 training. V3 set the phase as a highly effective model 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 group then presented R1-Zero, the first reasoning-focused iteration. Here, the focus was on teaching the model not simply to produce answers however to "think" before addressing. Using pure reinforcement knowing, the design was motivated to generate intermediate thinking steps, for instance, taking additional time (often 17+ seconds) to overcome a simple problem like "1 +1."

The crucial innovation here was using group relative policy optimization (GROP). Instead of depending on a traditional procedure reward model (which would have required annotating every action of the reasoning), GROP compares numerous outputs from the model. By sampling a number of potential answers and scoring them (utilizing rule-based procedures like exact match for math or confirming code outputs), the system finds out to that results in the correct result without the need for specific guidance of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's without supervision approach produced reasoning outputs that could be hard to read or perhaps blend languages, the designers went back to the drawing board. They utilized the raw outputs from R1-Zero to produce "cold start" information and then manually curated these examples to filter and enhance the quality of the thinking. This human post-processing was then utilized to fine-tune the original DeepSeek V3 model further-combining both reasoning-oriented support knowing and monitored fine-tuning. The result is DeepSeek R1: a design that now produces legible, coherent, and dependable thinking while still maintaining the performance and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating 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 supervised reinforcement discovering to produce readable reasoning on basic jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, allowing researchers and developers to check and build on its developments. Its cost efficiency is a significant selling point particularly when compared to closed-source designs (claimed 90% cheaper than OpenAI) that require huge compute budgets.

Novel Training Approach:

Instead of relying exclusively on annotated thinking (which is both expensive and time-consuming), the model was trained using an outcome-based technique. It began with quickly verifiable tasks, such as math problems and coding workouts, where the correctness of the last answer could be easily measured.

By utilizing group relative policy optimization, the training process compares several generated answers to figure out which ones fulfill the preferred output. This relative scoring mechanism enables the design to discover "how to believe" even when intermediate reasoning is produced in a freestyle way.

Overthinking?

A fascinating observation is that DeepSeek R1 often "overthinks" easy problems. For example, when asked "What is 1 +1?" it may invest nearly 17 seconds assessing various scenarios-even thinking about binary representations-before concluding with the appropriate answer. This self-questioning and verification process, although it might appear inefficient at first glance, might prove useful in intricate jobs where much deeper thinking is required.

Prompt Engineering:

Traditional few-shot prompting techniques, which have actually worked well for numerous chat-based models, can actually break down performance with R1. The designers recommend utilizing direct problem declarations with a zero-shot technique that specifies the output format plainly. This guarantees that the design isn't led astray by extraneous examples or tips that might disrupt its internal reasoning 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) require considerable calculate resources


Available through major cloud providers


Can be released locally via Ollama or vLLM


Looking Ahead

We're especially interested by numerous ramifications:

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


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


Possibilities for integrating with other supervision techniques


Implications for business AI implementation


Thanks for checking out Deep Random Thoughts! Subscribe for complimentary to get new posts and support my work.

Open Questions

How will this impact the development of future thinking designs?


Can this technique be extended to less proven domains?


What are the implications for multi-modal AI systems?


We'll be watching these developments carefully, particularly as the neighborhood begins to explore and build on these strategies.

Resources

Join our Slack neighborhood for continuous conversations and updates about DeepSeek and other AI advancements. We're seeing fascinating applications already emerging from our bootcamp participants 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 should have more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is also a strong model in the open-source community, the choice eventually depends on your use case. DeepSeek R1 highlights advanced thinking and a novel training technique that might be particularly valuable in tasks where proven reasoning is vital.

Q2: Why did significant companies like OpenAI choose supervised fine-tuning instead of reinforcement learning (RL) like DeepSeek?

A: We ought to keep in mind upfront that they do use RL at the really least in the kind of RLHF. It is highly likely that designs from significant service providers that have reasoning capabilities currently use something similar to what DeepSeek has done here, but we can't make certain. It is likewise likely that due to access to more resources, they preferred supervised fine-tuning due to its stability and the all set availability of big annotated datasets. Reinforcement knowing, although powerful, can be less predictable and more difficult to control. DeepSeek's approach innovates by using RL in a reasoning-oriented manner, enabling the model to learn effective internal thinking with only minimal procedure annotation - a strategy that has shown appealing regardless of its intricacy.

Q3: Did DeepSeek utilize test-time calculate techniques comparable to those of OpenAI?

A: systemcheck-wiki.de DeepSeek R1's style emphasizes efficiency by leveraging techniques such as the mixture-of-experts technique, which activates only a subset of parameters, to minimize compute throughout reasoning. This concentrate on performance is main to its expense advantages.

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

A: R1-Zero is the initial design that finds out reasoning solely through reinforcement learning without explicit procedure supervision. It generates intermediate reasoning actions that, while in some cases raw or mixed 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 supplies the unsupervised "stimulate," and R1 is the refined, more meaningful version.

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

A: Remaining existing involves a combination of actively engaging with the research study community (like AISC - see link to sign up with slack above), following preprint servers like arXiv, attending relevant conferences and webinars, and participating in discussion groups and newsletters. Continuous engagement with online neighborhoods and collaborative research tasks also plays a crucial role in staying up to date with technical developments.

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

A: The brief answer is that it's too early to inform. DeepSeek R1's strength, nevertheless, depends on its robust reasoning capabilities and its effectiveness. It is particularly well fit for tasks that need verifiable logic-such as mathematical issue resolving, code generation, and structured decision-making-where intermediate thinking can be evaluated and verified. Its open-source nature even more permits 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-effective style of DeepSeek R1 reduces the entry barrier for deploying innovative language designs. Enterprises and start-ups can utilize its advanced reasoning for agentic applications ranging from automated code generation and customer support to information analysis. Its versatile release options-on consumer hardware for smaller models or cloud platforms for larger ones-make it an attractive option to exclusive options.

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

A: While DeepSeek R1 has been observed to "overthink" basic problems by checking out numerous reasoning courses, it includes stopping requirements and assessment mechanisms to avoid limitless loops. The support learning structure motivates 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 functioned as the structure for later models. 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 style emphasizes efficiency and expense reduction, setting the stage for the reasoning developments seen in R1.

Q10: How does DeepSeek R1 perform on vision tasks?

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

Q11: Can specialists in specialized fields (for example, labs dealing with treatments) use these approaches to train domain-specific models?

A: Yes. The developments behind DeepSeek R1-such as its outcome-based reasoning training and effective architecture-can be adjusted to different domains. Researchers in fields like biomedical sciences can tailor these methods to develop designs that resolve their specific challenges while gaining from lower calculate costs and robust reasoning abilities. It is most likely that in deeply specialized fields, nevertheless, there will still be a need for monitored fine-tuning to get reputable results.

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

A: The discussion indicated that the annotators mainly concentrated on domains where correctness is quickly verifiable-such as mathematics and coding. This recommends that know-how in technical fields was certainly leveraged to guarantee the accuracy and clarity of the reasoning data.

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

A: While the model is created to enhance for proper responses through reinforcement learning, there is always a threat of errors-especially in uncertain situations. However, by examining numerous candidate outputs and strengthening those that cause proven results, the training procedure decreases the likelihood of propagating inaccurate reasoning.

Q14: How are hallucinations minimized in the design given its iterative reasoning loops?

A: The use 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 correct result, the design is directed far from producing unproven or hallucinated details.

Q15: Does the model rely on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are integral to the execution of mixture-of-experts and attention mechanisms in DeepSeek R1. However, the main focus is on utilizing these methods to enable efficient reasoning instead of showcasing mathematical complexity for its own sake.

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

A: Early models like R1-Zero did produce raw and often hard-to-read thinking. However, the subsequent refinement process-where human professionals curated and improved 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 significant enhancements.

Q17: Which design variants are appropriate for regional release 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 designs (for instance, those with hundreds of billions of specifications) require considerably more computational resources and are better fit for cloud-based release.

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

A: DeepSeek R1 is supplied with open weights, indicating that its design parameters are openly available. This lines up with the total open-source philosophy, permitting scientists and designers to additional explore and develop upon its innovations.

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

A: The present method enables the model to first explore and generate its own reasoning patterns through unsupervised RL, and after that fine-tune these patterns with monitored approaches. Reversing the order might constrain the design's ability to find diverse reasoning courses, possibly limiting its general efficiency in tasks that gain from self-governing 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