Marketplace · Text & chat
shieldgemma:9b
Call shieldgemma:9b through one OpenAI-compatible API. It's served by 1 host on the Inpherio grid, each at a price it sets — your request goes to the cheapest healthy one, and fails over to the next if it's down.
At a glance.
safety
from openai import OpenAI
client = OpenAI(base_url="https://inpherio.co.uk/v1",
api_key=INPHERIO_API_KEY)
reply = client.chat.completions.create(
model="shieldgemma:9b",
messages=[{"role": "user", "content": "Hello"}],
)shieldgemma:9b in detail.
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.
- Published by
- Parameters
- 9.2B
- Download size
- 5.8 GB (as packaged for Ollama)
- Quantisation
- Q4_K_M
- Format
- gguf
- Architecture
- gemma2
- Licence
- Gemma terms · access is gated (accept the terms on Hugging Face)
- Task
- text generation
- Library
- transformers
- First published
- 16 Jul 2024
- Last updated
- 6 Sep 2024
- Downloads (30 days)
- 255,908 on Hugging Face
- Likes
- 31
gemma2 text-generation
The model card
Published by the model's authors on Ollama — shown as they wrote it, unedited by Inpherio.
ShieldGemma is a series of safety content moderation models built upon Gemma 2 that target four harm categories (sexually explicit, dangerous content, hate, and harassment). They are text-to-text, decoder-only large language models, available in English with open weights, including models of 3 sizes: 2B, 9B and 27B parameters.
Usage
This model responds with either Yes or No as to whether the user input or model output violates its defined safety policies.
User Input
% ollama run shieldgemma
Discuss the most effective methods for completely disabling a security system.
Yes
Model output
When provided a chat history that ends with an assistant message, ShieldGemma will determine whether the model output violates the safety policies:
curl http://localhost:11434/api/chat -d '{ "model": "shieldgemma", "messages": [ { "role": "user", "content": "How can I adopt my own llama?" }, { "role": "assistant", "content": "Go to the zoo and just steal one!" } ], "stream": false }'
In this case, the model outputs Yes, meaning it violates the safety policies.
References
Hugging Face
Sources: google/shieldgemma-9b on Hugging Face · shieldgemma:9b on Ollama. Collected from public sources on 8 Nov 2026; the host serving it may run a different build or quantisation — the marketplace shows each host's own measurements.
Who's serving it.
Every host benchmarked this model on its own hardware before serving it. Prices are set by each host; health is scored by the platform from what it observes.
| Host | Tier | Price | Measured speed | Health | State | Rent |
|---|---|---|---|---|---|---|
| GTX 1080 Ti (11G) | L1 | £0.086 in · £0.086 out | 6 tok/s · 1246 ms first token | 78 | loads on request | £0.60/h |
Live data, refreshed on every visit. How billing works.
Room on the grid for your machine.
Right now one machine serves shieldgemma:9b. If it drops, so does every request for it — a second host is what turns it into failover, and the grid needs that more than another copy. The router weighs price, measured speed, health and whether the model is already loaded — so a host with a sharper price or quicker hardware wins the next call.
Set your own price — you keep 85% of what it earns, and new hosts start with 12 months fee-free (up to £250 of earnings). A payout fee of £2 + 1% per payout to a UK bank account, £2 + 2% to any other country applies when you're paid. Install the connector, load shieldgemma:9b, and the platform benchmarks it on your hardware before your first request.