Instructions to use anjohn0077/NEXS-toxicity-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use anjohn0077/NEXS-toxicity-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B") model = PeftModel.from_pretrained(base_model, "anjohn0077/NEXS-toxicity-lora") - Notebooks
- Google Colab
- Kaggle
Ctrl+K
Add toxicity LoRA adapter extracted from K-intelligence/Llama-SafetyGuard-Content-Binary (base: meta-llama/Llama-3.1-8B)
2b1d5c2 verified