Llama Prompt Guard 2 22M

Meta
Llama Prompt Guard 2 22M launch post cover
Context
512tokens
Released
1y ago
Size
22Mparameters

Meta's Llama Prompt Guard 2 22M is the smaller variant of Llama Prompt Guard 2, an update to the original Llama Prompt Guard classifier built to support the Llama 4 and Llama 3 model lines. In its launch announcement, Meta claims this smaller, faster version cuts latency and compute costs by up to 75% compared to the 86M model with minimal performance trade-offs, and it is built to detect prompt injection and jailbreak attacks by labelling prompts as benign or malicious.

How it compares

Size class

Tiny22MAn open-weight model under 5 billion parameters, small enough for phones, laptops and edge devices.

Vs. your stack

Add the models you use to see how this one compares.

Sign in
Vs. what you use
Is Llama Prompt Guard 2 22M better than what you use?BetterSameWorse

No verdicts yet

Discussion

Sign in to join the discussion

No comments yet

Be the first to share your thoughts.

Additional source evidence
Source model
meta/llama-prompt-guard-2-22m
Source family
llama
Last updated
2025-04-29
Model context
512
Model output limit
512
Open weights
Yes
File attachments
No
Reasoning
No
Tool calling
No
Temperature control
No

Downloadable weights

Complete source record (JSON)
{
  "id": "meta/llama-prompt-guard-2-22m",
  "name": "Llama Prompt Guard 2 22M",
  "description": "22M-parameter (DeBERTa-xsmall) English classifier that detects prompt injection and jailbreak attempts",
  "family": "llama",
  "last_updated": "2025-04-29",
  "attachment": false,
  "reasoning": false,
  "tool_call": false,
  "temperature": false,
  "modalities": {
    "input": [
      "text"
    ],
    "output": [
      "text"
    ]
  },
  "limit": {
    "context": 512,
    "output": 512
  },
  "release_date": "2025-04-29",
  "open_weights": true,
  "license": "Llama 4 Community License",
  "weights": [
    {
      "label": "Hugging Face",
      "url": "https://huggingface.co/meta-llama/Llama-Prompt-Guard-2-22M"
    }
  ]
}

Frequently asked questions

Running locally

Run Llama Prompt Guard 2 22M locally

Privacy and data

Capabilities and specs

Generated from Vertical Tabs data, updated November 10, 2026.

To give you the best experience, we use cookies for personalization, insights, and performance. Learn more.