Spaces:
Running

vanishingradient commited on
Commit
d25ff4b
·
verified ·
1 Parent(s): b1131a8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -17
README.md CHANGED
@@ -8,32 +8,37 @@ pinned: false
8
  ---
9
  <div align="center">
10
 
11
- <img src="https://raw.githubusercontent.com/saqlain2204/quantgap/main/assets/logo-banner.png" alt="quantgap" width="560">
12
 
13
- **Measure how much a quantized model drifted from the original.**
14
 
15
  [![GitHub](https://img.shields.io/badge/GitHub-quantgap-181717?logo=github)](https://github.com/saqlain2204/quantgap)
16
  [![Leaderboard](https://img.shields.io/badge/Leaderboard-live-f59e0b)](https://saqlain2204.github.io/quantgap/)
17
 
18
  </div>
19
 
20
- quantgap is an open-source tool for measuring the distribution drift introduced by
21
- quantization. It scores models locally against a shared reference pack, so different
22
- quant formats and publishers can be compared using the same method.
23
 
24
- ## What quantgap provides
 
 
25
 
26
- - KLD drift measurements with confidence intervals
27
- - Top-1 agreement and perplexity-ratio metrics
28
- - Checks for looping, wrong-script output, and invalid JSON
29
- - Support for local files and compatible model servers
30
- - Reproducible result files with model and pack hashes
31
- - A public leaderboard for comparing quantized models
32
 
33
- ## Useful links
 
 
 
 
34
 
35
- - [Source code and documentation](https://github.com/saqlain2204/quantgap)
36
- - [Quantization leaderboard](https://saqlain2204.github.io/quantgap/)
37
- - [Reference packs](https://huggingface.co/quantgap-packs)
38
 
39
- Code is licensed under [Apache-2.0](https://github.com/saqlain2204/quantgap/blob/main/LICENSE).
 
 
 
 
 
 
 
8
  ---
9
  <div align="center">
10
 
11
+ <img src="https://raw.githubusercontent.com/saqlain2204/quantgap/main/assets/logo-banner.png" alt="quantgap-packs" width="560">
12
 
13
+ **Reference packs for measuring quantization drift.**
14
 
15
  [![GitHub](https://img.shields.io/badge/GitHub-quantgap-181717?logo=github)](https://github.com/saqlain2204/quantgap)
16
  [![Leaderboard](https://img.shields.io/badge/Leaderboard-live-f59e0b)](https://saqlain2204.github.io/quantgap/)
17
 
18
  </div>
19
 
20
+ This organization hosts the reference packs used by
21
+ [quantgap](https://github.com/saqlain2204/quantgap) to measure how far a quantized
22
+ model has drifted from its original weights.
23
 
24
+ A pack contains the original model's responses and top next-token probabilities for
25
+ a fixed probe set. It lets anyone score a quantized model without downloading or
26
+ running the original model themselves.
27
 
28
+ ## Pack contents
 
 
 
 
 
29
 
30
+ - Fixed probe texts
31
+ - Reference tokenization metadata
32
+ - Top-k probability data
33
+ - Greedy-generation reference data
34
+ - Pack manifests, hashes, and reproducibility information
35
 
36
+ ## Using a pack
 
 
37
 
38
+ Install quantgap and score a compatible quantized model:
39
+
40
+ ```bash
41
+ pip install "quantgap[llamacpp]" \
42
+ --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
43
+
44
+ quantgap score hf://<publisher>/<model>-GGUF/<file>.gguf