Qwen2.5 0.5B

494M parameters · 32k context · Apache License 2.0 · released 2024-09-16

chat

In short

Qwen2.5 0.5B is an open model from Alibaba Qwen with 494M parameters. At Q8_0, Qwen2.5 0.5B needs about 1 GB of memory at 8k context and 1 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the UK that runs Qwen2.5 0.5B fully in memory at 8k context is the NVIDIA Tesla P40, £261 at eBay, at about 340 tok/s (estimated).

Updated . Speeds are estimates; how they are worked out.

What to run it on in the UK

Fully in memory at 8k context, priced at retailers today.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
NVIDIA Tesla P40Q8_0fits340 tok/s£2611302.6
AMD Radeon RX 7600 XTQ8_0fits251 tok/s£348719.6
Intel Arc B580Q8_0fits361 tok/s£3491035.5
NVIDIA GeForce RTX 3060 12GBQ8_0fits353 tok/s£390905.9
NVIDIA GeForce RTX 3080 10GBQ8_0fits746 tok/s£4661601.7
AMD Radeon RX 9060 XT 16GBQ8_0fits279 tok/s£499558.6
NVIDIA GeForce RTX 5060 Ti 16GBQ8_0fits440 tok/s£550799.5
AMD Radeon RX 7800 XTQ8_0fits543 tok/s£568956.6
Intel Arc A770 16GBQ8_0fits443 tok/s£588753.7
AMD Radeon RX 9070 XTQ8_0fits557 tok/s£670832.0
NVIDIA GeForce RTX 5070Q8_0fits660 tok/s£695948.9
Intel Arc Pro B60Q8_0fits361 tok/s£742486.4
Mac mini M4 16GBQ8_0fits124 tok/s£765161.4
AMD Radeon RX 7900 XTQ8_0fits697 tok/s£789882.8
NVIDIA GeForce RTX 4070 SuperQ8_0fits495 tok/s£874566.1
NVIDIA GeForce RTX 4070 Ti SuperQ8_0fits660 tok/s£950694.2
NVIDIA GeForce RTX 5070 TiQ8_0fits879 tok/s£975901.9
NVIDIA GeForce RTX 4060 Ti 16GBQ8_0fits283 tok/s£977289.4
AMD Radeon RX 7900 XTXQ8_0fits836 tok/s£999836.6
NVIDIA GeForce RTX 5080Q8_0fits942 tok/s£1,199785.8
Mac mini M4 32GBQ8_0fits124 tok/s£1,200102.9
NVIDIA GeForce RTX 4080 SuperQ8_0fits722 tok/s£1,429505.3
AMD Radeon AI PRO R9700Q8_0fits557 tok/s£1,674332.8
NVIDIA GeForce RTX 3090Q8_0fits919 tok/s£1,707538.2
NVIDIA GeForce RTX 3090 TiQ8_0fits989 tok/s£2,199449.9
Mac mini M4 Pro 48GBQ8_0fits281 tok/s£3,00093.6
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits223 tok/s£3,32067.1
Mac Studio M4 Max 64GBQ8_0fits562 tok/s£3,399165.3
NVIDIA GeForce RTX 5090Q8_0fits1759 tok/s£5,000351.7
Mac Studio M3 Ultra 96GBQ8_0fits843 tok/s£5,499153.2
NVIDIA GeForce RTX 4090Q8_0fits989 tok/s£6,015164.5
Mac Studio M3 Ultra 256GBQ8_0fits843 tok/s£8,49999.2
Mac Studio M3 Ultra 512GBQ8_0fits843 tok/s£17,49548.2
NVIDIA RTX PRO 6000 BlackwellQ8_0fits1759 tok/s£29,50459.6
Mac Studio M4 Max 128GBQ8_0fits562 tok/s––
Mac mini M4 Pro 64GBQ8_0fits281 tok/s––
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits223 tok/s––
NVIDIA DGX Spark 128GBQ8_0fits268 tok/s––
ASUS Ascent GX10 128GBQ8_0fits268 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits223 tok/s––

Memory needed

Weights, KV cache and runtime buffers at each context length (KV cache at fp16).

QuantFile@8k@32k
Q8_0gguf0.5 GB1.3 GB1.8 GB

Run it

Copy a command for the runtime you use.

  • Q8_0
    • Ollamaollama run hf.co/bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q8_0
    • LM Studiolms get bartowski/Qwen2.5-0.5B-Instruct-GGUF@q8_0
    • llama.cppllama-server -hf bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q8_0

Notes

The card says the full context is 32,768 tokens and generation is up to 8192 tokens. Needs transformers 4.37.0 or later, because older versions raise KeyError: 'qwen2'.

Questions

How much VRAM does Qwen2.5 0.5B need?
At Q8_0, Qwen2.5 0.5B needs about 1 GB of memory at 8k context and 1 GB at 8k, counting the weights, the KV cache and runtime buffers.
What is the best GPU for running Qwen2.5 0.5B locally?
The cheapest hardware in the UK that runs Qwen2.5 0.5B fully in memory at 8k context is the NVIDIA Tesla P40, £261 at eBay, at about 340 tok/s (estimated). The best value is the NVIDIA GeForce RTX 3080 10GB (about 746 tok/s for £466). The fastest we price is the NVIDIA GeForce RTX 5090, at about 1759 tok/s.
Can I run Qwen2.5 0.5B on a 16 GB GPU?
Yes: at Q8_0 it fits fully in 16 GB at 8k context. On the NVIDIA GeForce RTX 5080 it runs at about 942 tok/s (estimated).
Can I run Qwen2.5 0.5B on a 24 GB GPU?
Yes: at Q8_0 it fits fully in 24 GB at 8k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 989 tok/s (estimated).
How do I run Qwen2.5 0.5B locally?
With Ollama: ollama run hf.co/bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q8_0 (the Q8_0 build). LM Studio and llama.cpp commands are on this page.
What licence is Qwen2.5 0.5B released under?
Apache License 2.0, which allows commercial use.