Skip to main content
Browse Models

Alibaba Cloud

QwQ 32B

Released

2025-03-05

Family

Qwen 2

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_QwQ-32B-Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · Qwen_QwQ-32B-Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · Qwen_QwQ-32B-Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · Qwen_QwQ-32B-Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

QwQ-32B is a 32.5-billion parameter causal language model developed as part of the Qwen series. It is designed to support advanced reasoning and complex problem-solving capabilities. Built by the Qwen team, QwQ-32B draws on recent advancements in transformer architectures and reinforcement learning to enhance both mathematical reasoning and coding proficiency. The model was introduced in March 2025, as detailed in the QwenLM blog, and is freely available under the Apache 2.0 license.

A video introduction to QwQ-32B, outlining its core capabilities and areas of application. · Source

Technical Architecture

At its core, QwQ-32B employs a transformer-based architecture, with a foundation in the design principles established by Qwen2.5. The architecture features 64 layers and a Grouped Query Attention (GQA) mechanism, allocating 40 attention heads for query vectors and 8 for key and value vectors per group. With a total of 32.5 billion parameters—31.0 billion of which are non-embedding—the model leverages several innovative components, including Rotary Position Embeddings (RoPE), the SwiGLU activation function, Root Mean Square Layer Normalization (RMSNorm), and Attention QKV bias.

This technical foundation supports efficient scaling to long contexts and contributes to its reasoning capabilities. Specifically, context length can be expanded beyond 8,192 tokens with the YaRN (Yet another RoPE extension) technique, configurable via model settings to adapt to tasks requiring long input sequences.

Training Methodology

QwQ-32B's training regimen combines supervised fine-tuning with outcome-driven reinforcement learning (RL), using extensive pretraining data for language understanding and world knowledge. During the initial RL stage, the model receives scaled feedback focused on math and code generation tasks: a mathematical verifier awards accuracy-based rewards for problem-solving, while a code execution server evaluates generated code by actual runtime results. This contrasts with conventional reward models and contributes to directly optimizing for high-precision outputs in specialized domains.

In a subsequent stage, the RL process broadens to general capabilities. Here, rewards are drawn from a mix of general-purpose reward models and rule-based verifiers, improving instruction-following, alignment with human preferences, and agentic behaviors. This two-stage RL strategy enhances both domain-specific competencies and general reasoning, enabling the model to remain competitive even compared to models with significantly larger parameter counts.

Performance and Benchmarks

QwQ-32B performs competitively across a suite of standard benchmarks relevant to reasoning, coding, and mathematics. Its performance is frequently measured against models such as DeepSeek-R1 and OpenAI o1-mini. The model's relative standing is exemplified in metrics reported for AIME24, LiveCodeBench, LiveBench, IFEval, and BFCL, as detailed in the model's introduction materials.

Benchmark chart comparing QwQ-32B with several reasoning models

Figure 1. Performance comparison of QwQ-32B (red) with DeepSeek-R1-671B, OpenAI-o1-mini, DeepSeek-R1-Distill-Llama-70B, and DeepSeek-R1-Distill-Qwen-32B across five benchmarks. Values above each bar indicate absolute scores. Benchmark data for QwQ-32B is shown, as reported in the Qwen model card.

Notably, QwQ-32B achieves scores of 79.5 in AIME24, 63.4 in LiveCodeBench, 73.1 in LiveBench, 83.9 in IFEval, and 66.4 in BFCL, illustrating efficient reasoning despite a smaller parameter footprint compared to some competitors. Performance evaluations on tasks such as mathematical problem-solving, coding accuracy, and general logic validate its design focus on complex reasoning.

Capabilities, Usage, and Applications

QwQ-32B is primarily designed for tasks demanding logical thought, multi-step reasoning, and adaptability. It can solve intricate mathematical problems (with prompts such as: "Please reason step by step, and put your final answer within \boxed{}."), accurately generate code, and follow nuanced instructions requiring alignment with human intentions. The model supports agentic use cases, where it "thinks critically"—evaluating its outputs, interacting with tools, and adjusting responses based on environmental feedback.

For deployment, it is recommended to use Hugging Face transformers version 4.37.0 or newer to ensure compatibility and facilitate intended performance. Users can customize prompt formatting and decoding settings to tune output for specific requirements, with options such as temperature, top-p, and top-k widely recognized for balancing diversity and repetition in generated sequences. When working with long sequences, YaRN can be enabled by adjusting the model configuration to improve context handling.

