TutorCat AI Detector (ModernBERT)

Binary human vs AI text classifier for TutorCat integrity checks.

  • Base: answerdotai/ModernBERT-base
  • Labels: 0 = human, 1 = ai
  • Train data: integrity_human_ai_surface_v2_no_train.jsonl (~35k rows)
  • External holdout: accuracy 99.5%, AUROC 0.9999 (200 essays)

Load

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

repo = "videogameaetoros/Ai_detector"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo)
model.eval()

text = "Your essay here..."
enc = tok(text, return_tensors="pt", truncation=True, max_length=384)
with torch.no_grad():
    probs = torch.softmax(model(**enc).logits, dim=-1)[0]
print({"human": float(probs[0]), "ai": float(probs[1])})

Space

Used by https://huggingface.co/spaces/videogameaetoros/ai_detector via INTEGRITY_MODEL_REPO=videogameaetoros/Ai_detector.

Downloads last month
22
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for videogameaetoros/Ai_detector

Finetuned
(1416)
this model
Quantizations
1 model

Space using videogameaetoros/Ai_detector 1