GPTTrace v8s — MLX INT8
8-bit conversion of GPTTrace v8s for Apple Silicon. Weights: 1.10 GB.
Use
Download this repository, then run with uv:
uv run python gpttrace.py score --model . --text "Text to score"
Use --file document.txt for a UTF-8 text file, or --interactive to keep the model loaded.
Behavior
- Scores the full input up to 7,999 tokens, including special tokens. Longer inputs raise an error.
- Returns JSON with the AI score, threshold decision, token count and inference time.
- Uses the original tokenizer, normalization and 9.3 logit-margin cutoff. Scores are not calibrated probabilities.
- Quantizes encoder linear and embedding weights with 8-bit affine groups of 64. Norms and the scoring head remain FP16; mean pooling accumulates in FP32.
The author advises against relying on results for texts under roughly 150 words. This variant has not been recalibrated.
Validation
Context tests cover 27, 600, 1,024 and 7,999 tokens, rejection at 8,000, and padded batches. These check input handling and numerical stability, not detection accuracy on long documents.
The original quantization benchmark compared 23 synthetic texts with FP16:
maximum score difference 0.000830, with no threshold decisions changed. It predates the full-input and pooling fixes.
validation.json contains the original FP16 conversion checks.
Original detector: Andrew Nakas / GPTTrace. Base: JHU CLSP Ettin-1B, MIT. This unofficial conversion is CC BY-SA 4.0; see NOTICE.md and LICENSE.md.