A 24KB stand-alone HTML LLM generates consistent stories at 60 tok/s on a phone

Chromix_ · reddit · 2026-10-09

A Reddit user built a 24KB single-file HTML LLM that generates consistent stories, running above 60 tok/s even on smartphones. Built from an 81KB FP32 MacroStory model (Ouro looping transformer) via adaptive quantization and QAT, plus minify/zopfli packing. Key insights: tiny models invert size rules (embeddings are 60% of size), and LittleBit 1-bit or GGUF K quants are mathematically counterproductive at this scale since correction data and metadata overhead eat the gains. Final model runs at 0.04 KLD with rare glitches. Bonus: Python inference and unpacked HTML hidden inside an image file.

Original post →

More from Apps

Apps channel →