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')
model = AutoModelForSequenceClassification.from_pretrained('whitedevil0089devil/Cyber_Bot')
# 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}
}
checkpoint-200/optimizer.pt 997 MBcheckpoint-800/optimizer.pt 997 MBcheckpoint-200/model.safetensors 499 MBcheckpoint-800/model.safetensors 499 MBmodel.safetensors 499 MBcheckpoint-200/rng_state.pth 14.2 kBcheckpoint-800/rng_state.pth 14.2 kBcheckpoint-200/training_args.bin 5.3 kBcheckpoint-800/training_args.bin 5.3 kBtraining_args.bin 5.3 kBcheckpoint-200/scheduler.pt 1.1 kBcheckpoint-800/scheduler.pt 1.1 kBcheckpoint-200/scaler.pt 1 kBcheckpoint-800/scaler.pt 1 kBFacebookAI/roberta-base