Skip to main content
Browse Models

Alibaba Cloud

Qwen2.5 14B 1M

Released

2025-01-13

Family

Qwen 2

Type

Fine-Tuned 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-14B-Instruct-1M-Q4_K_M.gguf

Instruct model, 5-bit GGUF (Q5_K_M)

GGUF · Qwen2.5-14B-Instruct-1M-Q5_K_M.gguf

Instruct model, 6-bit GGUF (Q6_K)

GGUF · Qwen2.5-14B-Instruct-1M-Q6_K.gguf

Instruct model, 8-bit GGUF (Q8_0)

GGUF · Qwen2.5-14B-Instruct-1M-Q8_0.gguf

Instruct model, 16-bit GGUF (F16)

GGUF · Qwen2.5-14B-Instruct-1M-f16.gguf

Model Report

Overview

Qwen2.5-14B-Instruct-1M is a large language model developed by the Qwen Team at Alibaba Group. As part of the Qwen2.5-1M series, the model introduces the capacity for processing input sequences up to one million tokens in length. This increase in context length supports applications that require reasoning across extensive documents, repository-level codebases, or collections of heterogeneous information. Qwen2.5-14B-Instruct-1M is released under an open-source license, with full technical documentation and benchmarks publicly available. The innovations in context handling, optimization, and training strategies address challenges intrinsic to long-context language modeling, supporting performance across both standard and expanded-context tasks (Qwen2.5-1M Technical Report, Qwen2.5-1M blog).

Heatmaps of Passkey Retrieval Accuracy for Qwen2.5-14B-Instruct-1M and Related Models

Figure 1. Passkey retrieval accuracy for Qwen2.5-14B-Instruct-1M across diverse document depths and context lengths, demonstrating sustained 100% accuracy up to 1 million tokens.

Model Architecture and Training Innovations

Qwen2.5-14B-Instruct-1M is based on a Transformer architecture, incorporating architectural and training components. Notably, it employs Grouped Query Attention (GQA) to optimize cache efficiency in the attention mechanism, and SwiGLU for activation, facilitating improved convergence and stability. Rotary Position Embeddings (RoPE) are used for encoding positional information, complemented by QKV bias and RMSNorm for normalization and training robustness (model architecture, HuggingFace model card).

The model contains 14.7 billion parameters (13.1 billion non-embedding), distributed over 48 layers. Support for extended long-context inputs is realized through a series of training-stage innovations.

A progressive pre-training scheme gradually expands the context window from an initial size of 4,096 tokens up to 262,144 tokens, using both natural and synthetic corpora to optimize performance at scale. Subsequently, a two-stage supervised fine-tuning process is applied: the first stage focuses on shorter tasks (≤32,768 tokens), while the second co-trains on mixed-length data, including extended sequences up to 262,144 tokens. Offline Reinforcement Learning, akin to Direct Preference Optimization (DPO), is used for model alignment, ensuring human-like preference in responses (training stages).

Flowchart illustrating Qwen2.5-1M training stages

Figure 2. Flowchart showing progressive context length expansion in Qwen2.5-1M training, from the base model through stages of pre-training, SFT, and RLHF.

Techniques for Long-Context Modeling

Qwen2.5-14B-Instruct-1M uses methods for length extrapolation, which allow the model to operate effectively on contexts beyond the lengths encountered during training. The Dual Chunk Attention (DCA) mechanism is employed to remap relative positional indices, mitigating accuracy degradation in ultra-long sequences. This method, integrated with attention scaling via the YaRN method, enables extrapolative inference at lengths up to one million tokens without additional training (Dual Chunk Attention, Qwen2.5-1M blog).

To further accelerate long-context inference, the model integrates a sparse attention mechanism called MInference. This approach reduces the computational and memory costs of the prefill phase and includes features such as chunked prefill and sparsity refinement for high-precision processing of million-token sequences (MInference and optimization). These innovations are supported by engine optimizations in BladeLLM, which implements dynamic chunked pipeline parallelism and advanced scheduling strategies for efficient large-scale inference.

