๐Ÿง  AI Text Detector โ€“ DeBERTa v3 Large (Fine-tuned on Human vs AI Text)

This model is fine-tuned on a labeled dataset for AI-generated vs. Human-written text detection.


โš™๏ธ Model Details

  • Base Model: microsoft/deberta-v3-large
  • Fine-tuned by: @abhinav
  • Epochs: 4
  • Learning Rate: 2e-05
  • Batch Size: 8
  • GPU: 80 GB A100
  • Optimizer: AdamW (Fused)
  • Scheduler: Cosine
  • Mixed Precision: FP16
  • Gradient Checkpointing: Enabled

๐Ÿ“Š Evaluation Results (Test Set)

Metric Score
Accuracy 0.993
Human (0) โ€“ Precision 1.000
Human (0) โ€“ Recall 0.986
AI (1) โ€“ Precision 0.988
AI (1) โ€“ Recall 1.000

๐Ÿงฎ Confusion Matrix

Confusion Matrix


๐Ÿš€ Example Inference

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tokenizer = AutoTokenizer.from_pretrained("abhi099k/ai-text-detector-deberta-v3-large-h1")
model = AutoModelForSequenceClassification.from_pretrained("abhi099k/ai-text-detector-deberta-v3-large-h1")

text = "This text was likely written by an AI model."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
probs = torch.nn.functional.softmax(outputs.logits, dim=1)
print(probs)
Downloads last month
16
Safetensors
Model size
0.4B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for abhi099k/ai-text-detector-deberta-v3-large-h1

Finetuned
(260)
this model