Qwen3-8B

Versatile all-rounder with RL fine-tuning

Focus on language processing and flexibility

The Qwen3-8B model at a glance

Name:

Qwen3-8B (part of the Qwen3 model family)

Developer:

Qwen Team (Alibaba Group)

Publication:

April 29, 2025

License:

Apache 2.0 License (Open Source, commercial use permitted)

Model type:

Dense, autoregressive language model (Causal Language Model) on a transformer basis.

Parameters:

Total: 8.2 billion, without embedding: 6.95 billion

Tokenizer:

Qwen2 Tokenizer (Tiktoken-based), vocabulary size: 151.936. Compatible with current Hugging Face transformers library (chat template available for Instruct/Chat variants).

Layers:

36 Transformer layer

Attention heads:

32 query headers, 8 key/value headers (Grouped-Query Attention - GQA)

Context length:

Native: 32,768 tokens (32K), with YaRN scaling: up to 131,072 tokens

Variations of the Qwen3 series

Special features of the Qwen3-8B model

"Thinking Mode" and "Non-Thinking Mode"

Supports a mechanism (e.g. via the /think token or the enable_thinking parameter in Instruct models) to instruct the model to “think” before responding, which can improve performance in complex tasks such as tool usage and function calling. Switching between “Thinking Mode” and “Non-Thinking Mode”. Instruct/Chat variants are fine-tuned for following instructions and conversations (SFT and RLHF/DPO).

Multilingual support

Good support for over 100 languages and dialects, with strong ability to follow multilingual instructions and translation.

Agentic/Tools capability

Optimized for integrations in agents and tool calling, especially the Instruct variants (e.g. with Qwen agent).

Compatible inference frameworks

Hugging Face Transformers (>=4.51.0), SGLang (>=0.4.6.post1), vLLM (>=0.8.5), Ollama, LMStudio, MLX-LM, llama.cpp, KTransformers and others.
Individual AI consulting

Is Qwen3-8B the right model for you?

The post-training pipeline for Qwen3-8B

Training data & training process

Versatile & powerful

Recommended use cases for Qwen3-8B

Multilingual assistants and dialog systems
For wider applicability.
Reasoning, mathematics and code generation
Good reasoning, math and code generation skills for its size.
Agentic use cases with tool integration
On more accessible hardware.
Processing and analyzing long texts
With YaRN scaling on consumer hardware.
Creative writing and multi-turn dialogs
Research and development
In the area of efficient, dense LLMs.
Qwen
Qwen3-8B

Strengths & weaknesses of the Qwen3-8B model

Qwen3-8B: Open source power for your application

Ready for production-ready open source AI?

With Qwen3-8B, you use a powerful language model that is powerful, efficient and fully commercially viable – ideal for productive use in your own systems, locally or in the cloud. Whether assistance systems, research tools or automation: our AI experts support you with selection, integration and hosting – individually tailored to your goals.

FAQ - Frequently asked questions

Worth knowing about Qwen3-8B

Yes, with strong quantization (e.g. via llama.cpp GGUF) and sufficient RAM (at least 16-32GB recommended) CPU inference is possible. The speed is acceptable for some applications, but GPU acceleration is recommended for better performance.

For FP16 inference approx. 16-20 GB. With 4-bit quantization, the requirement can be reduced to approx. 5-10 GB VRAM, which enables operation on many common consumer GPUs.

Yes, both the code and the model weights of Qwen3-8B are published under the Apache 2.0 license, which allows commercial use.

The model natively supports 32K tokens. For longer contexts (up to 131K), the YaRN scaling method can be enabled in compatible frameworks. Please note the information on potential performance degradation for shorter texts when using static YaRN.

Would you like individual advice?

Our AI experts are here for you!