rudycaz/modernbert-phish-detector
By rudycaz · ↓ 0 · ♥ 0 · Updated 2026-03-21
What's in this repo
This page lists the files in rudycaz/modernbert-phish-detector, including model.int8.onnx, model.onnx.
- 2 ONNX models (.onnx files)
- 21 files, including 13 .json, 3 .npy, 2 .onnx, 1 .md, 1 .safetensors
- Last updated 2026-03-21
ONNX files
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
ModernBERT Phishing Detector
Model description
This model is a fine-tuned ModernBERT-base binary sequence classifier for phishing email detection. It takes a full email as input text and predicts whether the email is safe or phishing.
The training backbone is answerdotai/ModernBERT-base, and the final release includes:
- a fine-tuned PyTorch checkpoint
- an ONNX export
- a quantized INT8 ONNX export
- a calibration file for mapping logits to a user-facing phishing score
Intended use
This model is intended for:
- phishing detection in email text
- mobile or backend inference through ONNX Runtime
- UI risk scoring, such as a 0–10 or 1–10 phishing scale
- evidence extraction via sentence-level rescoring
This model is not intended for:
- malware analysis
- attachment sandboxing
- URL detonation
- image/PDF threat inspection
- general prompt-injection detection
- fully explainable token-level rationale extraction
Inputs
The model expects a single text string representing the email content.
Example format:
Subject: Urgent Account Notice
Body:
Your account has been locked. Please reply with your password immediately to restore access.
Model info
Created: 2026-03-21
Updated: 2026-03-21
View on Hugging Face