Parameters
7B
Context Length
131.072K
Modality
Text
Architecture
Dense
License
Apache 2.0
Release Date
19 Sept 2024
Knowledge Cutoff
-
Attention Structure
Grouped-Query Attention
Hidden Dimension Size
4096
Number of Layers
32
Attention Heads
64
Key-Value Heads
8
Activation Function
SwigLU
Normalization
RMS Normalization
Position Embedding
ROPE
VRAM requirements for different quantization methods and context sizes
Qwen2.5-7B is a foundational large language model developed by Alibaba Cloud, forming a part of the Qwen2.5 series. This model is a causal language model engineered for general-purpose applications, serving as a robust base for subsequent fine-tuning and specialized tasks. It is designed to extend the linguistic capabilities of its predecessors by incorporating an expanded knowledge base and enhancing performance in core language understanding and generation tasks. The model provides multilingual support, enabling processing across more than 29 languages. This versatility positions Qwen2.5-7B as a foundational component for diverse natural language processing systems.
Architecturally, Qwen2.5-7B employs a transformer-based encoder-decoder framework. Key architectural components include the integration of Rotary Position Embeddings (RoPE) for effective handling of sequence length and position, SwiGLU as its activation function for non-linearity, and RMSNorm for stable normalization across layers. The attention mechanism features Grouped Query Attention (GQA), optimizing computational efficiency by sharing key and value projections across multiple query heads. Specifically, the 7B variant utilizes 28 attention heads for queries and 4 for key/value pairs, distributed across 28 layers. This configuration facilitates efficient processing of long sequences.
The Qwen2.5-7B model is suitable for pretraining, providing a base for developers to build upon through further training stages such as Supervised Fine-Tuning (SFT) or Reinforcement Learning from Human Feedback (RLHF). While it is a base model, the Qwen2.5 family exhibits enhanced capabilities in areas such as coding and mathematics, benefiting from specialized expert models. It also demonstrates improved proficiency in instruction following, processing structured data, and generating extended text outputs, including formatted data like JSON. The model's capacity to handle context lengths up to 131,072 tokens supports the processing of substantially long inputs.
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.
Ranking is for Local LLMs.
Rank
#41
Benchmark | Score | Rank |
---|---|---|
Refactoring Aider Refactoring | 0.58 | 8 |
Coding Aider Coding | 0.64 | 9 |
Professional Knowledge MMLU Pro | 0.56 | 20 |
Coding LiveBench Coding | 0.34 | 23 |
Graduate-Level QA GPQA | 0.36 | 25 |
Reasoning LiveBench Reasoning | 0.22 | 26 |
Mathematics LiveBench Mathematics | 0.37 | 26 |
Data Analysis LiveBench Data Analysis | 0.42 | 27 |
General Knowledge MMLU | 0.36 | 31 |
Overall Rank
#41
Coding Rank
#22
Full Calculator
Choose the quantization method for model weights
Context Size: 1,024 tokens