Skip to main content
Browse Models

Deepseek AI

DeepSeek R1 Distill Llama 8B

Released

2025-01-20

Family

Llama 3

Type

Fine-Tuned Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

4-bit GGUF (Q4_K_M)

GGUF · DeepSeek-R1-Distill-Llama-8B-Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · DeepSeek-R1-Distill-Llama-8B-Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · DeepSeek-R1-Distill-Llama-8B-Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · DeepSeek-R1-Distill-Llama-8B-Q8_0.gguf

16-bit GGUF (F16)

GGUF · DeepSeek-R1-Distill-Llama-8B-f16.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

DeepSeek-R1-Distill-Llama-8B is a generative language model within the DeepSeek-R1 series, developed by DeepSeek-AI as part of an initiative to advance reasoning capabilities in large language models through reinforcement learning and knowledge distillation. This model is a distilled, 8-billion-parameter variant, built to capture much of the reasoning power of its larger "teacher" models, while operating with the efficiency and accessibility of a smaller architecture. Its design centers on excelling at mathematical problem-solving, code generation, and general reasoning tasks, drawing both from innovations in training methodology and architectural adaptation of state-of-the-art base models.

Bar chart comparing DeepSeek-R1 and other models on reasoning and code benchmarks

Figure 1. Benchmark comparison showing DeepSeek-R1's performance across several reasoning and coding tasks.

Model Architecture and Distillation Technique

DeepSeek-R1-Distill-Llama-8B is constructed atop the Llama-3.1-8B architecture, a widely used open-source dense language model. The distillation process employs supervised fine-tuning, utilizing a large corpus of data generated by more advanced teacher models within the DeepSeek-R1 family. This approach enables the smaller, distilled model to inherit complex reasoning strategies identified by reinforcement learning conducted in larger models, reducing the need to apply computationally intensive RL directly to the base model.

The broader DeepSeek-R1 series features a hybrid design. The foundational DeepSeek-V3-Base, used for teacher models like DeepSeek-R1 and DeepSeek-R1-Zero, is a Mixture-of-Experts (MoE) model composed of 671 billion total parameters with 37 billion parameters activated per forward pass. The distilled models, such as DeepSeek-R1-Distill-Llama-8B, are dense and streamlined while still benefiting from the advanced alignment and reasoning developed in their larger counterparts. This design maximizes efficiency and model accessibility, making advanced reasoning functionality available in smaller deployments.

Training Methodology and Datasets

Training DeepSeek-R1-Distill-Llama-8B follows a multi-stage paradigm aimed at maximizing its reasoning and alignment capabilities. The initial training phases for the teacher models combine reinforcement learning (RL) and supervised fine-tuning (SFT) to foster sophisticated reasoning:

  • The teacher models leverage RL, particularly Group Relative Policy Optimization (GRPO), and incorporate a "cold-start" phase using thousands of complex Chain-of-Thought (CoT) examples, aligning the model's outputs with human preferences and accuracy criteria.
  • After RL convergence, rejection sampling is used to collect high-quality reasoning trajectories, which are combined with non-reasoning data in supervised fine-tuning.
  • A second RL phase further sharpens helpfulness and harmlessness while refining the model's command of step-by-step reasoning.

For the distillation stage, DeepSeek-R1-Distill-Llama-8B is fine-tuned on approximately 800,000 samples generated by the teacher models, focusing heavily on mathematical reasoning, code generation, and complex query resolution, as detailed in the research paper DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. This method enables the transfer of advanced problem-solving faculties to the distilled models without direct RL training on the smaller architectures, preserving much of the reasoning prowess of the teacher models.

Performance and Benchmark Results

DeepSeek-R1-Distill-Llama-8B demonstrates strong performance on a range of benchmarks centered on reasoning, mathematics, and coding. In evaluations, it achieves various results, as reported in the research paper DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning:

  • AIME 2024: pass@1 = 50.4%, cons@64 = 80.0%
  • MATH-500: pass@1 = 89.1%
  • GPQA Diamond: pass@1 = 49.0%
  • LiveCodeBench: pass@1 = 39.6%
  • CodeForces: rating = 1205

These scores enable comparison against other compact and larger-scale language models. The model's distillation approach facilitates its performance on reasoning-intensive tasks, including those not specifically optimized for reasoning, while maintaining a compact parameter count.

