Meta: LlamaGuard 2 8B

Meta: LlamaGuard 2 8B

meta-llama · Released May 13, 2024
25
Our Score

This safeguard model has 8B parameters and is based on the Llama 3 family. Just like is predecessor, LlamaGuard 1, 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. Usage of this model is subject to Meta's Acceptable Use Policy.

$0.20 / 1M Input Price
$0.20 / 1M Output Price
8,192 tokens Context Window
8B Parameters

Architecture

ModalityText → Text
TokenizerLlama3
Instruct Typenone
Parameters8B

Model Information

OpenRouter ID meta-llama/llama-guard-2-8b
Providermeta-llama
Release Date May 13, 2024
Context Length8,192 tokens
Status Active

Pricing

Token Type Cost per 1M tokens Cost per 1K tokens
Input $0.20 $0.000200
Output $0.20 $0.000200