Downloads · 30 days
30
10% of all-time downloads
vllm-sr/mmbert32k-jailbreak-detector-lora
mmbert32k-jailbreak-detector-lora is a text classification model from vllm-sr. Use it when you need a label for a piece of text. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter for jailbreak/prompt injection detection based on mmBERT-32K-YaRN.
Downloads · 30 days
30
10% of all-time downloads
All-time downloads
293
Public
Repo size
143 MB
Likes
1
Public
Click a slice to open those files.
.safetensors40.6 MB · 54%
From the Hugging Face model README
LoRA adapter for jailbreak/prompt injection detection based on mmBERT-32K-YaRN.
This model includes heavy oversampling of short jailbreak patterns to improve generalization:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
from peft import PeftModel
base_model = "vllm-sr/mmbert-32k-yarn"
lora_path = "vllm-sr/mmbert32k-jailbreak-detector-lora"
tokenizer = AutoTokenizer.from_pretrained(lora_path)
base = AutoModelForSequenceClassification.from_pretrained(base_model, num_labels=2)
model = PeftModel.from_pretrained(base, lora_path)