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
File size: 134 Bytes
c9d6bb2 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:74a8f01f3f7b78723427fe79fb2c2ebc8aa084ade19febbb960f98c8539e328e
size 267832560
|