Instructions to use Al-Chan/Malicious_Prompt_Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Al-Chan/Malicious_Prompt_Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Al-Chan/Malicious_Prompt_Classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Al-Chan/Malicious_Prompt_Classifier") model = AutoModelForSequenceClassification.from_pretrained("Al-Chan/Malicious_Prompt_Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download scheduler.pt from Al-Chan/Malicious_Prompt_Classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/Al-Chan/Malicious_Prompt_Classifier/resolve/main/scheduler.pt
- Command line
-
hf download hf://Al-Chan/Malicious_Prompt_Classifier/scheduler.pt
-
curl -L -o scheduler.pt https://huggingface.co/Al-Chan/Malicious_Prompt_Classifier/resolve/main/scheduler.pt
1.06 kB
- Xet hash:
- 2aebb980e10edeca402a2608e7c883273e492810af85b8fa75f809fd313c452a
- Size of remote file:
- 1.06 kB
- SHA256:
- 95e5cda4f8fb001511d4b0efa08c53c8010179e885e66c2f1f602d767dc4ba5c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.