Filter unsafe prompts and replies with LlamaGuard.
Guides integration of LlamaGuard checks that filter unsafe prompts and responses in LLM applications.
When to use it
Use when building production LLM applications that need a pretrained moderation model with detailed safety categories.
Give it an LLM application to protect; it supplies code for LlamaGuard prompt and response filtering.
What you provide
The moderation examples run as Python code; no Python version is specified.
Requires signing in to HuggingFace; the access-denied instructions also require accepting the model license.
This skill
HuggingFace
Downloads LlamaGuard model files
transformers
Installs transformers