Under the hood · 1 of 8 Local models

What happens when an AI model is shrunk?

A model is a huge pile of numbers. To make it small enough for a laptop or a phone, each number is rounded to fewer allowed values. Pick a size and watch what rounding does.

The model's numbers · each dot is one
How many choices
How far off
Original value After rounding Allowed results
Tiny model Precision: 4 bits Original size
12346816

Loading the engine…

Original quality kept

–%

How much of the original numbers survive rounding.

Memory needed

–%

Compared with 16 bits, a common size for the original.

Distance to the nearest allowed point

–

How to read the picture

Left: every dot moves to the closest allowed value, and the line shows how far. Middle and right: the same idea for four numbers, shown as one point inside a four-dimensional box. The ring is your four numbers and the solid dot is where rounding sends them.

Size against error

Solid: memory. Dashed: rounding error. The rings mark your setting.

The trap

Fewer bits means fewer values to choose from, so each number lands further from where it should be, and the model's answers depend on those exact values.

Open Under the hood to see the formulas with the numbers from your current setting.

Why knowing this helps you

If you only use a hosted model such as Claude, you never pick its precision. It matters when you run an open model like Qwen yourself, where the same model comes in several sizes. Hosts that serve open models pick one too: OpenRouter lists the precision each provider reports, from 4-bit to 16-bit, and lets you filter by it.

Prompting

A rounded model has less room to be exact. Give it smaller steps, one clear task at a time, and a worked example. A long, tangled instruction is less likely to survive.

Guardrails

Check the output: validate formats, run the code it writes, compare numbers against the source. Rounded models drift in small ways, so checks matter more.

Harness

Build retries, tests and fallbacks around the model. If a small local model fails a check, hand that step to a larger one. Know which version you are calling.

Checked on 2026-10-07 against the Qwen configs on Hugging Face (Qwen3-8B and Qwen3.8-Flash-Next are released in bfloat16, and Qwen3.8-Flash-Next-FP8 is Qwen's official 8-bit version), Apple's 2025 report on its on-device model, which runs at 2 bits after being trained for it, Huang et al. (2024) on the accuracy drop at low bits, and OpenRouter's provider-routing docs on the precision hosts report.

Where this goes next

Next: fitting in memory

Smaller numbers make the model fit. But every word in the conversation needs memory too, and long chats need a lot of it.

Then: embeddings

Before any of that, the model swaps each word piece for a list of numbers from a lookup table. Those lists place words with related meanings near each other.

Every number on this page comes from a C engine compiled to WebAssembly. The toy model has 90 numbers, real models have billions.