16 bits
full sizeReturns are accepted within five business days.
Larkspur mini at full precision, as chapter 2 runs it live in your browser.
Module 57 · Models on your device
A model on a phone must fit its memory and spare its battery; in return, nothing leaves the device. Here its memory is bricks packed into a crate and its battery is a water tank: pack one, drain the other, and see what stays.
The whole idea in one example
Returns are accepted within five business days.
Larkspur mini at full precision, as chapter 2 runs it live in your browser.
Returns are accepted within five business days.
The same words. At 2 bits: “days days days days days days days days”.
Larkspur mini is tiny, so its replies show the mechanism, not a real product’s quality. The handheld’s memory, battery and speed are Larkspur’s planning numbers; the 1B and 3B take Llama 3.2’s published sizes.
How it works
Parameters times bytes, against the free memory
Meta’s Llama 3.2 model card lists its small models at 1.23 and 3.21 billion parameters, made for constrained places such as mobile devices.
Source, checked 30 October 2026
Fewer bits per weight, fewer bricks
Apple said in June 2024 that its on-device model has about 3 billion parameters, stored at an average of 3.7 bits per weight, and writes about 30 tokens a second on an iPhone 15 Pro.
Source, checked 30 October 2026
Every token of context adds to the cache
Llama 3.2 1B keeps 16 layers of 8 key-value heads of 64 numbers each; the 3B keeps 28 layers of 8 heads of 128, as their published configs give.
Source, checked 30 October 2026
Every token written costs energy
Laskaridis et al. (MELTing point, 2024) measured 0.16 to 0.21 mWh per token for 3-billion-parameter models on phones: about 490 to 590 replies of 135 tokens on one full battery.
Source, checked 30 October 2026
The story
Larkspur Supply Co. wants its stock-lookup assistant on the warehouse handhelds, working offline in the back aisles. You’re on the team that packs the handheld.
Your path






Chapter 6 · done
What leaves the handheld, and when should it fall back to the cloud?

Anyone asked whether a model can run on a phone, a laptop or a handheld. The Inference engineering module (running models on servers) helps first, but no maths is needed.