How much VRAM does Qwen2.5 Coder 7B need? (also Qwen2.5 7B)

Qwen2.5 Coder 7B needs about 5.5 GB of video memory at Q4 with a 4K context, so it runs fully on any graphics card with 6 GB or more. At full FP16 quality it needs about 16.0 GB. It supports up to 32K tokens of context. Qwen2.5 7B and Qwen2.5 Coder 7B have the same parameter count, KV-cache layout and context length, so every figure on this page applies to both.

ollama run qwen2.5:7b ollama run qwen2.5-coder:7b

Figures checked 19 Nov 2026 against the model's published configuration · Sources and method

Memory needed by quality and context length

Quality4K context16K context32K context
Q4 (Q4_K_M)5.5 GB6.2 GB7.2 GB
Q5 (Q5_K_M)6.3 GB7.0 GB8.0 GB
Q8 (Q8_0)8.9 GB9.7 GB10.6 GB
FP16 (full)16.0 GB16.8 GB17.8 GB

Estimates for llama.cpp / Ollama (GGUF): weights + KV cache (FP16) + about 0.6 GB for the runtime. A model can use about 95% of a card's memory. Q4 is the usual sweet spot; Q8 is close to full quality.

Which graphics cards run it?

Fully on the GPU at Q4 with a 4K context: any card with 6 GB or more, for example GTX 1060, RTX 3050, GTX 1660 Super, RTX 2060 (everything a 6 GB card runs). For Q8 (near full quality), 10 GB or more.

RTX 3050: check price on AmazonGigabyte RTX 3050 Windforce OC 6G · affiliate link

On a Mac: 16 GB of unified memory or more.

Similar-size models

Sources and method

Spotted a figure that does not match the model card? Use the "Tell us" link at the bottom of the page.

Questions people ask

How much VRAM does Qwen2.5 Coder 7B need?

About 5.5 GB at Q4 (Q4_K_M), 6.3 GB at Q5, 8.9 GB at Q8 and 16.0 GB at FP16, with a 4K-token context. A longer context adds about 0.2 GB for every 4K tokens.

Can Qwen2.5 Coder 7B run on an 8 GB graphics card?

Yes. At Q5 (Q5_K_M) it needs about 6.3 GB, which fits in 8 GB with room for a 4K context.

Can I run Qwen2.5 Coder 7B on a Mac?

Yes, on an Apple Silicon Mac with 16 GB of unified memory or more, where macOS lets the GPU use about 11 GB by default. Run it with "ollama run qwen2.5-coder:7b".

How do I run Qwen2.5 Coder 7B with Ollama?

Install Ollama, then run "ollama run qwen2.5-coder:7b". Ollama downloads a Q4 version by default, which is the usual sweet spot of quality and memory.

Spotted a wrong number? Tell us and we'll fix it.