Downloads · 30 days
8
3% of all-time downloads
kinggreco/my-awesome-model
my-awesome-model is a text classification model from kinggreco. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
8
3% of all-time downloads
All-time downloads
290
Public
Parameters
67M
2.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
By using supervised fine-tuning on the ucirvine/sms_spam dataset, you transitioned the model from general language understanding to a specialized security tool capable of recognizing adversarial text patterns and phishing intent.
The model is a fine-tuned DistilBERT architecture specifically optimized for classifying SMS and email strings as either Ham (safe) or Spam (malicious). By utilizing contextual embeddings and supervised fine-tuning on the ucirvine/sms_spam dataset, it identifies intent and adversarial text patterns that simpler keyword filters often miss.
The model is designed for cybersecurity applications, serving as a first layer of defense to identify phishing attempts and audit outbound customer support messages for spam-like markers. However, it is limited by a temporal bias toward older SMS spam patterns and requires GPU acceleration to maintain the real-time performance necessary for its auditor applications.
import torch from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "kinggreco/my-awesome-model"
tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForSequenceClassification.from_pretrained(model_id)
text = "URGENT: Your account has been flagged. Click here to verify now!"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad(): logits = model(**inputs).logits prediction = torch.argmax(logits, dim=-1).item()
print(f"Prediction: {'SPAM' if prediction == 1 else 'HAM'}")
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| No log | 1.0 | 63 | 0.0497 | 0.99 | 0.9682 |
| No log | 2.0 | 126 | 0.0496 | 0.986 | 0.9560 |
| No log | 3.0 | 189 | 0.0414 | 0.994 | 0.9806 |