Llama Nemotron Safety Guard

Llama Nemotron Safety Guard V2

by NVIDIA AI · Currently available as a downloadable NVIDIA NIM model and Hugging Face LoRA adapter; formerly known as Llama-3.1-NemoGuard-8B-ContentSafety.

NVIDIA’s Llama Nemotron Safety Guard V2 is a text-only moderation model based on Meta’s Llama 3.1 8B Instruct. It evaluates user prompts and assistant responses, assigns safe, unsafe, or needs-caution labels, and identifies violations across a 23-category taxonomy. It is available through NVIDIA NIM and as a Hugging Face LoRA adapter, with no documented public pricing or model-specific context and output limits in the supplied research.

Text Reasoning Coding
Llama Nemotron Safety Guard V2 is designed to sit between users and language models as a moderation layer. It analyzes text from a user, an assistant, or both, then returns safety classifications and, where applicable, the categories that caused a violation. The model is based on Meta’s Llama 3.1 8B Instruct and is distributed by NVIDIA through an OpenAI-compatible NIM deployment and a Hugging Face LoRA adapter. Its main value is focused safety classification rather than conversation, reasoning, coding, or content generation.
Outputs

What Llama Nemotron Safety Guard V2 can produce

Text
Inputs

What it can understand

Text
Capabilities

Support features

Streaming
Model profile

Performance characteristics

2/10 Reasoning
2/10 Coding
7/10 Speed
7/10 Cost efficiency
Specifications

Technical details

Family Llama Nemotron Safety Guard
Type Other
Context window tokens
Max output tokens tokens
Status Currently available as a downloadable NVIDIA NIM model and Hugging Face LoRA adapter; formerly known as Llama-3.1-NemoGuard-8B-ContentSafety.
Knowledge cutoff notes

No authoritative model-specific knowledge cutoff was published in the reviewed NVIDIA or Hugging Face documentation. The model is a safety classifier whose behavior depends primarily on its fine-tuned taxonomy and supplied conversation context.

Model notes

The canonical current name is Llama Nemotron Safety Guard V2. The original Hugging Face repository remains named nvidia/llama-3.1-nemoguard-8b-content-safety. NVIDIA documents the model as a LoRA/PEFT adapter based on Meta's Llama 3.1 8B Instruct. It classifies text according to a configurable safety taxonomy and can return user-safety and response-safety labels plus violated categories. The model's JSON response is generated text; separate constrained structured-output or legacy JSON-mode support is not documented. NVIDIA provides an OpenAI-compatible NIM deployment with completion and chat-completion endpoints. The Hugging Face page identifies the model as English text classification and states that it is not deployed by a Hugging Face Inference Provider. Scores are editorial estimates for this safety-classification use case, not vendor benchmark results.

Model guide

Llama Nemotron Safety Guard V2: NVIDIA’s Text Safety Classifier for LLM Moderation

Llama Nemotron Safety Guard V2 is NVIDIA’s text-based content-safety classifier for evaluating user prompts and assistant responses. Based on Meta’s Llama 3.1 8B Instruct and tuned with NVIDIA’s Nemotron Content Safety Dataset V2, it labels conversations as safe, unsafe, or needing caution and can identify violations across a 23-category safety taxonomy. It is available through NVIDIA NIM and as a Hugging Face LoRA adapter, but it is not a general-purpose assistant and has no documented public price, context limit, maximum output limit, or separate constrained JSON mode.

What Llama Nemotron Safety Guard V2 is

Llama Nemotron Safety Guard V2 is an NVIDIA model for moderating text-based interactions between people and large language models. It examines a user prompt, an assistant response, or both together and determines whether the content is safe or unsafe. When it detects a problem, it can also return the relevant safety categories.

The model was formerly identified as Llama-3.1-NemoGuard-8B-ContentSafety, and the original Hugging Face repository continues to use the name nvidia/llama-3.1-nemoguard-8b-content-safety. The current name is Llama Nemotron Safety Guard V2. NVIDIA positions it as a downloadable model for application-level moderation, guardrails, and integration with NeMo Guardrails rather than as a general-purpose chatbot.

In practical terms, an application can send the model a conversation before displaying a response, after generating a response, or at both stages. The classifier can then help the application block, route, log, or review content according to its safety policy.

Where it fits in NVIDIA’s model lineup

This model occupies a specialized safety-classification role in NVIDIA’s catalog. It is not intended to compete with general instruction-following models on open-ended conversation, factual question answering, programming, or creative generation. Its output is a safety assessment, normally represented as generated text following the model’s documented prompt format.

NVIDIA provides two primary deployment paths. The first is a TensorRT-LLM-optimized NVIDIA NIM microservice. NIM exposes OpenAI-compatible completion and chat-completion endpoints, making the model suitable for services that already use those request patterns. The second is a Hugging Face release containing a LoRA adapter that can be loaded with PEFT on top of Meta’s Llama 3.1 8B Instruct base model.

