Skip to main content
Qwen (通义千问) is Alibaba Cloud’s series of large language models and multimodal models, ranging from compact 0.6B models to massive 397B MoE architectures.

Overview

The Qwen family includes:
  • Qwen 3.5 - Latest generation with hybrid attention and MoE
  • Qwen 3 - Dense and MoE variants with reasoning capabilities
  • Qwen 2.5 - Previous generation, highly capable
  • Qwen 2 - Foundation models
  • Qwen-VL - Vision-language multimodal models
  • Qwen-Audio - Audio-enabled models

Quick Start

Basic Dense Model

Large MoE Model (Qwen 3.5)

Qwen 3.5 Architecture

Qwen 3.5 features cutting-edge architectural innovations:

Key Features

  • Hybrid Attention: Gated Delta Networks (linear, O(n) complexity) combined with full attention every 4th layer
  • MoE with Shared Experts: Top-8 active out of 64 routed experts plus a dedicated shared expert
  • Multimodal: DeepStack Vision Transformer with Conv3d for native image and video understanding

Launch Qwen 3.5 (Dense)

AMD GPU Support (MI300X / MI325X / MI35X)

On AMD Instinct GPUs, use the Triton attention backend:
Tip: Set SGLANG_USE_AITER=1 to enable AMD’s optimized aiter kernels for MoE and GEMM operations.

Configuration Tips for Large Models

Qwen 3 Models

Qwen 3 offers a range of sizes from 0.6B to 235B (MoE):

Available Models

Launch Examples

Reasoning and Tool Calling

Qwen models support advanced reasoning and tool calling capabilities:

Enable Reasoning Parser

Using Reasoning in Requests

With the reasoning parser enabled, the model can separate reasoning tokens from the final answer:

Qwen 2.5 & Qwen 2 Models

Previous generation Qwen models are also fully supported:

Qwen-VL (Vision-Language Models)

Qwen-VL models process both images and text. See the Multimodal Models guide for complete details.

Quick Launch

FP8 Mode (Memory Efficient)

Image Request Example

Video Input Support

Qwen-Audio Models

Qwen2-Audio processes audio input alongside text:

Qwen Classification & Reward Models

SGLang supports specialized Qwen variants:

Classification Models

Reward Models

Qwen3-Omni (Omnimodal)

Qwen3-Omni is an omni-modal MoE model supporting text, images, audio, and video:
Note: Currently supports the Thinker component (multimodal understanding) only. Audio generation (Talker) is not yet supported.

Performance Optimization

Expert Parallelism (EP)

For large MoE models, use expert parallelism:

Quantization

Reduce memory usage with quantization:

Chunked Prefill

For long-context scenarios:

Accuracy Evaluation

Evaluate model accuracy using lm-eval:

Supported Qwen Architectures

SGLang supports the following Qwen model architectures:
  • Qwen3ForCausalLM - Qwen 3 dense models
  • Qwen3_5ForCausalLM - Qwen 3.5 dense models
  • Qwen3NextForCausalLM - Qwen 3 Next generation
  • Qwen3MoeForCausalLM - Qwen 3 MoE models
  • Qwen3OmniMoeForCausalLM - Qwen 3 Omni models
  • Qwen2ForCausalLM - Qwen 2 dense models
  • Qwen2MoeForCausalLM - Qwen 2 MoE models
  • Qwen2_5_VLForConditionalGeneration - Qwen 2.5 VL
  • Qwen3VLForConditionalGeneration - Qwen 3 VL
  • Qwen3VLMoeForConditionalGeneration - Qwen 3 VL MoE
  • Qwen2AudioForConditionalGeneration - Qwen 2 Audio
  • Qwen2ForSequenceClassification - Classification
  • Qwen3ForSequenceClassification - Classification
  • Qwen2ForRewardModel - Reward models
  • Qwen3ForRewardModel - Reward models

Resources

Troubleshooting

Large Model Loading Timeout

Increase watchdog timeout:

Memory Issues with MoE

Adjust memory fraction:

AMD GPU Specific

Ensure AITER is enabled: