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 README.md from Al-Chan/Malicious_Prompt_Classifier: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/Al-Chan/Malicious_Prompt_Classifier/resolve/main/README.md
- Command line
-
hf download hf://Al-Chan/Malicious_Prompt_Classifier/README.md
-
curl -L -o README.md https://huggingface.co/Al-Chan/Malicious_Prompt_Classifier/resolve/main/README.md
735 Bytes
| datasets: | |
| - davanstrien/aart-ai-safety-dataset | |
| - obalcells/advbench | |
| - databricks/databricks-dolly-15k | |
| # Malicious & Jailbreaking Prompt Classifer | |
| # Datasets Used | |
| [MaliciousInstruct](https://github.com/Princeton-SysML/Jailbreak_LLM/blob/main/data/MaliciousInstruct.txt) | |
| [AART](https://github.com/google-research-datasets/aart-ai-safety-dataset/blob/main/aart-v1-20231117.csv) | |
| [StrongREJECT](https://github.com/alexandrasouly/strongreject/blob/main/strongreject_dataset/strongreject_dataset.csv) | |
| [DAN](https://github.com/verazuo/jailbreak_llms/tree/main/data) | |
| [AdvBench](https://github.com/llm-attacks/llm-attacks/tree/main/data/advbench) | |
| [Databricks-Dolly](https://huggingface.co/datasets/databricks/databricks-dolly-15k) |