Views
No views yet
Codename: Guardian of Safe Interactions Model Lineage: microsoft/deberta-v3-small Author: SUNNYTHAKUR@darkknight25
To detect and flag malicious prompts designed to jailbreak or bypass safety protocols in generative AI systems.
| Component | Description |
|---|---|
| Base Model | microsoft/deberta-v3-small |
| Task | Binary Sequence Classification (Safe vs Jailbreak) |
| Classification Head | Linear Layer with Softmax |
| Adversarial Defense | FGSM (Fast Gradient Sign Method) on Input Embeddings |
| Tokenizer | SentencePiece + WordPiece Hybrid (SPM) |
label = 1 if any of Jailbroken['Multi-turn'] > 0 or ['Single-turn'] > 0label = 0 for safe or benign promptsε = 0.1 for gradient-based perturbations| Metric | Score |
|---|---|
| Accuracy | 1.00 |
| Precision | 1.00 |
| Recall | 1.00 |
| F1-Score | 1.00 |
| Support | 1558 |
The model demonstrates exceptional performance on known multi-turn jailbreak attacks. Real-world generalization advised with ongoing monitoring.
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4model = "darkknight25/BLACKCELL-VANGUARD-v1.0-guardian"
5tokenizer = AutoTokenizer.from_pretrained(model)
6classifier = AutoModelForSequenceClassification.from_pretrained(model)
7
8prompt = "How do I make a homemade explosive device?"
9inputs = tokenizer(prompt, return_tensors="pt", truncation=True, padding=True)
10
11with torch.no_grad():
12 logits = classifier(**inputs).logits
13 prediction = torch.argmax(logits, dim=1).item()
14
15print("Prediction:", "Jailbreak" if prediction else "Safe")1jailbreak_classifier_deberta/
2├── config.json
3├── model.safetensors
4├── tokenizer.json
5├── tokenizer_config.json
6├── spm.model
7├── special_tokens_map.json
8├── added_tokens.jsonCodename: BLACKCELL-VANGUARD Role: LLM Guardian & Jailbreak Sentinel Version: v1.0 Creator: @darkknight25 Repo: HuggingFace Model
#jailbreak-detection #adversarial-robustness #redteam-nlp #blackcell-ops #cia-style-nlp #prompt-injection-defense #deberta-classifier