Decision models · Google
ShieldGemma 27B
- Task
- Safety and policy checks
- Returns
- Probability or score
- Precision tier
- 66 / 100
- Size
- 27B
- Max input
- 8K tokens
- License
- gemma
- Released
- 2024-07
What it decides
- Returns
- A Yes/No probability that the text breaks one policy you name (sexual, dangerous, harassment, hate).
- Checks
- Prompts and replies, one policy per call
- Languages
- English
- Precision
- 66 / 100 · Largest ShieldGemma; best of the three on Google’s own benchmarks.
- 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:27bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/mradermacher/shieldgemma-27b-GGUF (opens in a new tab)
ollama run hf.co/mradermacher/shieldgemma-27b-GGUFOriginal weights · Hugging Face
Full-precision files from Google, for fine-tuning, vLLM, Transformers.
Apps that run ShieldGemma 27B
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 | 18.0 GB | 260 ms | 3.8/s | 62Good quality (B) · 62 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 20.7 GB | 265 ms | 3.8/s | 64Good quality (B) · 64 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q6_K | 23.7 GB | 294 ms | 3.4/s | 65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 63/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q8_0 | 30.2 GB | 489 ms | 2.0/s | 66Good quality (B) · 66 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
F16 | 55.8 GB | — | — | 66Good quality (B) · 66 of 100: how capable the model is at F16, whatever it runs on. Match score 8/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Best hardware for ShieldGemma 27B
The least expensive GPU in our catalog that runs it without offloading is the AMD Radeon RX 7900 XT (launch price $899) at Q4_K_M.
| Quality | Hardware | Quant | Memory | Time per decision | Runs |
|---|---|---|---|---|---|
| 66Good quality (B) · 66 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA RTX PRO 6000 Blackwell |
Q8_0 | 35.0 GB / 96.0 GB | 183 ms | Runs well |
| 65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5090 |
Q6_K | 25.3 GB / 32.0 GB | 206 ms | Runs well |
| 62Good quality (B) · 62 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 78/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 7900 XTX |
Q4_K_M | 19.2 GB / 24.0 GB | 214 ms | Runs well |
| 62Good quality (B) · 62 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4090 |
Q4_K_M | 19.2 GB / 24.0 GB | 260 ms | Runs well |
| 62Good quality (B) · 62 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 9070 XT |
Q4_K_M | 18.8 GB / 16.0 GB | 354 ms | Runs welloffloads to RAM |
| 66Good quality (B) · 66 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 82/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA B200 |
Q8_0 | 39.2 GB / 180 GB | 130 ms | Runs great |
| 66Good quality (B) · 66 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. | AMD Instinct MI325X |
Q8_0 | 43.0 GB / 256 GB | 150 ms | Runs well |
| 66Good quality (B) · 66 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. | AMD Instinct MI300X |
Q8_0 | 39.8 GB / 192 GB | 151 ms | Runs well |
| 66Good quality (B) · 66 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. | NVIDIA H200 141GB SXM |
Q8_0 | 37.3 GB / 141 GB | 158 ms | Runs well |
| 66Good quality (B) · 66 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. | NVIDIA GH200 Grace Hopper (96 GB GPU) |
Q8_0 | 35.0 GB / 96.0 GB | 159 ms | Runs well |
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.









