Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
  • Sign in
N
nurseportal
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 9
    • Issues 9
    • 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
  • Carin Dransfield
  • nurseportal
  • Issues
  • #8

Closed
Open
Opened Feb 26, 2025 by Carin Dransfield@carindransfiel
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We have actually been tracking the explosive increase 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 household - from the early designs through DeepSeek V3 to the breakthrough R1. We also checked out the technical innovations that make R1 so unique on the planet of open-source AI.

The DeepSeek Ancestral Tree: From V3 to R1

DeepSeek isn't just a single model; it's a family of increasingly sophisticated AI systems. The advancement 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 inference, dramatically enhancing the processing time for each token. It also featured multi-head latent attention to reduce memory footprint.

DeepSeek V3:

This design presented FP8 training strategies, which helped drive down training costs by over 42.5% compared to previous iterations. FP8 is a less exact way to keep weights inside the LLMs however can considerably improve the memory footprint. However, training utilizing FP8 can normally be unstable, and it is hard to obtain the preferred training outcomes. Nevertheless, DeepSeek uses numerous tricks and attains remarkably stable FP8 training. V3 set the phase as a highly effective design that was already cost-efficient (with claims of being 90% more affordable than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the group then introduced R1-Zero, the very first reasoning-focused model. Here, the focus was on teaching the design not simply to generate responses but to "think" before answering. Using pure reinforcement knowing, the model was motivated to create intermediate thinking actions, for instance, taking extra time (frequently 17+ seconds) to overcome an easy problem like "1 +1."

The crucial innovation here was making use of group relative policy optimization (GROP). Instead of counting on a standard procedure benefit design (which would have needed annotating every step of the reasoning), GROP compares from the model. By sampling numerous potential answers and scoring them (using rule-based steps like precise match for math or verifying code outputs), the system discovers to favor reasoning that results in the correct result without the requirement for explicit supervision of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's not being watched technique produced thinking outputs that might be tough to read and even mix languages, the designers went back to the drawing board. They utilized the raw outputs from R1-Zero to generate "cold start" data and after that by hand 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 learning and monitored fine-tuning. The outcome is DeepSeek R1: a model that now produces understandable, coherent, and dependable thinking while still maintaining the performance and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most remarkable aspect of R1 (zero) is how it established thinking capabilities without specific guidance of the reasoning process. It can be even more enhanced by using cold-start information and supervised reinforcement finding out to produce legible reasoning on general tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling researchers and designers to examine and build upon its developments. Its cost efficiency is a significant selling point specifically when compared to closed-source designs (claimed 90% less expensive than OpenAI) that require huge compute budgets.

Novel Training Approach:

Instead of relying exclusively on annotated reasoning (which is both pricey and lengthy), the design was trained using an outcome-based technique. It started with quickly proven tasks, such as mathematics issues and coding workouts, where the accuracy of the final answer could be quickly determined.

By utilizing group relative policy optimization, the training procedure compares multiple generated answers to identify which ones meet the desired output. This relative scoring mechanism allows the model to learn "how to believe" even when intermediate reasoning is created in a freestyle way.

Overthinking?

A fascinating observation is that DeepSeek R1 often "overthinks" simple problems. For example, when asked "What is 1 +1?" it may spend nearly 17 seconds evaluating different scenarios-even thinking about binary representations-before concluding with the appropriate response. This self-questioning and verification procedure, although it might appear inefficient at very first look, might show advantageous in intricate tasks where much deeper reasoning is necessary.

Prompt Engineering:

Traditional few-shot triggering strategies, which have worked well for many chat-based designs, can really deteriorate performance with R1. The developers recommend 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 hints that may disrupt its internal thinking process.

Getting Going with R1

For those aiming to experiment:

Smaller variants (7B-8B) can work on consumer GPUs or even only CPUs


Larger versions (600B) require considerable compute resources


Available through major cloud service providers


Can be deployed locally via Ollama or vLLM


Looking Ahead

We're particularly captivated by numerous implications:

The capacity for oeclub.org this method to be used to other thinking domains


Influence on agent-based AI systems generally built on chat models


Possibilities for integrating with other guidance strategies


Implications for enterprise AI release


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

Open Questions

How will this impact the development of future reasoning designs?


Can this method be extended to less verifiable domains?


What are the ramifications for multi-modal AI systems?


We'll be viewing these advancements carefully, especially as the neighborhood starts to explore and develop upon these methods.

Resources

Join our Slack community for ongoing discussions and updates about DeepSeek and other AI developments. We're seeing fascinating 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 model is worthy of more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong design in the open-source neighborhood, the option eventually depends on your usage case. DeepSeek R1 emphasizes innovative thinking and an unique training approach that might be particularly valuable in tasks where verifiable reasoning is vital.

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

A: We ought to note in advance that they do use RL at the extremely least in the form of RLHF. It is most likely that models from major service providers that have reasoning capabilities already use something comparable to what DeepSeek has done here, but we can't make certain. It is likewise most 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 effective, can be less predictable and harder to control. DeepSeek's approach innovates by using RL in a reasoning-oriented manner, enabling the model to find out effective internal reasoning with only very little procedure annotation - a strategy that has proven appealing in spite of its intricacy.

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

A: DeepSeek R1's design stresses effectiveness by leveraging methods such as the mixture-of-experts approach, which triggers only a subset of criteria, to minimize calculate throughout reasoning. This focus on effectiveness is main to its cost advantages.

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

A: R1-Zero is the initial design that finds out reasoning exclusively through support knowing without specific procedure guidance. It produces intermediate reasoning steps that, while in some cases raw or mixed in language, act as the foundation for learning. DeepSeek R1, on the other hand, refines these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero supplies the without supervision "stimulate," and R1 is the refined, more meaningful variation.

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

A: Remaining current includes a mix of actively engaging with the research study community (like AISC - see link to join slack above), following preprint servers like arXiv, going to pertinent conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online neighborhoods and collective research study projects also plays a crucial role in keeping up with technical improvements.

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

A: The brief response is that it's too early to tell. DeepSeek R1's strength, nevertheless, depends on its robust thinking abilities and its efficiency. It is especially well matched for tasks that need verifiable logic-such as mathematical problem fixing, code generation, and structured decision-making-where intermediate reasoning can be evaluated and verified. Its open-source nature further enables tailored applications in research study and business settings.

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

A: The open-source and cost-effective design of DeepSeek R1 reduces the entry barrier for deploying innovative language designs. Enterprises and start-ups can leverage its innovative thinking for agentic applications ranging from automated code generation and customer support to data analysis. Its versatile release options-on consumer hardware for smaller sized models or cloud platforms for bigger ones-make it an attractive option to proprietary services.

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

A: While DeepSeek R1 has been observed to "overthink" simple problems by exploring numerous reasoning courses, it incorporates stopping criteria and assessment mechanisms to avoid limitless loops. The reinforcement discovering structure motivates merging 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 acted as the foundation for later versions. 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 style emphasizes performance and expense reduction, setting the phase for the thinking developments seen in R1.

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

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

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

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based thinking training and effective architecture-can be adapted to different domains. Researchers in fields like biomedical sciences can tailor these methods to build models that resolve their specific difficulties while gaining from lower calculate expenses and robust reasoning abilities. It is most likely that in deeply specialized fields, nevertheless, there will still be a requirement for monitored fine-tuning to get trustworthy outcomes.

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

A: The conversation suggested that the annotators mainly focused on domains where correctness is easily verifiable-such as mathematics and coding. This suggests that knowledge in technical fields was certainly leveraged to guarantee the accuracy and clearness of the thinking data.

Q13: Could the design get things wrong if it depends on its own outputs for finding out?

A: While the model is designed to enhance for correct answers through support knowing, there is constantly a risk of errors-especially in uncertain situations. However, by assessing multiple prospect outputs and enhancing those that lead to proven results, the training process decreases the possibility of propagating incorrect thinking.

Q14: How are hallucinations reduced in the model provided its iterative reasoning loops?

A: Using rule-based, proven tasks (such as mathematics and coding) helps anchor the model's thinking. By comparing numerous outputs and utilizing group relative policy optimization to enhance only those that yield the correct outcome, the design is directed 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 important to the application of mixture-of-experts and attention mechanisms in DeepSeek R1. However, the main focus is on using these methods to make it possible for efficient thinking rather than showcasing mathematical intricacy for its own sake.

Q16: Some stress that the design's "thinking" may not be as fine-tuned as human thinking. Is that a valid concern?

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

Q17: Which design variations appropriate for local deployment 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 models (for example, those with hundreds of billions of specifications) require substantially more computational resources and are better fit for cloud-based release.

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

A: DeepSeek R1 is supplied with open weights, implying that its model specifications are publicly available. This lines up with the general open-source viewpoint, allowing scientists and designers 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 not being watched support knowing?

A: The existing method permits the model to first explore and produce its own reasoning patterns through without supervision RL, and after that fine-tune these patterns with monitored approaches. Reversing the order might constrain the design's ability to discover varied thinking courses, potentially restricting its total performance in jobs that gain from self-governing idea.

Thanks for reading Deep Random Thoughts! Subscribe totally free to get 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: carindransfiel/nurseportal#8