llamaguard

Classify and filter LLM content into six safety categories.

6|3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/jonnabio/ace-framework --skill llamaguard-jonnabio
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: llamaguard
Source: https://github.com/jonnabio/ace-framework/tree/main/.ace/packs/ai-research/llamaguard
Command: npx skills add https://github.com/jonnabio/ace-framework --skill llamaguard-jonnabio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires transformers, torch, vllm, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of ensuring AI-generated content is safe and adheres to ethical standards, by integrating Meta's LlamaGuard moderation model.

Core Features & Use Cases

  • Content Moderation: Filters LLM input/output for violence, hate, sexual content, weapons, substances, self-harm, and criminal planning.
  • Safety Categories: Classifies content into 6 safety categories for better control and compliance.
  • Integration: Works with various platforms like vLLM, HuggingFace, Sagemaker, and NeMo Guardrails.

Quick Start

Install the required libraries and use the 'moderate' function to check user input or LLM responses.

Frequently Asked Questions about llamaguard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I moderate LLM input and output for violence, hate, and sexual content?▼

You can moderate LLM input and output for violence, hate, and sexual content by integrating Meta's LlamaGuard model. It classifies and filters text across six predefined safety categories to ensure AI content compliance.

What is Meta LlamaGuard used for in AI content safety?▼

Meta LlamaGuard is a specialized moderation model used for AI content safety. It classifies and filters prompts and responses to prevent unsafe content like criminal planning, weapons, and self-harm from being generated.

Does LlamaGuard work with vLLM and HuggingFace transformers?▼

Yes, LlamaGuard works with vLLM and HuggingFace transformers. It requires the transformers, torch, and vllm libraries to run the moderation model and classify content into safety categories.

Can I use this moderation model with Sagemaker and NeMo Guardrails?▼

Yes, you can use this moderation model with Sagemaker and NeMo Guardrails. The model is designed for integration across various AI platforms to filter unsafe LLM responses.

How to classify AI generated text into predefined safety categories?▼

To classify AI generated text into predefined safety categories, use the LlamaGuard moderate function. It evaluates user input and LLM responses against six safety categories including violence, hate, and substances.

What are the limitations of using LlamaGuard for content moderation?▼

Limitations include its dependency on specific libraries like transformers, torch, and vllm. The model only classifies content into six predefined safety categories, which may limit custom moderation requirements.