Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in / Register
K
knightcomputers
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 57
    • Issues 57
    • 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
  • Adriana Wimmer
  • knightcomputers
  • Issues
  • #26

Closed
Open
Opened Apr 06, 2025 by Adriana Wimmer@adrianayit0282
  • Report abuse
  • New issue
Report abuse New issue

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

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

This was the foundation model which leveraged a mixture-of-experts architecture, where only a subset of professionals are used at reasoning, dramatically improving the processing time for each token. It likewise included multi-head latent attention to minimize memory footprint.

DeepSeek V3:

This design introduced FP8 training methods, which helped drive down training costs by over 42.5% compared to previous versions. FP8 is a less precise way to store weights inside the LLMs but can greatly improve the memory footprint. However, training using FP8 can typically be unstable, and it is difficult to obtain the preferred training outcomes. Nevertheless, DeepSeek uses several tricks and attains extremely steady FP8 training. V3 set the stage as an extremely efficient 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 very first reasoning-focused version. Here, the focus was on teaching the design not simply to generate responses however to "think" before addressing. Using pure reinforcement knowing, the model was encouraged to create intermediate reasoning steps, for instance, taking extra time (often 17+ seconds) to work through a simple issue like "1 +1."

The essential development here was the usage of group relative policy optimization (GROP). Instead of depending on a conventional process reward model (which would have needed annotating every step of the reasoning), GROP compares several outputs from the design. By sampling several possible responses and scoring them (using rule-based steps like specific match for mathematics or verifying code outputs), the system finds out to prefer thinking that causes the correct outcome without the requirement for explicit guidance of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's without supervision technique produced reasoning outputs that could be difficult to check out or even mix languages, the developers returned to the drawing board. They utilized the raw outputs from R1-Zero to generate "cold start" information and then by hand curated these examples to filter and enhance the quality of the reasoning. This human post-processing was then used to fine-tune the initial DeepSeek V3 design further-combining both reasoning-oriented reinforcement knowing and supervised fine-tuning. The outcome is DeepSeek R1: a model that now produces understandable, coherent, and reputable thinking while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most interesting aspect of R1 (zero) is how it established reasoning abilities without specific supervision of the thinking procedure. It can be further enhanced by utilizing cold-start data and monitored support finding out to produce readable reasoning on general jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, permitting scientists and designers to examine and construct upon its developments. Its cost effectiveness is a major selling point especially when compared to closed-source designs (claimed 90% cheaper than OpenAI) that require enormous calculate spending plans.

Novel Training Approach:

Instead of relying solely on annotated thinking (which is both costly and lengthy), the model was trained utilizing an outcome-based method. It started with easily proven tasks, such as math problems and coding exercises, where the accuracy of the final response could be quickly measured.

By utilizing group relative policy optimization, the training procedure compares numerous generated answers to determine which ones satisfy the wanted output. This relative scoring system enables the model to discover "how to think" even when intermediate reasoning is produced in a freestyle way.

Overthinking?

An intriguing observation is that DeepSeek R1 often "overthinks" easy problems. For example, when asked "What is 1 +1?" it may spend almost 17 seconds examining various scenarios-even considering binary representations-before concluding with the right response. This self-questioning and confirmation process, although it may seem inefficient initially look, might show beneficial in intricate tasks where deeper reasoning is necessary.

Prompt Engineering:

Traditional few-shot prompting techniques, which have actually worked well for numerous chat-based designs, can really degrade efficiency with R1. The designers advise utilizing direct issue declarations with a zero-shot approach that specifies the output format plainly. This makes sure that the model isn't led astray by extraneous examples or tips that may interfere with its internal thinking procedure.

Getting Going with R1

For those aiming to experiment:

Smaller variants (7B-8B) can work on customer GPUs or perhaps only CPUs


Larger variations (600B) need substantial calculate resources


Available through major cloud companies


Can be released in your area by means of Ollama or vLLM


Looking Ahead

We're especially intrigued by numerous ramifications:

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


Impact on agent-based AI systems typically built on chat designs


Possibilities for integrating with other supervision methods


Implications for business AI release


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

Open Questions

How will this impact the advancement 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 begins to experiment with and build on these strategies.

Resources

Join our Slack community for continuous conversations and updates about DeepSeek and other AI developments. We're seeing interesting applications currently emerging from our bootcamp individuals working with these designs.

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 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 usage case. DeepSeek R1 highlights advanced thinking and an unique training approach that may be particularly valuable in jobs where verifiable reasoning is vital.

