Compressing a ~500MB RoBERTa AI-text detector to ~97MB that runs fully in-browser
Alternative_Detail31 · reddit · 2026-10-12
Developer ritabratamaiti released tinydetect, an AI text/image detector that runs fully client-side in the browser via ONNX Runtime Web — no uploads. The text model (fakespot-ai RoBERTa base) went from 500MB fp32 to 97MB via a light fine-tune + WiSE-FT interpolation, int4-quantized embeddings stored separately (21MB), and mixed-precision quantization of the transformer body, with the BPE tokenizer and preprocessing re-implemented in JS. The image model is a 26MB quantized Community Forensics ViT. Runtime uses WebGPU when available, threaded WASM otherwise, with a service worker adding COOP/COEP headers and caching; after warm-up, a 100-token text check takes 60ms and an image 200ms. Limitations: scores are signals, not proof — short text, paraphrasing, and screenshots degrade accuracy. Code and scripts are open-source.
More from Apps
- Responding to AI cold emails with Pangram detection screenshots — Ben_Reinhardt · 2026-11-29
- PM shares playbook for shipping 4 customer-facing Claude agents into production — PawelHuryn · 2026-11-29
- Open-source Spooty turns any Spotify playlist URL into local MP3s with full metadata — anthara_ai · 2026-11-29
- AFFiNE, an open-source local-first Notion and Obsidian alternative, tops 44k GitHub stars — anthara_ai · 2026-11-29
- Creator runs 6 social platforms solo with Claude and Postey — heyshrutimishra · 2026-11-29
- Building with agents on iPad: a demo of the annotate feature — aaraalto · 2026-11-29