Quantization simulator
Pick the bit width and quantization type (symmetric/asymmetric, per-tensor/per-channel) and see the effect on a synthetic weight distribution, the quantization error and the size. A teaching estimate on generated data, not a measurement of your model.
An estimate, not a measurement. This is a mathematical simulation on synthetic data that shows the general trend only. Real numbers on your device and your model require real measurement.
Preparing the experiment…
How it works
- A synthetic weight matrix with a Gaussian distribution and optional outliers is generated (fixed seed, repeatable).
- The quantization range, scale and zero-point are computed with the standard rules, then values are quantized and dequantized.
- The quantization error (MSE), signal-to-quantization-noise ratio (SQNR) and the theoretical size at the chosen bit width are computed.
- Compare modes and see how outliers hurt per-tensor quantization.
Limits and caveats
- The numbers are really computed but on synthetic weights, so they do not represent the accuracy of any real model after quantization.
- The simulator does not model activation quantization, real calibration or hardware effects.
- The displayed size is theoretical and ignores file headers and scale data.
Privacy: all processing is inside your browser. Images and audio are not uploaded to the server.
Modules that explain the idea
Image and audio processing in the experiments runs inside your browser. Your images and audio are never uploaded and conversations are not stored. Privacy
