Spaces:
Running

File size: 1,450 Bytes
c6deda8
 
 
 
 
 
 
 
 
365d5b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
title: README
emoji: 📚
colorFrom: green
colorTo: purple
sdk: static
pinned: false
---

<div align="center">

<img src="https://raw.githubusercontent.com/saqlain2204/quantgap/main/assets/logo-banner.png" alt="quantgap" width="560">


**Measure how much a quantized model drifted from the original.**

[![GitHub](https://img.shields.io/badge/GitHub-quantgap-181717?logo=github)](https://github.com/saqlain2204/quantgap)
[![Leaderboard](https://img.shields.io/badge/Leaderboard-live-f59e0b)](https://saqlain2204.github.io/quantgap/)

</div>

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).