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: 130 Bytes
c9d6bb2 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:39f5c95754eb59de94f457708d81b81277b3f755c4f1effdb68db81f55ca2aee
size 14244
|