Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
M
mierzala
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 8
    • Issues 8
    • 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
  • Darren McClinton
  • mierzala
  • Issues
  • #8

Closed
Open
Opened Feb 21, 2025 by Darren McClinton@darrenmcclinto
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We have actually 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 advancement of the DeepSeek family - from the early models through DeepSeek V3 to the development R1. We also explored the technical innovations that make R1 so unique in the world of open-source AI.

The DeepSeek Family Tree: From V3 to R1

DeepSeek isn't simply a single model; it's a household of increasingly advanced AI systems. The development goes something like this:

DeepSeek V2:

This was the foundation design which leveraged a mixture-of-experts architecture, where just a subset of experts are utilized at reasoning, drastically improving the processing time for each token. It also featured multi-head latent attention to minimize 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 store weights inside the LLMs however can considerably enhance the memory footprint. However, training utilizing FP8 can usually be unstable, and it is tough to obtain the desired training results. Nevertheless, DeepSeek uses multiple tricks and attains remarkably steady FP8 training. V3 set the stage as a highly efficient design that was already cost-efficient (with claims of being 90% more affordable than some closed-source alternatives).

DeepSeek R1-Zero:

With V3 as the base, the team then presented R1-Zero, the first reasoning-focused version. Here, the focus was on teaching the model not just to produce answers but to "believe" before answering. Using pure reinforcement learning, the design was encouraged to generate intermediate thinking steps, for example, taking additional time (frequently 17+ seconds) to overcome a simple problem like "1 +1."

The key innovation here was using group relative policy optimization (GROP). Instead of depending on a standard procedure benefit model (which would have needed annotating every step of the thinking), GROP compares multiple outputs from the design. By sampling a number of potential responses and scoring them (using rule-based steps like precise match for math or verifying code outputs), the system finds out to favor thinking that causes the correct outcome without the requirement for explicit supervision of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised method produced thinking outputs that could be hard to read or even 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 by hand curated these examples to filter and improve the quality of the reasoning. This human post-processing was then utilized to fine-tune the original DeepSeek V3 model further-combining both reasoning-oriented reinforcement knowing and monitored fine-tuning. The result is DeepSeek R1: a design that now produces readable, meaningful, and reliable thinking while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most remarkable element of R1 (zero) is how it developed reasoning abilities without specific guidance of the thinking procedure. It can be further enhanced by utilizing cold-start data and supervised support learning to produce understandable reasoning on general tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, allowing scientists and developers to examine and build on its developments. Its expense performance is a major selling point especially when compared to closed-source designs (claimed 90% more affordable than OpenAI) that need huge calculate spending plans.

Novel Training Approach:

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

By using group relative policy optimization, the training procedure compares numerous generated responses to identify which ones satisfy the wanted output. This relative scoring mechanism permits the model to discover "how to believe" even when intermediate reasoning is created in a freestyle way.

Overthinking?

An interesting observation is that DeepSeek R1 in some cases "overthinks" easy problems. For example, when asked "What is 1 +1?" it may invest almost 17 seconds assessing various scenarios-even considering binary representations-before concluding with the appropriate response. This self-questioning and confirmation process, although it might appear ineffective in the beginning look, could show beneficial in intricate jobs where deeper reasoning is essential.

Prompt Engineering:

Traditional few-shot prompting techniques, which have worked well for lots of chat-based models, can really deteriorate efficiency with R1. The designers advise using direct problem statements with a zero-shot approach that defines the output format plainly. This makes sure that the design isn't led astray by extraneous examples or tips that may disrupt its internal reasoning process.

Getting Going with R1

For fishtanklive.wiki those aiming to experiment:

Smaller versions (7B-8B) can operate on customer GPUs or even only CPUs


Larger versions (600B) need substantial compute resources


Available through major cloud companies


Can be released in your area via Ollama or vLLM


Looking Ahead

We're particularly captivated by several ramifications:

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


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


Possibilities for integrating with other supervision methods


Implications for enterprise AI release


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

Open Questions

How will this impact the development of future reasoning models?


Can this technique be reached less proven domains?


What are the implications for multi-modal AI systems?


We'll be viewing these advancements closely, particularly as the neighborhood starts to try out and build on these techniques.

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 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 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 likewise a strong model in the open-source neighborhood, the option eventually depends upon your use case. DeepSeek R1 stresses advanced reasoning and an unique training method that may be specifically important in tasks where proven logic is important.

Q2: Why did major service providers like OpenAI select monitored fine-tuning rather than reinforcement knowing (RL) like DeepSeek?

