Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
A
amrstudio
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • Steven Akers
  • amrstudio
  • Issues
  • #1

Closed
Open
Opened Feb 06, 2025 by Steven Akers@steven76q17407Maintainer
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've 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 family - from the early models through DeepSeek V3 to the development R1. We likewise checked out 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 just a single model; it's a household of progressively advanced AI systems. The evolution goes something like this:

DeepSeek V2:

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

DeepSeek V3:

This model presented FP8 training methods, which assisted drive down training costs by over 42.5% compared to previous versions. FP8 is a less accurate way to save weights inside the LLMs but can considerably enhance the memory footprint. However, training utilizing FP8 can usually be unstable, and it is hard to obtain the desired training results. Nevertheless, DeepSeek utilizes numerous techniques and attains incredibly stable FP8 training. V3 set the phase as an extremely effective model that was already economical (with claims of being 90% more affordable than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the group then presented R1-Zero, the first reasoning-focused model. Here, the focus was on teaching the design not simply to generate answers however to "believe" before addressing. Using pure reinforcement knowing, the design was motivated to produce intermediate thinking steps, for instance, taking extra time (often 17+ seconds) to work through a basic issue like "1 +1."

The essential innovation here was making use of group relative policy optimization (GROP). Instead of depending on a conventional process benefit design (which would have needed annotating every step of the reasoning), GROP compares several outputs from the design. By tasting numerous prospective answers and scoring them (utilizing rule-based steps like specific match for math or confirming code outputs), the system learns to favor reasoning that leads to the appropriate result without the requirement for explicit guidance of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised method produced thinking outputs that could be difficult to check out or perhaps blend languages, the developers went back to the drawing board. They used 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 thinking. This human post-processing was then utilized to fine-tune the original DeepSeek V3 design further-combining both reasoning-oriented reinforcement learning and supervised fine-tuning. The result is DeepSeek R1: a model that now produces understandable, meaningful, and reliable thinking while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most interesting aspect of R1 (no) is how it developed thinking capabilities without specific supervision of the reasoning process. It can be even more enhanced by utilizing cold-start information and supervised support finding out to produce legible on general tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, allowing scientists and developers to examine and build upon its innovations. Its expense efficiency is a major selling point specifically when compared to closed-source designs (claimed 90% cheaper than OpenAI) that need huge calculate budget plans.

Novel Training Approach:

Instead of relying entirely on annotated thinking (which is both pricey and time-consuming), the design was trained using an outcome-based technique. It started with easily verifiable tasks, such as math issues and coding exercises, where the accuracy of the last response could be quickly determined.

By using group relative policy optimization, the training procedure compares several produced responses to determine which ones satisfy the desired output. This relative scoring system allows the design to find out "how to believe" even when intermediate thinking is created in a freestyle way.

Overthinking?

An interesting observation is that DeepSeek R1 sometimes "overthinks" easy problems. For pediascape.science example, when asked "What is 1 +1?" it might invest almost 17 seconds examining different scenarios-even considering binary representations-before concluding with the right response. This self-questioning and verification process, although it might seem ineffective at first glimpse, could show useful in complicated tasks where much deeper thinking is required.

Prompt Engineering:

Traditional few-shot triggering strategies, which have actually worked well for numerous chat-based designs, can actually deteriorate performance with R1. The designers suggest utilizing direct problem statements with a zero-shot method that specifies the output format plainly. This makes sure that the model isn't led astray by extraneous examples or hints that might hinder its internal thinking process.

Starting with R1

For those aiming to experiment:

Smaller versions (7B-8B) can operate on customer GPUs and even just CPUs


Larger versions (600B) need considerable compute resources


Available through significant cloud companies


Can be deployed locally by means of Ollama or vLLM


Looking Ahead

We're especially fascinated by a number of implications:

The potential for this method to be applied to other thinking domains


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


Possibilities for integrating with other guidance methods


Implications for business AI release


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

Open Questions

How will this affect the development of future thinking designs?


Can this technique be extended to less proven domains?


What are the ramifications for multi-modal AI systems?


We'll be enjoying these advancements closely, particularly as the neighborhood starts to try out and yewiki.org develop upon these strategies.

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 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 short summary


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

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

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

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

A: We should note in advance that they do utilize RL at least in the form of RLHF. It is extremely likely that designs from major companies that have thinking abilities currently 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 monitored fine-tuning due to its stability and the ready availability of large annotated datasets. Reinforcement learning, although powerful, can be less predictable and harder to control. DeepSeek's method innovates by using RL in a reasoning-oriented way, enabling the design to find out reliable internal thinking with only minimal procedure annotation - a strategy that has proven promising regardless of its complexity.

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

A: DeepSeek R1's design stresses performance by leveraging strategies such as the mixture-of-experts approach, which activates only a subset of specifications, to lower compute throughout reasoning. This concentrate on effectiveness is main to its expense advantages.

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

A: R1-Zero is the initial model that discovers thinking solely through reinforcement knowing without explicit procedure guidance. It generates intermediate thinking actions that, while often raw or mixed in language, function as the foundation for knowing. DeepSeek R1, on the other hand, improves these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero supplies the not being watched "spark," and R1 is the refined, more meaningful variation.

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

A: Remaining current includes a combination of actively engaging with the research community (like AISC - see link to join slack above), following preprint servers like arXiv, attending relevant conferences and webinars, and participating in discussion groups and newsletters. Continuous engagement with online neighborhoods and collective research tasks likewise plays a key function in staying up to date with technical developments.

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

A: The brief response is that it's too early to inform. DeepSeek R1's strength, however, depends on its robust thinking capabilities and its performance. It is especially well matched for jobs that need proven logic-such as mathematical problem resolving, code generation, wiki.vst.hs-furtwangen.de and structured decision-making-where intermediate reasoning can be evaluated and verified. Its open-source nature further permits tailored applications in research and business settings.

Q7: forum.batman.gainedge.org What are the ramifications of DeepSeek R1 for enterprises and start-ups?

A: The open-source and affordable design of DeepSeek R1 decreases the entry barrier for releasing innovative language designs. Enterprises and start-ups can utilize its advanced reasoning for agentic applications ranging from automated code generation and customer assistance to information analysis. Its flexible release options-on consumer hardware for smaller designs or cloud platforms for bigger ones-make it an appealing alternative to exclusive options.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple issues by exploring multiple thinking courses, it includes stopping requirements and assessment systems to prevent unlimited loops. The reinforcement finding out framework motivates merging toward a verifiable output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and served as the structure for later models. 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 design stresses performance and expense reduction, setting the stage 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 include vision capabilities. Its design and training focus solely on language processing and reasoning.

Q11: Can experts in specialized fields (for instance, labs 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 adjusted to various domains. Researchers in fields like biomedical sciences can tailor these approaches to build designs that address their particular difficulties while gaining from lower compute expenses and robust reasoning abilities. It is most likely that in deeply specialized fields, however, there will still be a need for supervised fine-tuning to get reliable results.

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

A: The conversation showed that the annotators mainly concentrated on domains where accuracy is quickly verifiable-such as mathematics and coding. This suggests that expertise in technical fields was certainly leveraged to ensure the accuracy and clearness of the thinking data.

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

A: While the model is developed to enhance for right answers via support knowing, there is always a risk of errors-especially in uncertain situations. However, by assessing several prospect outputs and strengthening those that lead to proven results, the training process minimizes the likelihood of propagating incorrect thinking.

Q14: How are hallucinations decreased in the design offered its iterative thinking loops?

A: Using rule-based, proven jobs (such as mathematics and coding) assists anchor the model's thinking. By comparing multiple outputs and using group relative policy optimization to enhance just those that yield the appropriate outcome, the design is directed 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 utilizing these methods to enable efficient thinking instead of showcasing mathematical complexity 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 issue?

A: Early iterations like R1-Zero did produce raw and often hard-to-read reasoning. However, the subsequent refinement process-where human specialists curated and enhanced the thinking data-has significantly boosted the clarity and dependability of DeepSeek R1's internal thought procedure. While it remains a developing system, iterative training and feedback have caused significant enhancements.

Q17: Which design versions appropriate for local implementation on a laptop computer with 32GB of RAM?

A: For regional screening, a medium-sized model-typically in the series of 7B to 8B parameters-is advised. Larger models (for example, those with numerous billions of criteria) require substantially more computational resources and are better suited for cloud-based release.

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

A: DeepSeek R1 is provided with open weights, indicating that its model criteria are openly available. This lines up with the general open-source approach, enabling researchers and designers to further check out and build on its innovations.

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

A: The existing method permits the model to initially check out and produce its own reasoning patterns through not being watched RL, and after that refine these patterns with supervised methods. Reversing the order might constrain the model's capability to discover diverse reasoning courses, possibly restricting its total efficiency in tasks that gain from self-governing thought.

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: steven76q17407/amrstudio#1