Debug Foundry

Shrink every weight to 4 bits, and see what it costs.

Turn it, pause it, drag through the steps. Then pick a precision and watch the GPU fill.

Not a video. A small simulation of quantization — a GPU below, its weights inside, one weight under the lens.

Drag to turn · scroll or pinch to zoom

Finished state of the quantization simulation

The model
8 billion weights

1/8First step sentence

    0.0s
    Replay the ending with
    Model size 8B parameters

    What it's for

    Good to know

    Weight memory = parameters × bytes per weight. Real formats add a few percent for scales and zero-points, and the quality cost is measured as a small rise in perplexity — the exact number depends on the model, the method and the task.

    How it works, step by step

      Why the steps go in this order

      Before you rely on it

      Forty-eight blocks stand in for eight billion weights, and the quality percentages are illustrative — real perplexity deltas depend on the model, the method (GPTQ, AWQ, GGUF) and the task. The snap-to-the-nearest-level mechanism and the memory arithmetic are exactly as shown.

      References