Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H healthcarestaff
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Carla Bermudez
  • healthcarestaff
  • Issues
  • #2

Closed
Open
Created Feb 07, 2025 by Carla Bermudez@carlabermudezMaintainer

Understanding DeepSeek R1


We have actually been tracking the explosive rise of DeepSeek R1, which has taken the AI world by storm in current weeks. In this session, we dove deep into the evolution of the DeepSeek household - from the early models through DeepSeek V3 to the breakthrough R1. We also explored the technical innovations that make R1 so unique in the world of open-source AI.

The DeepSeek Ancestral Tree: From V3 to R1

DeepSeek isn't simply a single model; it's a family 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 used at inference, considerably enhancing the processing time for each token. It likewise included multi-head latent attention to reduce memory footprint.

DeepSeek V3:

This design introduced FP8 training techniques, which assisted drive down training expenses by over 42.5% compared to previous versions. FP8 is a less precise method to save weights inside the LLMs however can greatly enhance the memory footprint. However, training using FP8 can usually be unstable, and it is hard to obtain the desired training results. Nevertheless, DeepSeek uses numerous techniques and attains extremely steady FP8 training. V3 set the stage as an extremely effective design that was already affordable (with claims of being 90% more affordable than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the team then introduced R1-Zero, the very first reasoning-focused model. Here, the focus was on teaching the model not just to generate responses however to "think" before addressing. Using pure reinforcement learning, the design was encouraged to generate intermediate thinking actions, for instance, taking additional time (often 17+ seconds) to resolve a simple problem like "1 +1."

The essential innovation here was making use of group relative policy optimization (GROP). Instead of depending on a traditional process benefit design (which would have required annotating every action of the thinking), GROP compares multiple outputs from the design. By tasting a number of potential responses and scoring them (using rule-based procedures like specific match for mathematics or confirming code outputs), the system finds out to favor thinking that leads to the right result without the need for explicit supervision of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised method produced thinking outputs that could be tough to check out or even blend languages, the designers went back to the drawing board. They used the raw outputs from R1-Zero to generate "cold start" data and then by hand curated these examples to filter and improve the quality of the reasoning. This human post-processing was then used to tweak the original DeepSeek V3 design further-combining both reasoning-oriented support knowing and monitored fine-tuning. The result is DeepSeek R1: a model that now produces legible, meaningful, and trustworthy thinking while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating element of R1 (zero) is how it developed thinking capabilities without explicit supervision of the thinking process. It can be even more enhanced by utilizing cold-start information and monitored reinforcement learning to produce readable thinking on general tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling scientists and designers to examine and develop upon its developments. Its expense performance is a significant selling point especially when compared to closed-source designs (claimed 90% more affordable than OpenAI) that need massive compute budgets.

Novel Training Approach:

Instead of relying entirely on annotated reasoning (which is both costly and lengthy), the design was trained using an outcome-based approach. It began with easily verifiable tasks, such as math problems and coding exercises, where the correctness of the final response might be quickly determined.

By utilizing group relative policy optimization, the training process compares multiple created answers to figure out which ones fulfill the wanted output. This relative scoring system enables the design to find out "how to believe" even when intermediate thinking is produced in a freestyle manner.

Overthinking?

A fascinating observation is that DeepSeek R1 often "overthinks" simple issues. For instance, when asked "What is 1 +1?" it might spend nearly 17 seconds assessing different scenarios-even considering binary representations-before concluding with the correct answer. This self-questioning and verification process, although it may appear inefficient initially glimpse, might show advantageous in complex jobs where much deeper reasoning is needed.

Prompt Engineering:

Traditional few-shot triggering methods, which have actually worked well for many chat-based designs, can in fact deteriorate performance with R1. The designers suggest using direct issue declarations with a zero-shot approach that specifies the output format plainly. This ensures that the design isn't led astray by extraneous examples or surgiteams.com hints that might interfere with its internal reasoning procedure.

Beginning with R1

For those aiming to experiment:

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


Larger versions (600B) need considerable calculate resources


Available through major cloud suppliers


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


Looking Ahead

We're particularly fascinated by several implications:

The capacity for this technique to be used to other thinking domains


Effect on agent-based AI systems generally developed on chat designs


Possibilities for integrating with other guidance techniques


Implications for enterprise AI deployment


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

Open Questions

How will this affect the development of future reasoning models?


Can this method be reached less proven domains?


What are the implications for multi-modal AI systems?


We'll be watching these advancements carefully, particularly as the community starts to experiment with and higgledy-piggledy.xyz develop upon these methods.

Resources

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

A: While Qwen2.5 is also a strong model in the open-source neighborhood, the option ultimately depends upon your usage case. DeepSeek R1 stresses innovative thinking and an unique training approach that might be especially important in tasks where verifiable reasoning is critical.

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

A: We must note upfront that they do use RL at the very least in the type of RLHF. It is most likely that models from significant suppliers that have reasoning abilities currently use something similar to what DeepSeek has actually done here, but 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 ready availability of big annotated datasets. Reinforcement learning, although effective, can be less predictable and more difficult to manage. DeepSeek's technique innovates by using RL in a reasoning-oriented manner, enabling the design to discover efficient internal reasoning with only very little process annotation - a technique that has proven promising regardless of its complexity.

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

A: DeepSeek R1's style stresses effectiveness by leveraging strategies such as the mixture-of-experts technique, which triggers just a subset of criteria, to minimize calculate throughout reasoning. This concentrate on efficiency is main to its cost advantages.

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

A: R1-Zero is the initial design that finds out thinking entirely through support learning without specific process guidance. It creates intermediate thinking steps that, while often raw or combined in language, work as the structure for knowing. DeepSeek R1, on the other hand, refines these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero offers the without supervision "trigger," and R1 is the polished, more meaningful variation.

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

A: Remaining present includes a mix of actively engaging with the research neighborhood (like AISC - see link to join slack above), following preprint servers like arXiv, going to appropriate conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online communities and collective research study projects also plays a key function in staying up to date with technical advancements.

Q6: In what use-cases does DeepSeek surpass models like O1?

A: The short response is that it's prematurely to tell. DeepSeek R1's strength, however, lies in its robust thinking abilities and its performance. It is especially well suited for jobs that require proven logic-such as mathematical problem resolving, code generation, and structured decision-making-where intermediate reasoning can be evaluated and verified. Its open-source nature even more permits tailored applications in research study and enterprise settings.

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

A: The open-source and cost-efficient design of DeepSeek R1 reduces the entry barrier for deploying innovative language models. Enterprises and start-ups can utilize its sophisticated thinking for agentic applications ranging from automated code generation and consumer assistance to data analysis. Its flexible release options-on consumer hardware for smaller sized models or cloud platforms for bigger ones-make it an attractive alternative 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" basic issues by exploring numerous reasoning courses, it incorporates stopping requirements and examination systems to avoid limitless loops. The reinforcement learning structure motivates convergence towards a proven 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 functioned as the structure for later iterations. It is constructed on its own set of innovations-including the mixture-of-experts technique and FP8 training-and is not based on the Qwen architecture. Its style stresses performance and cost reduction, setting the stage for the thinking innovations 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 style and training focus entirely on language processing and thinking.

Q11: Can experts in specialized fields (for example, labs dealing with remedies) apply these approaches to train domain-specific models?

A: Yes. The developments behind DeepSeek R1-such as its outcome-based thinking training and efficient architecture-can be adjusted to numerous domains. Researchers in fields like biomedical sciences can tailor these methods to develop designs that address their specific obstacles while gaining from lower compute expenses and robust thinking abilities. It is likely that in deeply specialized fields, however, higgledy-piggledy.xyz there will still be a need for monitored fine-tuning to get dependable outcomes.

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

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

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

A: While the model is created to optimize for proper answers through support learning, there is constantly a threat of errors-especially in uncertain circumstances. However, by evaluating numerous prospect outputs and reinforcing those that lead to proven results, the training procedure minimizes the probability of propagating inaccurate reasoning.

Q14: How are hallucinations reduced in the model given its iterative thinking loops?

A: The use of rule-based, verifiable jobs (such as mathematics and coding) assists anchor the model's reasoning. By comparing several outputs and using group relative policy optimization to enhance just those that yield the proper result, the model is guided away from producing unproven or hallucinated details.

Q15: Does the model rely on complex vector mathematics?

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

Q16: Some stress that the model's "thinking" may not be as refined as human reasoning. Is that a valid concern?

A: Early models like R1-Zero did produce raw and sometimes hard-to-read thinking. However, the subsequent improvement process-where human professionals curated and improved the thinking data-has significantly boosted the clearness and dependability of DeepSeek R1's internal idea procedure. While it remains a developing system, iterative training and feedback have actually led to meaningful enhancements.

Q17: Which design variants appropriate for regional deployment on a laptop with 32GB of RAM?

A: For local screening, a medium-sized model-typically in the range of 7B to 8B parameters-is recommended. Larger designs (for example, those with numerous billions of specifications) need significantly more computational resources and are better fit for cloud-based implementation.

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

A: DeepSeek R1 is provided with open weights, implying that its design parameters are publicly available. This aligns with the overall open-source philosophy, enabling researchers and developers to more explore and develop upon its developments.

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

A: The present method enables the design to initially check out and generate its own thinking patterns through not being watched RL, and then improve these patterns with monitored methods. Reversing the order might constrain the model's capability to find diverse reasoning courses, possibly restricting its general performance in tasks that gain from autonomous thought.

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

Assignee
Assign to
Time tracking