Decision models · Google
ShieldGemma 2B
- Task
- Safety and policy checks
- Returns
- Probability or score
- Precision tier
- 58 / 100
- Size
- 2.6B
- Max input
- 8K tokens
- License
- gemma
- Released
- 2024-07
What it decides
- Returns
- A Yes/No probability that the text breaks one named policy.
- Checks
- Prompts and replies, one policy per call
- Languages
- English
- Precision
- 58 / 100 · F1 0.586 in an independent 14-model comparison (arXiv 2605.28830).
- Clarity
- Probability or score (15 of 15 clarity points)
- How it runs
- Writes a short answer · a small language model, so it runs in the same apps as LLMs.
- License
- gemma (Custom (read the terms))
How to run it
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.
huggingface.co/QuantFactory/shieldgemma-2b-GGUF (opens in a new tab)
ollama run hf.co/QuantFactory/shieldgemma-2b-GGUFOriginal weights · Hugging Face
Full-precision files from Google, for fine-tuning, vLLM, Transformers.
Apps that run ShieldGemma 2B
Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or Mac in the Model Finder for an exact answer.
Mac (Apple silicon)
Windows PC, NVIDIA GPU
Windows PC, AMD Radeon
Linux, NVIDIA GPU
Linux server, 80 GB+ GPUs
| App | Type | Opens it as | Systems | Engine | Start |
|---|---|---|---|---|---|
| LM Studio | Desktop app | GGUF | macOSWindowsLinux | Open in LM Studio | |
| Ollama | CLI + API | Ollama library | macOSWindowsLinux |
|
|
| llama.cpp | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Jan | Desktop app | GGUF | macOSWindowsLinux | Open in Jan | |
| vLLM | Server | Original weights | WSLWindowsLinux |
|
|
| SGLang | Server | Original weights | WSLWindowsLinux |
|
|
| Docker Model Runner | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Lemonade | Desktop app | GGUF | macOSWindowsLinux |
|
|
| Unsloth Desktop | Desktop app | GGUF | macOSWindowsLinux | Open in Unsloth Desktop | |
| Atomic Chat | Desktop app | GGUF | macOSWindowsLinux | Open in Atomic Chat | |
| LocalAI | Server | GGUF | macOSWSLWindowsLinux | Get LocalAI | |
| Sentence Transformers | Library | Original weights | macOSWindowsLinux | Get Sentence Transformers |
Memory and speed
Each quantization on an NVIDIA GeForce RTX 4090, for one decision on a 512-token input. The best hardware table below covers other GPUs and Macs.
| Format | Memory needed | Time per decision | Decisions per second | Quality | Download |
|---|---|---|---|---|---|
Q4_K_M | 2.4 GB | 29 ms | 35/s | 55Good quality (B) · 55 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 2.7 GB | 29 ms | 34/s | 56Good quality (B) · 56 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q6_K | 3.0 GB | 30 ms | 34/s | 57Good quality (B) · 57 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q8_0 | 3.6 GB | 31 ms | 33/s | 58Good quality (B) · 58 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 81/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
F16 | 6.0 GB | 35 ms | 28/s | 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. | Original weights (opens in a new tab) |
Best hardware for ShieldGemma 2B
The least expensive GPU in our catalog that runs it without offloading is the Intel Arc A380 (launch price $139) at Q8_0.
| Quality | Hardware | Quant | Memory | Time per decision | Runs |
|---|---|---|---|---|---|
| 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 |
F16 | 7.2 GB / 24.0 GB | 33 ms | Runs great |
| 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 |
F16 | 6.8 GB / 16.0 GB | 43 ms | Runs great |
| 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) |
F16 | 13.7 GB / 96.0 GB | 81 ms | Runs great |
| 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) |
F16 | 17.6 GB / 144 GB | 96 ms | Runs great |
| 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) |
F16 | 21.4 GB / 192 GB | 93 ms | Runs great |
| 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) |
F16 | 36.8 GB / 384 GB | 93 ms | Runs great |
| 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. | NVIDIA GB10 (128 GB) |
F16 | 15.3 GB / 115 GB | 97 ms | Runs great |
| 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. | NVIDIA GeForce RTX 3090 |
F16 | 7.2 GB / 24.0 GB | 66 ms | Runs great |
| 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. | NVIDIA GeForce RTX 4070 SUPER |
F16 | 6.6 GB / 12.0 GB | 74 ms | Runs great |
| 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. | NVIDIA GeForce RTX 4070 Ti SUPER |
F16 | 6.8 GB / 16.0 GB | 60 ms | Runs great |
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.








