Instructions to use advy/gemma-2b-hate-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use advy/gemma-2b-hate-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google/gemma-2b") model = PeftModel.from_pretrained(base_model, "advy/gemma-2b-hate-classifier") - Transformers
How to use advy/gemma-2b-hate-classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("advy/gemma-2b-hate-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from advy/gemma-2b-hate-classifier: direct link, hf CLI and curl.
- Browser
- Download file 34.4 MB
-
https://huggingface.co/advy/gemma-2b-hate-classifier/resolve/main/tokenizer.json
- Command line
-
hf download hf://advy/gemma-2b-hate-classifier/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/advy/gemma-2b-hate-classifier/resolve/main/tokenizer.json
34.4 MB
- Xet hash:
- 650fb04cc748a3c55575de34a7e26407abc8f31df57f22993d0c291a1f33f930
- Size of remote file:
- 34.4 MB
- SHA256:
- 9fa3d5b925dc7d8091bb08aecb5267ad762a9b9ea557103976fa56ae99ab2a17
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.