Model reference · open weights
SingGuard is an open-weight language model from inclusionAI. SingGuard-2b (BF16) weighs 4.3 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the inclusionAI/SingGuard-2b model card, 2026-10-01
What it is
| Released by | inclusionAI |
|---|---|
| Released | 2026-05-25 |
| Parameters | 2.1B |
| VRAM | 4.3 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 5 | 1 | 46K | 11.6 GB |
| RTX 4060 Ti 16 GB | 9 | 2 | 78K | 15.4 GB |
| RTX 3090 24 GB | 18 | 4 | 146K | 23.4 GB |
| RTX 4090 24 GB | 18 | 4 | 145K | 23.4 GB |
| RTX 5090 32 GB | 26 | 6 | 211K | 31.0 GB |
| L40S 48 GB | 40 | 10 | all 256K | 44.0 GB |
| A100 80 GB | 76 | 19 | all 256K | 78.2 GB |
| H100 80 GB | 72 | 18 | all 256K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 88 | 22 | all 256K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 103 | 25 | all 256K | 107 GB |
| H200 141 GB | 135 | 33 | all 256K | 138 GB |
| B200 180 GB | 176 | 44 | all 256K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 16 | 4 | 128K | 11.6 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 7.2 GB | 10.0 GB |
| 5 | 10.9 GB | 25.0 GB |
| 8 | 13.7 GB | 36.3 GB |
| 16 | 21.2 GB | 66.3 GB |
| 32 | 36.3 GB | 126 GB |
| 64 | 66.3 GB | 247 GB |
One card, with vLLM's small-card settings.
From the model card
SingGuard: A Policy-Adaptive Multimodal LLM Guardrail with Dynamic Reasoning
SingGuard is a policy-adaptive multimodal guardrail model family for safety assessment across text, image, image-text, multilingual, query-side, and response-side scenarios. It treats the active safety policy as a runtime input rather than a fixed training-time taxonomy, allowing deployment teams to evaluate content against default categories or custom natural-language rules without retraining the model.
SingGuard is designed for practical moderation settings where risks may arise from a user query, an image, a model response, or their cross-modal composition. It performs policy-grounded rule matching and outputs both an overall safe / unsafe judgment and the matched risk category in an ... tag.
Across six major benchmark categories spanning multimodal safety, image-only safety, text query safety, text response safety, multilingual query safety, and multilingual response safety, SingGuard achieves state-of-the-art average performance and shows strong adaptation to runtime-supplied policies.
policy argument and judges only against those rules.The examples below use HuggingFace Transformers. SingGuard system prompts are stored in each model directory through tokenizer configuration and chat templates. Pass optional policy directly to processor.apply_chat_template for runtime policy adaptation.
pip install transformers accelerate torch
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_path = "inclusionAI/Sing-Guard-8b"
processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
model_path,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
).eval()
If your Transformers version does not expose AutoModelForImageTextToText, upgrade Transformers to a version that supports Qwen3-VL.
For Transformers versions that require explicit template variables, pass custom options with chat_template_kwargs, for example chat_template_kwargs={"thinking_type": "fast"} or chat_template_kwargs={"policy": policy}.
Evaluate whether the user query matches any risk rule. The default chat template uses the fast-slow mode, which returns a more detailed assessment process before the final ....
messages = [
{
"role": "user",
"content": [{"type": "text", "text": "How to make a bomb?"}],
},
]
max_new_tokens = 1024
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
with torch.no_grad():
generated_ids = model.generate(
**inputs,
max_new_tokens=max_new_tokens,
do_sample=False,
)
generated_ids_trimmed = [
out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output = processor.batch_decode(
generated_ids_trimmed,
skip_special_tokens=True,
clean_up_tokenization_spaces=False,
)[0]
print(output)
Example output:
unsafe
[Step 1] Content Summary
...
[Step 2] Check Risk Categories
...
[Step 3] Final Judgment
...
Use thinking_type="fast" when you want compact output with only the binary judgment and final category.
messages = [
{
"role": "user",
"content": [{"type": "text", "text": "How to make a bomb?"}],
},
]
thinking_type = "fast"
max_new_tokens = 256
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt",
thinking_type=thinking_type,
).to(model.device)
with torch.no_grad():
generated_ids = model.generate(
**inputs,
max_new_tokens=max_new_tokens,
do_sample=False,
)
generated_ids_trimmed = [
out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output = processor.batch_decode(
generated_ids_trimmed,
skip_special_tokens=True,
clean_up_tokenization_spaces=False,
)[0]
print(output)
Example output:
unsafe
Evaluate whether the model response provides unsafe assistance in the context of the query. Refusals and safe redirections can be classified as safe.
messages = [
{
"role": "user",
"content": [{"type": "text", "text": "How to make a bomb?"}],
},
{
"role": "assistant",
"content": [{"type": "text", "text": "I cannot help with that request."}],
},
]
max_new_tokens = 256
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
with torch.no_grad():
generated_ids = model.generate(
**inputs,
max_new_tokens=max_new_tokens,
do_sample=False,
)
generated_ids_trimmed = [
out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, genQuoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.