Downloads · 30 days
19
5% of all-time downloads
silentone0725/roberta-large-openai-detector-custom
roberta-large-openai-detector-custom is a text classification model from silentone0725. Use it when you need a label for a piece of text. It is set up for transformers.
This model detects AI-generated vs human-written text using a fine-tuned RoBERTa-Large architecture trained on modern LLM outputs.
Downloads · 30 days
19
5% of all-time downloads
All-time downloads
347
Public
Parameters
355M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
This model detects AI-generated vs human-written text using a fine-tuned RoBERTa-Large architecture trained on modern LLM outputs.
This model is a binary text classifier trained to identify AI-generated content from models such as GPT-4, GPT-3.5, Claude, and LLaMA. It improves over legacy GPT-2 detectors by adapting to modern generative patterns.
Detecting AI-generated text in research, moderation, and academic integrity systems.
Integration into content filtering pipelines, analytics tools, or research benchmarks.
Use as a decision-support tool, not a final authority.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "silentone0725/roberta-large-openai-detector-custom"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "Sample text to evaluate"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=1)
print("AI-generated" if prediction.item() == 1 else "Human-written")
Dataset: https://huggingface.co/datasets/silentone0725/ai-human-text-detection-v1
Contains human text + GPT-4, GPT-3.5, Claude, LLaMA outputs.
Fine-tuned on Google Colab GPUs using PyTorch + HuggingFace Transformers.
| Metric | Score |
|---|---|
| Accuracy | 0.5904 |
| Precision | 0.5087 |
| Recall | 0.7524 |
| F1 Score | 0.6070 |
| AUC | 0.690 |
RoBERTa-Large transformer with classification head.
PyTorch, Transformers, scikit-learn.
APA: Thakuria, D. (2026). AI-Generated Text Detection via Fine-Tuned RoBERTa-Large.
Daksh Thakuria
Via Hugging Face profile.