Download env/diffusers/docs/source/en/quantization/overview.md from LTT/Kiss3DGen: direct link, hf CLI and curl.
- Browser
- Download file 2.14 kB
-
https://huggingface.co/spaces/LTT/Kiss3DGen/resolve/main/env/diffusers/docs/source/en/quantization/overview.md
- Command line
-
hf download hf://spaces/LTT/Kiss3DGen/env/diffusers/docs/source/en/quantization/overview.md
-
curl -L -o overview.md https://huggingface.co/spaces/LTT/Kiss3DGen/resolve/main/env/diffusers/docs/source/en/quantization/overview.md
A newer version of the Gradio SDK is available: 6.30.0
Quantization
Quantization techniques focus on representing data with less information while also trying to not lose too much accuracy. This often means converting a data type to represent the same information with fewer bits. For example, if your model weights are stored as 32-bit floating points and they're quantized to 16-bit floating points, this halves the model size which makes it easier to store and reduces memory-usage. Lower precision can also speedup inference because it takes less time to perform calculations with fewer bits.
Interested in adding a new quantization method to Transformers? Refer to the Contribute new quantization method guide to learn more about adding a new quantization method.
If you are new to the quantization field, we recommend you to check out these beginner-friendly courses about quantization in collaboration with DeepLearning.AI:
When to use what?
This section will be expanded once Diffusers has multiple quantization backends. Currently, we only support bitsandbytes. This resource provides a good overview of the pros and cons of different quantization techniques.