Spaces:
Running
Running
do-not-recommend warning for picks worse than the viability knee
Browse files- rankQuants.js +9 -1
rankQuants.js
CHANGED
|
@@ -7,7 +7,8 @@
|
|
| 7 |
* recommend/model handlers; fit estimation stays untouched.
|
| 8 |
*
|
| 9 |
* Single mode: best measured quality that sits fully on the hardware
|
| 10 |
-
* wins, with warnings when nothing fits fully / only sub-4-bit fits
|
|
|
|
| 11 |
* no band caps: if Q8_0 fits, it wins.
|
| 12 |
*
|
| 13 |
* Fit awareness: full offloads (tier gpu/gpu_moe/cpu/unified/ram) always
|
|
@@ -167,6 +168,13 @@ function rankOptions(options, family, scoresJson) {
|
|
| 167 |
|
| 168 |
// best measured quality that fits. no band caps.
|
| 169 |
let pick = byKlThenPub(cands, family)[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
|
| 171 |
const ranked = byKlThenPub(cands, family);
|
| 172 |
const twins = cands.filter((o) => o.quant.toUpperCase() === pick.quant.toUpperCase());
|
|
|
|
| 7 |
* recommend/model handlers; fit estimation stays untouched.
|
| 8 |
*
|
| 9 |
* Single mode: best measured quality that sits fully on the hardware
|
| 10 |
+
* wins, with warnings when nothing fits fully / only sub-4-bit fits /
|
| 11 |
+
* the pick tests worse than the viability knee.
|
| 12 |
* no band caps: if Q8_0 fits, it wins.
|
| 13 |
*
|
| 14 |
* Fit awareness: full offloads (tier gpu/gpu_moe/cpu/unified/ram) always
|
|
|
|
| 168 |
|
| 169 |
// best measured quality that fits. no band caps.
|
| 170 |
let pick = byKlThenPub(cands, family)[0];
|
| 171 |
+
// worse than the viability knee: a known-dominated format nothing else
|
| 172 |
+
// could beat. near-ties (Q5_K_M-class) stay blank by design.
|
| 173 |
+
const kneeKl = Math.max(...scoresJson.quants
|
| 174 |
+
.filter((s) => s.band === "knee").map((s) => s.norm_kl), 0.1586);
|
| 175 |
+
if (pick.band === "avoid" && pick.kl > kneeKl) {
|
| 176 |
+
warnings.push(`do not recommend: ${pick.quant} is a dominated format — worse than smaller quants on the bench`);
|
| 177 |
+
}
|
| 178 |
|
| 179 |
const ranked = byKlThenPub(cands, family);
|
| 180 |
const twins = cands.filter((o) => o.quant.toUpperCase() === pick.quant.toUpperCase());
|