Qwen3-8B

Closed Source
Open Weights

Parameters

8B

Context Length

131K

Modality

Text

Architecture

Dense

KV Cache Rate

160 KB/tok

License

Apache 2.0

Release Date

29 Apr 2025

Knowledge Cutoff

-

API Pricing (per 1M)

Input: $0.20 · Output: $0.20

Hardware & System Requirements

Precision

Context

Workload Memory: 7.48 GB

INT4 · 8K context

Base Weights: 3.73 GB

KV Cache: 1.25 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

7.5 / 21.6 GB

1x RTX 3060 12GB

7.5 / 11.2 GB

Apple M4 24GB

7.5 / 18.0 GB

Determine requirements for your specific workload:

Runtime requirements

Checkpoint format

FP16

CUDA

>= 11.8

PyTorch

>= 2.1

Transformers

>= 4.51.0

ArchitecturePrecisionAttention kernel

Blackwell, Hopper

Native FP16

FlashAttention-3

Ada Lovelace, Ampere

Native FP16

FlashAttention-2

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 4.1k · Context: 131K · Vocab: 151.9kx 40 layersLayerNormPre-AttentionGrouped-Query Attention64Q / 8KV headsHead dim: 128+LayerNormPre-FFNFeed-Forward NetworkSwiGLUIntermediate: 12.3k+Final LayerNormOutput Logits

Evaluation Benchmarks

Rank

#219

BenchmarkScoreRank

Agentic Index

Artificial Analysis
auto

0.8

#121

0.09

#149

Intelligence Index

Artificial Analysis
auto

0.05

Standard

0.06

#333

#319

Rankings

Overall Rank

#219

Coding Rank

#166

About Qwen3-8B

Qwen3-8B is an open-weights causal language model from Alibaba Cloud combining deliberative chain-of-thought reasoning with rapid conversational inference. Trained on 36T tokens across 119 languages, it natively integrates with external agent tooling.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

64

Key-Value Heads

8

Attention Head Dimension

128

Position Embedding

ROPE

RoPE Theta

1,000,000

Normalization

Layer Normalization

Activation Function

SwigLU

Dimensions

Base Precision

FP16

Hidden Dimension Size

4,096

Number of Layers

40

FFN Intermediate Size (Dense)

12,288

Tokenizer

Vocabulary Size

151,936

About Qwen 3

The Alibaba Qwen 3 model family comprises dense and Mixture-of-Experts (MoE) architectures, with parameter counts from 0.6B to 235B. Key innovations include a hybrid reasoning system, offering 'thinking' and 'non-thinking' modes for adaptive processing, and support for extensive context windows, enhancing efficiency and scalability.


Other Qwen 3 Models