Instructions to use vllm-sr/mmbert-jailbreak-detector-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vllm-sr/mmbert-jailbreak-detector-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("jhu-clsp/mmBERT-base") model = PeftModel.from_pretrained(base_model, "vllm-sr/mmbert-jailbreak-detector-lora") - Notebooks
- Google Colab
- Kaggle
Upload mmBERT LoRA adapter: mmBERT Jailbreak Detector with LoRA - Security classification (97.7% accuracy)
c286c77 verified Download lora_config.json from vllm-sr/mmbert-jailbreak-detector-lora: direct link, hf CLI and curl.
- Browser
- Download file 105 Bytes
-
https://huggingface.co/vllm-sr/mmbert-jailbreak-detector-lora/resolve/main/lora_config.json
- Command line
-
hf download hf://vllm-sr/mmbert-jailbreak-detector-lora/lora_config.json
-
curl -L -o lora_config.json https://huggingface.co/vllm-sr/mmbert-jailbreak-detector-lora/resolve/main/lora_config.json
105 Bytes
| {"rank": 32, "alpha": 64, "dropout": 0.1, "target_modules": ["attn.Wqkv", "attn.Wo", "mlp.Wi", "mlp.Wo"]} |