ApX logoApX logo
CalculatorCoursesPricing

Qwen2.5-0.5B

Open Source
Open Weights

Parameters

500M

Context Length

33K

Modality

Text

Architecture

Dense

KV Cache Rate

36 KB/tok

License

Apache 2.0

Release Date

19 Sept 2024

Knowledge Cutoff

-

API Pricing (per 1M)

Self-hosted only

Hardware & System Requirements

Precision

Context

Workload Memory: 3.01 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 0.23 GB

KV Cache: 0.28 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

3.0 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

3.0 / 11.2 GB

Apple M4 24GB

llama.cpp

3.0 / 18.0 GB

Determine requirements for your specific workload:

Runtime requirements

Checkpoint format

BF16

CUDA

>= 11.8

PyTorch

>= 2.1

Transformers

>= 4.40.1

ArchitecturePrecisionAttention kernel

Blackwell, Hopper

Native BF16

FlashAttention-3

Ada Lovelace, Ampere

Native BF16

FlashAttention-2

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 768 · Context: 33K · Vocab: 151.9kx 24 layersRMSNormPre-AttentionGrouped-Query Attention16Q / 8KV headsHead dim: 48+RMSNormPre-FFNFeed-Forward NetworkSwiGLUIntermediate: 4.9k+Final RMSNormOutput Logits

Evaluation Benchmarks

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

Rankings

Overall Rank

-

Coding Rank

-

About Qwen2.5-0.5B

Qwen2.5-0.5B is an ultra-compact dense language model by Alibaba Cloud designed for edge deployment, fine-tuning, and fast text generation. It features Grouped-Query Attention and structured JSON generation across a 32K token context window.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

16

Key-Value Heads

8

Position Embedding

ROPE

RoPE Theta

1,000,000

Sliding Window Attention

No

Sliding Window Size

32,768

Normalization

RMS Normalization

Activation Function

SwiGLU

Dimensions

Base Precision

BF16

Hidden Dimension Size

768

Number of Layers

24

FFN Intermediate Size (Dense)

4,864

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