Decision models ·

Llama Guard 3 8B

Task
Safety and policy checks
Returns
Fixed labels
Precision tier
68 / 100
Size
8.0B
Max input
128K tokens
License
llama3.1
Released
2024-07

What it decides

Returns
safe or unsafe, plus MLCommons hazard codes (S1 to S14).
Checks
Prompts and replies
Languages
8 languages
Precision
68 / 100 · Widely used baseline guard; Ollama library build available.
Clarity
Fixed labels (12 of 15 clarity points)
How it runs
Writes a short answer · a small language model, so it runs in the same apps as LLMs.
License
llama3.1 (Custom (read the terms))

Source: model card on Hugging Face (opens in a new tab) · How decision models are rated

How to run it

Quickest · Ollama

One command downloads a ready-to-run version and starts a chat.

Get Ollama at ollama.com/download (opens in a new tab) · model page (opens in a new tab)

ollama run llama-guard3:8b

Quantized files · GGUF

Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.

huggingface.co/mradermacher/Llama-Guard-3-8B-GGUF (opens in a new tab)

ollama run hf.co/mradermacher/Llama-Guard-3-8B-GGUF

Original weights · Hugging Face

Full-precision files from Meta, for fine-tuning, vLLM, Transformers.

huggingface.co/meta-llama/Llama-Guard-3-8B (opens in a new tab)

Free Hugging Face account needed: request access on the model page, and Meta approves it (usually within minutes to a few hours).

Apps that run Llama Guard 3 8B

Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or Mac in the Model Finder for an exact answer.

Mac (Apple silicon)

Ollama

One command with Ollama’s own build of this model.

Also good: LM Studio, llama.cpp

Windows PC, NVIDIA GPU

Ollama

One command with Ollama’s own build of this model.

Also good: LM Studio, llama.cpp

Windows PC, AMD Radeon

Lemonade

AMD’s own app: llama.cpp tuned for Radeon on Vulkan and ROCm.

Also good: LM Studio, Ollama

Linux, NVIDIA GPU

Ollama

One command with Ollama’s own build of this model.

Also good: LM Studio, llama.cpp

Linux server, 80 GB+ GPUs

vLLM

The full model fits in GPU memory at 8-bit, so it can batch many requests: best for serving a team or an app.

Also good: Ollama, LM Studio

App Type Opens it as Systems Engine Start
LM Studio Desktop app GGUF macOSWindowsLinux llama.cpp, MLX Open in LM Studio
Ollama CLI + API Ollama library macOSWindowsLinux llama.cpp, MLX
ollama run llama-guard3:8b
llama.cpp CLI + API GGUF macOSWindowsLinux llama.cpp
llama-server -hf mradermacher/Llama-Guard-3-8B-GGUF:Q4_K_M
Jan Desktop app GGUF macOSWindowsLinux llama.cpp, MLX Open in Jan
vLLM Server Original weights WSLWindowsLinux vLLM
vllm serve meta-llama/Llama-Guard-3-8B
SGLang Server Original weights WSLWindowsLinux SGLang
python3 -m sglang.launch_server --model-path meta-llama/Llama-Guard-3-8B
Docker Model Runner CLI + API GGUF macOSWindowsLinux llama.cpp, vLLM
docker model run hf.co/mradermacher/Llama-Guard-3-8B-GGUF:Q4_K_M
Lemonade Desktop app GGUF macOSWindowsLinux llama.cpp, ONNX Runtime GenAI
lemonade pull mradermacher/Llama-Guard-3-8B-GGUF:Q4_K_M
Unsloth Desktop Desktop app GGUF macOSWindowsLinux llama.cpp, MLX, stable-diffusion.cpp Open in Unsloth Desktop
Atomic Chat Desktop app GGUF macOSWindowsLinux llama.cpp, MLX-VLM Open in Atomic Chat
LocalAI Server GGUF macOSWSLWindowsLinux llama.cpp, rerankers, Transformers Get LocalAI
Sentence Transformers Library Original weights macOSWindowsLinux PyTorch Get Sentence Transformers

Which apps can open a model depends on the files published for it: GGUF for llama.cpp-based apps, MLX for Apple’s engine, the original weights for vLLM and SGLang. Compare every app.

Memory and speed

Each quantization on an NVIDIA GeForce RTX 4090, for one decision on a 512-token input. The best hardware table below covers other GPUs and Macs.

Format Memory needed Time per decision Decisions per second Quality Download
Q4_K_M 5.8 GB 112 ms 8.9/s 64Good quality (B) · 64 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. GGUF (opens in a new tab)
Q5_K_M 6.6 GB 120 ms 8.3/s 65Good quality (B) · 65 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. GGUF (opens in a new tab)
Q6_K 7.5 GB 129 ms 7.7/s 67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. GGUF (opens in a new tab)
Q8_0 9.4 GB 150 ms 6.7/s 68Good quality (B) · 68 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking. GGUF (opens in a new tab)
F16 16.9 GB 239 ms 4.2/s 68Good quality (B) · 68 of 100: how capable the model is at F16, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. GGUF (opens in a new tab) Original weights (opens in a new tab)

One request at a time. Servers that batch (Text Embeddings Inference, vLLM, Infinity) handle many more decisions per second.

Best hardware for Llama Guard 3 8B

The least expensive GPU in our catalog that runs it without offloading is the Intel Arc A580 (launch price $179) at Q4_K_M.

Quality Hardware Quant Memory Time per decision Runs
68Good quality (B) · 68 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 82/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA RTX PRO 6000 Blackwell Workstation EditionNVIDIA RTX PRO 6000 Blackwell Q8_0 14.2 GB / 96.0 GB 93 ms Runs great
68Good quality (B) · 68 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 82/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 5090 Founders EditionNVIDIA GeForce RTX 5090 Q8_0 11.0 GB / 32.0 GB 102 ms Runs great
64Good quality (B) · 64 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. Sapphire NITRO+ AMD Radeon RX 7900 XTX Vapor-X 24GBAMD Radeon RX 7900 XTX Q4_K_M 7.0 GB / 24.0 GB 105 ms Runs great
67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 4090 Founders EditionNVIDIA GeForce RTX 4090 Q6_K 8.7 GB / 24.0 GB 129 ms Runs great
67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 78/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 5080 Founders EditionNVIDIA GeForce RTX 5080 Q6_K 8.3 GB / 16.0 GB 164 ms Runs well
67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 78/100 (quality, fit, speed and memory use) sets the ranking. Sapphire NITRO+ AMD Radeon RX 9070 XT OCAMD Radeon RX 9070 XT Q6_K 8.3 GB / 16.0 GB 175 ms Runs well
67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 78/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 4080 SUPERNVIDIA GeForce RTX 4080 SUPER Q6_K 8.3 GB / 16.0 GB 190 ms Runs well
67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. ASUS TUF Gaming GeForce RTX 5070 Ti 16GB GDDR7 OC EditionNVIDIA GeForce RTX 5070 Ti Q6_K 8.3 GB / 16.0 GB 197 ms Runs well
67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 4070 Ti SUPERNVIDIA GeForce RTX 4070 Ti SUPER Q6_K 8.3 GB / 16.0 GB 218 ms Runs well
67Good quality (B) · 67 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. ASUS ROG Strix GeForce RTX 3090 OC Edition 24GB GDDR6XNVIDIA GeForce RTX 3090 Q6_K 8.7 GB / 24.0 GB 225 ms Runs well

Check it on your own hardware

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.