Text Classification
Transformers
modernbert
prompt-injection
jailbreak
security
multi-label
llm-guard
encoder
Instructions to use Accuknoxtechnologies/PromptInjection-Encoder-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Accuknoxtechnologies/PromptInjection-Encoder-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Accuknoxtechnologies/PromptInjection-Encoder-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Accuknoxtechnologies/PromptInjection-Encoder-v1") model = AutoModelForSequenceClassification.from_pretrained("Accuknoxtechnologies/PromptInjection-Encoder-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
add eval metrics json
Browse files- eval_metrics.json +40 -0
eval_metrics.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 500,
|
| 3 |
+
"calibrated": true,
|
| 4 |
+
"threshold": "per-class",
|
| 5 |
+
"is_valid_threshold": 0.15,
|
| 6 |
+
"category_thresholds": {
|
| 7 |
+
"DirectInjection": 0.4,
|
| 8 |
+
"Jailbreak": 0.3,
|
| 9 |
+
"Adversarial": 0.7,
|
| 10 |
+
"Extraction": 0.55,
|
| 11 |
+
"Encoding": 0.45,
|
| 12 |
+
"Manipulation": 0.4,
|
| 13 |
+
"Smuggling": 0.6,
|
| 14 |
+
"Indirect": 0.2,
|
| 15 |
+
"MultiTurn": 0.6
|
| 16 |
+
},
|
| 17 |
+
"max_seq_length": 3072,
|
| 18 |
+
"is_valid_accuracy": 0.948,
|
| 19 |
+
"category_set_accuracy": 0.656,
|
| 20 |
+
"micro_f1": 0.7768744354110207,
|
| 21 |
+
"macro_f1": 0.7687988898685938,
|
| 22 |
+
"per_category_f1": {
|
| 23 |
+
"DirectInjection": 0.8368794326241135,
|
| 24 |
+
"Jailbreak": 0.5964912280701754,
|
| 25 |
+
"Adversarial": 0.8368794326241135,
|
| 26 |
+
"Extraction": 0.7387387387387387,
|
| 27 |
+
"Encoding": 0.8169014084507042,
|
| 28 |
+
"Manipulation": 0.631578947368421,
|
| 29 |
+
"Smuggling": 0.8793103448275862,
|
| 30 |
+
"Indirect": 0.8633093525179856,
|
| 31 |
+
"MultiTurn": 0.7191011235955056
|
| 32 |
+
},
|
| 33 |
+
"latency_ms_per_example": {
|
| 34 |
+
"mean": 1.82811776176095,
|
| 35 |
+
"p95": 1.953849196434021,
|
| 36 |
+
"device": "cuda:0"
|
| 37 |
+
},
|
| 38 |
+
"base_model": "jhu-clsp/mmBERT-base",
|
| 39 |
+
"epochs": 6
|
| 40 |
+
}
|