Spaces:
Running
Running
Update README.md
Browse files
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 |
-
**
|
| 14 |
|
| 15 |
[](https://github.com/saqlain2204/quantgap)
|
| 16 |
[](https://saqlain2204.github.io/quantgap/)
|
| 17 |
|
| 18 |
</div>
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
-
- [Quantization leaderboard](https://saqlain2204.github.io/quantgap/)
|
| 37 |
-
- [Reference packs](https://huggingface.co/quantgap-packs)
|
| 38 |
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
[](https://github.com/saqlain2204/quantgap)
|
| 16 |
[](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
|