ApX logoApX logo
CalculatorCoursesPricing

Qwen2-0.5B

Open Source
Open Weights

Parameters

500M

Context Length

33K

Modality

Text

Architecture

Dense

KV Cache Rate

42 KB/tok

License

Apache 2.0

Release Date

7 Jun 2024

Knowledge Cutoff

-

API Pricing (per 1M)

Self-hosted only

Hardware & System Requirements

Precision

Context

Workload Memory: 3.06 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 0.23 GB

KV Cache: 0.33 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

3.1 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

3.1 / 11.2 GB

Apple M4 24GB

llama.cpp

3.1 / 18.0 GB

Determine requirements for concurrent users or multi-node clusters:

Runtime compatibility

Verified on hardware and checkpoint files.

Checkpoint format

BF16

CUDA

13.0

PyTorch

2.14.0

Transformers

≥ 4.40.1

ArchitecturePrecisionKernel

Hopper

Native BF16

FlashAttention-3

Architecture Diagram

Evaluation Benchmarks

No evaluation benchmarks for Qwen2-0.5B available.

Rankings

Overall Rank

-

Coding Rank

-

About Qwen2-0.5B

The Qwen2-0.5B model represents a compact yet capable entry in the Qwen2 series of large language models, developed by the Qwen team at Alibaba. This model is engineered to deliver foundational language processing functionalities, making it suitable for deployment in environments with constrained computational resources. As a base language model, its primary purpose is to serve as a robust starting point for further specialization through post-training methodologies, such as supervised fine-tuning or reinforcement learning from human feedback. It is designed to facilitate a range of natural language processing tasks efficiently.

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

131,072

Normalization

RMS Normalization

Activation Function

SwiGLU

Dimensions

Base Precision

BF16

Hidden Dimension Size

896

Number of Layers

24

FFN Intermediate Size (Dense)

4,864

Tokenizer

Vocabulary Size

151,936

About Qwen2

The Alibaba Qwen2 model family comprises large language models built upon the Transformer architecture. It includes both dense and Mixture-of-Experts (MoE) variants, designed for diverse language tasks. Technical features include Grouped Query Attention and support for extended context lengths up to 131,072 tokens, optimizing memory footprint for inference.


Other Qwen2 Models
Qwen2-0.5B Size, VRAM & Hardware Requirements