Llama Guard
by Meta · Dec 7, 2023
Llama Guard is an open-weight chat llm from Meta, released Dec 7, 2023. It has 7B parameters.
- Provider
- Meta
- Released
- Dec 7, 2023
- Type
- Chat LLM
- Parameters
- 7B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (restricted)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 1.6e+23 FLOP
- Training data
- 4.1M tokens/words
About Llama Guard
We introduce Llama Guard, an LLM-based input-output safeguard model geared towards Human-AI conversation use cases. Our model incorporates a safety risk taxonomy, a valuable tool for categorizing a specific set of safety risks found in LLM prompts (i.e., prompt classification). This taxonomy is also instrumental in classifying the responses generated by LLMs to these prompts, a process we refer to as response classification. For the purpose of both prompt and response classification, we have meticulously gathered a dataset of high quality.
How to run Llama Guard
Llama Guard is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 7B parameters it needs roughly 4 GB of memory at 4-bit quantization.
Llama Guard vs alternatives
- Llama Guard vs Mistral-7B-v0.1
- Llama Guard vs Falcon-7B
- Llama Guard vs MPT-7B
- Llama Guard vs RedPajama-INCITE-7B-Base
- Llama Guard vs XGen-7B
- Llama Guard vs Mistral-7B-Instruct-v0.2
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Mistral-7B-v0.1open | Mistral AI | Sep 2023 | 7.2B | — | — | — | 102.7 |
| Falcon-7Bopen | Technology Innovation Institute | Apr 2023 | 7.2B | — | — | — | 73.1 |
| MPT-7Bopen | MosaicML | May 2023 | 7B | — | — | — | 73.4 |
| RedPajama-INCITE-7B-Baseopen | Together AI | Jun 2023 | 6.9B | — | — | — | 57.7 |
| XGen-7Bopen | Salesforce | Sep 2023 | 6.7B | — | — | — | 70.3 |
| Mistral-7B-Instruct-v0.2open | Mistral AI | Dec 2023 | 7.2B | — | — | — | — |
| deepseek-llm-7b-baseopen | DeepSeek | Nov 2023 | 7B | — | — | — | — |
| deepseek-coder-6.7b-baseopen | DeepSeek | Oct 2023 | 6.7B | — | — | — | — |
More models from Meta
All Meta models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Muse Spark 1.3 Contributor | Sep 2026 | — | 1M | $0.1 | $0.2 |
| Llama-3.3-70B-Instructopen | Dec 2024 | 71B | 128K | $0.71 | $0.71 |
| Muse Spark Openopen | Oct 2026 | 816B | 1M | $1.25 | $4.25 |
| Muse Spark 1.2 | Aug 2026 | — | 1M | $0.1 | $0.2 |
| Muse Wonder | Oct 2026 | — | 1M | $4 | $20 |
| Muse Spark 1.1 | Apr 2026 | — | 1M | $1.25 | $4.25 |
| Llama 4 Maverickopen | Apr 2025 | 402B | 512K | $0.35 | $1 |
| Llama 4 Scoutopen | Apr 2025 | 109B | 320K | $0.1 | $0.3 |
Frequently asked questions
Who made Llama Guard?
Llama Guard was developed by Meta (United States of America). It was released on Dec 7, 2023.
Is Llama Guard open source?
Yes. Llama Guard's weights are publicly available, so you can download and run it yourself.
How many parameters does Llama Guard have?
Llama Guard has 7B parameters.
Sources: epoch · paper. Last updated 2026-11-22.