File size: 1,853 Bytes
f3fb92a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | ---
language:
- en
license: llama3.2
library_name: optimum
pipeline_tag: text-classification
tags:
- prompt-guard
- onnx
- onnxruntime
- mobile
- cybersecurity
- phishing-detection
- prompt-injection
- text-classification
base_model: meta-llama/Llama-Prompt-Guard-2-86M
base_model_relation: finetune
datasets:
- naserabdullahalam/phishing-email-dataset
- marycamilainfo/prompt-injection-malignant
---
# Prompt Guard 2 Multitask ONNX
This repository contains an **ONNX export** of a multitask security classifier built from **`meta-llama/Llama-Prompt-Guard-2-86M`**.
The model was fine-tuned as a **single multitask adapter** on two security-focused tasks and then merged into a standalone model before ONNX export.
## Base model
- **Base model:** `meta-llama/Llama-Prompt-Guard-2-86M`
- **Architecture:** sequence classification
- **Export format:** ONNX
- **Primary runtime:** ONNX Runtime / ONNX Runtime Mobile
## Tasks
This model is intended to score text as **BENIGN** or **MALICIOUS** across two security-related input types:
1. **Phishing email detection**
2. **Prompt injection detection**
The model uses a shared binary label space:
- `BENIGN`
- `MALICIOUS`
## Training data
This multitask model was trained using data derived from:
- `naserabdullahalam/phishing-email-dataset`
- `marycamilainfo/prompt-injection-malignant`
Additional benign prompt-style examples were included so the prompt-injection side of the multitask classifier had both positive and negative examples.
## Input format
During training and inference, inputs are prefixed with a simple modality tag:
- `[EMAIL] ...`
- `[PROMPT] ...`
### Example inputs
#### Phishing email example
```text
[EMAIL] Subject: Verify your payroll account now. Body: Your payroll access will be suspended unless you confirm your credentials here: http://example-login-reset.com |