Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
  • Sign in / Register
C
constructionproject-360
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 31
    • Issues 31
    • List
    • Boards
    • 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
  • Albertha Old
  • constructionproject-360
  • Issues
  • #27

Something went wrong while fetching related merge requests.
Closed
Open
Opened 1 month ago by Albertha Old@alberthaold46
  • 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 recent weeks. In this session, we dove deep into the evolution of the DeepSeek family - from the early models through DeepSeek V3 to the advancement R1. We likewise checked out the technical innovations that make R1 so unique on the planet of open-source AI.

The DeepSeek Family Tree: From V3 to R1

DeepSeek isn't just a single design; it's a household of significantly advanced AI systems. The advancement goes something like this:

DeepSeek V2:

This was the structure design which leveraged a mixture-of-experts architecture, where only a subset of professionals are utilized at inference, considerably enhancing the processing time for each token. It also featured multi-head hidden attention to lower memory footprint.

DeepSeek V3:

This design introduced FP8 training methods, which assisted drive down training costs by over 42.5% compared to previous iterations. FP8 is a less exact method to keep weights inside the LLMs but can considerably improve the memory footprint. However, training using FP8 can generally be unstable, and it is difficult to obtain the wanted training results. Nevertheless, DeepSeek utilizes numerous techniques and attains remarkably steady 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 team then introduced R1-Zero, the very first reasoning-focused iteration. Here, the focus was on teaching the model not just to create responses however to "think" before addressing. Using pure support knowing, the design was motivated to generate intermediate reasoning steps, for example, taking extra time (frequently 17+ seconds) to overcome an easy issue like "1 +1."

The key development here was using group relative policy optimization (GROP). Instead of relying on a traditional procedure benefit model (which would have required annotating every step of the thinking), GROP compares several outputs from the design. By tasting a number of possible responses and scoring them (utilizing rule-based steps like specific match for mathematics or validating code outputs), the system discovers to prefer thinking that results in the appropriate outcome without the need for specific supervision of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised method produced thinking outputs that could be hard to check out and even mix languages, the designers went back to the drawing board. They used the raw outputs from R1-Zero to produce "cold start" information and after that manually curated these examples to filter and improve the quality of the thinking. This human post-processing was then used to tweak the initial DeepSeek V3 design further-combining both reasoning-oriented reinforcement learning and supervised fine-tuning. The outcome is DeepSeek R1: a design that now produces legible, coherent, and reliable thinking while still maintaining the performance and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most remarkable element of R1 (no) is how it developed reasoning capabilities without specific guidance of the reasoning procedure. It can be even more improved by utilizing cold-start information and monitored support finding out to produce readable reasoning on basic tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, allowing scientists and designers to inspect and build on its developments. Its cost efficiency is a major selling point particularly when compared to closed-source designs (claimed 90% cheaper than OpenAI) that need huge compute spending plans.

Novel Training Approach:

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

By utilizing group relative policy optimization, the training process compares numerous produced responses to figure out which ones meet the desired output. This relative scoring system enables the model to learn "how to think" even when intermediate thinking is 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 invest almost 17 seconds evaluating various scenarios-even thinking about binary representations-before concluding with the appropriate response. This self-questioning and confirmation process, although it might appear inefficient in the beginning look, might show helpful in complicated jobs where much deeper thinking is essential.

Prompt Engineering:

Traditional few-shot triggering methods, which have actually worked well for numerous chat-based models, can in fact degrade efficiency with R1. The designers recommend using direct problem statements with a zero-shot method that specifies the output format plainly. This ensures that the design isn't led astray by extraneous examples or hints that might interfere with its internal reasoning process.

Starting with R1

For those aiming to experiment:

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


Larger variations (600B) need significant calculate resources


Available through major cloud suppliers


Can be deployed locally through Ollama or vLLM


Looking Ahead

We're particularly intrigued by numerous ramifications:

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


Impact on agent-based AI systems typically built on chat models


Possibilities for integrating with other guidance techniques


Implications for business AI deployment


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

Open Questions

How will this impact the development of future thinking designs?


Can this method be encompassed less proven domains?


What are the implications for multi-modal AI systems?


We'll be seeing these developments carefully, especially as the community starts to explore and develop upon these methods.

Resources

Join our Slack neighborhood for ongoing conversations and updates about DeepSeek and other AI developments. We're seeing interesting applications currently emerging from our bootcamp participants dealing 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 neighborhood, the option eventually depends on your usage case. DeepSeek R1 stresses innovative thinking and an unique training technique that may be specifically valuable in tasks where verifiable reasoning is critical.

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

