Text Classification
Transformers
Safetensors
English
phi3
safety
moderation
hazard-classification
custom_code
Instructions to use RavindraSingh22/phi-hazard-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RavindraSingh22/phi-hazard-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="RavindraSingh22/phi-hazard-classifier", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("RavindraSingh22/phi-hazard-classifier", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("RavindraSingh22/phi-hazard-classifier", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
11dd15f | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:d89e3c30dcce2f758d2dc54b80ce04731d9356eedf552bfe87eba5bf6d308c14
size 15524754
|