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
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "is_local": true, | |
| "local_files_only": false, | |
| "max_length": 256, | |
| "model_max_length": 131072, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<|endoftext|>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "stride": 0, | |
| "tokenizer_class": "TokenizersBackend", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<|endoftext|>" | |
| } | |