ONNX Model Zoo

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

File Size Download
onnx/model.int8.onnx — Download
onnx/model.onnx — Download

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

text-classification transformers
transformers onnx safetensors cybersecurity phishing-detection email-security text-classification int8 modernbert en base_model:answerdotai/ModernBERT-base base_model:finetune:answerdotai/ModernBERT-base
↓ 0 ♥ 0

Created: 2026-03-21

Updated: 2026-03-21

View on Hugging Face

Files (21)

.gitattributes
README.md
onnx/calibration.json
onnx/config.json
onnx/model.int8.onnx ONNX
onnx/model.onnx ONNX
onnx/special_tokens_map.json
onnx/tokenizer.json
onnx/tokenizer_config.json
pytorch/best_valid_metrics.json
pytorch/calibration.json
pytorch/config.json
pytorch/model.safetensors
pytorch/phish_valid_labels.npy
pytorch/phish_valid_margins.npy
pytorch/phish_valid_probs.npy
pytorch/special_tokens_map.json
pytorch/test_metrics.json
pytorch/tokenizer.json
pytorch/tokenizer_config.json
pytorch/train_args.json

Related models