Meta: LlamaGuard 2 8B

Text input Text output
Author's Description

This safeguard model has 8B parameters and is based on the Llama 3 family. Just like is predecessor, [LlamaGuard 1](https://huggingface.co/meta-llama/LlamaGuard-7b), it can do both prompt and response classification. LlamaGuard 2 acts as a normal LLM would, generating text that indicates whether the given input/output is safe/unsafe. If deemed unsafe, it will also share the content categories violated. For best results, please use raw prompt input or the `/completions` endpoint, instead of the chat API. It has demonstrated strong performance compared to leading closed-source models in human evaluations. To read more about the model release, [click here](https://ai.meta.com/blog/meta-llama-3/). Usage of this model is subject to [Meta's Acceptable Use Policy](https://llama.meta.com/llama3/use-policy/).

Key Specifications
Cost
$$
Context
8K
Parameters
8B
Released
May 12, 2024
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

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

Meta: LlamaGuard 2 8B, a safeguard model based on the Llama 3 family, demonstrates exceptional speed and cost efficiency. It consistently ranks among the fastest models and offers highly competitive pricing across various benchmarks. Designed for prompt and response classification, it indicates safety status and identifies violated content categories. While excelling in its core function as a safeguard model, its performance on general-purpose benchmarks like Coding, Instruction Following, Reasoning, and Ethics is notably low, with 0.0% accuracy across these categories. The Email Classification benchmark showed a minimal 2.0% accuracy. This indicates that LlamaGuard 2 8B is highly specialized for its safety classification task and is not intended for general generative AI applications. Its strength lies in its dedicated safety function, where it has shown strong performance in human evaluations against leading closed-source models.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $0.2
Completion $0.2

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
Together
Together | meta-llama/llama-guard-2-8b 8K $0.2 / 1M tokens $0.2 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Free Executions Accuracy Cost Duration
Other Models by meta-llama