ApX logoApX logo

Qwen2.5-14B

Parameters

14B

Context Length

131K

Modality

Text

Architecture

Dense

License

Apache 2.0

Release Date

19 Sept 2024

Knowledge Cutoff

-

System Requirements

VRAM requirements for different quantization methods and context sizes

1,024 tokens

31.08 GB VRAM

Consumer

2x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

131,072 tokens

53.45 GB VRAM

Consumer

3x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 5.1k · Context: 131K · Vocab: 152.1kx 40 layersRMSNormPre-AttentionGrouped-Query Attention80Q / 8KV headsHead dim: 64+RMSNormPre-FFNFeed-Forward NetworkSwiGLUIntermediate: 13.8k+Final RMSNormOutput Logits

Evaluation Benchmarks

Rank

#94

BenchmarkScoreRank

General Knowledge

MMLU

0.797

22

Rankings

Overall Rank

#94

Coding Rank

-

About Qwen2.5-14B

Qwen2.5-14B is a large language model developed by the Qwen Team at Alibaba Cloud, part of the Qwen2.5 model series. It is a dense, decoder-only transformer model designed for a broad range of natural language processing tasks. The model serves as a foundational component for developers and researchers, providing a scalable base that can be further fine-tuned for specific applications. Qwen2.5-14B supports multilingual contexts, capable of understanding and generating text in over 29 languages.

The Qwen2.5-14B architecture is built upon a transformer backbone, incorporating several advanced components to enhance its capabilities. It utilizes Rotary Position Embeddings (RoPE) for effective handling of sequence length, the SwiGLU activation function for improved non-linearity, and RMSNorm for efficient layer normalization. The model employs Grouped Query Attention (GQA) with a configuration of 40 query heads and 8 key/value heads, optimizing attention mechanisms for reduced memory bandwidth during inference. Comprising 48 layers, the model is architecturally designed for computational efficiency and performance across diverse tasks.

Qwen2.5-14B is pretrained on an extensive dataset of up to 18 trillion tokens, enabling it to demonstrate proficiency in areas such as logical reasoning, coding, and mathematical tasks. The model supports an extended context window of up to 131,072 tokens, facilitating the processing of long documents and complex inputs. While the base Qwen2.5-14B model is intended for pre-training and subsequent fine-tuning, its instruction-tuned variants are optimized for direct application in conversational AI, instruction following, and generating structured outputs like JSON. Its design accommodates applications requiring significant context and precise text generation.

Technical Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

80

Key-Value Heads

8

Attention Head Dimension

-

Position Embedding

ROPE

RoPE Theta

1,000,000

Sliding Window Attention

No

Sliding Window Size

131,072

Sliding Window Ratio

-

Linear Attention

-

Linear Attention Ratio

-

Normalization

RMS Normalization

Activation Function

SwigLU

Dimensions

Hidden Dimension Size

5,120

Number of Layers

40

FFN Intermediate Size (Dense)

13,824

Multi-Token Prediction Heads

-

Tokenizer

Vocabulary Size

152,064

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