Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C cjma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 44
    • Issues 44
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Alfred Bronner
  • cjma
  • Issues
  • #29

Closed
Open
Created Apr 04, 2025 by Alfred Bronner@alfredbronnerOwner

Understanding DeepSeek R1


We've been tracking the explosive increase 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 family - from the early designs through DeepSeek V3 to the development R1. We also checked out the technical developments that make R1 so special on the planet of open-source AI.

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

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

DeepSeek V3:

This design presented FP8 training strategies, which assisted drive down training costs by over 42.5% compared to previous models. FP8 is a less accurate way to store weights inside the LLMs however can significantly enhance the memory footprint. However, training using FP8 can usually be unsteady, and it is hard to obtain the desired training outcomes. Nevertheless, DeepSeek uses multiple techniques and attains remarkably stable FP8 training. V3 set the stage as a highly efficient design that was already economical (with claims of being 90% cheaper than some closed-source alternatives).

DeepSeek R1-Zero:

With V3 as the base, the group then introduced R1-Zero, the first reasoning-focused model. Here, the focus was on teaching the design not just to create responses but to "believe" before answering. Using pure reinforcement knowing, the model was encouraged to create intermediate thinking steps, for example, taking extra time (frequently 17+ seconds) to overcome a simple issue like "1 +1."

The essential development here was the usage of group relative policy optimization (GROP). Instead of counting on a standard procedure reward model (which would have required annotating every action of the reasoning), GROP compares multiple outputs from the model. By sampling several possible responses and scoring them (utilizing rule-based procedures like precise match for mathematics or confirming code outputs), the system discovers to favor thinking that causes the proper outcome without the requirement for specific guidance of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's without supervision approach produced reasoning outputs that might be difficult to check out and even blend languages, the developers went back to the drawing board. They used the raw outputs from R1-Zero to produce "cold start" information and then by hand curated these examples to filter and enhance the quality of the thinking. This human post-processing was then utilized to tweak the original DeepSeek V3 model further-combining both reasoning-oriented reinforcement knowing and supervised fine-tuning. The outcome is DeepSeek R1: a model that now produces legible, meaningful, and dependable reasoning while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most interesting element of R1 (no) is how it developed reasoning abilities without specific guidance of the reasoning procedure. It can be even more improved by utilizing cold-start data and monitored support learning to produce understandable reasoning on basic tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling scientists and developers to examine and disgaeawiki.info build on its innovations. Its cost performance is a significant selling point particularly when compared to closed-source models (claimed 90% more affordable than OpenAI) that require huge calculate budget plans.

Novel Training Approach:

Instead of relying entirely on annotated thinking (which is both expensive and time-consuming), the model was trained using an outcome-based method. It started with quickly verifiable tasks, such as mathematics issues and coding exercises, where the correctness of the last response might be quickly determined.

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

Overthinking?

An intriguing observation is that DeepSeek R1 in some cases "overthinks" easy issues. For instance, when asked "What is 1 +1?" it may spend nearly 17 seconds examining various scenarios-even considering binary representations-before concluding with the proper response. This self-questioning and confirmation process, although it might seem inefficient in the beginning look, might show helpful in complicated tasks where deeper reasoning is essential.

Prompt Engineering:

Traditional few-shot prompting strategies, which have actually worked well for numerous chat-based models, can in fact break down efficiency with R1. The designers advise using direct issue declarations with a zero-shot approach that defines the output format plainly. This guarantees that the model isn't led astray by extraneous examples or hints that may hinder its internal thinking procedure.

Getting Going with R1

For those aiming to experiment:

Smaller versions (7B-8B) can run on customer GPUs and even only CPUs


Larger versions (600B) require significant calculate resources


Available through significant cloud suppliers


Can be deployed in your area through Ollama or vLLM


Looking Ahead

We're especially fascinated by several implications:

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


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


Possibilities for integrating with other supervision techniques


Implications for enterprise AI deployment


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

Open Questions

How will this affect the development of future reasoning models?


Can this method be extended to less verifiable domains?


What are the implications for multi-modal AI systems?


We'll be seeing these advancements carefully, particularly as the neighborhood begins to experiment with and build on these strategies.

Resources

Join our Slack neighborhood for continuous conversations and updates about DeepSeek and other AI developments. We're seeing interesting applications currently emerging from our bootcamp participants 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 design deserves more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong design in the open-source community, the option eventually depends upon your usage case. DeepSeek R1 stresses innovative reasoning and an unique training approach that may be specifically important in jobs where proven logic is important.

Q2: Why did significant providers like OpenAI opt for monitored fine-tuning rather than reinforcement knowing (RL) like DeepSeek?