Model Family and Comparisons

The DeepSeek-R1 series spans several models, each engineered to showcase different balances of size, speed, and reasoning capacity. The flagship models—DeepSeek-R1 and DeepSeek-R1-Zero—utilize Mixture-of-Experts architectures and extensive RL training. DeepSeek-R1-Zero, in particular, employs RL from scratch, while DeepSeek-R1 incorporates low-shot Chain-of-Thought seeds before RL for improved language consistency.

Within the distillation family, DeepSeek-R1-Distill-Llama-8B is one of several dense variants derived from open-source bases, including Qwen and Llama models. Larger siblings, such as DeepSeek-R1-Distill-Qwen-32B and DeepSeek-R1-Distill-Llama-70B, have demonstrated competitive performance among dense models on selected reasoning benchmarks. The range of distilled models illustrates that much of the advanced reasoning attributed to large, specialized models can persist in smaller, efficient derivations, as observed in public evaluations and comparisons with other contemporary language models.

Limitations and Known Shortcomings

Despite its focused training, DeepSeek-R1-Distill-Llama-8B presents limitations common to models specialized in reasoning. The model displays sensitivity to prompt formulation—few-shot prompting may degrade accuracy, and zero-shot prompting is generally recommended. While measures to mitigate language mixing and readability have been integrated into upstream training, issues may occasionally surface when queries are not in English or Chinese. In broader language tasks like function calling, extended dialogue, role-playing, or precise JSON formatting, the model may trail behind generalist architectures. Its improvements in software engineering benchmarks are restrained by the computational intensity of these evaluations.

Licensing and Usage

The code and model weights for DeepSeek-R1-Distill-Llama-8B are distributed under the MIT License, permitting broad use, modification, and derivative works, including further distillation. The model is derived from Llama-3.1-8B, carrying with it obligations under the Llama licensing terms. These provisions endorse openness and scientific reuse, encouraging further research and application while adhering to relevant copyright requirements.

External Resources

About Llama 3: The Llama 3 family of AI models, developed by Meta, represents a significant advancement in open-source large language models, offering parameter sizes up to 405 billion and supporting context windows of up to 128k tokens. Llama 3.1, 3.2, and 3.3 optimize this performance through distillation learning and improved multimodal capabilities.

More in the Llama 3 Family

Meta /

Llama 3 8B

Large language model with 8 billion parameters featuring transformer architecture, trained on 15 trillion tokens for text generation and coding tasks.
Meta /

Llama 3 70B

State-of-the-art 70B foundation model from Meta, trained on over 15 trillion tokens.
Meta /

Llama 3.1 8B

Llama 3.1 is a new state-of-the-art large language model from Meta.
Sao10K /

Llama 3.1 8B Stheno v3.4

An 8-billion parameter language model fine-tuned for multi-turn dialogue, creative writing, and roleplaying using curated conversational datasets and synthetic data.
Deep Cogito /

Cogito V1 Preview 8B

A Llama 3.1-based model trained with Iterated Distillation and Amplification, featuring dual reasoning modes and tool calling capabilities.
Meta /

Llama 3.1 70B

The Llama 3.1 series of open models rivals top closed models in performance. It was trained on over 15 trillion tokens using over 16K H100 GPUs. These models display state-of-the-art capabilities in general knowledge, steerability, math, tool use, and translation.
Deep Cogito /

Cogito V1 Preview 70B

A 70B parameter instruction-tuned model based on Llama 3.1 architecture featuring dual reasoning modes and multilingual tool-calling capabilities.
Meta /

Llama 3.2 3B

The next iteration in the Llama series of open models. This lightweight model was designed to run on edge devices, even mobile.
Cognitive Computations /

Dolphin 3.0 Llama3.2 3B

An uncensored instruct-tuned 3.2B parameter language model that grants users full control over system prompts and behavioral alignment.
Deep Cogito /

Cogito V1 Preview 3B

A 3B-parameter multilingual instruction-tuned model based on Llama 3.2 that supports tool-calling and features dual operational modes for standard and extended reasoning.
Meta /

Llama 3.3 70B