A: We need to note in advance that they do use RL at the minimum in the type of RLHF. It is really likely that designs from major service providers that have reasoning capabilities currently use something comparable 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 favored supervised fine-tuning due to its stability and the ready availability of big annotated datasets. Reinforcement knowing, although effective, can be less foreseeable and more difficult to manage. DeepSeek's method innovates by using RL in a reasoning-oriented way, allowing the model to find out reliable internal reasoning with only very little procedure annotation - a strategy that has proven promising despite its intricacy.

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

A: DeepSeek R1's design stresses effectiveness by leveraging techniques such as the mixture-of-experts method, which activates just a subset of criteria, to decrease calculate during inference. This concentrate on performance is main to its cost benefits.

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

A: R1-Zero is the preliminary model that finds out thinking exclusively through support knowing without specific process guidance. It produces intermediate reasoning steps that, while in some cases raw or mixed in language, act as the structure for learning. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero offers the unsupervised "stimulate," and R1 is the polished, more meaningful variation.

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

A: Remaining current involves a combination of actively engaging with the research community (like AISC - see link to join slack above), following preprint servers like arXiv, participating in pertinent conferences and webinars, and taking part in conversation groups and newsletters. Continuous engagement with online neighborhoods and collaborative research study tasks likewise plays an essential function in keeping up with technical developments.

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

A: The brief response is that it's prematurely to tell. DeepSeek R1's strength, however, depends on its robust thinking abilities and its performance. It is especially well matched for tasks that require proven logic-such as mathematical issue resolving, code generation, and structured decision-making-where intermediate reasoning can be reviewed and validated. Its open-source nature further permits for 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-efficient design of DeepSeek R1 reduces the entry barrier for releasing sophisticated language designs. Enterprises and start-ups can leverage its sophisticated reasoning for agentic applications ranging from automated code generation and consumer assistance to data analysis. Its flexible release options-on customer hardware for smaller designs or cloud platforms for bigger ones-make it an attractive alternative to proprietary services.

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

A: While DeepSeek R1 has actually been observed to "overthink" easy issues by exploring numerous thinking courses, it incorporates stopping requirements and evaluation mechanisms to avoid unlimited loops. The support learning framework encourages merging 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 served as the foundation 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 emphasizes effectiveness and expense reduction, setting the phase for the thinking developments seen in R1.

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

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

Q11: Can specialists in specialized fields (for example, labs dealing with cures) apply these techniques to train domain-specific designs?

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based reasoning training and efficient architecture-can be adjusted to numerous domains. Researchers in fields like biomedical sciences can tailor these techniques to develop models that resolve their specific obstacles while gaining from lower compute costs and robust reasoning abilities. It is most likely that in deeply specialized fields, nevertheless, there will still be a need for monitored fine-tuning to get dependable results.

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

A: The discussion indicated that the annotators mainly concentrated on domains where correctness is quickly verifiable-such as math and coding. This suggests that expertise in technical fields was certainly leveraged to guarantee the precision and clarity of the reasoning data.

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

A: While the design is created to enhance for proper answers through support knowing, there is constantly a risk of errors-especially in uncertain scenarios. However, by examining numerous candidate outputs and strengthening those that result in proven outcomes, the training process decreases the likelihood of propagating incorrect thinking.

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

A: Using rule-based, verifiable jobs (such as mathematics and larsaluarna.se coding) helps anchor the design's reasoning. By comparing several outputs and using group relative policy optimization to reinforce only those that yield the right result, the design is directed far from creating unproven or hallucinated details.

Q15: Does the model depend on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are essential to the application of mixture-of-experts and attention systems in DeepSeek R1. However, the main focus is on using these strategies to enable efficient thinking instead of showcasing mathematical intricacy for its own sake.

Q16: Some fret that the design's "thinking" might not be as refined as human thinking. Is that a valid concern?

A: Early iterations like R1-Zero did produce raw and often hard-to-read thinking. However, the subsequent improvement process-where human experts curated and enhanced the thinking data-has considerably enhanced the clearness and dependability of DeepSeek R1's internal thought procedure. While it remains a progressing system, iterative training and feedback have actually caused significant enhancements.

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

A: For regional testing, a medium-sized model-typically in the variety of 7B to 8B parameters-is advised. Larger models (for example, those with numerous 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 only open weights?

A: DeepSeek R1 is provided with open weights, indicating that its model specifications are openly available. This aligns with the overall open-source approach, allowing scientists and developers to additional 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 support learning?

A: The present approach enables the design to first check out and produce its own reasoning patterns through unsupervised RL, and after that refine these patterns with monitored methods. Reversing the order may constrain the model's ability to discover varied thinking courses, possibly limiting its total performance in tasks that gain from autonomous idea.

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

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
None
Milestone
None
Assign milestone
None
Time tracking
No estimate or time spent
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Confidentiality
Not confidential
Lock issue
Unlocked
participants
Reference: alberthaold46/constructionproject-360#27