ApX logoApX logo

Qwen2.5-3B

Parameters

3B

Context Length

33K

Modality

Text

Architecture

Dense

License

Qwen Research License Agreement

Release Date

19 Sept 2024

Knowledge Cutoff

-

System Requirements

VRAM requirements for different quantization methods and context sizes

1,024 tokens

7.96 GB VRAM

Consumer

1x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

32,768 tokens

12.87 GB VRAM

Consumer

1x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 2.3k · Context: 33K · Vocab: 151.9kx 36 layersRMSNormPre-AttentionGrouped-Query Attention48Q / 8KV headsHead dim: 48+RMSNormPre-FFNFeed-Forward NetworkSwiGLUIntermediate: 11k+Final RMSNormOutput Logits

Evaluation Benchmarks

No evaluation benchmarks for Qwen2.5-3B available.

Rankings

Overall Rank

-

Coding Rank

-

About Qwen2.5-3B

Qwen2.5-3B is a foundational large language model developed by Alibaba Cloud, forming a part of the broader Qwen2.5 series. This model is primarily designed for advanced natural language processing tasks, serving as a robust base model that can be further fine-tuned for specific applications. Its core purpose is to process and generate human-like text, with capabilities extended to more complex domains such as programming and mathematical problem-solving through specialized variants.

The architectural design of Qwen2.5-3B is based on the Transformer framework, integrating several key innovations for enhanced performance and efficiency. It incorporates Rotary Position Embedding (RoPE) for effective handling of sequence positions, SwiGLU as its activation function for improved non-linearity, and RMSNorm for stable normalization across layers. The model employs Grouped-Query Attention (GQA), specifically configured with 16 query heads and 2 key-value heads, which optimizes inference efficiency by reducing the memory footprint of key and value caches during sequence generation. Comprising 36 layers and a total of 3.09 billion parameters, this dense architecture is engineered for a balance of capability and computational feasibility.

Qwen2.5-3B supports a substantial context length of up to 32,768 tokens, enabling the processing of extensive textual inputs while maintaining coherence. For certain applications or instruction-tuned versions, it can support contexts up to 128,000 tokens. The model demonstrates proficiency in instruction following and the generation of structured outputs, such as JSON. It offers broad multilingual support, encompassing over 29 languages, making it suitable for global applications requiring diverse language understanding and generation capabilities. Its design focuses on providing a capable foundation for various text-based AI applications.

Technical Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

48

Key-Value Heads

8

Attention Head Dimension

-

Position Embedding

ROPE

RoPE Theta

1,000,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

2,304

Number of Layers

36

FFN Intermediate Size (Dense)

11,008

Multi-Token Prediction Heads

-

Tokenizer

Vocabulary Size

151,936

About Qwen2.5

Qwen2.5 by Alibaba is a family of dense, decoder-only language models available in various sizes, with some variants utilizing Mixture-of-Experts. These models are pretrained on large-scale datasets, supporting extended context lengths and multilingual communication. The family includes specialized models for coding, mathematics, and multimodal tasks, such as vision and audio processing.


Other Qwen2.5 Models
Qwen2.5-3B: Specifications and GPU VRAM Requirements