Akash-Sakala / bert-phishing-classifier_student

huggingface.co
Total runs: 32
24-hour runs: 1
7-day runs: 5
30-day runs: 31
Model's Last Updated: September 27 2026
text-classification

Introduction of bert-phishing-classifier_student

Model Details of bert-phishing-classifier_student

DistilBERT Phishing Site Classifier (Student)

A 4-layer DistilBERT trained via knowledge distillation from a fine-tuned BERT teacher ( Akash-Sakala/bert-phishing-classifier_teacher ) for binary phishing site URL classification.

Model Details
Property Value
Base model distilbert/distilbert-base-uncased
Architecture DistilBertForSequenceClassification
Layers 4 (distilled from 12-layer BERT teacher)
Attention heads 8
Task Binary classification (phishing / benign)
Parameters ~52M
Training — Distillation Setup
Hyperparameter Value
Temperature 3.0
Alpha (KL weight) 0.6
Hard label weight 0.4
Learning rate 2e-5
Batch size 64
Epochs 4
Warmup steps 10% of total steps
Weight decay 0.01
Optimizer AdamW
Scheduler Linear with warmup
Mixed precision fp16 (torch.amp)
Loss Function

Combined KL divergence (soft targets) + Cross-Entropy (hard labels):

loss = alpha * KL(student_soft || teacher_soft) * T^2 + (1 - alpha) * CrossEntropy(student, labels)
Test Set Results
Model Accuracy Precision Recall F1
BERT Teacher 0.8971 0.9136 0.8763 0.8945
DistilBERT Student 0.9601 0.9710 0.9483 0.9595

The student outperforms the teacher across all metrics while being smaller and faster.

Dataset
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tokenizer = AutoTokenizer.from_pretrained('Akash-Sakala/bert-phishing-classifier_student')
model = AutoModelForSequenceClassification.from_pretrained('Akash-Sakala/bert-phishing-classifier_student')

url = 'http://suspicious-login.verify-account.com/secure'
inputs = tokenizer(url, return_tensors='pt', truncation=True, padding='max_length')

with torch.no_grad():
    logits = model(**inputs).logits

pred = torch.argmax(logits, dim=1).item()
print('Phishing' if pred == 1 else 'Benign')
Teacher Model

Akash-Sakala/bert-phishing-classifier_teacher

Runs of Akash-Sakala bert-phishing-classifier_student on huggingface.co

32
Total runs
1
24-hour runs
3
3-day runs
5
7-day runs
31
30-day runs

More Information About bert-phishing-classifier_student huggingface.co Model

More bert-phishing-classifier_student license Visit here:

https://choosealicense.com/licenses/apache-2.0

bert-phishing-classifier_student huggingface.co

bert-phishing-classifier_student huggingface.co is an AI model on huggingface.co that provides bert-phishing-classifier_student's model effect (), which can be used instantly with this Akash-Sakala bert-phishing-classifier_student model. huggingface.co supports a free trial of the bert-phishing-classifier_student model, and also provides paid use of the bert-phishing-classifier_student. Support call bert-phishing-classifier_student model through api, including Node.js, Python, http.

bert-phishing-classifier_student huggingface.co Url

https://huggingface.co/Akash-Sakala/bert-phishing-classifier_student

Akash-Sakala bert-phishing-classifier_student online free

bert-phishing-classifier_student huggingface.co is an online trial and call api platform, which integrates bert-phishing-classifier_student's modeling effects, including api services, and provides a free online trial of bert-phishing-classifier_student, you can try bert-phishing-classifier_student online for free by clicking the link below.

Akash-Sakala bert-phishing-classifier_student online free url in huggingface.co:

https://huggingface.co/Akash-Sakala/bert-phishing-classifier_student

bert-phishing-classifier_student install

bert-phishing-classifier_student is an open source model from GitHub that offers a free installation service, and any user can find bert-phishing-classifier_student on GitHub to install. At the same time, huggingface.co provides the effect of bert-phishing-classifier_student install, users can directly use bert-phishing-classifier_student installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bert-phishing-classifier_student install url in huggingface.co:

https://huggingface.co/Akash-Sakala/bert-phishing-classifier_student

Url of bert-phishing-classifier_student

bert-phishing-classifier_student huggingface.co Url

Provider of bert-phishing-classifier_student huggingface.co

Akash-Sakala
ORGANIZATIONS

Other API from Akash-Sakala