Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

The Secret Behind On-Device AI: It's All About Rounding Numbers

sourcecode 1 min read

Have you ever wondered how AI models run directly on your phone, without needing a supercomputer? The answer is simpler than you think: it's all about rounding numbers.

AI models are essentially vast collections of numbers—billions of them. Originally, each number was stored with 32-bit precision, consuming enormous amounts of memory. That meant running a model required a server farm. But then came a clever trick: quantization.

Instead of storing a number like 3.14159265, you round it to 3.14. The result is nearly the same, but it takes a quarter of the storage space. Apply this rounding to every number in the model, and the entire AI shrinks to one-fourth its original size. It also runs four times faster.

The downside? You lose a tiny bit of accuracy. But for everyday tasks—chat, summarization, translation, even image generation—the difference is imperceptible.

That's why Apple Intelligence runs on your iPhone, Gemini Nano lives on Pixel phones, ChatGPT offers an on-device mode, Llama 3.2 1B fits in just 1 GB, and Phi-3 mini operates on a Raspberry Pi. It's not that AI became smarter; we simply got better at rounding its math.

This is just one piece of the puzzle. Stay tuned for the next trick: LoRA, which teaches AI new skills without retraining the entire model.

React