Downloads · 30 days
172
23% of all-time downloads
mdrakibali/deberta-ai-detector-v3
deberta-ai-detector-v3 is a machine learning model from mdrakibali. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is fine-tuned to classify whether a given piece of text was written by a human or generated by Artificial Intelligence (AI). It is based on the powerful microsoft/deberta-v3-large architecture, making it hi…
Downloads · 30 days
172
23% of all-time downloads
All-time downloads
735
Public
Parameters
435M
870 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors870 MB · 99%
From the Hugging Face model README
This model is fine-tuned to classify whether a given piece of text was written by a human or generated by Artificial Intelligence (AI). It is based on the powerful microsoft/deberta-v3-large architecture, making it highly accurate in detecting synthetic text across various domains.
This model was trained to solve the growing need for academic integrity and content authenticity in the era of generative AI. By leveraging the advanced contextual understanding of DeBERTa-v3-large, the model distinguishes between human-written nuances and AI-generated patterns.
microsoft/deberta-v3-largeThe model can be used directly for identifying AI-generated text. It is highly suitable for:
Use the code below to get started with the model using the transformers library:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "YOUR_USERNAME/YOUR_MODEL_NAME" # Replace with your actual repo name
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "In the era of artificial intelligence, take-home writing assignments have become difficult to police."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.nn.functional.softmax(logits, dim=-1)
predicted_class = torch.argmax(probs).item()
# Assuming 0: Human, 1: AI (Adjust based on your label mapping)
labels = ["Human", "AI"]
print(f"Prediction: {labels[predicted_class]}")
print(f"Probabilities: {probs.tolist()}")
The model was fine-tuned using the acmc/multi_domain_ai_human_text dataset. This dataset contains a diverse mix of human-written and AI-generated texts from various domains, ensuring the model generalizes well across different writing styles.
The model achieved highly robust results across 3 epochs, showing strong generalization capabilities with an evaluation accuracy of 95.56%.
| Epoch | Training Loss | Eval Accuracy | F1 Score | Precision | Recall |
|---|---|---|---|---|---|
| 1 | ~1.0 | 92.12% | 0.916 | 0.979 | 0.861 |
| 2 | 0.273 | 95.46% | 0.955 | 0.943 | 0.968 |
| 3 | — | 95.56% | 0.956 | — | — |
library_name: transformers tags:
The model was fine-tuned using a high-performance cloud GPU environment.