A: We must keep in mind upfront that they do use RL at the minimum in the kind of RLHF. It is very likely that designs from major service providers that have thinking capabilities currently utilize something similar to what DeepSeek has actually done here, however we can't make certain. It is also most likely that due to access to more resources, they preferred supervised fine-tuning due to its stability and the prepared availability of large annotated datasets. Reinforcement learning, although powerful, can be less foreseeable and harder to control. DeepSeek's technique innovates by applying RL in a reasoning-oriented way, allowing the design to learn efficient internal reasoning with only very little procedure annotation - a method that has proven promising regardless of its complexity.

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

A: DeepSeek R1's design stresses performance by leveraging methods such as the mixture-of-experts approach, which triggers just a subset of criteria, to decrease compute throughout inference. This focus on efficiency is main to its cost benefits.

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

A: R1-Zero is the initial model that learns thinking solely through support knowing without specific process supervision. It produces intermediate thinking steps that, while in some cases raw or combined in language, function as the structure for knowing. DeepSeek R1, on the other hand, improves these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero offers the unsupervised "stimulate," and R1 is the polished, more coherent variation.

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

A: Remaining current includes a mix of actively engaging with the research study neighborhood (like AISC - see link to sign up with slack above), following preprint servers like arXiv, attending pertinent conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online neighborhoods and collaborative research study tasks likewise plays an essential function in up to date with technical advancements.

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

A: The brief answer is that it's prematurely to tell. DeepSeek R1's strength, however, lies in its robust reasoning capabilities and its performance. It is especially well matched for tasks that need verifiable logic-such as mathematical problem resolving, code generation, and structured decision-making-where intermediate reasoning can be reviewed and validated. Its open-source nature further permits tailored applications in research and business settings.

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

A: The open-source and cost-effective style of DeepSeek R1 decreases the entry barrier for releasing advanced language models. Enterprises and start-ups can utilize its innovative reasoning for agentic applications varying from automated code generation and client assistance to information analysis. Its versatile implementation options-on consumer hardware for smaller sized models or cloud platforms for larger ones-make it an appealing option to proprietary services.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple problems by exploring multiple reasoning courses, it integrates stopping criteria and examination systems to prevent unlimited loops. The support learning framework motivates merging toward a verifiable 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 worked as the structure for later models. It is built 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 performance and expense decrease, setting the phase for the thinking developments 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 abilities. Its style and training focus exclusively on language processing and thinking.

Q11: Can professionals in specialized fields (for instance, laboratories working on remedies) use these approaches to train domain-specific designs?

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 resolve their specific challenges while gaining from lower calculate costs and robust reasoning abilities. It is 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 specialists in technical fields like computer technology or mathematics?

A: The discussion indicated that the annotators mainly focused on domains where correctness is easily verifiable-such as math and coding. This recommends that knowledge in technical fields was certainly leveraged to ensure the precision and clearness of the thinking data.

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

A: While the model is created to enhance for proper responses through support knowing, there is always a risk of errors-especially in uncertain situations. However, by assessing numerous candidate outputs and strengthening those that result in verifiable results, the training process decreases the possibility of propagating inaccurate thinking.

Q14: How are hallucinations lessened in the design offered its iterative reasoning loops?

A: Using rule-based, verifiable tasks (such as math and coding) helps anchor the design's thinking. By comparing several outputs and utilizing group relative policy optimization to reinforce just those that yield the appropriate outcome, the model is guided away from generating unfounded or hallucinated details.

Q15: Does the model depend on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are integral to the implementation of mixture-of-experts and attention systems in DeepSeek R1. However, the main focus is on utilizing these methods to make it possible for efficient thinking rather than showcasing mathematical intricacy for its own sake.

Q16: Some fret that the model's "thinking" may not be as fine-tuned as human thinking. Is that a valid issue?

A: Early iterations like R1-Zero did produce raw and in some cases hard-to-read thinking. However, the subsequent refinement process-where human experts curated and enhanced the thinking data-has substantially enhanced the clearness and dependability of DeepSeek R1's internal thought procedure. While it remains a developing system, iterative training and feedback have actually led to significant improvements.

Q17: Which design variants are ideal for local implementation 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 recommended. Larger designs (for example, those with numerous billions of criteria) require substantially more computational resources and are better fit for cloud-based implementation.

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

A: DeepSeek R1 is supplied with open weights, indicating that its design criteria are openly available. This lines up with the general open-source viewpoint, allowing researchers and designers to more explore and construct upon its developments.

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

A: The present technique permits the model to initially explore and generate its own reasoning patterns through unsupervised RL, and then improve these patterns with monitored techniques. Reversing the order might constrain the design's ability to find varied thinking paths, possibly restricting its general performance in tasks that gain from self-governing thought.

Thanks for reading Deep Random Thoughts! Subscribe 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: darrenmcclinto/mierzala#8