ApX logoApX logo

DeepSeek-R1 7B

Parameters

7B

Context Length

131K

Modality

Text

Architecture

Dense

License

Apache 2.0

Release Date

27 Dec 2024

Knowledge Cutoff

-

System Requirements

VRAM requirements for different quantization methods and context sizes

1,024 tokens

17.33 GB VRAM

Consumer

1x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

131,072 tokens

160.51 GB VRAM

Consumer

8x RTX 4090

24GB VRAM

Datacenter

3x NVIDIA A100

80GB VRAM

Apple Silicon

2x Apple M3 Max

128GB VRAM

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 4.1k · Context: 131K · Vocab: 152.1kx 32 layersRMSNormPre-AttentionMulti-Layer Attention64Q / 64KV headsHead dim: 64+RMSNormPre-FFNFeed-Forward NetworkSwiGLUIntermediate: 18.9k+Final RMSNormOutput Logits

Evaluation Benchmarks

No evaluation benchmarks for DeepSeek-R1 7B available.

Rankings

Overall Rank

-

Coding Rank

-

About DeepSeek-R1 7B

DeepSeek-R1-Distill-Qwen-7B is a 7-billion parameter language model engineered by DeepSeek AI. This model variant is a dense architecture, derived through a knowledge distillation process from the larger DeepSeek-R1 system. Its primary design objective is to deliver robust reasoning capabilities, specializing in domains such as mathematical reasoning, logical analysis, and the generation of code. The distillation methodology enables this model to encapsulate advanced problem-solving proficiencies within a more computationally efficient format, making it suitable for deployment in scenarios where resource constraints necessitate a smaller footprint without significant degradation in reasoning performance.

The architectural foundation of DeepSeek-R1-Distill-Qwen-7B is based on the Qwen2.5-Math-7B model. The training regimen for this distilled model emphasizes the transfer of sophisticated reasoning behaviors from the DeepSeek-R1 teacher model. This process leverages a substantial dataset comprising approximately 800,000 curated samples. These samples, generated by the higher-capacity DeepSeek-R1, are bifurcated into approximately 600,000 reasoning-focused examples and 200,000 non-reasoning examples, facilitating a targeted transfer of cognitive patterns. The model employs Multi-Head Latent Attention (MLA) and integrates Rotary Position Embeddings (RoPE) for positional encoding, with context extension techniques such as YaRN used to scale its operational context.

In terms of practical application, DeepSeek-R1-Distill-Qwen-7B is configured to support extended contextual understanding, processing input sequences up to 131,072 tokens. This expanded context window enhances its capacity for handling complex, multi-step problems that necessitate a broad understanding of the input. The model is positioned for use in a variety of technical applications requiring analytical precision, including automated theorem proving, complex algorithmic problem-solving, and advanced programming assistance. Its compact design, coupled with its specialized reasoning aptitude, makes it a viable candidate for integration into systems requiring localized inference or deployment on consumer-grade hardware.

Technical Specifications

Attention

Attention Structure

Multi-Layer Attention

Attention Heads

64

Key-Value Heads

64

Attention Head Dimension

-

Position Embedding

ROPE

RoPE Theta

10,000

Sliding Window Attention

No

Sliding Window Size

-

Sliding Window Ratio

-

Linear Attention

-

Linear Attention Ratio

-

Normalization

RMS Normalization

Activation Function

SwigLU

Dimensions

Hidden Dimension Size

4,096

Number of Layers

32

FFN Intermediate Size (Dense)

18,944

Multi-Token Prediction Heads

-

Tokenizer

Vocabulary Size

152,064

About DeepSeek-R1

DeepSeek-R1 is a model family developed for logical reasoning tasks. It incorporates a Mixture-of-Experts architecture for computational efficiency and scalability. The family utilizes Multi-Head Latent Attention and employs reinforcement learning in its training, with some variants integrating cold-start data.


Other DeepSeek-R1 Models
DeepSeek-R1 7B: Specifications and GPU VRAM Requirements