Update card
Browse files
README.md
CHANGED
|
@@ -16,10 +16,9 @@ EXL3 quants of [Hy4-flash](https://huggingface.co/tencent/Hy4-flash)
|
|
| 16 |
|
| 17 |
# SC quants:
|
| 18 |
|
|
|
|
| 19 |
[2.99 bits per weight](https://huggingface.co/OpensourceWTF/Hy4-flash-exl3/tree/2.99bpw)
|
| 20 |
|
| 21 |
-
*(2.25, 4.06, 5.07 bpw to follow)*
|
| 22 |
-
|
| 23 |

|
| 24 |

|
| 25 |
|
|
@@ -27,19 +26,17 @@ No AIME-25 / GPQA-D table yet: these need long generations, and the patch caches
|
|
| 27 |
|
| 28 |
## Details
|
| 29 |
|
| 30 |
-
quant | expert bpw | trunk/head K | size GB | size GB, no Engram | KL | top-1 | ppl | KL `-gp` | ppl `-gp` | predicted KL
|
| 31 |
-
:--|--:|--:|--:|--:|--:|--:|--:|--:|--:|--:
|
| 32 |
-
2.25 bpw | 2.10 | 6 | 114.8 | 48.8 | 0.8418 | 0.7027 | 48.6734 | 0.5041 | 12.1408 | 0.461
|
| 33 |
-
2.99 bpw | 2.83 | 7 | 129.1 | 63.1 | 0.5221 | 0.7619 | 46.3951 | 0.2985 | 11.1772 | 0.314
|
| 34 |
-
|
| 35 |
-
5.07 bpw | 4.95 | 8 | β | β | β | β | β | β | β | 0.151
|
| 36 |
-
source | | | | | 0 | 1 | 37.5530 | 0 | 8.8528 |
|
| 37 |
|
| 38 |
- The bpw in the branch name counts every quantized tensor (routed experts, trunk and head) and leaves out the Engram
|
| 39 |
tables. Sizes include the Engram file (66.0 GB) and the copied vision tower and dfly draft layers.
|
| 40 |
- KL, top-1 agreement and perplexity: `eval/model_diff.py -ma <source> -mb <quant>` at its defaults (wiki2, 100 rows
|
| 41 |
of 2,048 tokens), and again with `-gp` (chat-template generation prompt on every row). The charts use the default run.
|
| 42 |
-
- Predicted KL: sc_optimize's own per-tensor table (`-t`), summed over the final recipe.
|
| 43 |
- This model is sensitive to small numerical changes: the bf16 transformers reference differs from an fp32 run by
|
| 44 |
KL 0.40 and 0.57 on prompts of 1,836 and 3,236 tokens. The source's own wiki2 perplexity is 37.5530.
|
| 45 |
- `eval/ppl.py -m <quant>` on 2.25 bpw: perplexity 48.673418 (100 rows of 2,048 tokens, wiki2).
|
|
@@ -47,12 +44,11 @@ source | | | | | 0 | 1 | 37.5530 | 0 | 8.8528 |
|
|
| 47 |
|
| 48 |
### Method
|
| 49 |
|
| 50 |
-
- exllamav3 self-calibration: `sc_trace.py` with `tencent/hy4-flash` on OpenRouter as the teacher (Tencent provider,
|
| 51 |
fp8), 250 rows of up to 2,048 tokens; `sc_measure.py --streaming --shaped` on the whole model; `sc_optimize.py -b <b>
|
| 52 |
-t <table>` at its defaults, which sets one K per layer for that layer's 512 routed experts.
|
| 53 |
- Trunk rule: every tensor that is not a routed expert, and the head, get K = highest expert K + 2.
|
| 54 |
-
-
|
| 55 |
-
- `convert.py -rcp <recipe> -cd <trace> -cb mcg -mae 0.01`.
|
| 56 |
- The Engram tables (4 layers, 63.4B parameters) are stored once as fp8 rows with one fp32 scale per row
|
| 57 |
(`ngram_embedding.safetensors`). The model itself rounds every row it reads through fp8 in the same way, so the file
|
| 58 |
matches the reference value for value. Every branch carries the same file. exllamav3's `util/convert_ngram.py`
|
|
@@ -62,8 +58,6 @@ source | | | | | 0 | 1 | 37.5530 | 0 | 8.8528 |
|
|
| 62 |
|
| 63 |
- 2.25 bpw: 1 K1, 2-15 K2, 16 K3, 17 K2, 18-20 K3, 21-23 K2, 24 K3, 25-26 K2, 27 K3, 28 K4, 29 K3, 30-31 K2, 32-33 K3, 34 K2, 35 K1, 36 K2, 37-41 K1.
|
| 64 |
- 2.99 bpw: 1 K2, 2 K3, 3-4 K2, 5-14 K3, 15 K2, 16-17 K3, 18-20 K4, 21-23 K3, 24 K4, 25-27 K3, 28 K5, 29 K4, 30 K3, 31 K2, 32 K4, 33-34 K3, 35 K2, 36 K3, 37 K1, 38 K2, 39-41 K1.
|
| 65 |
-
- 4.06 bpw: 1 K3, 2 K4, 3 K3, 4-15 K4, 16 K5, 17 K4, 18-20 K5, 21-23 K4, 24 K5, 25-27 K4, 28 K6, 29 K5, 30-31 K4, 32 K5, 33-34 K4, 35 K3, 36 K4, 37 K2, 38 K3, 39-40 K2, 41 K1.
|
| 66 |
-
- 5.07 bpw: 1 K4, 2-15 K5, 16 K6, 17 K5, 18-20 K6, 21-23 K5, 24 K6, 25-27 K5, 28 K7, 29 K6, 30-31 K5, 32 K6, 33-34 K5, 35 K4, 36 K5, 37-38 K4, 39-40 K3, 41 K2.
|
| 67 |
|
| 68 |
### Loader limits
|
| 69 |
|
|
|
|
| 16 |
|
| 17 |
# SC quants:
|
| 18 |
|
| 19 |
+
[2.25 bits per weight](https://huggingface.co/OpensourceWTF/Hy4-flash-exl3/tree/2.25bpw)
|
| 20 |
[2.99 bits per weight](https://huggingface.co/OpensourceWTF/Hy4-flash-exl3/tree/2.99bpw)
|
| 21 |
|
|
|
|
|
|
|
| 22 |

|
| 23 |

|
| 24 |
|
|
|
|
| 26 |
|
| 27 |
## Details
|
| 28 |
|
| 29 |
+
quant | recipe | expert bpw | trunk/head K | size GB | size GB, no Engram | KL | top-1 | ppl | KL `-gp` | ppl `-gp` | predicted KL
|
| 30 |
+
:--|:--|--:|--:|--:|--:|--:|--:|--:|--:|--:|--:
|
| 31 |
+
2.25 bpw | SC | 2.10 | 6 | 114.8 | 48.8 | 0.8418 | 0.7027 | 48.6734 | 0.5041 | 12.1408 | 0.461
|
| 32 |
+
2.99 bpw | SC | 2.83 | 7 | 129.1 | 63.1 | 0.5221 | 0.7619 | 46.3951 | 0.2985 | 11.1772 | 0.314
|
| 33 |
+
source | | | | | | 0 | 1 | 37.5530 | 0 | 8.8528 |
|
|
|
|
|
|
|
| 34 |
|
| 35 |
- The bpw in the branch name counts every quantized tensor (routed experts, trunk and head) and leaves out the Engram
|
| 36 |
tables. Sizes include the Engram file (66.0 GB) and the copied vision tower and dfly draft layers.
|
| 37 |
- KL, top-1 agreement and perplexity: `eval/model_diff.py -ma <source> -mb <quant>` at its defaults (wiki2, 100 rows
|
| 38 |
of 2,048 tokens), and again with `-gp` (chat-template generation prompt on every row). The charts use the default run.
|
| 39 |
+
- Predicted KL: sc_optimize's own per-tensor table (`-t`) from the same measurement, summed over the final recipe.
|
| 40 |
- This model is sensitive to small numerical changes: the bf16 transformers reference differs from an fp32 run by
|
| 41 |
KL 0.40 and 0.57 on prompts of 1,836 and 3,236 tokens. The source's own wiki2 perplexity is 37.5530.
|
| 42 |
- `eval/ppl.py -m <quant>` on 2.25 bpw: perplexity 48.673418 (100 rows of 2,048 tokens, wiki2).
|
|
|
|
| 44 |
|
| 45 |
### Method
|
| 46 |
|
| 47 |
+
- SC quants, exllamav3 self-calibration: `sc_trace.py` with `tencent/hy4-flash` on OpenRouter as the teacher (Tencent provider,
|
| 48 |
fp8), 250 rows of up to 2,048 tokens; `sc_measure.py --streaming --shaped` on the whole model; `sc_optimize.py -b <b>
|
| 49 |
-t <table>` at its defaults, which sets one K per layer for that layer's 512 routed experts.
|
| 50 |
- Trunk rule: every tensor that is not a routed expert, and the head, get K = highest expert K + 2.
|
| 51 |
+
- All quants are converted against the same calibration trace: `convert.py -rcp <recipe> -cd <trace> -cb mcg -mae 0.01`.
|
|
|
|
| 52 |
- The Engram tables (4 layers, 63.4B parameters) are stored once as fp8 rows with one fp32 scale per row
|
| 53 |
(`ngram_embedding.safetensors`). The model itself rounds every row it reads through fp8 in the same way, so the file
|
| 54 |
matches the reference value for value. Every branch carries the same file. exllamav3's `util/convert_ngram.py`
|
|
|
|
| 58 |
|
| 59 |
- 2.25 bpw: 1 K1, 2-15 K2, 16 K3, 17 K2, 18-20 K3, 21-23 K2, 24 K3, 25-26 K2, 27 K3, 28 K4, 29 K3, 30-31 K2, 32-33 K3, 34 K2, 35 K1, 36 K2, 37-41 K1.
|
| 60 |
- 2.99 bpw: 1 K2, 2 K3, 3-4 K2, 5-14 K3, 15 K2, 16-17 K3, 18-20 K4, 21-23 K3, 24 K4, 25-27 K3, 28 K5, 29 K4, 30 K3, 31 K2, 32 K4, 33-34 K3, 35 K2, 36 K3, 37 K1, 38 K2, 39-41 K1.
|
|
|
|
|
|
|
| 61 |
|
| 62 |
### Loader limits
|
| 63 |
|