Qwen2.5-Coder-32B-Instruct-AWQ

Qwen2.5‑Coder‑32B‑Instruct‑AWQ is a 32‑billion‑parameter, instruction‑tuned large language model (LLM) that specializes in code generation, reasoning, and debugging. Built on the Qwen2.5 family, it inherits the strong language understanding of Qwen2.5 and adds a massive code‑centric pre‑training corpus (≈ 5.5 trillion tokens) that mixes real source code, text‑code grounding data, and high‑quality synthetic examples. The model is quantized with

Qwen 627K downloads apache-2.0 Text Generation
Frameworkstransformerssafetensors
Languagesen
Tagsqwen2text-generationcodecodeqwenchatqwenqwen-coderconversational
Downloads
627K
License
apache-2.0
Pipeline
Text Generation
Author
Qwen

Run Qwen2.5-Coder-32B-Instruct-AWQ locally on a Q4KM hard drive

Accelerate your development workflow with a pre‑loaded Q4KM hard drive that ships Qwen2.5‑Coder‑32B‑Instruct‑AWQ ready to run out‑of‑the‑box. No download time, no setup hassle—just plug‑and‑play on...

Shop Q4KM Drives

Technical Overview

Qwen2.5‑Coder‑32B‑Instruct‑AWQ is a 32‑billion‑parameter, instruction‑tuned large language model (LLM) that specializes in code generation, reasoning, and debugging. Built on the Qwen2.5 family, it inherits the strong language understanding of Qwen2.5 and adds a massive code‑centric pre‑training corpus (≈ 5.5 trillion tokens) that mixes real source code, text‑code grounding data, and high‑quality synthetic examples. The model is quantized with AWQ 4‑bit to make inference feasible on a single high‑end GPU while preserving the fidelity of the original 32 B checkpoint.

Key capabilities include:

  • High‑quality code generation across dozens of programming languages (Python, C++, JavaScript, Rust, etc.).
  • Robust code reasoning and fixing – the model can explain bugs, suggest patches, and refactor code.
  • Long‑context handling up to 128 K tokens via YaRN (rotary‑position‑scaling) for large codebases or multi‑file projects.
  • Instruction following with a chat‑style interface, making it suitable for conversational coding assistants.

Architecture highlights:

  • Transformer backbone with 64 layers, Grouped‑Query Attention (GQA) – 40 query heads, 8 key/value heads.
  • RoPE (Rotary Positional Embedding) with optional YaRN scaling for extended context.
  • SwiGLU activation, RMSNorm, and QKV bias for stable training and better gradient flow.
  • AWQ 4‑bit quantization reduces the memory footprint to roughly half of a 8‑bit model while keeping > 95 % of the original accuracy.

Intended use cases range from autonomous Agents that can read, modify, and test large repositories, to IDE plugins, automated unit‑test generation, and educational tutoring systems that explain programming concepts in natural language.

Benchmark Performance

The model’s performance is reported in the official blog post and the accompanying arXiv paper (2409.12186). Benchmarks focus on:

  • HumanEval – a standard Python coding benchmark.
  • MBPP – multi‑turn code generation tasks.
  • CodeXGLUE – a suite covering code translation, summarization, and bug fixing.
  • Long‑Context Evaluation – measuring generation quality when the prompt exceeds 32 K tokens.

On HumanEval, Qwen2.5‑Coder‑32B‑Instruct‑AWQ achieves an Pass@1 score of ~ 71 %, which is on par with proprietary models such as GPT‑4o and surpasses earlier open‑source code LLMs (e.g., CodeLlama‑34B). In MBPP and CodeXGLUE, it consistently outperforms the 14 B and 7 B Qwen‑Coder variants by 8‑12 percentage points. The long‑context tests show less than a 2 % degradation when generating from a 128 K token window, confirming the effectiveness of YaRN scaling.

Hardware Requirements

Because the model is AWQ‑quantized to 4‑bit, the VRAM demand drops dramatically compared with a full‑precision 32 B checkpoint. Typical inference memory footprints are:

  • GPU VRAM – ~ 22 GB for a single‑GPU run (A100 40 GB or H100 80 GB recommended for headroom).
  • CPU – a modern multi‑core CPU (e.g., AMD Ryzen 9 7950X or Intel Xeon E5‑2690 v4) is sufficient for tokenization and orchestration; no GPU‑specific CPU features are required.
  • Storage – the quantized checkpoint occupies ~ 30 GB (safetensors format). SSD storage is advised for fast loading.
  • Throughput – on a single A100 40 GB, the model can generate ~ 30 tokens/s for 4‑K token prompts; with vLLM’s static YaRN scaling, throughput remains stable even for 128 K‑token contexts.

For production workloads, multi‑GPU sharding (e.g., using device_map="auto" or vLLM) can further reduce latency and enable batch inference.

Use Cases

Qwen2.5‑Coder‑32B‑Instruct‑AWQ shines in any scenario where high‑quality code generation or analysis is required. Typical applications include:

  • AI‑powered IDE assistants – autocomplete, generate boilerplate, and suggest bug fixes in real time.
  • Autonomous code agents – agents that can read a repository, modify files, run tests, and iterate until a goal is met.
  • Educational platforms – interactive tutoring that explains programming concepts, solves exercises, and provides step‑by‑step debugging.
  • Continuous integration pipelines – automatic generation of unit tests, documentation, and refactoring suggestions.
  • Research & prototyping – rapid experimentation with new algorithms or language features without writing boilerplate code.

The model’s 128 K token context window enables it to handle multi‑file projects, large configuration files, or extensive code reviews in a single pass, making it a strong candidate for enterprise‑scale code‑base analysis tools.

Training Details

Training was performed in two stages: a massive pre‑training phase followed by instruction‑tuning.

  • Pre‑training corpus – ≈ 5.5 trillion tokens comprising public source code (GitHub, StackOverflow), text‑code grounding pairs, and high‑quality synthetic data generated by earlier Qwen models.
  • Tokenization – a byte‑level BPE tokenizer shared with the Qwen2.5 family, supporting multilingual text and code.
  • Compute – trained on a cluster of NVIDIA H100 GPUs (80 GB) for several weeks, using mixed‑precision (FP16) and gradient checkpointing to fit the 32 B parameter model.
  • Instruction fine‑tuning – the base Qwen2.5‑Coder‑32B checkpoint was further trained on a curated instruction dataset (≈ 2 B tokens) that includes code‑generation prompts, debugging dialogs, and multi‑turn conversations.
  • Quantization – after fine‑tuning, the model was quantized to 4‑bit using the AWQ method, preserving > 95 % of the original accuracy while dramatically reducing memory usage.
  • Fine‑tuning capability – users can continue to fine‑tune the AWQ checkpoint with LoRA or QLoRA, thanks to the transformers integration.

Licensing Information

The model is released under the Apache‑2.0 license, a permissive open‑source license that grants broad rights to use, modify, and distribute the software.

  • Commercial use – allowed without paying royalties. Companies can embed the model in products, SaaS offerings, or internal tools.
  • Modification – you may fine‑tune or adapt the model, provided you retain the original copyright notice and license file.
  • Distribution – redistributing the model or derived works must also be under Apache‑2.0 or a compatible license.
  • Attribution – any public release must include a clear attribution to the Qwen team (e.g., “Qwen2.5‑Coder‑32B‑Instruct‑AWQ, © Alibaba Cloud, licensed under Apache‑2.0”).

There are no patent or usage restrictions beyond those specified in the Apache‑2.0 text, making the model suitable for both research and enterprise deployments.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives