Text Classification
Transformers
Safetensors
English
distilbert
smishing
sms
phishing
cybersecurity
text-embeddings-inference
Instructions to use CamargoJ21/smishing-distilbert-hardened with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CamargoJ21/smishing-distilbert-hardened with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CamargoJ21/smishing-distilbert-hardened")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CamargoJ21/smishing-distilbert-hardened") model = AutoModelForSequenceClassification.from_pretrained("CamargoJ21/smishing-distilbert-hardened", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Smishing detector, DistilBERT (hardened)
DistilBERT (distilbert-base-uncased) fine-tuned to detect SMS phishing (smishing). Hardened with adversarial training: disguised copies of every training scam, plus casual scams and legitimate service messages.
- Labels: 0 = legitimate, 1 = malicious (spam or smishing)
- Input: text cleaned with the project's
clean_text(links, phones, amounts and numbers replaced by<URL>,<PHONE>,<MONEY>,<NUM>) - Decision threshold: 0.2553 on P(malicious), set for at most 1% false positives on validation data
- Training: 4 epochs, learning rate 2e-05, batch size 32, class-weighted loss
Used by the Space CamargoJ21/smishing-detector. Course project; not a production filter.
- Downloads last month
- 13