Skip to content
llmmodels
Chat LLMOpen weightsHistorical

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

Alternatives to Llama Guard
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Mistral-7B-v0.1openMistral AISep 20237.2B———102.7
Falcon-7BopenTechnology Innovation InstituteApr 20237.2B———73.1
MPT-7BopenMosaicMLMay 20237B———73.4
RedPajama-INCITE-7B-BaseopenTogether AIJun 20236.9B———57.7
XGen-7BopenSalesforceSep 20236.7B———70.3
Mistral-7B-Instruct-v0.2openMistral AIDec 20237.2B————
deepseek-llm-7b-baseopenDeepSeekNov 20237B————
deepseek-coder-6.7b-baseopenDeepSeekOct 20236.7B————

More models from Meta

All Meta models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Muse Spark 1.3 ContributorSep 2026—1M$0.1$0.2
Llama-3.3-70B-InstructopenDec 202471B128K$0.71$0.71
Muse Spark OpenopenOct 2026816B1M$1.25$4.25
Muse Spark 1.2Aug 2026—1M$0.1$0.2
Muse WonderOct 2026—1M$4$20
Muse Spark 1.1Apr 2026—1M$1.25$4.25
Llama 4 MaverickopenApr 2025402B512K$0.35$1
Llama 4 ScoutopenApr 2025109B320K$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.