Skip to main content
Browse Models

Alibaba Cloud

Qwen3 8B

Released

2025-04-28

Family

Qwen 3

Type

Foundation Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

4-bit GGUF (Q4_K_M)

GGUF · Qwen_Qwen3-8B-Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · Qwen_Qwen3-8B-Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · Qwen_Qwen3-8B-Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · Qwen_Qwen3-8B-Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Qwen3-8B is a dense large language model (LLM) in the Qwen3 series, developed by the Qwen team at Alibaba Cloud. Released in 2024, Qwen3-8B is one of a suite of six dense models and two Mixture-of-Experts (MoE) variants in Qwen3, made available under the Apache 2.0 license. The model features hybrid thinking, extensive multilingual support, and agentic capabilities. Its technical report, licensing information, and documentation are all provided publicly for research and development purposes.

Qwen3 logo and wordmark

Figure 1. Official logo of the Qwen3 series, representing its branding and technological identity.

Qwen3 announcement banner with mascot

Figure 2. Prominent Qwen3 announcement banner, featuring the model name and mascot as visual identifiers.

Model Architecture and Features

Qwen3-8B is a dense transformer-based model with 8.2 billion parameters—6.95 billion of which are non-embedding parameters—spanning 36 layers. The model employs 32 attention heads for queries and 8 for key/value, supported by Grouped Query Attention (GQA), which optimizes efficiency and scaling. Qwen3-8B natively processes contexts up to 32,768 tokens, extendable to 131,072 tokens through the Yet another RoPE extension (YaRN) approach for handling long sequences.

In terms of architectural advancements, Qwen3-8B follows the innovations introduced in Qwen2.5, such as SwiGLU activations, rotary positional embeddings (RoPE), and RMSNorm with pre-normalization. However, it diverges from its predecessors by removing QKV-bias and integrating QK-Norm into the attention mechanism, improving training stability. The tokenizer is based on Qwen's byte-level byte-pair encoding (BBPE) with a substantial vocabulary of 151,669 tokens, supporting a broad spectrum of languages and symbols, and robust encoding of diverse textual data.

A distinguishing feature is Qwen3-8B's hybrid thinking capability. The model supports dynamic switching between two operational modes: a "Thinking" mode, which enables systematic, step-by-step reasoning for complex scenarios, and a "Non-thinking" mode geared toward rapid, concise responses suitable for straightforward queries. This is facilitated via specialized chat templates and flags, enabling users to tailor model outputs based on the cognitive demands of a task.

Qwen3 architecture diagram

Figure 3. Visualization of the Qwen3 model architecture, highlighting key components and processing workflow.

Training Data and Optimization Techniques

Qwen3-8B was trained on a significantly enlarged and diverse dataset compared to Qwen2.5, featuring approximately 36 trillion tokens drawn from web sources and document collections across 119 languages and dialects. The pre-training was organized into three progressive stages: a general language development stage, a specialized reasoning stage focusing on science, technology, engineering, and mathematics (STEM), and a long-context adaptation stage that incorporated RoPE optimizations for extended sequence understanding.

The post-training regimen adopted a multi-stage approach. Initial fine-tuning on curated long Chain-of-Thought (CoT) datasets instilled deep reasoning abilities. This was followed by reinforcement learning using rule-based reward systems, leveraging GRPO (Gradient-based Reinforcement Policy Optimization) for effective parameter updates. To merge the two operational modes, a mode fusion stage blended instruction-based and CoT-generated data, equipping the model with both comprehensive reasoning and quick-response capabilities. Subsequent reinforcement learning on over 20 general-domain tasks aimed to further align the model with human preferences, correct undesirable behaviors, and refine its instructional and agentic proficiency.

For smaller variants like Qwen3-8B, a strong-to-weak distillation approach was used. Here, the model distilled knowledge from larger Qwen3 architectures such as Qwen3-32B and Qwen3-235b-a22b, effectively inheriting their reasoning skills while reducing computational requirements.

Training methodology diagram