Llama 3.3 is a text-only 70B instruction-tuned model that provides enhanced performance relative to Llama 3.1 70B and to Llama 3.2 90B when used for text-only applications. For some applications, Llama 3.3 70B approaches the performance of Llama 3.1 405B.
Sao10K /

L3.3 70B Euryale v2.3

A 70-billion parameter language model fine-tuned from Llama 3.3 for creative writing and role-playing applications using custom datasets.
Sao10K /

70B L3.3 Cirrus x1

A 70.6-billion parameter language model finetuned from Llama 3.3 using extended training and checkpoint merging techniques for improved output stability.
TheDrummer /

Anubis 70B v1

A 70.6-billion parameter text generation model fine-tuned from Llama 3.3, designed for creative writing and role-playing applications.
TheDrummer /

Anubis 70B v1.1

A 70.6 billion parameter Llama 3.3-based model fine-tuned for character consistency and dynamic dialogue in creative text generation applications.
LatitudeGames /

Wayfarer Large 70B Llama 3.3

A 70.6-billion parameter language model fine-tuned for adventure role-play scenarios, emphasizing conflict, tension, and narrative stakes in second-person storytelling.
Deepseek AI /

DeepSeek R1 Distill Llama 70B

A 70B parameter dense language model distilled from DeepSeek-R1 using Llama 3.3 architecture, optimized for mathematical and coding reasoning tasks.

More from Deepseek AI

Deepseek AI /

DeepSeek R1 Distill Qwen 1.5B

A 1.5 billion parameter language model created through distillation techniques, focusing on mathematical reasoning and chain-of-thought problem-solving capabilities.
Deepseek AI /

DeepSeek R1 Distill Qwen 7B

A 7.62B parameter distilled language model based on Qwen2.5-Math-7B, trained via knowledge distillation for mathematical and logical reasoning tasks.
Deepseek AI /

DeepSeek R1 Distill Qwen 14B

A 14B dense language model distilled from a mixture-of-experts architecture, optimized for mathematical reasoning and code generation tasks.
Deepseek AI /

DeepSeek R1 Distill Qwen 32B

A 32B parameter language model created through knowledge distillation, optimized for mathematical reasoning, code generation, and complex problem-solving tasks.
Deepseek AI /

DeepSeek R1 (0528)

A 671B-parameter MoE model with 37B active parameters featuring enhanced reasoning capabilities through reinforcement learning and chain-of-thought training methodologies.
Deepseek AI /

DeepSeek R1

A 671B parameter Mixture-of-Experts model trained with reinforcement learning to enhance reasoning capabilities in mathematics, coding, and logical tasks.
Deepseek AI /

DeepSeek V3 (0324)

Large-scale MoE language model utilizing 671B parameters with 37B activated per token, featuring enhanced reasoning and multilingual capabilities.
Deepseek AI /

DeepSeek V3

A 671-billion parameter Mixture-of-Experts language model with 37 billion active parameters per token, featuring auxiliary-loss-free load balancing and FP8 mixed-precision training.
Deepseek AI /

DeepSeek VL2

A Mixture-of-Experts vision-language model series featuring dynamic image tiling, visual grounding capabilities, and efficient sparse computation across three parameter variants.
Deepseek AI /

DeepSeek VL2 Small

A 2.8B parameter mixture-of-experts vision-language model with dynamic tiling for multimodal understanding, OCR, and visual grounding tasks.
Deepseek AI /

DeepSeek VL2 Tiny

A compact Mixture-of-Experts vision-language model with 1.0B activated parameters supporting multimodal tasks including OCR, document analysis, and visual grounding.
Deepseek AI /

DeepSeek V2.5

A 236-billion parameter mixture-of-experts language model with multi-head latent attention, activating 21 billion parameters per token for bilingual text generation.
Deepseek AI /

DeepSeek V2

A 236-billion parameter Mixture-of-Experts language model that activates only 21 billion parameters per token for efficient multilingual text generation.
Deepseek AI /

DeepSeek Coder V2

Open-source Mixture-of-Experts model with 236B total parameters specialized for code generation, mathematical reasoning, and programming across 338 languages.
Deepseek AI /

DeepSeek Coder V2 Lite

A 16B parameter Mixture-of-Experts model designed for code generation, completion, and reasoning across 338 programming languages with 128K token context length.