Downloads · 30 days
274
5% of all-time downloads
ahmediqbal/ai-text-detector-model
ai-text-detector-model is a text classification model from ahmediqbal. 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 model is a fine-tuned DistilBERT sequence classification model to detect whether a given text is AI-generated (e.g., by ChatGPT, GPT-2/3) or Human-written. It was trained on a combination of AI-generated texts an…
Downloads · 30 days
274
5% of all-time downloads
All-time downloads
5.3K
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned DistilBERT sequence classification model to detect whether a given text is AI-generated (e.g., by ChatGPT, GPT-2/3) or Human-written.
It was trained on a combination of AI-generated texts and human-authored content.
distilbert-base-uncasedfrom transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_id = "ahmediqbal/ai-text-detector-model"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
text = "This is a sample sentence."
print(classifier(text))