Gemma 2B IT on Raspberry Pi 4 (8 GB)
Can the Raspberry Pi 4 (8 GB) run Gemma 2B IT?
Yes, but slowly
Slow. At Q3_K_M it needs about 2.5 GB of 6.4 GB usable, with an estimated speed of 3.4 tok/s.
- Best quant
Q3_K_M- Generation speed
- 3.4 tok/s
- Prompt processing
- 12.0 tok/s
- First token (1K prompt)
- 85.7 s
- Largest safe context
- 8K
Best app to run it on the Raspberry Pi 4 (8 GB)
Download Gemma 2B IT
Recommended for the Raspberry Pi 4 (8 GB): Q3_K_M. Every other quantization has its own download link in the table below.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run gemma:2b-instruct-q3_K_MQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/google/gemma-2b-it (opens in a new tab)
ollama run hf.co/google/gemma-2b-itOriginal weights · Hugging Face
Full-precision files from Google, for fine-tuning, vLLM, Transformers.
How it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Model quality | 4.5 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 4.4 / 15 | |
| Memory use | 9.0 / 15 | |
| Match score | 42.9 / 100 |
Every quantization on the Raspberry Pi 4 (8 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 2.3 GB | 6.4 GB | 4.3 tok/s | Slow | 8Basic quality (D) · 8 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 41/100 (quality, fit, speed and memory use) sets the ranking. | |
Q3_K_M | 2.5 GB | 6.4 GB | 3.4 tok/s | Slow | 10Basic quality (D) · 10 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 42/100 (quality, fit, speed and memory use) sets the ranking. | |
Q4_K_M | 2.8 GB | 6.4 GB | 2.6 tok/s | Very slow | 11Basic quality (D) · 11 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 44/100 (quality, fit, speed and memory use) sets the ranking. | |
Q5_K_M | 3.0 GB | 6.4 GB | 2.2 tok/s | Very slow | 11Basic quality (D) · 11 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 44/100 (quality, fit, speed and memory use) sets the ranking. | |
Q6_K | 3.3 GB | 6.4 GB | 1.8 tok/s | Very slow | 11Basic quality (D) · 11 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 45/100 (quality, fit, speed and memory use) sets the ranking. | |
Q8_0 | 3.9 GB | 6.4 GB | 1.3 tok/s | Very slow | 12Basic quality (D) · 12 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 47/100 (quality, fit, speed and memory use) sets the ranking. | |
F16 | 6.3 GB | 6.4 GB | 0.6 tok/s | Very slowtight fit | 12Basic quality (D) · 12 of 100: how capable the model is at F16, whatever it runs on. Match score 46/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Memory figures assume 8K of context. Longer conversations or documents grow the KV cache.
Other hardware that runs it
-
12Basic quality (D) · 12 of 100: how capable the model is at F16, whatever it runs on. Match score 57/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 3060 12GB
-
12Basic quality (D) · 12 of 100: how capable the model is at F16, whatever it runs on. Match score 57/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4070 SUPER
-
12Basic quality (D) · 12 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 56/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4060
-
12Basic quality (D) · 12 of 100: how capable the model is at F16, whatever it runs on. Match score 54/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 9070 XT
-
12Basic quality (D) · 12 of 100: how capable the model is at F16, whatever it runs on. Match score 54/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4070 Ti SUPER
-
12Basic quality (D) · 12 of 100: how capable the model is at F16, whatever it runs on. Match score 54/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4080 SUPER
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.