Text Classification
PEFT
Safetensors
Transformers
lora
qlora
safety
llama-3.2
trl
bitsandbytes
aegis
Instructions to use GAuRaV27k/llama-3.2-qlora-safety-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use GAuRaV27k/llama-3.2-qlora-safety-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B-Instruct") model = PeftModel.from_pretrained(base_model, "GAuRaV27k/llama-3.2-qlora-safety-classifier") - Transformers
How to use GAuRaV27k/llama-3.2-qlora-safety-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="GAuRaV27k/llama-3.2-qlora-safety-classifier")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("GAuRaV27k/llama-3.2-qlora-safety-classifier", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!