Parameters
1.5B
Context Length
33K
Modality
Text
Architecture
Dense
License
Apache 2.0
Release Date
7 Jun 2024
Knowledge Cutoff
Dec 2023
API Pricing (per 1M)
Self-hosted only
VRAM requirements for different quantization methods and context sizes
1,024 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
32,768 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
No evaluation benchmarks for Qwen2-1.5B available.
Overall Rank
-
Coding Rank
-
Qwen2-1.5B is a compact, open-weights causal transformer developed by Alibaba Cloud for efficient on-device text generation and lightweight NLP tasks. It features Grouped-Query Attention and broad multilingual support across a 32K context window.
Attention
Attention Structure
Grouped-Query Attention
Attention Heads
32
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
1,536
Number of Layers
24
FFN Intermediate Size (Dense)
8,960
Multi-Token Prediction Heads
-
Tokenizer
Vocabulary Size
151,936
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.
Assistant
Online