This is an unmodified conversion of tabularisai/ai-text-detection (ModernBERT-base) to ONNX,
with dynamic int8 quantization (onnx/model_quantized.onnx), so it can run in the browser with
transformers.js. No weights were retrained.
All credit for the model goes to the original authors; it is redistributed under the original MIT license.
Used by an in-browser AI writing detector for Turkish (used off-label: the original model was trained on English) text. No ready-made detector trained on Turkish was found; this one ranked best on our Turkish test set (AUROC 0.93; 0.88 on matched human/AI pairs). Its threshold must be raised for Turkish: at 0.5 it flags 35% of human Turkish text.
Conversion: optimum-cli export onnx --task text-classification, then
onnxruntime.quantization.quantize_dynamic(weight_type=QInt8).