Downloads · 30 days
24
6% of all-time downloads
ShivamVN/My-Ai-Text-Detector
My-Ai-Text-Detector is a text classification model from ShivamVN. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is a fine-tuned version of roberta-base trained to distinguish between human-written text and AI-generated text.
Downloads · 30 days
24
6% of all-time downloads
All-time downloads
403
Public
Parameters
125M
499 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of roberta-base trained to distinguish between human-written text and AI-generated text.
artem9k/ai-text-detection-pile dataset.You can use this model directly with the Hugging Face transformers library:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
model_name = "ShivamVN/My-Ai-Text-Detector"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "Artificial Intelligence is changing the world."
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
probabilities = torch.softmax(logits, dim=1)
print(f"AI Probability: {probabilities[0][1].item():.2f}")