A: We must keep in mind upfront that they do utilize RL at least in the kind of RLHF. It is highly likely that designs from significant suppliers that have reasoning abilities 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 favored 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 setiathome.berkeley.edu more difficult to control. DeepSeek's technique innovates by using RL in a reasoning-oriented manner, allowing the design to learn efficient internal reasoning with only very little procedure annotation - a method that has actually proven promising in spite of its complexity.

Q3: Did DeepSeek utilize test-time compute methods similar to those of OpenAI?

A: DeepSeek R1's style by leveraging techniques such as the mixture-of-experts method, which triggers only a subset of parameters, to decrease calculate during reasoning. This focus on effectiveness is main to its cost benefits.

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

A: R1-Zero is the preliminary design that learns thinking solely through reinforcement learning without specific process guidance. It creates intermediate thinking actions that, while in some cases raw or combined in language, work as the foundation for knowing. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero supplies the not being watched "stimulate," and R1 is the sleek, more meaningful version.

Q5: How can one remain upgraded with in-depth, technical research study while handling a busy schedule?

A: Remaining present includes a combination of actively engaging with the research neighborhood (like AISC - see link to join slack above), following preprint servers like arXiv, garagesale.es going to appropriate conferences and webinars, and participating in discussion groups and newsletters. Continuous engagement with online communities and collective research study projects also plays an essential function in staying up to date with technical improvements.

Q6: In what use-cases does DeepSeek outshine 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 efficiency. It is particularly well matched for jobs that need verifiable logic-such as mathematical problem resolving, code generation, and structured decision-making-where intermediate thinking can be reviewed and verified. Its open-source nature even more enables tailored applications in research study and business settings.

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

A: The open-source and cost-efficient design of DeepSeek R1 lowers the entry barrier for releasing innovative language models. Enterprises and start-ups can take advantage of its innovative thinking for agentic applications varying from automated code generation and consumer support to information analysis. Its flexible implementation options-on consumer hardware for smaller models or cloud platforms for bigger ones-make it an appealing option to exclusive solutions.

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

A: While DeepSeek R1 has actually been observed to "overthink" basic problems by checking out numerous thinking courses, yewiki.org it includes stopping criteria and assessment systems to avoid infinite loops. The reinforcement finding out framework motivates convergence toward a proven output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and acted as the foundation for later models. It is constructed on its own set of innovations-including the mixture-of-experts method and FP8 training-and is not based on the Qwen architecture. Its design stresses effectiveness and expense decrease, setting the stage for the reasoning innovations seen in R1.

Q10: How does DeepSeek R1 carry out on vision jobs?

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

Q11: Can professionals in specialized fields (for instance, labs working on treatments) apply these methods 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 approaches to develop models that resolve 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 reliable outcomes.

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 concentrated on domains where correctness is quickly verifiable-such as mathematics and coding. This suggests that competence in technical fields was certainly leveraged to make sure the accuracy and clarity of the thinking information.

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

A: While the design is created to optimize for proper answers by means of support learning, there is always a threat of errors-especially in uncertain situations. However, systemcheck-wiki.de by evaluating several prospect outputs and strengthening those that lead to proven results, the training procedure minimizes the likelihood of propagating incorrect thinking.

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

A: The use of rule-based, verifiable jobs (such as math and coding) helps anchor the design's thinking. By comparing multiple outputs and utilizing group relative policy optimization to strengthen just those that yield the right outcome, the design is guided far from generating 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 systems in DeepSeek R1. However, the main focus is on utilizing these methods to allow effective thinking rather than showcasing mathematical complexity for its own sake.

Q16: Some stress that the design's "thinking" may not be as improved as human thinking. Is that a valid issue?

A: Early models like R1-Zero did produce raw and in some cases hard-to-read thinking. However, the subsequent refinement process-where human professionals curated and improved the thinking data-has substantially enhanced the clarity and reliability of DeepSeek R1's internal idea process. While it remains a developing system, iterative training and feedback have actually resulted in meaningful improvements.

Q17: Which model versions are ideal for regional release 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 specifications) require considerably more computational resources and are better suited for cloud-based deployment.

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

A: DeepSeek R1 is provided with open weights, suggesting that its model specifications are openly available. This lines up with the overall open-source approach, allowing researchers and developers to additional check out and build on its developments.

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

A: The current approach allows the model to initially explore and produce its own reasoning patterns through without supervision RL, and after that improve these patterns with supervised techniques. Reversing the order might constrain the design's capability to discover diverse thinking courses, possibly limiting its total performance in jobs that gain from self-governing idea.

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

Assignee
Assign to
Time tracking