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 Q4_K_M, 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 Canada that runs Qwen2.5 0.5B fully in memory at 8k context is the NVIDIA GeForce RTX 3060 12GB, $563 at Amazon, at about 353 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in Canada today
NVIDIA GeForce RTX 3060 12GB, used at eBay
Runs Qwen2.5 0.5B at Q8_0 fully in memory at 8k context, about 353 tok/sest.
$499
In stock, checked
What to run it on in Canada
Fully in memory at 8k context, priced at retailers today.
Cheapest
NVIDIA GeForce RTX 3060 12GB353tok/sest.Q8_0
$563
Best value
NVIDIA GeForce RTX 3080 10GB746tok/sest.Q8_0
$860
Fastest
NVIDIA GeForce RTX 50901759tok/sest.Q8_0
$12,300
Mac
Mac mini M4 16GB124tok/sest.Q8_0
$1,000
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k |
|---|---|---|---|
| Q4_K_Mgguf | 0.4 GB | 1.2 GB | 1.6 GB |
| Q5_K_Mgguf | 0.4 GB | 1.2 GB | 1.7 GB |
| Q6_Kgguf | 0.5 GB | 1.3 GB | 1.7 GB |
| Q8_0gguf | 0.5 GB | 1.3 GB | 1.8 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q4_K_M - LM Studio
lms get bartowski/Qwen2.5-0.5B-Instruct-GGUF@q4_k_m - llama.cpp
llama-server -hf bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q4_K_M
- Ollama
- Q5_K_M
- Ollama
ollama run hf.co/bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q5_K_M - LM Studio
lms get bartowski/Qwen2.5-0.5B-Instruct-GGUF@q5_k_m - llama.cpp
llama-server -hf bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q6_K - LM Studio
lms get bartowski/Qwen2.5-0.5B-Instruct-GGUF@q6_k - llama.cpp
llama-server -hf bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q6_K
- Ollama
- Q8_0
- Ollama
ollama run hf.co/bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q8_0 - LM Studio
lms get bartowski/Qwen2.5-0.5B-Instruct-GGUF@q8_0 - llama.cpp
llama-server -hf bartowski/Qwen2.5-0.5B-Instruct-GGUF:Q8_0
- Ollama
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 Q4_K_M, 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 Canada that runs Qwen2.5 0.5B fully in memory at 8k context is the NVIDIA GeForce RTX 3060 12GB, $563 at Amazon, at about 353 tok/s (estimated). The best value is the NVIDIA GeForce RTX 3080 10GB (about 746 tok/s for $860). The fastest we price is the NVIDIA GeForce RTX 5090, at about 1759 tok/s.
- What is the cheapest way to run Qwen2.5 0.5B in Canada today?
- The NVIDIA GeForce RTX 3060 12GB, $499 used at eBay, in stock: it runs Qwen2.5 0.5B at Q8_0 fully in memory at 8k context, at about 353 tok/s (estimated).
- 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:Q4_K_M (the Q4_K_M 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.