How Quantization and Distillation Bring AI Models to Laptops
Quantization and distillation can reduce the size and hardware demands of AI models, helping some run locally while preserving part of their capabilities.
AI models contain learned numerical values called weights, not folders of individual facts or ready-made answers. Training creates these weights through repeated calculations, while inference uses the resulting values to generate responses without normally changing them.
Quantization stores weights with lower numerical precision to save space. For a 20-billion-parameter model, the weight values occupy about 40 GB at 16 bits per value, 20 GB at 8 bits and 10 GB at 4 bits. These are decimal gigabytes for the weights alone; real formats add overhead and may keep some components at higher precision.
Lower precision can affect response quality, so developers must test how much reduction a model can tolerate. Distillation offers another approach: a larger model supplies outputs or predictions that help train a smaller model, which develops its own weights and may reproduce useful behavior within a tighter hardware budget. The methods can also be combined.
Storage is only part of the challenge. The operating system, applications, model calculations and a conversation cache all need memory, while hardware must move the data quickly enough for responsive answers. Manufacturers can handle this adaptation and deliver a local model through a system update, including for proprietary models that run on a device without being publicly released.