Downloads · 30 days
7
29% of all-time downloads
whitedevil0089devil/Cyber_bot_Squad
Cyber_bot_Squad is a text classification model from whitedevil0089devil. 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.
This is a fine-tuned RoBERTa model for question-answering classification tasks.
Downloads · 30 days
7
29% of all-time downloads
All-time downloads
24
Public
Parameters
125M
4.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt3 GB · 56%
From the Hugging Face model README
This is a fine-tuned RoBERTa model for question-answering classification tasks.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained('whitedevil0089devil/Cyber_bot_Squad')
model = AutoModelForSequenceClassification.from_pretrained('whitedevil0089devil/Cyber_bot_Squad')
# Example usage
question = "Your question here"
inputs = tokenizer(question, return_tensors="pt", truncation=True, padding=True, max_length=384)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class = torch.argmax(outputs.logits, dim=-1).item()
confidence = predictions[0][predicted_class].item()
print(f"Predicted class: {predicted_class}")
print(f"Confidence: {confidence:.4f}")
This model was fine-tuned using:
This model is designed for question-answering classification tasks. It can be used to:
If you use this model, please cite:
@misc{roberta-qa-model,
title={Fine-tuned RoBERTa for Question-Answer Classification},
author={Your Name},
year={2024},
url={https://huggingface.co/whitedevil0089devil/Cyber_bot_Squad}
}