Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • 1 145
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • 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
  • Dianne Palumbo
  • 145
  • Issues
  • #5

Closed
Open
Created Feb 09, 2025 by Dianne Palumbo@diannepalumbo8Owner

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 household - from the early designs through DeepSeek V3 to the development R1. We also checked out the technical developments that make R1 so unique in the world of open-source AI.

The DeepSeek Family Tree: From V3 to R1

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

DeepSeek V2:

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

DeepSeek V3:

This design presented FP8 training strategies, which assisted drive down training expenses by over 42.5% compared to previous versions. FP8 is a less exact method to store weights inside the LLMs but can considerably improve the memory footprint. However, training utilizing FP8 can typically be unstable, and it is difficult to obtain the desired training outcomes. Nevertheless, DeepSeek utilizes several techniques and attains incredibly steady FP8 training. V3 set the phase as a highly efficient model that was currently affordable (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 first reasoning-focused version. Here, the focus was on teaching the model not just to create answers however to "think" before responding to. Using pure support knowing, the design was motivated to create intermediate thinking actions, for instance, taking additional time (frequently 17+ seconds) to work through a simple problem like "1 +1."

The crucial innovation here was the use of group relative policy optimization (GROP). Instead of relying on a traditional procedure benefit model (which would have required annotating every action of the reasoning), GROP compares numerous outputs from the design. By sampling a number of potential responses and scoring them (utilizing rule-based steps like precise match for math or validating code outputs), the system learns to prefer reasoning that results in the appropriate result without the requirement for specific supervision of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised method produced reasoning outputs that could be hard to check out or perhaps blend languages, the developers went back to the drawing board. They utilized the raw outputs from R1-Zero to produce "cold start" data and then by hand curated these examples to filter and enhance the quality of the reasoning. This human post-processing was then used to fine-tune the initial DeepSeek V3 model further-combining both reasoning-oriented reinforcement knowing and monitored fine-tuning. The outcome is DeepSeek R1: a model that now produces understandable, meaningful, and trusted reasoning while still maintaining the effectiveness and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most interesting element of R1 (zero) is how it established reasoning capabilities without specific guidance of the reasoning process. It can be further enhanced by using cold-start information and supervised support learning to produce readable reasoning on basic jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling scientists and developers to and build upon its innovations. Its expense efficiency is a significant selling point specifically when compared to closed-source models (claimed 90% more affordable than OpenAI) that need enormous compute budgets.

Novel Training Approach:

Instead of relying exclusively on annotated reasoning (which is both pricey and time-consuming), the model was trained using an outcome-based approach. It began with easily proven tasks, such as mathematics problems and coding exercises, where the accuracy of the final response might be quickly measured.

By utilizing group relative policy optimization, the training process compares several produced responses to determine which ones fulfill the desired output. This relative scoring system permits the design to discover "how to think" even when intermediate thinking is generated in a freestyle manner.

Overthinking?

A fascinating observation is that DeepSeek R1 sometimes "overthinks" simple problems. For instance, when asked "What is 1 +1?" it may spend nearly 17 seconds assessing various scenarios-even considering binary representations-before concluding with the correct response. This self-questioning and verification procedure, although it might seem ineffective initially glance, might prove useful in intricate jobs where deeper reasoning is necessary.

Prompt Engineering:

Traditional few-shot prompting methods, which have worked well for numerous chat-based designs, can in fact degrade efficiency with R1. The designers suggest utilizing direct problem statements with a zero-shot technique that specifies the output format plainly. This makes sure that the design isn't led astray by extraneous examples or tips that may interfere with its internal reasoning procedure.

Beginning with R1

For those aiming to experiment:

Smaller variations (7B-8B) can work on customer GPUs or even only CPUs


Larger versions (600B) require significant compute resources


Available through significant cloud companies


Can be deployed locally through Ollama or vLLM


Looking Ahead

We're particularly interested by several ramifications:

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


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


Possibilities for integrating with other supervision strategies


Implications for business AI release


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

Open Questions

How will this impact the development of future reasoning models?


Can this method be extended to less proven domains?


What are the ramifications for multi-modal AI systems?


We'll be enjoying these advancements carefully, particularly as the neighborhood starts to explore and develop upon these techniques.

Resources

Join our Slack neighborhood for ongoing discussions and updates about DeepSeek and other AI developments. 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 brief summary


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

Q1: Which model should have more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong model in the open-source community, the choice ultimately depends on your use case. DeepSeek R1 stresses innovative thinking and an unique training technique that might be particularly important in jobs where proven reasoning is important.

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

A: We must keep in mind upfront that they do use RL at the very least in the type of RLHF. It is very likely that models from significant suppliers that have reasoning capabilities already utilize something similar to what DeepSeek has done here, however we can't make certain. It is likewise most likely that due to access to more resources, they preferred monitored fine-tuning due to its stability and the ready availability of big annotated datasets. Reinforcement knowing, although powerful, can be less predictable and harder to control. DeepSeek's method innovates by using RL in a reasoning-oriented way, allowing the design to discover efficient internal thinking with only very little process annotation - a technique that has proven promising regardless of its intricacy.

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

A: DeepSeek R1's style emphasizes efficiency by leveraging methods such as the mixture-of-experts method, which activates just a subset of criteria, to minimize compute during inference. This concentrate on effectiveness is main to its cost benefits.

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

A: R1-Zero is the preliminary design that learns reasoning exclusively through reinforcement learning without explicit procedure supervision. It generates intermediate thinking actions that, while in some cases raw or combined in language, act as the foundation for learning. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero offers the not being watched "trigger," and R1 is the refined, more coherent variation.

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

A: Remaining present involves a combination of actively engaging with the research study community (like AISC - see link to sign up with slack above), following preprint servers like arXiv, attending appropriate conferences and webinars, and participating in conversation groups and newsletters. Continuous engagement with online communities and collaborative research study projects likewise plays a key function in staying up to date with technical developments.

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

A: The short answer is that it's too early to tell. DeepSeek R1's strength, however, depends on its robust reasoning abilities and its performance. It is particularly well suited for jobs that need verifiable logic-such as mathematical problem solving, code generation, and structured decision-making-where intermediate reasoning can be examined and confirmed. Its open-source nature even more 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 affordable design of DeepSeek R1 lowers the entry barrier for deploying innovative language designs. Enterprises and start-ups can leverage its advanced reasoning for agentic applications ranging from automated code generation and consumer assistance to data analysis. Its flexible deployment options-on customer hardware for smaller sized designs or cloud platforms for larger ones-make it an appealing alternative to proprietary services.

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

A: While DeepSeek R1 has actually been observed to "overthink" basic problems by exploring multiple reasoning paths, it integrates stopping requirements and examination systems to prevent limitless loops. The reinforcement discovering structure motivates merging towards 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 functioned as the foundation for later iterations. It is developed on its own set of innovations-including the mixture-of-experts approach and FP8 training-and is not based on the Qwen architecture. Its style highlights effectiveness and cost reduction, setting the phase for the thinking developments seen in R1.

Q10: How does DeepSeek R1 perform on vision tasks?

A: DeepSeek R1 is a text-based design and does not integrate vision capabilities. Its design and training focus solely on language processing and thinking.

Q11: Can professionals in specialized fields (for example, laboratories 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 adapted to various domains. Researchers in fields like biomedical sciences can tailor these methods to develop designs that address their particular obstacles while gaining from lower calculate costs and robust thinking abilities. It is likely that in deeply specialized fields, nevertheless, there will still be a need for monitored fine-tuning to get reliable outcomes.

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

A: The conversation suggested that the annotators mainly focused on domains where accuracy is easily verifiable-such as math and coding. This suggests that know-how in technical fields was certainly leveraged to ensure the precision and clarity of the reasoning data.

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

A: While the design is created to optimize for appropriate answers via support learning, there is always a risk of errors-especially in uncertain circumstances. However, by evaluating multiple prospect outputs and reinforcing those that lead to proven outcomes, the training procedure decreases the possibility of propagating incorrect thinking.

Q14: How are hallucinations minimized in the model offered its iterative thinking loops?

A: Using rule-based, proven tasks (such as math and coding) assists anchor the design's reasoning. By comparing multiple outputs and utilizing group relative policy optimization to reinforce only those that yield the right result, the design is guided away from generating unfounded or hallucinated details.

Q15: Does the design depend on complex vector mathematics?

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

Q16: Some fret that the model's "thinking" may not be as improved as human thinking. 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 refinement process-where human professionals curated and hb9lc.org improved the thinking data-has substantially boosted the clarity and reliability of DeepSeek R1's internal idea procedure. While it remains an evolving system, iterative training and feedback have resulted in meaningful improvements.

Q17: Which model versions are appropriate for local release 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 recommended. Larger designs (for example, those with hundreds of billions of specifications) need significantly more computational resources and are better matched for cloud-based deployment.

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

A: DeepSeek R1 is provided with open weights, suggesting that its model parameters are publicly available. This lines up with the overall open-source philosophy, permitting researchers and developers to further check out and build on its developments.

Q19: What would take place if the order of training were reversed-starting with monitored fine-tuning before not being watched reinforcement knowing?

A: The existing technique allows the model to first check out and generate its own reasoning patterns through not being watched RL, and then fine-tune these patterns with supervised methods. Reversing the order might constrain the model's capability to find varied reasoning courses, potentially restricting its total performance in tasks that gain from autonomous idea.

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

Assignee
Assign to
Time tracking