ShieldGemma 2B on Raspberry Pi 4 (4 GB)
Can the Raspberry Pi 4 (4 GB) run ShieldGemma 2B?
Barely: it runs very slowly (tight fit)
Very slow (tight fit). At Q4_K_M it needs about 2.6 GB of 2.8 GB usable and makes one decision in about 44.9 s.
- Best quant
Q4_K_M- Time per decision
- 44.9 s
- Decisions per second
- 0.0/s
- Input assumed
- 512 tokens
- Returns
- Probability or score
Best app to run it on the Raspberry Pi 4 (4 GB)
Download ShieldGemma 2B
Recommended for the Raspberry Pi 4 (4 GB): Q4_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 shieldgemma:2bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
Download the Q4_K_M file (opens in a new tab)
huggingface.co/QuantFactory/shieldgemma-2b-GGUF (opens in a new tab)
ollama run hf.co/QuantFactory/shieldgemma-2b-GGUF:Q4_K_MOriginal 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.
| Precision | 24.8 / 45 | |
|---|---|---|
| Memory fit | 24.0 / 25 | |
| Speed | 0.7 / 15 | |
| Clarity | 15.0 / 15 | |
| Match score | 64.5 / 100 |
Every quantization on the Raspberry Pi 4 (4 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q4_K_M | 2.6 GB | 2.8 GB | 44.9 s | Very slowtight fit | 55Good quality (B) · 55 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 64/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 2.9 GB | 2.8 GB | 45.1 s | Very slowover memory limit | 56Good quality (B) · 56 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 51/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q6_K | 3.2 GB | 2.8 GB | 45.2 s | Very slowfar over memory limit | 57Good quality (B) · 57 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. | GGUF (opens in a new tab) |
Q8_0 | 3.8 GB | 2.8 GB | — | Won't run | 58Good quality (B) · 58 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 7/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
F16 | 6.3 GB | 2.8 GB | — | Won't run | 58Good quality (B) · 58 of 100: how capable the model is at F16, whatever it runs on. Match score 7/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Times are for one request with a 512-token input and about 1 tokens written. Batching servers process many requests at once.
Other hardware that runs it
-
58Good quality (B) · 58 of 100: how capable the model is at F16, whatever it runs on. Match score 81/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 7900 XTX
-
58Good quality (B) · 58 of 100: how capable the model is at F16, whatever it runs on. Match score 81/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 9070 XT
-
58Good quality (B) · 58 of 100: how capable the model is at F16, whatever it runs on. Match score 81/100 (quality, fit, speed and memory use) sets the ranking.
AMD Ryzen AI Max+ 395 (128 GB)
-
58Good quality (B) · 58 of 100: how capable the model is at F16, whatever it runs on. Match score 81/100 (quality, fit, speed and memory use) sets the ranking.
Apple M2 Ultra (192 GB)
-
58Good quality (B) · 58 of 100: how capable the model is at F16, whatever it runs on. Match score 81/100 (quality, fit, speed and memory use) sets the ranking.
Apple M3 Ultra (256 GB)
-
58Good quality (B) · 58 of 100: how capable the model is at F16, whatever it runs on. Match score 81/100 (quality, fit, speed and memory use) sets the ranking.
Apple M3 Ultra (512 GB)
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.