# Llama Guard 3 8B

> 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.

Provider: Meta · Type: LLM · State: Ready

model path: `accounts/fireworks/models/llama-guard-3-8b`

[Deploy on demand](https://app.fireworks.ai/dashboard/deployments/create?baseModel=accounts/fireworks/models/llama-guard-3-8b)

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 8B API Features

- **On-demand Deployment**: On-demand deployments allow you to use Llama Guard 3 8B on dedicated GPUs with Fireworks' high-performance serving stack with high reliability and no rate limits. · [Docs](https://docs.fireworks.ai/guides/ondemand-deployments)

## Metadata

- **State**: Ready
- **Created on**: 5 NOV, 2024
- **Kind**: Base model
- **Provider**: Meta
- **Huggingface**: [meta-llama/Llama-Guard-3-8B](https://huggingface.co/meta-llama/Llama-Guard-3-8B)

## Specifications

- **Calibrated**: No
- **Mixture-of-Experts**: No
- **Parameters**: 8.03B

## Supporting Functionality

- **Fine-tuning**: Not Supported
- **Serverless**: Not Supported
- **Context Length**: 131k tokens
- **Function Calling**: Not Supported
- **Embeddings**: Not Supported
- **Rerankers**: Not Supported
- **Supporting image input**: Not Supported

## Llama Guard 3 8B FAQs

### What is Llama Guard 3 8B and who developed it?

Llama Guard 3 8B is a content safety classification model developed by Meta, based on the Llama 3.1 8B architecture. It is fine-tuned to classify prompts and responses as safe or unsafe across 14 hazard categories based on the MLCommons taxonomy. It supports multilingual content moderation and is designed to integrate with systems using Llama 3.1.

### What applications and use cases does Llama Guard 3 8B excel at?

- LLM prompt and response moderation
- Safety filtering for agentic systems
- Tool call classification (e.g., code interpreter abuse detection)
- Multilingual content safety across 8 languages
- Evaluation and filtering aligned with MLCommons hazard taxonomy

### What is the maximum context length for Llama Guard 3 8B?

The model supports a context length of 131,072 tokens (131.1K).

### What is the usable context window for Llama Guard 3 8B?

Fireworks supports the full 131.1K token context window on on-demand deployments.

### Does Llama Guard 3 8B support quantized formats (4-bit/8-bit)?

Yes. Meta provides a quantized INT8 variant that reduces checkpoint size by ~40% with minimal performance degradation. Performance remains comparable across key benchmarks.

### What is the maximum output length Fireworks allows for Llama Guard 3 8B?

The maximum output is constrained by the 131.1K token context limit (prompt + output). The model typically generates short classification strings.

### What are known failure modes of Llama Guard 3 8B?

- May produce false positives (e.g., flagging benign prompts as unsafe)
- Limited performance on hazard categories requiring real-world updates (e.g., elections, IP, defamation)
- Susceptible to adversarial prompts and prompt injection
- May struggle with multilingual edge cases or commonsense gaps

### How many parameters does Llama Guard 3 8B have?

The model contains 8 billion parameters.

### Is fine-tuning supported for Llama Guard 3 8B?

Yes. Fireworks supports LoRA-based fine-tuning using its Reserved Fine-Tuning (RFT) infrastructure.

### How are tokens counted (prompt vs completion)?

Token usage is measured as prompt + output, and constrained by the 131.1K token context window.

### What rate limits apply on the shared endpoint?

- Serverless: Not supported
- On-demand: Available with no rate limits using dedicated GPUs

### What license governs commercial use of Llama Guard 3 8B?

Llama Guard 3 8B is released under the Llama 3 Community License (Meta). This license restricts certain commercial use cases and requires user agreement for access. Full terms are available at [https://llama.meta.com/license](https://llama.meta.com/license).
