Skip to main content
Back

Alibaba's Qwen2.5-Coder Hits 775K Downloads Running on 8GB GPUs

A community 4-bit AWQ build of Qwen2.5-Coder-7B-Instruct is pulling in three quarters of a million downloads, shrinking the model to under 6GB of VRAM.

Pro

Model, Full Access
  • Community AWQ 4-bit quant of Qwen2.5-Coder-7B-Instruct has crossed 775K downloads on Hugging Face.
  • Runs in ~5.7GB VRAM with a 32K context, usable on 8GB consumer GPUs.
  • Base model trained on 5.5T code tokens, covers 92 programming languages, Apache 2.0 licensed.
  • Benchmark highlights: HumanEval 87.8%, LiveCodeBench 28.6%, SWE-Bench Verified 20.3%.
  • Drop-in with Transformers and vLLM via standard model_id loading, no API fees.
  • Independent trackers rate it below frontier intelligence but strong value for local coding workflows.

A community AWQ checkpoint of Alibaba’s Qwen2.5-Coder-7B-Instruct has passed 775,000 downloads on Hugging Face. The package converts the model’s weights to 4-bit precision, bringing the reported model load to about 5.7GB and enabling short-context inference on many 8GB GPUs.

The checkpoint retains the architecture, tokenizer, instruction tuning, and Apache 2.0 license of the source model. Its appeal comes from deployment: BF16 weights for a 7.61-billion-parameter model consume roughly 15.2GB before runtime overhead, while this build leaves some room for activations and the key-value cache on smaller cards. Hugging Face’s counter includes repeated and automated file pulls, so the total cannot establish a unique-user count.

Inside the AWQ checkpoint

AWQ, short for Activation-aware Weight Quantization, uses calibration activations to identify sensitive weight channels and select scaling factors before converting weights to lower precision. The method reduces quantization error while keeping the stored weights compact. The 4-bit label applies to weights; activations and the key-value cache generally retain higher precision unless the inference engine configures them separately.

Specification Details
Parameters 7.61 billion
Transformer layers 28
Attention 28 query heads and 4 shared key-value heads
Architecture Qwen2 with RoPE, SwiGLU, RMSNorm, and grouped-query attention
Quantization 4-bit AWQ
Weight download About 5.3GB across four files
Reported model VRAM About 5.7GB before workload-dependent overhead
Configured context 32,768 tokens
Extended context Up to 131,072 tokens using the parent model’s YaRN configuration
License Apache 2.0, including commercial use subject to its terms

Grouped-query attention reduces cache memory by sharing four key-value heads across 28 query heads. Prompt length, generated tokens, batch size, and cache precision still determine peak VRAM. An 8GB card can load the weights, but a 32K context may exhaust the remaining memory. YaRN, a RoPE-scaling method used for longer contexts, increases those runtime demands further.

Why developers pull it

Alibaba trained the Qwen2.5-Coder series on 5.5 trillion tokens of source code and related material spanning 92 programming languages. The 7B instruction model targets code generation, completion, repair, explanation, and code-related reasoning. Alibaba’s published comparisons placed it ahead of larger models including DeepSeek-Coder-V2-Lite and CodeStral-22B on several selected coding tests.

Published results for the parent model place the 7B tier in a useful range for local inference:

Benchmark Reported score What it measures
HumanEval 88.4 Short Python programming problems
MBPP 83.5 Entry-level Python function generation
LiveCodeBench 28.6 Time-split competitive programming tasks
SWE-bench Verified 20.3 Issue resolution in real repositories

Quantization can shift benchmark scores, and the community repository does not publish an equivalent AWQ-specific evaluation. Benchmark versions, prompts, generation settings, and execution harnesses also affect results. Teams should measure the quantized checkpoint against their own languages, repositories, and acceptance tests.

From Hub to localhost

A recent Transformers installation, Accelerate, and an AWQ-compatible backend can load the checkpoint directly. AWQ package compatibility varies by Transformers and PyTorch version, so production environments should pin tested dependencies and a specific model revision.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "Orion-zhen/Qwen2.5-Coder-7B-Instruct-AWQ"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype="auto",
)

messages = [
    {"role": "user", "content": "Write a quicksort in Rust."}
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.inference_mode():
    output = model.generate(
        **inputs,
        max_new_tokens=512,
        do_sample=False,
    )

new_tokens = output[0, inputs["input_ids"].shape[1]:]
print(tokenizer.decode(new_tokens, skip_special_tokens=True))

The example uses deterministic greedy decoding and returns only newly generated tokens. With device_map="auto", Transformers may offload layers to system memory when GPU capacity is insufficient, which reduces speed and changes memory behavior.

vLLM can expose the model through an OpenAI-compatible local API while limiting the context allocation for an 8GB deployment:

vllm serve Orion-zhen/Qwen2.5-Coder-7B-Instruct-AWQ \
  --host 127.0.0.1 \
  --max-model-len 8192

The command serves an API under http://127.0.0.1:8000/v1. Increasing --max-model-len reserves more capacity for the key-value cache. Self-hosting removes provider per-token charges while retaining hardware, electricity, maintenance, and security costs. Any server exposed beyond localhost should use deliberate network controls and authentication.

Useful work within 7B limits

The model is a practical fit for coding tasks with bounded context and verifiable output:

  • IDE completion, inline edits, and code chat.
  • Function-level refactoring and language translation.
  • Unit-test scaffolding, docstrings, and boilerplate generation.
  • Codebase questions over retrieved files that fit within the active context.
  • Offline workflows where the model, tools, and dependencies remain local.
  • Low-cost pipeline stages whose output is checked by tests or static analysis.

Capacity remains the main constraint. Complex multi-file repairs, long autonomous agent runs, and tasks requiring broad architectural reasoning generally favor larger coding or reasoning models. The advertised 128K extension also carries a substantial memory and latency cost, and a long context window does not guarantee reliable use of every token.

Generated code still requires compilation, tests, dependency review, and security analysis. Support for 92 languages describes training coverage; quality will vary across ecosystems, libraries, and less common syntax.

Packaging widened the hardware pool

The checkpoint’s distribution comes from a concrete deployment change: developers can run a capable code model on hardware that cannot hold the source weights in BF16. That makes it suitable for laptop experiments, private code environments, and local services with predictable infrastructure costs.

Alibaba’s Qwen organization also publishes an official AWQ checkpoint. Teams should compare quantization settings and model revisions, run workload-specific evaluations, pin the selected commit, and preserve Apache 2.0 notices. For autocomplete, code chat, and contained refactoring on an 8GB GPU, the community build offers a compact route to deploying Qwen2.5-Coder locally.