Text Classification
Transformers
ONNX
Safetensors
Transformers.js
English
roberta
phishing
email-security
phishing-detection
security
classification
spam
social-engineering
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run Project-Bastion/phishing-email-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Project-Bastion/phishing-email-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Project-Bastion/phishing-email-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Project-Bastion/phishing-email-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Project-Bastion/phishing-email-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Project-Bastion/phishing-email-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Project-Bastion/phishing-email-classifier") model = AutoModelForSequenceClassification.from_pretrained("Project-Bastion/phishing-email-classifier", device_map="auto") - Transformers.js
How to use Project-Bastion/phishing-email-classifier with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Project-Bastion/phishing-email-classifier'); - Notebooks
- Google Colab
- Kaggle
Add notes on the numbers
Browse files71 unmodified lines72737475767771 unmodified lines`onnx/model_quantized.onnx` (weight-only int8, 86 MB, the demo default) and `onnx/model.onnx` (fp32, 329 MB) for transformers.js / onnxruntime. fp32 gives the same decisions as PyTorch on 315 checked emails; int8 gives the same decisions with a largest margin difference of 0.63.## Limits* Slightly behind cybersectony on zefang-liu and Ling (and behind ptouch on SpamAssassin and Ling): test on your own mail and tune the threshold before relying on it.71 unmodified lines7273747576777879808171 unmodified lines`onnx/model_quantized.onnx` (weight-only int8, 86 MB, the demo default) and `onnx/model.onnx` (fp32, 329 MB) for transformers.js / onnxruntime. fp32 gives the same decisions as PyTorch on 315 checked emails; int8 gives the same decisions with a largest margin difference of 0.63.## Notes on the numbersThis model was trained on the training splits of most of the corpora in the table (CEAS_08, TREC_05/06/07, Nazario, Nigerian fraud, SpamAssassin, Enron, Ling, locuoco, LLMGen); the scores are on their test splits. cybersectony's and ptouch's models were trained on other data, so part of the gap on these corpora is in-domain training. zefang-liu/phishing-email-dataset was never trained on, and is the one benchmark here with no such advantage.## Limits* Slightly behind cybersectony on zefang-liu and Ling (and behind ptouch on SpamAssassin and Ling): test on your own mail and tune the threshold before relying on it.
README.md+4