nicoamoretti/roberta-openai-detector-onnx
By nicoamoretti · ↓ 9 · ♥ 0 · Updated 2026-01-21
What's in this repo
This page lists the files in nicoamoretti/roberta-openai-detector-onnx, including model_quantized.onnx.
- 1 ONNX models (.onnx files)
- 9 files, including 5 .json, 1 .md, 1 .txt, 1 .onnx
- Last updated 2026-01-21
ONNX files
| File | Size | Download |
|---|---|---|
| onnx/model_quantized.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
RoBERTa OpenAI Detector (ONNX for Transformers.js)
AI-generated text detector converted to ONNX format for browser-based inference with Transformers.js.
Model Details
- Base Model: openai-community/roberta-base-openai-detector
- Format: ONNX (quantized to ~120MB)
- Task: Binary text classification (Real vs Fake)
Usage with Transformers.js
import { pipeline } from '@xenova/transformers';
const classifier = await pipeline('text-classification', 'nicoamoretti/roberta-openai-detector-onnx');
const result = await classifier('Your text here');
console.log(result);
// [{ label: 'Real', score: 0.95 }] - Human written
// [{ label: 'Fake', score: 0.85 }] - AI generated
Labels
| Label | Meaning |
|---|---|
Real |
Human-written text |
Fake |
AI-generated text (GPT-2 era models) |
Notes
This model was originally trained to detect GPT-2 generated text. It may have reduced accuracy on text from newer models like GPT-4 or Claude, but still provides useful signal for AI detection.
Model info
Created: 2026-01-21
Updated: 2026-01-21
View on Hugging Face