Line charts comparing prefill speed on various Qwen2.5-1M models

Figure 3. Line charts depict substantial prefill speedup achieved by the sparse attention mechanism compared to standard full attention, across multiple devices and model scales.

Evaluation and Benchmark Performance

Qwen2.5-14B-Instruct-1M shows performance across a range of benchmarks, including long-context scenarios. In the Passkey Retrieval task, the model sustains perfect accuracy in retrieving information from sequences up to 1 million tokens, irrespective of the answer’s position in the document (benchmark results, Qwen2.5-1M blog).

Line chart for passkey retrieval accuracy with and without DCA

Figure 4. Ablation results demonstrating the necessity of Dual Chunk Attention for sustaining high accuracy in passkey retrieval across extended contexts.

On the RULER benchmark, which measures long-context reasoning, Qwen2.5-14B-Instruct-1M achieved a score of 95.7 (average), outperforming GPT-4 and GPT-4o-mini at 128K contexts (RULER benchmark table). For LV-Eval (evaluating up to 256K context tokens) and LongBench-Chat (up to 100K tokens), the model shows performance among models.

Table comparing RULER benchmark scores

Figure 5. Benchmark comparison table for RULER scores across leading long-context language models, highlighting Qwen2.5-14B-Instruct-1M’s high performance with 1M-token contexts.

Table for LV-Eval and LongBench-Chat results

Figure 6. LV-Eval and LongBench-Chat results showing consistent gains for Qwen2.5-14B-Instruct-1M across a range of long-context tasks and context window sizes.

On short-context and general-purpose tasks, Qwen2.5-14B-Instruct-1M maintains parity with its 128K-token predecessor and competitive models like GPT-4o-mini, while still offering the capability to process much longer sequences (performance data). Standard benchmarks such as MMLU-Pro, MATH, HumanEval, Arena-Hard, and MTBench confirm the model’s proficiency on a broad spectrum of reasoning, mathematics, coding, and alignment tasks.

Comprehensive benchmark table including short and long-context tasks

Figure 7. Table summarizing Qwen2.5-14B-Instruct-1M’s benchmark scores across a variety of tasks, demonstrating balanced performance even as context length scaling increases.

Applications and Related Models

The capabilities of Qwen2.5-14B-Instruct-1M make it suitable for tasks that demand extensive context integration, such as code generation with repository-scale context, literature review over large document corpora, or integrative information retrieval from ultra-long records (use cases). Tasks requiring synthesis from multiple evidence fragments, or alignment with human preferences in extended dialogues, are also supported.

Other models in the Qwen2.5-1M series include the open Qwen2.5-7B-Instruct-1M, which also achieves 1M context support with lower resource requirements, and Qwen2.5-Turbo, a Mixture of Experts model accessible via API. These models are complemented by previous Qwen2.5 architectures with shorter context (128K tokens) and larger models such as Qwen2.5-72B-Instruct, which show performance in select benchmarks (model family overview, Qwen2.5-1M blog).

Model Limitations and Development

Despite its long-context capabilities, Qwen2.5-14B-Instruct-1M has notable limitations. For local deployment at full 1M-token context, substantial VRAM is required; for the 14B model, the minimum recommended is 320GB, restricting accessibility for certain users (deployment details, HuggingFace documentation). The model’s sparse attention implementation can be sensitive to sparsity configuration, and optimal settings may require additional tuning for ultra-long contexts.

While length extrapolation methods avoid the need for retraining when scaling to larger contexts, small accuracy drops can still occur, especially when legacy inference frameworks are used instead of the recommended optimized implementations. The research team continues to investigate approaches for scaling, reduced-memory training, and further optimization (ongoing development).

Qwen2.5-14B-Instruct-1M is provided under the Apache 2.0 license (license details).

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