Figure 4. Illustration of the training methodology used for Qwen3 models, showing the progression through different stages of development.

Performance and Benchmarking

Qwen3-8B performs well in benchmarks compared to similarly-sized and larger models in both the Qwen2.5 family and other open-source models. In pre-training evaluations, Qwen3-8B compares favorably with models such as Qwen2.5-14B-Base across general tasks (including MMLU, MMLU-Redux, SuperGLUE), STEM reasoning (GPQA, GSM8K, MATH), coding benchmarks (EvalPlus, MBPP, CRUX-O), and multilingual capabilities.

Post-training results highlight the advantage of Qwen3-8B's hybrid thinking paradigm. In "Thinking" mode, it performs well in tasks requiring chain-of-thought and logical deduction when compared to other models from different families in specialized benchmarks. In "Non-thinking" mode, it delivers rapid outputs, maintaining competitive performance on standard retrieval and comprehension benchmarks. The model's long-context capabilities, as measured by the RULER benchmark, are robust, with the 8B variant achieving average scores over 89 in non-thinking mode—indicative of its sequence memory and retrieval capabilities.

Benchmark comparison table for large language models

Figure 5. Comprehensive benchmark results comparing Qwen3-8B and related models to other leading architectures across general language, STEM, multilingual, and coding tasks.

The hybrid thinking budget, which determines the amount of reasoning allocated per query, affects performance across different types of tasks, as shown in analyses of tasks such as AIME24 and LiveCodeBench.

Applications and Use Cases

Qwen3-8B's design supports a breadth of practical applications. Its reasoning capabilities enable performance in complex problem solving, including advanced mathematics, structured logical deduction, and code generation. The fast-response non-thinking mode is particularly suited for conversational agents, real-time chat applications, and situations where latency is a concern.

The model's coverage of 119 languages and dialects opens opportunities in multilingual instruction, translation, and global applications. Enhanced agentic abilities facilitate its integration into systems requiring autonomous tool usage or multi-step task management. Due to its architecture and distillation techniques, Qwen3-8B is also appropriate for resource-constrained or local environments, allowing deployment across a variety of platforms.

Demonstration of Qwen3's agentic capabilities, exemplifying its multi-step planning and tool interaction in a simulated environment. · Source

Limitations

Despite its broad capabilities, Qwen3-8B presents several trade-offs. In some retrieval-focused tasks, the inclusion of thinking-mode content can marginally impair extraction accuracy compared to non-thinking mode outputs. The fusion of general reinforcement learning and hybrid thinking can also result in slight decreases in performance on highly specialized benchmarks, reflecting a compromise with overall versatility. Additionally, most open-source deployments utilize static YaRN, where scaling factors for long context handling remain constant, potentially affecting short-document performance. It is recommended to enable rope scaling only when processing exceptionally long sequences.

Model Family and Licensing

Qwen3-8B is part of a broader ecosystem, including both dense (Qwen3-0.6B, Qwen3-1.7B, Qwen3-4B, Qwen3-8B, Qwen3-14B, Qwen3-32B) and Mixture-of-Expert models (Qwen3-235B-A22B, Qwen3-30B-A3B). Dense models are comparable in performance to earlier Qwen2.5 variants of higher parameter counts, while MoE models achieve similar results with fewer activated parameters due to architectural efficiencies. The Qwen3 model weights and code are openly available under the Apache 2.0 license, facilitating unrestricted academic and industrial research.

Qwen3 model family overview

Figure 6. Overview of the complete Qwen3 model family, showing the relationship between different variants and their key characteristics.

More from Alibaba Cloud

Alibaba Cloud /

Qwen2.5 VL 3B

A 3B-parameter multimodal language model that processes images, videos, and text with capabilities for visual reasoning, document analysis, and computer interface interaction.
Alibaba Cloud /

Qwen2.5 VL 7B

A 7-billion parameter multimodal model capable of processing images, documents, and videos with native dynamic resolution support and structured output capabilities.
Alibaba Cloud /