Q2: Why did major suppliers like OpenAI decide for supervised fine-tuning rather than reinforcement learning (RL) like DeepSeek?

A: We should keep in mind in advance that they do use RL at the minimum in the type of RLHF. It is likely that models from major suppliers that have thinking capabilities currently use something comparable to what DeepSeek has actually done here, but we can't make certain. It is likewise likely that due to access to more resources, they favored monitored fine-tuning due to its stability and the prepared availability of large annotated datasets. Reinforcement learning, although powerful, can be less predictable and harder to manage. DeepSeek's technique innovates by using RL in a reasoning-oriented way, making it possible for the model to learn efficient internal thinking with only very little process annotation - a strategy that has shown appealing regardless of its complexity.

Q3: Did DeepSeek utilize test-time calculate strategies similar to those of OpenAI?

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

Q4: What is the difference 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 steps that, while often raw or blended in language, act as the foundation for learning. DeepSeek R1, on the other hand, refines these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero supplies the not being watched "stimulate," and R1 is the refined, more meaningful variation.

Q5: How can one remain updated with thorough, technical research study while managing a busy schedule?

A: Remaining present involves a mix 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 taking part in discussion groups and newsletters. Continuous engagement with online communities and collaborative research jobs 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 response is that it's prematurely to tell. DeepSeek R1's strength, nevertheless, depends on its robust reasoning abilities and its performance. It is especially well matched for jobs that require verifiable logic-such as mathematical issue fixing, code generation, and structured decision-making-where intermediate reasoning can be examined and validated. Its open-source nature further permits for tailored applications in research study and enterprise settings.

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

A: The open-source and cost-efficient design of DeepSeek R1 decreases the entry barrier for deploying innovative language designs. Enterprises and start-ups can utilize its advanced thinking for agentic applications ranging from automated code generation and client support to data analysis. Its versatile implementation options-on consumer hardware for smaller sized models or cloud platforms for bigger ones-make it an appealing alternative to exclusive solutions.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple problems by exploring numerous reasoning courses, it includes stopping criteria and examination systems to prevent boundless loops. The support discovering framework motivates convergence towards 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 foundation for later iterations. 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 stresses 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 incorporate vision capabilities. Its design and training focus solely on language processing and reasoning.

Q11: Can professionals in specialized fields (for example, labs dealing with remedies) use these methods to train domain-specific models?

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based thinking training and effective architecture-can be adjusted to numerous domains. Researchers in fields like biomedical sciences can tailor these approaches to develop models that resolve their specific challenges while gaining from lower calculate expenses and robust reasoning capabilities. It is likely that in deeply specialized fields, nevertheless, there will still be a need for supervised fine-tuning to get trusted outcomes.

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 concentrated on domains where correctness is quickly verifiable-such as mathematics and coding. This suggests that knowledge in technical fields was certainly leveraged to guarantee the precision and clarity of the .

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

A: While the model is developed to enhance for proper responses via reinforcement learning, there is always a danger of errors-especially in uncertain scenarios. However, by evaluating multiple candidate outputs and strengthening those that cause verifiable outcomes, the training procedure minimizes the probability of propagating inaccurate thinking.

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

A: The usage of rule-based, verifiable tasks (such as math and coding) assists anchor the model's reasoning. By comparing several outputs and utilizing group relative policy optimization to strengthen only those that yield the proper result, the model is directed far from creating unfounded or hallucinated details.

Q15: Does the design rely 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 allow effective thinking instead of showcasing mathematical complexity for pediascape.science its own sake.

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

A: Early models like R1-Zero did produce raw and sometimes hard-to-read thinking. However, the subsequent improvement process-where human specialists curated and improved the reasoning data-has considerably boosted the clarity and reliability of DeepSeek R1's internal idea process. While it remains an evolving system, iterative training and feedback have caused significant enhancements.

Q17: Which model versions are suitable for regional deployment on a laptop 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 significantly more computational resources and are better matched for cloud-based implementation.

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

A: DeepSeek R1 is offered with open weights, suggesting that its model specifications are openly available. This lines up with the overall open-source philosophy, permitting scientists and developers to more check out and build on its innovations.

Q19: What would happen if the order of training were reversed-starting with supervised fine-tuning before unsupervised support knowing?

A: The present technique allows the model to initially check out and produce its own reasoning patterns through unsupervised RL, and then improve these patterns with supervised methods. Reversing the order might constrain the design's ability to discover diverse thinking paths, potentially restricting its overall performance in jobs that gain from autonomous thought.

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: adrianayit0282/knightcomputers#26