alpindale / text-generation updated 1 year ago

Llama-Guard-3-1B

Llama Guard 3-1B is a fine-tuned Llama-3.2-1B pretrained model for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM – it generates text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content cate...

Params
1.5 B
Context
131,072
Downloads 30d
264 K
Likes
2
Commercial use: conditional · llama3.2 Not gated SAFETENSORS 8 languages View on Hugging Face ↗

Download history

tracking started — chart appears after 7 days of snapshots (5 recorded)
264 K downloads in the last 30 days

Can you run it?

Estimated VRAM at 8K context unless noted. Pick your hardware to see the verdict per quantization.

FileQuantSizeEst. VRAMVerdict on RTX 4090 · 24 GB
model.safetensors bf16 3.0 GB 4.0 GB ✅ Runs comfortably
model.safetensors (bf16, full) bf16 + 128K ctx 3.0 GB 7.4 GB ✅ Runs comfortably
Estimate: file size × 1.1 + KV cache at 8K + 0.5 GB overhead. Not a benchmark — how we calculate this.

Run it

copy-paste, exact tags checked against the Hub
~ · curl · api/v1
$ curl -s https://aimodelscomparison.com/api/v1/models/llama-guard-3-1b
{
  "hf_id": "alpindale/Llama-Guard-3-1B",
  "params_b": 1.50,
  "context_length": 131072,
  "license": { "id": "llama3.2", "commercial": "conditional" },
  "downloads_30d": 263590,
  "vram_estimates": [
    { "quant": "bf16", "gb": 4.0 }
  ],
  "updated_at": "2026-09-17T01:00:32Z"
}
est. VRAM —on RTX 4090 · 24 GBJSON API →

Specifications

Architecture
LlamaForCausalLM
Parameters
1.5 B
Tensor type
BF16
Context length
131,072
Vocabulary
128,256
Layers / heads
16 / 32
Licence
llama3.2
First seen on the Hub
2024-09-25
Training datasets
undisclosed
Added to our catalog
2026-09-17
Compare with any text-generation model