npx skills add ...
npx skills add firecrawl/ai-research-skills --skill llamaguard
Meta's 7-8B specialized moderation model for LLM input/output filtering. 6 safety categories - violence/hate, sexual content, weapons, substances, self-harm, criminal planning. 94-95% accuracy. Deploy with vLLM, HuggingFace, Sagemaker. Integrates with NeMo Guardrails.
npx skills add firecrawl/ai-research-skills --skill llamaguard
LlamaGuard is a 7-8B parameter model specialized for content safety classification.
Installation:
Basic usage:
Check user prompts before LLM:
Safety categories:
Check LLM responses before showing to user:
Production-ready serving:
Throughput: ~50-100 requests/sec on single A100
Serve as moderation API:
Usage:
Use with NVIDIA Guardrails:
Use LlamaGuard when:
Model versions:
Use alternatives instead:
Issue: Model access denied
Login to HuggingFace:
Accept license on model page: https://huggingface.co/meta-llama/LlamaGuard-7b
Issue: High latency (>500ms)
Use vLLM for 10× speedup:
Enable tensor parallelism:
Issue: False positives
Use threshold-based filtering:
Issue: OOM on GPU
Use 8-bit quantization:
Custom categories: See references/custom-categories.md for fine-tuning LlamaGuard with domain-specific safety categories.
Performance benchmarks: See references/benchmarks.md for accuracy comparison with other moderation APIs and latency optimization.
Deployment guide: See references/deployment.md for Sagemaker, Kubernetes, and scaling strategies.
Latency (single GPU):