Skip to content
StackDecode
LLM Library
TrainingAnimated walkthrough

Quantisation

Storing weights with fewer bits.

The idea

Weights are stored as 8-bit or 4-bit numbers instead of 16-bit. The model needs less memory and runs faster with a small loss in quality.

Watch it work

The steps light up one at a time. Use the controls to pause or step through.

  1. 1Choose a lower precision
  2. 2Convert or calibrate the weights
  3. 3Run with specialised kernels
  4. 4Check quality on your tasks
1/4

Step by step

  1. 1Choose a lower precision
  2. 2Convert or calibrate the weights
  3. 3Run with specialised kernels
  4. 4Check quality on your tasks

Where it is used

Running big models on smaller GPUs and laptops.

Watch out for

Very low bit widths hurt reasoning and rare knowledge first.