This positioning makes the model useful when a team wants a dedicated moderation component instead of asking its main assistant model to judge its own output. It also means that deployment requirements, prompt formatting, and response parsing matter: the classifier is a component in a larger safety system, not a complete policy-enforcement product by itself.

How its safety classification works

Llama Nemotron Safety Guard V2 uses a safety taxonomy containing 23 critically unsafe categories, in addition to safe and needs-caution classifications. The documented categories cover a broad range of risks, including violence, sexual content, criminal planning, guns and illegal weapons, controlled substances, suicide and self-harm, hate and identity hate, personally identifiable information, harassment, threats, profanity, manipulation, fraud, malware, political misinformation, copyright violations, unauthorized advice, illegal activity, and immoral or unethical conduct.

A request can evaluate the user message, the assistant message, or both. The result can include separate user-safety and response-safety labels together with the categories that apply. This is useful for workflows that need to distinguish between a harmful request and a harmful answer. For example, a system might allow a benign user question but reject an assistant response that gives unauthorized medical advice or instructions for illegal activity.

The model is trained to behave as a classifier through a system prompt that defines the taxonomy and expected response format. Developers therefore need to preserve the appropriate prompt template and parse the returned fields carefully. The labels should be treated as model-generated text unless the chosen deployment stack adds its own validated output handling.

Base model and training approach

The base model is Meta’s Llama 3.1 8B Instruct. NVIDIA applies parameter-efficient fine-tuning, or PEFT, using LoRA adapters. LoRA changes a relatively small set of trainable parameters instead of retraining every parameter in the base model. The documented tuned components include attention and feed-forward projections such as query, key, value, output, up, down, gate, and language-model head modules.

NVIDIA says the model was instruction-tuned on approximately 30,000 prompts and responses from the Nemotron Content Safety Dataset V2. That dataset was formerly known as the Aegis AI Content Safety Dataset 2.0. The training objective is not general conversation quality; it is consistent classification against the supplied safety taxonomy.

The result is best understood as a specialized text classifier built from an instruction-tuned language model. Its Llama foundation helps it interpret natural-language conversations, while the safety fine-tuning directs that interpretation toward policy labels rather than ordinary assistant replies.

Inputs, outputs, and modalities

The verified input modality is text. The model is designed for text conversations containing user prompts and assistant responses. There is no supplied evidence that it accepts images, audio, or video, and it should not be selected for multimodal safety analysis without a separate preprocessing or moderation system.

The output is also text. In the documented usage pattern, that text is formatted as a safety-assessment result resembling JSON. The generated result can express safe, unsafe, or needs-caution decisions and can list violated categories.

This distinction is important for implementation. NVIDIA’s documentation describes JSON-formatted model output, but the supplied research does not document a separate constrained structured-output feature or a legacy JSON-mode API. A production integration should validate the response, handle malformed output, and define a fail-safe behavior when parsing fails.

CapabilityVerified position
Text inputSupported
Image, audio, or video inputNot documented; not the model’s intended modality
Text outputSupported as safety-assessment text
Direct image, audio, or video outputNot supported
Tool or function callingNot documented
Web searchNot supported
StreamingAvailable in the supplied model record, subject to the selected deployment

Context limits, output limits, and pricing

The supplied NVIDIA and Hugging Face research does not specify a model-specific context-window limit or maximum output-token limit. Developers should confirm the limits exposed by the selected NIM release or local inference configuration rather than assuming a value from the underlying Llama family.

No public input-token price, output-token price, subscription price, or recurring hosted price is provided in the reviewed research. The model is described as downloadable through NVIDIA NIM and available as a Hugging Face LoRA adapter. Deployment costs therefore depend on the infrastructure, NVIDIA service arrangement, GPU resources, and operational setup chosen by the user. There is no verified default price to report.

Because this is a moderation model, cost evaluation should include the number of messages checked, whether both prompts and responses are classified, GPU utilization, and the latency added to each interaction. A smaller or faster dedicated classifier may be preferable for high-volume filtering, while this model may be attractive when the taxonomy and Llama-based deployment fit the application.

Reasoning, coding, speed, and cost trade-offs

Llama Nemotron Safety Guard V2 is not presented as a reasoning model. It performs the reasoning needed to interpret text and assign safety labels, but there is no supplied evidence of extended chain-of-thought behavior, a reasoning mode, or a reasoning benchmark. Its classification role should not be confused with deliberate multi-step analysis for general tasks.

Coding is similarly not a primary capability. The model may classify code-related text when that text is part of a safety decision, including some malware or unauthorized-activity cases, but it is not intended to write, debug, or review software as a general coding assistant. It also has no documented tool-use or function-calling capability.

The research record includes editorial estimates of reasoning, coding, speed, and cost scores. Those scores are not NVIDIA benchmark results. The editorial assessment rates the model low for general reasoning and coding, while viewing it as relatively favorable for speed and cost in its intended safety-classification role. These estimates should be interpreted as task-specific judgments, not guaranteed latency, throughput, or pricing measurements.

