Instructions to use nvidia/Aegis-AI-Content-Safety-LlamaGuard-Permissive-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nvidia/Aegis-AI-Content-Safety-LlamaGuard-Permissive-1.0 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/workspace/hugging_face/hub/models--meta-llama--LlamaGuard-7b/snapshots/3e764390d6b39028ddea5b20603c89476107b41e/") model = PeftModel.from_pretrained(base_model, "nvidia/Aegis-AI-Content-Safety-LlamaGuard-Permissive-1.0") - Notebooks
- Google Colab
- Kaggle
Incorrect path_or_model_id
1
#3 opened over 1 year ago
by
Machlovi