Skip to main content
Browse Models

Alibaba Cloud

Qwen 2.5 Coder 32B

Released

2024-11-10

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

Instruct model, 4-bit GGUF (Q4_K_M)

GGUF · Qwen2.5-Coder-32B-Instruct-Q4_K_M.gguf

Instruct model, 5-bit GGUF (Q5_K_M)

GGUF · Qwen2.5-Coder-32B-Instruct-Q5_K_M.gguf

Instruct model, 6-bit GGUF (Q6_K)

GGUF · Qwen2.5-Coder-32B-Instruct-Q6_K.gguf

Instruct model, 8-bit GGUF (Q8_0)

GGUF · Qwen2.5-Coder-32B-Instruct-Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Qwen2.5-Coder-32B is a large language model specialized for programming and code intelligence tasks, developed by the Qwen Team at Alibaba Group as part of the Qwen model family. Based on the Qwen2.5 architecture, it provides support for programming across a wide array of languages and tasks. With its substantial parameter count and refined training methodology, Qwen2.5-Coder-32B is an open code generation model (Qwen2.5-Coder blog post; Qwen2.5-Coder technical report).

Qwen3 project logo featuring an abstract geometric motif and the text 'Qwen3' in purple on white background.

Figure 1. The Qwen3 logo prominently represents the latest series of large language models from Alibaba Group, including the Qwen2.5-Coder model family.

Model Architecture and Capabilities

Qwen2.5-Coder-32B contains approximately 32.5 billion parameters (31.0B non-embedding), organized in a transformer-based architecture enhanced with rotary position embeddings (RoPE), SwiGLU activations, Root Mean Square Layer Normalization (RMSNorm), and Attention QKV bias (Qwen2.5-Coder-32B Hugging Face model card). The model comprises 64 transformer layers, with 40 attention heads for the query (Q) and 8 for the value (KV), following the Grouped Query Attention (GQA) paradigm. An architectural feature is its ability to manage long context windows, accepting up to 128,000 tokens through the incorporation of the Yet another RoPE N-gram (YaRN) method (YaRN arXiv preprint).

Qwen2.5-Coder models are instruction-tuned or available as base models, depending on the intended application. They support over 92 programming languages, and support capabilities in code generation, completion, repair, and reasoning (Qwen2.5-Coder technical report; Qwen2 technical report). The architecture is designed to handle multi-language and repository-level completions, as well as fill-in-the-middle tasks facilitated by dedicated token schemes (Efficient Training of Language Models to Fill in the Middle).

Training Data and Methodology

Qwen2.5-Coder-32B was trained on an extensive dataset comprising approximately 5.5 trillion tokens that include a blend of source code, instructional text-code samples, and synthetic data. This dataset was curated to cover programming languages and task diversity, aiming to support the model’s application in software development scenarios (Qwen2.5-Coder blog post). Training strategies, such as instruction tuning and alignment, support capabilities in creative task following, role-playing, and multi-turn dialogue, which are relevant for code assistant applications (Qwen2.5-Coder technical report).

Benchmark Performance

Qwen2.5-Coder-32B and its smaller siblings have been evaluated on a wide range of code-centric and general reasoning benchmarks. Results indicate that the instruction-tuned variants, in particular, perform on various benchmarks when compared to contemporary open-source models.

Radial bar chart comparing Qwen2.5-Coder's coding benchmark scores to other models.

Figure 2. The radial bar chart illustrates Qwen2.5-Coder's performance on coding benchmarks, including HumanEval, EvalPlus, and MBPP, in comparison to other open code models.

Comparisons on evaluation tasks like HumanEval, MBPP, MultiPL-E, CRUXEval, and BigCodeBench show results in code synthesis, fill-in-the-middle, and code reasoning tasks for Qwen2.5-Coder models (Qwen2.5-Coder blog post).

Scatter plot of model size versus CRUXEval-O (CoT) performance.

Figure 3. CRUXEval-O (CoT) analysis indicates Qwen2.5-Coder-Instruct models' code reasoning performance relative to their model size, when compared to other open models.

Qwen2.5-Coder-Instruct performs on benchmarks for code generation and repair, mathematical reasoning (on datasets such as GSM8K and Math), and general abilities (MMLU, ARC). This performance suggests transfer of reasoning skills from its pretraining corpus (Qwen2.5-Coder technical report).

Tabulated performance data comparing Qwen2.5-Coder 7B-Instruct to other models on tasks like HumanEval, MBPP, and McEval.

Figure 4. Benchmark table showing Qwen2.5-Coder-Instruct's results after instruction tuning in comparison with DS-Coder and [Codestral-22B](https://openlaboratory.ai/models/codestral-22b-v0_1), using evaluation tasks such as MBPP, EvalPlus, and CRUXEval.

Qwen2.5-Coder-Instruct also performs on the McEval multilingual benchmark, which encompasses nearly 50 programming languages. The model's instruction-following capability extends to both code and natural language across over 100 human languages and dialects (Qwen2.5-Coder technical report).

Bar chart showing McEval multilingual benchmark performance across code models.

Figure 5. The bar chart illustrates Qwen2.5-Coder-Instruct's performance on the McEval multilingual coding benchmark, indicating its language support.

Implementation, Use Cases, and Limitations

Qwen2.5-Coder-32B is available as both a base and instruction-tuned model (Qwen/Qwen2.5-Coder-32B on Hugging Face). The base variant is primarily used for foundational code completion and fill-in-the-middle tasks, whereas the instruction-tuned version enables chat-based interactions and more complex multi-turn dialogue, and supports applications as a coding assistant.

Typical use cases include single- and multi-file code completion, automatic code repair, repository-level code understanding, and program synthesis. Fill-in-the-middle capabilities allow insertion of code in specified gaps within larger contexts, which is facilitated by specialized prompt templates and tokens (Qwen2.5-Coder blog post). The long-context support, powered by the YaRN method, supports applications involving large repositories or documentation-heavy projects (YaRN arXiv preprint).

Tabular benchmark outcomes for Qwen2.5-Coder-7B-Base and competing models across numerous code and reasoning datasets.

Figure 6. Performance comparison of Qwen2.5-Coder-7B-Base versus other open models across a range of evaluation tasks.

For long input sequences exceeding 32,768 tokens, users are advised to set a rope_scaling configuration in the deployment to leverage dynamic context extension. It is also recommended that base models are not used for conversational chat directly; instead, instruction-tuned variants should be employed where dialogue or chat interactions are required.

Qwen2.5-Coder-32B is distributed under the Apache 2.0 license, facilitating research, modification, and redistribution (Qwen2.5-Coder GitHub repository).

Position within the Qwen Model Family

Qwen2.5-Coder is a constituent of the broader Qwen model suite at Alibaba Group, which includes both dense and Mixture-of-Experts (MoE) architectures suitable for language and multimodal tasks. Within the Coder series, multiple size variants are available, from 0.5B to 32B parameters, allowing for selection based on performance and resource considerations (Qwen Team blog; Qwen Official Documentation). Qwen2.5-Coder focuses on coding skills across languages, instruction-following capabilities, and long-context processing, when compared to its predecessors and peer models.

Helpful External 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 /

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.
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 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.