Main strengths

  • Focused safety purpose: The model is trained specifically to classify unsafe content instead of dividing its capacity between moderation and general assistance.
  • Coverage across a defined taxonomy: The 23-category scheme addresses risks ranging from violence and self-harm to privacy, fraud, malware, misinformation, and unauthorized advice.
  • User and assistant evaluation: A single interaction can examine both sides of a conversation, helping applications detect harmful requests and unsafe generated responses.
  • Deployment flexibility: NVIDIA offers a TensorRT-LLM-optimized NIM service, while the Hugging Face release supports a PEFT/LoRA deployment pattern.
  • Guardrails integration: The model can be used with NVIDIA NeMo Guardrails as part of a broader application policy.

Important limitations

NVIDIA notes that the classifier can produce false positives and false negatives. A safe label is therefore not proof that content is harmless, and an unsafe label does not necessarily settle every policy question without context. Adversarial prompts and jailbreak attempts can also reduce reliability.

The taxonomy and prompt template influence the result. Applications should version their policy configuration, preserve the input context needed for the decision, and monitor disagreements between the classifier and human reviewers. High-impact use cases may require escalation rather than automatic blocking.

The response is generated text, so parsing errors are possible. Systems should validate the expected fields, reject or quarantine unparseable responses, and define fail-safe behavior. Deterministic rules, keyword or pattern checks, rate limits, monitoring, and human review can complement the model, especially for categories where a mistaken decision has serious consequences.

Other limitations are specification gaps rather than confirmed defects: the reviewed material does not provide a model-specific context limit, maximum output length, public price, or separately documented structured-output mode. It also does not establish support for non-English languages beyond the Hugging Face description identifying the model as English text classification.

When to choose Llama Nemotron Safety Guard V2

Choose this model when the primary requirement is text moderation for user prompts, assistant responses, or both, and when a 23-category safety taxonomy is a useful starting point. It is particularly suitable for teams already using NVIDIA infrastructure, NIM, TensorRT-LLM, or NeMo Guardrails, and for organizations that want a dedicated classifier rather than relying on their main conversational model to moderate itself.

It can also be a practical choice when self-hosting or adapter-based deployment is important. The NIM option provides an OpenAI-compatible interface, while the LoRA release gives teams a way to load the safety adapter on the Llama 3.1 8B Instruct base model with PEFT.

Another option may be more appropriate when the application needs general conversation, complex reasoning, coding, web research, multimodal moderation, direct tool use, or a documented hosted per-token price. A specialized image, audio, or video moderation system is also a better fit for non-text content. For very high-volume, latency-sensitive filtering, teams should compare measured throughput and operating cost against smaller classifiers or deterministic rules rather than assuming that this 8B-based model is the cheapest option.

Bottom line

Llama Nemotron Safety Guard V2 is a specialized NVIDIA safety layer for text-based LLM interactions. Its defining features are the user-and-response classification workflow, the 23-category safety taxonomy, the Llama 3.1 8B Instruct foundation, and the choice between NVIDIA NIM and a Hugging Face LoRA deployment. It is a strong candidate for application guardrails when those characteristics match the deployment environment.

It should not be evaluated as a general chatbot or coding model. Teams adopting it should validate its decisions against their own policy, measure false positives and false negatives, handle generated JSON-like output defensively, and confirm infrastructure-specific context, output, latency, and cost limits before production use.


Answers to Frequently Asked Questions

Is Llama Nemotron Safety Guard V2 a general-purpose chatbot or multimodal moderation model?
No. It is designed for text safety classification, not general conversation, coding, reasoning, web search, or tool use. The supplied documentation verifies text input and text safety-assessment output, but does not document support for direct image, audio, or video moderation.
How can Llama Nemotron Safety Guard V2 be deployed?
NVIDIA provides a TensorRT-LLM-optimized NVIDIA NIM microservice with OpenAI-compatible completion and chat-completion endpoints. The Hugging Face release provides a LoRA adapter that can be loaded with PEFT on Meta’s Llama 3.1 8B Instruct base model.
What safety categories does Llama Nemotron Safety Guard V2 detect?
The model uses a taxonomy with 23 critically unsafe categories, covering risks such as violence, sexual content, criminal planning, weapons, controlled substances, self-harm, hate, personally identifiable information, harassment, fraud, malware, political misinformation, copyright violations, unauthorized advice, and illegal activity.
What is Llama Nemotron Safety Guard V2 used for?
Llama Nemotron Safety Guard V2 is an NVIDIA text safety classifier for moderating user prompts, assistant responses, or both. It identifies whether content is safe, unsafe, or needs caution and can return relevant safety categories for application guardrails, blocking, routing, logging, or human review.


Sources 5
AI Provider

About NVIDIA AI