Qwen2.5 VL 72B

A 72-billion parameter multimodal model that processes images, videos, and text for document analysis, object detection, and visual agent tasks.
Alibaba Cloud /

QwQ 32B Preview

Experimental research model focused on advancing AI reasoning capabilities by thinking through problems step by step, continuously questioning assumptions, and exploring different paths of thought. Impressive benchmark scores in math and coding tasks.
Alibaba Cloud /

QwQ 32B

A 32.5-billion parameter transformer model optimized for mathematical reasoning, coding, and complex problem-solving through reinforcement learning training.
Alibaba Cloud /

Qwen 2.5 Math 1.5B

A 1.5 billion parameter specialized model focused on mathematical reasoning and problem-solving capabilities in English and Chinese.
Alibaba Cloud /

Qwen 2.5 Math 7B

A 7.62-billion parameter mathematical reasoning model supporting English and Chinese with chain-of-thought and tool-integrated reasoning capabilities.
Alibaba Cloud /

Qwen 2.5 Math PRM 7B

A 7B parameter process reward model that evaluates mathematical reasoning steps individually rather than just final answers, achieving 67.6% accuracy on mathematical benchmarks.
Alibaba Cloud /

Qwen 2.5 Math 72B

A 72.7 billion parameter language model specialized for solving mathematical problems in English and Chinese using chain-of-thought and tool-integrated reasoning.
Alibaba Cloud /

Qwen 2.5 Math PRM 72B

A 72.8 billion parameter process reward model that evaluates intermediate mathematical reasoning steps using consensus filtering and achieves 78.3% F1 on ProcessBench.
Alibaba Cloud /

Qwen 2.5 Coder 7B

A 7.61 billion parameter transformer model designed for code generation and reasoning across 92 programming languages with a 128,000-token context window.
Alibaba Cloud /

Qwen 2.5 Coder 32B

Qwen2.5-Coder builds on Qwen2.5 by training on 5.5 trillion additional tokens of code data including source code, text-code grounding data, and synthetic data. This leads to significant improvements in code-related tasks.
Alibaba Cloud /

Qwen 2.5 7B

A 7.61-billion parameter transformer-based language model with 128K token context length, trained on 18 trillion tokens supporting 29+ languages.
Alibaba Cloud /

Qwen2.5 7B 1M

A 7-billion parameter transformer model with 1-million token context capacity utilizing Dual Chunk Attention for long-range text processing.
Alibaba Cloud /

Qwen 2.5 14B

A 14.7 billion parameter transformer model supporting 29 languages with 128K context window, designed as foundation for fine-tuning applications.
Alibaba Cloud /

Qwen2.5 14B 1M

A 14.7B parameter transformer model with 1-million token context capacity, utilizing dual chunk attention and progressive training for extended sequence processing.
Alibaba Cloud /

Qwen 2.5 32B

A 32.5 billion parameter multilingual transformer model trained on 18 trillion tokens with 128K context length supporting text generation, coding, and mathematical reasoning.
Alibaba Cloud /

Qwen 2.5 72B

This update to Qwen 2, pretrained on 18 trillion tokens, shows impressive performance in benchmarks (MMLU 85+, HumanEval 85+, MATH 80+), outperforming models of similar size. Qwen 2.5 has multilingual support for over 29 languages and can understand and generate structured data.
Alibaba Cloud /

Qwen 2 7B

A 7.6 billion parameter multilingual decoder-only Transformer model designed for further post-training with 32,000-token context and strong coding capabilities.
Alibaba Cloud /

Qwen 2 72B

A 72-billion parameter transformer model supporting extended context lengths up to 128K tokens and demonstrating strong multilingual capabilities across diverse benchmarks.
Alibaba Cloud /

Qwen 1.5 32B

Foundation 32B Qwen 1.5 model from Alibaba Cloud.
Alibaba Cloud /

Qwen 1.5 72B

Foundation 72B Qwen 1.5 model from Alibaba Cloud.