Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
  • Sign in / Register
L
letts
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 12
    • Issues 12
    • List
    • Boards
    • 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
  • Angus Gagnon
  • letts
  • Issues
  • #12

Something went wrong while fetching related merge requests.
Closed
Open
Opened 1 month ago by Angus Gagnon@angusgagnon37
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've been tracking the explosive increase of DeepSeek R1, which has actually taken the AI world by storm in current weeks. In this session, we dove deep into the evolution of the DeepSeek family - from the early models through DeepSeek V3 to the advancement R1. We likewise 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 just a single model; it's a household of significantly sophisticated AI systems. The development goes something like this:

DeepSeek V2:

This was the structure design which leveraged a mixture-of-experts architecture, where just a subset of experts are used at inference, considerably improving the processing time for each token. It likewise included multi-head hidden attention to reduce memory footprint.

DeepSeek V3:

This model presented FP8 training strategies, which helped drive down training costs by over 42.5% compared to previous models. FP8 is a less precise way to keep weights inside the LLMs but can considerably improve the memory footprint. However, training using FP8 can typically be unstable, and it is difficult to obtain the wanted training results. Nevertheless, DeepSeek uses numerous tricks and attains remarkably stable FP8 training. V3 set the stage as a highly effective 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 presented R1-Zero, the very first reasoning-focused model. Here, the focus was on teaching the design not simply to create answers however to "think" before addressing. Using pure reinforcement learning, the design was motivated to create intermediate reasoning steps, for instance, taking extra time (typically 17+ seconds) to resolve a simple issue like "1 +1."

The crucial innovation here was the usage of group relative policy optimization (GROP). Instead of counting on a traditional procedure reward model (which would have required annotating every step of the thinking), GROP compares multiple outputs from the model. By sampling several possible answers and scoring them (using rule-based steps like exact match for math or verifying code outputs), the system finds out to favor thinking that results in the correct outcome without the need for specific supervision of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised technique produced thinking outputs that could be hard to read or perhaps mix languages, the developers went back to the drawing board. They used the raw outputs from R1-Zero to create "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 tweak the original DeepSeek V3 model further-combining both reasoning-oriented reinforcement learning and supervised fine-tuning. The result is DeepSeek R1: a model 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 (zero) is how it established reasoning abilities without explicit supervision of the thinking process. It can be even more enhanced by utilizing cold-start information and monitored support learning to produce understandable reasoning on basic tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, permitting researchers and designers to examine and construct upon its developments. Its expense efficiency is a significant selling point especially when compared to closed-source designs (claimed 90% less expensive than OpenAI) that need huge compute budgets.

Novel Training Approach:

Instead of relying solely on annotated thinking (which is both costly and time-consuming), the design was trained utilizing an outcome-based method. It started with easily verifiable jobs, such as math problems and coding workouts, where the correctness of the final response might be easily determined.

By utilizing group relative policy optimization, the training process compares numerous produced responses to identify which ones fulfill the desired output. This relative scoring mechanism enables the model to learn "how to believe" even when intermediate thinking is created in a freestyle manner.

Overthinking?

A fascinating observation is that DeepSeek R1 sometimes "overthinks" easy problems. For instance, when asked "What is 1 +1?" it might invest nearly 17 seconds evaluating different scenarios-even considering binary representations-before concluding with the proper answer. This self-questioning and verification procedure, although it may seem inefficient at very first glimpse, might prove helpful in intricate tasks where much deeper reasoning is required.

Prompt Engineering:

Traditional few-shot triggering methods, which have worked well for lots of chat-based designs, can actually degrade performance with R1. The developers advise utilizing 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 tips that might hinder its internal thinking process.

Starting with R1

For those aiming to experiment:

Smaller versions (7B-8B) can work on consumer GPUs and even only CPUs


Larger versions (600B) need significant compute resources


Available through major cloud companies


Can be deployed locally through Ollama or vLLM


Looking Ahead

We're especially intrigued by several ramifications:

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


Influence on agent-based AI systems traditionally developed on chat models


Possibilities for integrating with other supervision techniques


Implications for enterprise AI release


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


Can this method be reached 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 explore and build on these strategies.

Resources

Join our Slack community for ongoing discussions and updates about DeepSeek and other AI advancements. We're seeing remarkable applications currently emerging from our bootcamp participants 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 is worthy of more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong model in the open-source neighborhood, the option ultimately depends on your usage case. DeepSeek R1 emphasizes sophisticated thinking and a novel training method that may be specifically valuable in jobs where proven reasoning is crucial.

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

