Llama Guard 3 8B

Text input Text output
Author's Description

Llama Guard 3 is a Llama-3.1-8B pretrained model, fine-tuned 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 categories violated. Llama Guard 3 was aligned to safeguard against the MLCommons standardized hazards taxonomy and designed to support Llama 3.1 capabilities. Specifically, it provides content moderation in 8 languages, and was optimized to support safety and security for search and code interpreter tool calls.

Key Specifications
Cost
$
Context
131K
Parameters
8B
Released
Feb 12, 2025
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Stop Presence Penalty Logit Bias Top P Temperature Seed Frequency Penalty Logprobs Max Tokens Top Logprobs
Performance Summary

Llama Guard 3 8B, a Llama-3.1-8B fine-tuned for content safety classification, demonstrates exceptional performance in speed and cost efficiency. It consistently ranks among the fastest models and offers highly competitive pricing across all evaluated benchmarks. Designed to classify LLM inputs and responses against the MLCommons standardized hazards taxonomy, it supports content moderation in 8 languages and is optimized for search and code interpreter tool calls. While its core function is content safety, its general benchmark performance reveals specific strengths and weaknesses. The model achieved a respectable 58.3% accuracy in Reasoning, placing it around the median. It also showed a notable strength in cost efficiency for Ethics, ranking in the top 3. However, its accuracy was very low across other categories, including Coding (0.0%), Instruction Following (0.0%), Email Classification (3.0%), Ethics (0.5%), and General Knowledge (5.3%). These results suggest that while Llama Guard 3 excels in its specialized safety classification role and offers significant operational advantages in speed and cost, it is not designed for general-purpose tasks requiring broad knowledge or complex instruction adherence.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $0.02
Completion $0.06

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
Nebius
Nebius | meta-llama/llama-guard-3-8b 131K $0.02 / 1M tokens $0.06 / 1M tokens
DeepInfra
DeepInfra | meta-llama/llama-guard-3-8b 131K $0.055 / 1M tokens $0.055 / 1M tokens
Fireworks
Fireworks | meta-llama/llama-guard-3-8b 131K $0.02 / 1M tokens $0.06 / 1M tokens
Together
Together | meta-llama/llama-guard-3-8b 8K $0.2 / 1M tokens $0.2 / 1M tokens
Groq
Groq | meta-llama/llama-guard-3-8b 8K $0.02 / 1M tokens $0.06 / 1M tokens
SambaNova
SambaNova | meta-llama/llama-guard-3-8b 16K $0.02 / 1M tokens $0.06 / 1M tokens
Cloudflare
Cloudflare | meta-llama/llama-guard-3-8b 0 $0.48 / 1M tokens $0.03 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Free Executions Accuracy Cost Duration
Other Models by meta-llama