Google DeepMind · gemma2
Can I run shieldgemma?
ShieldGemma is set of instruction tuned models for evaluating the safety of text prompt input and text output responses against a set of defined safety policies.
Parameter counts and memory belong to each build below. A family can contain several sizes and tasks; fitting in memory is not a quality ranking.
Calculate memory for a build and contextshieldgemma system requirements
Memory needed at 4K context, counting model weights, KV cache, compute buffers and runtime overhead. Download sizes come from the official Ollama registry.
| Build | Quantization | Download | Memory needed |
|---|---|---|---|
| shieldgemma:2b-q4_02B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | Q4_0 | 1.5 GB | ~2.4 GB |
| shieldgemma:2b2B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | Q4_K_M | 1.6 GB | ~2.5 GB |
| shieldgemma:2b-q5_K_M2B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | Q5_K_M | 1.8 GB | ~2.7 GB |
| shieldgemma:2b-q6_K2B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | Q6_K | 2.0 GB | ~3.0 GB |
| shieldgemma:2b-q8_02B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | Q8_0 | 2.6 GB | ~3.6 GB |
| shieldgemma:2b-fp162B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | F16 | 4.9 GB | ~6.1 GB |
| shieldgemma:9b-q4_09B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | Q4_0 | 5.1 GB | ~7.2 GB |
| shieldgemma:9b9B parameters (tag)8K documented maximum contextBuild sourceCatalog checked 2026-10-13 | Q4_K_M | 5.4 GB | ~7.5 GB |
Showing the 8 smallest non-alias builds. Choose any build and change the context. A context above the build's documented maximum is a hypothetical calculation, not a supported setting.
How to run shieldgemma locally
- 1.Install Ollama for Windows, macOS or Linux.
- 2.Download this exact build in a terminal:
ollama pull shieldgemma:2b-q4_0 - 3.Check the source for the build's task. For text generation, run
ollama run shieldgemma:2b-q4_0. Base/text builds may need a prompt template; an instruct build is usually the appropriate starting point for a conversation.
Frequently asked questions about shieldgemma
- How much VRAM do I need to run shieldgemma?
- At 4K context, the smallest published build of shieldgemma (Q4_0) needs roughly 2.4 GB of GPU memory once weights, KV cache, compute buffers and runtime overhead are counted. Bigger quantizations and longer context windows need more. It can also run partly or entirely on the CPU using system RAM, more slowly.
- Can I run shieldgemma without a dedicated GPU?
- A supported CPU runtime can use system RAM. The smallest listed build needs an estimated 2.4 GB at 4K context, plus headroom for your operating system. Check the build's runtime requirements. We have not measured its speed on your CPU.
- How big is the shieldgemma download?
- The smallest published build is 1.5 GB. There are 18 builds in total, the largest being 50.7 GB. Leave some extra free disk space beyond the download itself.
- How do I run shieldgemma locally?
- Install Ollama, then download a specific build with "ollama pull shieldgemma:2b-q4_0". For a build that supports text generation, use ollama run with the same tag. Check the model source for its task and prompt format.
Will shieldgemma run on your PC?
Scan your hardware once and get a verdict for this model and every build — free, no account.
Compare with similar models
Or start from your memory: 8 GB VRAM, 12 GB VRAM, 16 GB VRAM, 24 GB VRAM or a 16 GB Mac.
Model data from the official Ollama registry · verified 13/10/2026