QwQ-32B is well suited for applications in mathematics, competitive programming, code generation, and more general natural language reasoning tasks. Its post-training processes and explicit integration of agent-like behaviors provide flexibility for research into long-horizon reasoning and interactive AI systems.

Model Family, License, and Limitations

QwQ-32B belongs to the broader Qwen model family, which comprises a variety of transformer architectures with differing focuses and scales. While QwQ-32B is considered a medium-sized model within this series, it demonstrates performance comparable to significantly larger models, such as DeepSeek-R1 with 671 billion parameters (37 billion activated), as well as several distilled variants, as described in recent technical reports.

The model is distributed as open-weight software under the terms of the Apache 2.0 license, supporting both academic research and further development.

Documented limitations include compatibility requirements on specific software libraries (notably, transformers version 4.37.0 or newer is required to avoid loading issues) and the use of vLLM for deployment, which currently only supports static YaRN scaling for long contexts—potentially impacting performance when input length varies significantly.

Helpful Resources

About Qwen 2: Qwen 2 (and 2.5) is a family of advanced AI models developed by Alibaba, designed to excel in various tasks including general language understanding, coding, and mathematics.

More in the Qwen 2 Family

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 /

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.
Deepseek AI /

DeepSeek R1 Distill Qwen 1.5B

A 1.5 billion parameter language model created through distillation techniques, focusing on mathematical reasoning and chain-of-thought problem-solving capabilities.
Agentica /

DeepCoder 1.5B Preview

A 1.5B parameter code generation model fine-tuned with reinforcement learning and iterative context lengthening for long-context reasoning tasks.
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.
Deepseek AI /

DeepSeek R1 Distill Qwen 7B

A 7.62B parameter distilled language model based on Qwen2.5-Math-7B, trained via knowledge distillation for mathematical and logical reasoning tasks.
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.
Deepseek AI /

DeepSeek R1 Distill Qwen 14B

A 14B dense language model distilled from a mixture-of-experts architecture, optimized for mathematical reasoning and code generation tasks.
Agentica /

DeepCoder 14B Preview

A 14-billion parameter code reasoning model fine-tuned using distributed reinforcement learning with long-context capabilities up to 64,000 tokens.
Deep Cogito /

Cogito V1 Preview 14B

A 14.8 billion parameter instruction-tuned language model trained using Iterated Distillation and Amplification with hybrid reasoning capabilities across 30+ languages.
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.
Deepseek AI /

DeepSeek R1 Distill Qwen 32B

A 32B parameter language model created through knowledge distillation, optimized for mathematical reasoning, code generation, and complex problem-solving tasks.
Deep Cogito /

Cogito V1 Preview 32B

A 32-billion parameter instruction-tuned model based on Qwen2.5 architecture featuring dual operational modes and iterated distillation alignment methodology.
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.

More from Alibaba Cloud

Alibaba Cloud /

Qwen3 0.6B

A 0.6B parameter language model featuring dual thinking modes, multilingual capabilities, and 32K context length through strong-to-weak distillation training.
Alibaba Cloud /

Qwen3 1.7B

A 1.7 billion parameter multilingual transformer supporting dual-mode reasoning with step-by-step "thinking" and rapid "non-thinking" response capabilities.
Alibaba Cloud /

Qwen3 4B

A 4-billion parameter transformer model featuring dual reasoning modes, extensive multilingual training, and competitive performance across mathematical, coding, and logical reasoning benchmarks.
Alibaba Cloud /

Qwen3 8B

Dense 8.2 billion parameter transformer model featuring hybrid thinking capabilities with 32K token context and multilingual support across 119 languages.
Alibaba Cloud /

Qwen3 14B

A 14.8 billion parameter transformer model featuring hybrid thinking/non-thinking reasoning modes, 32K context length, and multilingual capabilities across 119 languages.
Alibaba Cloud /

Qwen3 32B

A 32.8 billion parameter language model featuring hybrid thinking modes for both rapid responses and step-by-step reasoning across multilingual tasks.
Alibaba Cloud /

Qwen3 30B A3B

Mixture-of-experts model with 30.5B total parameters, 3.3B activated per token, featuring hybrid reasoning modes and multilingual support across 119 languages.
Alibaba Cloud /

Qwen3 235B A22B

Large language model with Mixture-of-Experts architecture featuring dual operational modes for both rapid inference and complex reasoning tasks.
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.