A: We ought to keep in mind in advance that they do use RL at the really least in the kind of RLHF. It is very most likely that models from significant companies 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 monitored fine-tuning due to its stability and the all set availability of big annotated datasets. Reinforcement knowing, although effective, can be less foreseeable and more difficult to control. DeepSeek's approach innovates by applying RL in a reasoning-oriented manner, enabling the model to learn efficient internal thinking with only very little process annotation - a technique that has actually proven appealing regardless of its complexity.

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

A: DeepSeek R1's design stresses effectiveness by leveraging techniques such as the mixture-of-experts technique, which activates only a subset of specifications, to decrease compute throughout inference. This focus on performance is main to its expense advantages.

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

A: R1-Zero is the preliminary design that discovers thinking solely through reinforcement learning without specific process supervision. It produces intermediate reasoning actions that, while in some cases raw or mixed in language, act as the structure for knowing. DeepSeek R1, on the other hand, wiki.snooze-hotelsoftware.de refines these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero offers the without supervision "stimulate," and R1 is the sleek, more meaningful variation.

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

A: Remaining existing involves a combination of actively engaging with the research community (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 tasks likewise plays an essential function in staying up to date with technical advancements.

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

A: The brief answer is that it's prematurely to inform. DeepSeek R1's strength, however, depends on its robust reasoning capabilities and its performance. It is particularly well suited for jobs that require verifiable logic-such as mathematical problem solving, code generation, and structured decision-making-where intermediate thinking can be reviewed and validated. Its open-source nature further enables 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 design of DeepSeek R1 decreases the entry barrier for releasing advanced language designs. Enterprises and start-ups can leverage its sophisticated thinking for agentic applications varying from automated code generation and consumer assistance to information analysis. Its versatile implementation options-on consumer hardware for smaller sized designs or cloud platforms for larger ones-make it an attractive option to proprietary services.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple issues by checking out numerous reasoning paths, it incorporates stopping criteria and assessment systems to prevent infinite loops. The reinforcement learning framework encourages merging towards a verifiable output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and worked as the foundation for later versions. It is developed on its own set of innovations-including the mixture-of-experts technique and FP8 training-and is not based on the Qwen architecture. Its design emphasizes performance and cost reduction, setting the stage for the seen in R1.

Q10: How does DeepSeek R1 perform on vision jobs?

A: DeepSeek R1 is a text-based design and does not incorporate vision capabilities. Its style and training focus exclusively on language processing and reasoning.

Q11: Can professionals in specialized fields (for example, laboratories working on treatments) use these methods to train domain-specific models?

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

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

A: The discussion showed that the annotators mainly focused on domains where accuracy is quickly verifiable-such as mathematics and coding. This recommends that know-how in technical fields was certainly leveraged to ensure the precision and clarity of the thinking information.

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

A: While the model is designed to enhance for proper answers through support learning, there is always a risk of errors-especially in uncertain scenarios. However, by examining several prospect outputs and strengthening those that cause verifiable outcomes, the training procedure minimizes the probability of propagating inaccurate reasoning.

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

A: Making use of rule-based, verifiable jobs (such as mathematics and coding) assists anchor the model's reasoning. By comparing numerous outputs and utilizing group relative policy optimization to strengthen only those that yield the right outcome, the model is assisted away from creating unfounded or hallucinated details.

Q15: Does the model count on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are essential to the execution of mixture-of-experts and attention systems in DeepSeek R1. However, the main focus is on using these techniques to enable efficient reasoning rather than showcasing mathematical intricacy for its own sake.

Q16: Some worry that the model's "thinking" might not be as fine-tuned as human thinking. Is that a valid concern?

A: Early versions like R1-Zero did produce raw and sometimes hard-to-read thinking. However, the subsequent refinement process-where human specialists curated and enhanced the reasoning data-has considerably improved the clarity and dependability of DeepSeek R1's internal thought process. While it remains a progressing system, iterative training and feedback have actually led to meaningful enhancements.

Q17: Which model variations are suitable for regional implementation on a laptop with 32GB of RAM?

A: For local screening, a medium-sized model-typically in the series of 7B to 8B parameters-is advised. Larger models (for instance, those with numerous billions of specifications) need significantly more computational resources and are much better suited for cloud-based release.

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

A: DeepSeek R1 is provided with open weights, suggesting that its design criteria are openly available. This aligns with the overall open-source philosophy, allowing scientists and developers to further check out and construct upon its developments.

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

A: The current method allows the design to first check out and generate its own thinking patterns through unsupervised RL, and then refine these patterns with supervised methods. Reversing the order may constrain the model's capability to find diverse thinking paths, potentially restricting its general performance in jobs that gain from self-governing thought.

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

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
None
Milestone
None
Assign milestone
None
Time tracking
No estimate or time spent
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Confidentiality
Not confidential
Lock issue
Unlocked
participants
Reference: angusgagnon37/letts#12