Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
P
ptube
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 93
    • Issues 93
    • 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
  • Adolfo Whitlow
  • ptube
  • Issues
  • #80

Closed
Open
Opened May 30, 2025 by Adolfo Whitlow@adolfowhitlow
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've 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 family - from the early models through DeepSeek V3 to the breakthrough R1. We also explored the technical developments that make R1 so special worldwide of open-source AI.

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

This was the foundation model which leveraged a mixture-of-experts architecture, where just a subset of experts are utilized at reasoning, significantly improving the processing time for each token. It also included multi-head hidden attention to reduce memory footprint.

DeepSeek V3:

This design presented FP8 training techniques, which helped drive down training expenses by over 42.5% compared to previous models. FP8 is a less exact way to keep weights inside the LLMs however can greatly improve the memory footprint. However, training using FP8 can generally be unsteady, and it is tough to obtain the preferred training outcomes. Nevertheless, DeepSeek uses multiple techniques and attains extremely stable FP8 training. V3 set the phase as an extremely efficient design that was already cost-efficient (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 iteration. Here, the focus was on teaching the design not just to create responses however to "believe" before answering. Using pure support knowing, the design was encouraged to produce intermediate thinking steps, for example, taking extra time (frequently 17+ seconds) to work through an easy issue like "1 +1."

The crucial development here was using group relative policy optimization (GROP). Instead of counting on a standard process reward model (which would have required annotating every action of the reasoning), GROP compares multiple outputs from the model. By sampling a number of potential responses and scoring them (using rule-based steps like exact match for math or validating code outputs), the system learns to prefer reasoning that results in the appropriate outcome without the requirement for explicit supervision of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised method produced thinking outputs that might be tough to check out and even mix languages, the developers returned to the drawing board. They utilized the raw outputs from R1-Zero to create "cold start" data and after that 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 support knowing and supervised fine-tuning. The outcome is DeepSeek R1: a model that now produces legible, coherent, and reputable reasoning while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most remarkable element of R1 (no) is how it developed reasoning abilities without explicit supervision of the thinking process. It can be even more enhanced by utilizing cold-start information and supervised reinforcement learning to produce legible thinking on basic jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, allowing researchers and designers to inspect and build on its developments. Its cost efficiency is a significant selling point especially when compared to closed-source designs (claimed 90% more affordable than OpenAI) that need massive calculate budget plans.

Novel Training Approach:

Instead of relying exclusively on annotated thinking (which is both costly and time-consuming), the model was trained using an outcome-based approach. It started with quickly verifiable tasks, such as mathematics issues and coding exercises, where the accuracy of the last answer might be easily determined.

By utilizing group relative policy optimization, the training process compares multiple generated answers to determine which ones meet the preferred output. This relative scoring mechanism permits the design to find out "how to believe" even when intermediate reasoning is generated in a freestyle way.

Overthinking?

An interesting observation is that DeepSeek R1 in some cases "overthinks" basic issues. For instance, when asked "What is 1 +1?" it might spend nearly 17 seconds evaluating various scenarios-even considering binary representations-before concluding with the proper response. This self-questioning and confirmation process, although it may seem inefficient in the beginning glance, could prove advantageous in complicated tasks where deeper reasoning is needed.

Prompt Engineering:

Traditional few-shot prompting methods, which have actually worked well for many chat-based models, can in fact deteriorate performance with R1. The designers advise utilizing direct issue statements 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 hints that may interfere with its internal thinking process.

Getting Going with R1

For those aiming to experiment:

Smaller variants (7B-8B) can work on customer GPUs and even just CPUs


Larger variations (600B) require considerable compute resources


Available through significant cloud service providers


Can be released in your area through Ollama or vLLM


Looking Ahead

We're particularly captivated by numerous implications:

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


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


Possibilities for integrating with other guidance strategies


Implications for business AI deployment


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

Open Questions

How will this affect the development of future reasoning models?


Can this approach be reached less verifiable domains?


What are the implications for multi-modal AI systems?


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

Resources

Join our Slack community for ongoing conversations and updates about DeepSeek and other AI advancements. We're seeing remarkable 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 short 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 also a strong design in the open-source community, the option eventually depends upon your use case. DeepSeek R1 highlights advanced reasoning and an unique training method that might be especially valuable in tasks where proven logic is important.

Q2: Why did major suppliers like OpenAI choose for monitored fine-tuning instead of support knowing (RL) like DeepSeek?

A: We should keep in mind upfront that they do use RL at the minimum in the form of RLHF. It is most likely that designs from major service providers that have thinking abilities currently utilize something comparable to what DeepSeek has actually done here, however we can't make certain. It is also likely that due to access to more resources, they favored supervised fine-tuning due to its stability and the all set availability of large annotated datasets. Reinforcement knowing, although powerful, can be less foreseeable and harder to manage. DeepSeek's approach innovates by applying RL in a reasoning-oriented manner, allowing the design to find out effective internal reasoning with only very little process annotation - a method that has actually proven appealing in spite of its intricacy.

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

A: DeepSeek R1's design highlights performance by leveraging strategies such as the mixture-of-experts technique, which activates just a subset of specifications, to minimize compute throughout reasoning. This concentrate on effectiveness is main to its expense benefits.

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

A: R1-Zero is the preliminary model that learns reasoning solely through support knowing without specific process guidance. It creates intermediate thinking steps that, while often raw or combined in language, work as the structure for learning. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and gratisafhalen.be monitored fine-tuning. In essence, R1-Zero supplies the not being watched "trigger," and R1 is the sleek, more coherent variation.

Q5: How can one remain updated with in-depth, technical research study while managing a hectic schedule?

A: Remaining existing includes a mix of actively engaging with the research study community (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 collaborative research study jobs likewise plays a crucial role in keeping up 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, lies in its robust reasoning abilities and its efficiency. It is particularly well fit for jobs that need proven logic-such as mathematical problem fixing, code generation, and structured decision-making-where intermediate thinking can be examined and validated. Its open-source nature further permits tailored applications in research and business settings.

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

A: The open-source and affordable style of DeepSeek R1 reduces the entry barrier for releasing sophisticated language models. Enterprises and start-ups can leverage its sophisticated reasoning for agentic applications varying from automated code generation and consumer assistance to information analysis. Its flexible deployment options-on customer hardware for smaller designs or cloud platforms for larger ones-make it an appealing option to exclusive options.

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

A: While DeepSeek R1 has actually been observed to "overthink" basic issues by exploring several reasoning paths, it incorporates stopping criteria and examination mechanisms to avoid infinite loops. The support learning structure encourages merging toward a proven output, even in uncertain cases.

Q9: Is DeepSeek V3 completely 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 built 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 stresses efficiency and cost decrease, setting the stage for the thinking developments seen in R1.

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

A: DeepSeek R1 is a text-based model and does not incorporate vision abilities. Its style and training focus entirely on language processing and reasoning.

Q11: Can experts in specialized fields (for instance, labs working on treatments) apply 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 adapted to numerous domains. Researchers in fields like biomedical sciences can tailor these approaches to build models that address their particular obstacles while gaining from lower compute costs and robust reasoning abilities. It is most likely that in deeply specialized fields, however, there will still be a need for supervised fine-tuning to get reliable results.

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

A: The conversation indicated that the annotators mainly focused on domains where accuracy is quickly verifiable-such as math and coding. This suggests that proficiency in technical fields was certainly leveraged to ensure the precision and clearness of the reasoning information.

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

A: While the design is created to enhance for correct responses through reinforcement knowing, there is always a danger of errors-especially in uncertain scenarios. However, by assessing multiple prospect outputs and reinforcing those that result in proven outcomes, the training procedure decreases the probability of propagating inaccurate thinking.

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

A: Using rule-based, proven tasks (such as mathematics and coding) assists anchor the model's thinking. By comparing multiple outputs and utilizing group relative policy optimization to enhance just those that yield the appropriate result, the model 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 systems in DeepSeek R1. However, the main focus is on utilizing these methods to enable effective thinking rather than showcasing mathematical complexity for its own sake.

Q16: Some worry that the design's "thinking" might not be as refined as human reasoning. Is that a valid issue?

A: Early models like R1-Zero did produce raw and in some cases hard-to-read reasoning. However, the subsequent improvement process-where human experts curated and improved the thinking data-has significantly enhanced the and reliability of DeepSeek R1's internal idea procedure. While it remains a progressing system, iterative training and feedback have resulted in significant improvements.

Q17: Which design versions are ideal for local deployment on a laptop with 32GB of RAM?

A: For regional 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 criteria) need significantly more computational resources and are better suited for cloud-based implementation.

Q18: Is DeepSeek R1 "open source" or does it provide only open weights?

A: DeepSeek R1 is supplied with open weights, suggesting that its model specifications are publicly available. This lines up with the overall open-source approach, allowing researchers and designers to more explore and build upon its innovations.

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

A: The present technique allows the model to initially check out and generate its own thinking patterns through without supervision RL, and then improve these patterns with supervised methods. Reversing the order may constrain the model's capability to find diverse thinking courses, possibly limiting its overall efficiency in tasks that gain from self-governing idea.

Thanks for checking out Deep Random Thoughts! Subscribe for complimentary to receive 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: adolfowhitlow/ptube#80