AI Text Detector (XLM-R, ONNX)
A multilingual transformer text classifier (XLM-RoBERTa base architecture) exported to ONNX with int8 quantization and external-data sharding, prepared for fully client-side inference in the browser with onnxruntime-web.
The model classifies a text segment as human-written or AI-generated (labels: Human / ChatGPT). It is loaded by the Saksara web app and runs entirely on the visitor's device — no text is sent to a server.
Files
config.json,tokenizer.json,tokenizer_config.json,special_tokens_map.json— model and tokenizer configuration (the original tokenizer files; do not re-save them with a different tokenizer library version, tokenization will break).onnx/model_quantized.onnx— the quantized graph.onnx/model_quantized.onnx_data-000…-004— external weight shards referenced by the graph; all five must sit beside the graph file.
Notes
- Input is evaluated in segments of roughly 1,200 characters; a document score is the mean of its segment scores.
- Like all detectors of this family, the model is a statistical aid, not proof of authorship. Formal human writing can score high and paraphrased AI text can score low; results should always be reviewed by a human.