Instructions to use nnl26/gemma_toxic_sequence_cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nnl26/gemma_toxic_sequence_cls with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("unsloth/gemma-2-2b-it-bnb-4bit") model = PeftModel.from_pretrained(base_model, "nnl26/gemma_toxic_sequence_cls") - Transformers
How to use nnl26/gemma_toxic_sequence_cls with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nnl26/gemma_toxic_sequence_cls", 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!