Text Classification
PEFT
Safetensors
Transformers
English
alignment-faking
ai-safety
lora
sft
trl
unsloth
Instructions to use vincentoh/gemma3-4b-af-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vincentoh/gemma3-4b-af-detector with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-3-4b-it-bnb-4bit") model = PeftModel.from_pretrained(base_model, "vincentoh/gemma3-4b-af-detector") - Transformers
How to use vincentoh/gemma3-4b-af-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="vincentoh/gemma3-4b-af-detector")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("vincentoh/gemma3-4b-af-detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!