Downloads · 30 days
10
0% of all-time downloads
HiddenKise/Kaviel-threat-text-classifier
Kaviel-threat-text-classifier is a text classification model from HiddenKise. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Kaviel is a fine-tuned version of roberta-base designed for the classification of text into six categories: Banking Fraud, Terrorist Attack, Life Threat, Online Scams, Information Leakage, and Casual Conversation. Thi…
Downloads · 30 days
10
0% of all-time downloads
All-time downloads
7.9K
Public
Parameters
125M
997 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin499 MB · 50%
How the weights are stored.
F32125M · 100%
From the Hugging Face model README
Kaviel is a fine-tuned version of roberta-base designed for the classification of text into six categories: Banking Fraud, Terrorist Attack, Life Threat, Online Scams, Information Leakage, and Casual Conversation. This model is specifically trained for use in threat intelligence platforms.
The model is intended to help in automatically classifying textual data into predefined categories to assist in threat detection and management.
The model was trained on a custom dataset with the following categories:
The model was fine-tuned using PyTorch Lightning with the following configuration:
The model's performance was evaluated using ROC AUC scores for each category.
You can use the model for inference with the following code:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load the model and tokenizer
model_name = "HiddenKise/Kaviel-threat-text-classifier"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Example text for prediction
text = "Unauthorized access attempt detected. Verify your account now."
# Tokenize and prepare input
inputs = tokenizer(text, return_tensors="pt")
# Get model predictions
with torch.no_grad():
outputs = model(**inputs)
# Process outputs (assuming binary classification)
logits = outputs.logits
predictions = torch.sigmoid(logits)
# Print predictions
print(predictions)