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: 129 Bytes
c9d6bb2 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:0be0aebfbfa66c357b055510c15be8cb65f49410f83b8eaf3b1e429f8f02eb09
size 4856
|