---
title: README
emoji: 📚
colorFrom: green
colorTo: purple
sdk: static
pinned: false
---

**Measure how much a quantized model drifted from the original.**
[](https://github.com/saqlain2204/quantgap)
[](https://saqlain2204.github.io/quantgap/)
quantgap is an open-source tool for measuring the distribution drift introduced by
quantization. It scores models locally against a shared reference pack, so different
quant formats and publishers can be compared using the same method.
## What quantgap provides
- KLD drift measurements with confidence intervals
- Top-1 agreement and perplexity-ratio metrics
- Checks for looping, wrong-script output, and invalid JSON
- Support for local files and compatible model servers
- Reproducible result files with model and pack hashes
- A public leaderboard for comparing quantized models
## Useful links
- [Source code and documentation](https://github.com/saqlain2204/quantgap)
- [Quantization leaderboard](https://saqlain2204.github.io/quantgap/)
- [Reference packs](https://huggingface.co/quantgap-packs)
Code is licensed under [Apache-2.0](https://github.com/saqlain2204/quantgap/blob/main/LICENSE).