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