quantprobe 1.21.0__tar.gz → 1.22.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {quantprobe-1.21.0/quantprobe.egg-info → quantprobe-1.22.0}/PKG-INFO +1 -1
- {quantprobe-1.21.0 → quantprobe-1.22.0}/pyproject.toml +1 -1
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/__init__.py +1 -1
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/plan.py +21 -11
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/spec.py +6 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0/quantprobe.egg-info}/PKG-INFO +1 -1
- {quantprobe-1.21.0 → quantprobe-1.22.0}/LICENSE +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/README.md +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/__main__.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/auto.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/calibrate.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/cli.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/dashboard.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/detect.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/fetch.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/optimize.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/probe.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/recipes/mistral-7b.json +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/recipes/qwen2.5-7b.json +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/recipes/qwen3-30b.json +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/recipes/qwen3.5-35b.json +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/recipes.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/runtime.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe/target.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe.egg-info/SOURCES.txt +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe.egg-info/dependency_links.txt +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe.egg-info/entry_points.txt +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe.egg-info/requires.txt +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/quantprobe.egg-info/top_level.txt +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/setup.cfg +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/tests/test_engine.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/tests/test_evaluator.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/tests/test_pipeline.py +0 -0
- {quantprobe-1.21.0 → quantprobe-1.22.0}/tests/test_transforms.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantprobe
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.22.0
|
|
4
4
|
Summary: Probe-then-quantize for LLMs: measure a model's fragility curve, plan bit/tier placement by the tiered decode law, and emit ready-to-run llama.cpp recipes.
|
|
5
5
|
Author: Federico Sciuca
|
|
6
6
|
License: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "quantprobe"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.22.0"
|
|
8
8
|
description = "Probe-then-quantize for LLMs: measure a model's fragility curve, plan bit/tier placement by the tiered decode law, and emit ready-to-run llama.cpp recipes."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -8,4 +8,4 @@ Three commands, all grounded in measured laws (see LAWS.md in the repo):
|
|
|
8
8
|
Every constant in `plan` is fitted from measurements published in the repo, including two
|
|
9
9
|
pre-registered hardware predictions confirmed within 8%.
|
|
10
10
|
"""
|
|
11
|
-
__version__ = "1.
|
|
11
|
+
__version__ = "1.22.0"
|
|
@@ -440,16 +440,21 @@ def format_advice(placement, bits):
|
|
|
440
440
|
if bits <= 3.0:
|
|
441
441
|
return ("FORMAT LEVER (pre-Ampere cards): this bit-width is in the regime where unpack "
|
|
442
442
|
"cost has REVERSED the byte ordering - measured Q2_K decodes 19% slower than Q4_0 "
|
|
443
|
-
"on the same model while being 32% smaller
|
|
444
|
-
"
|
|
445
|
-
"
|
|
443
|
+
"on the same model while being 32% smaller, and CODEBOOK IQ formats pay even more "
|
|
444
|
+
"(IQ2_XS/IQ3 measured 36-52% below Q4_K per byte, prereg #70). If a ~4.5-bit file "
|
|
445
|
+
"fits in VRAM, use it instead; prefer Q4_0 or IQ4_NL over Q4_K_M on pre-Ampere "
|
|
446
|
+
"(+19%/+14% measured). On Ampere+ this is unverified and may invert.")
|
|
446
447
|
if bits <= 5.0:
|
|
447
448
|
return ("FORMAT LEVER (pre-Ampere cards): at this bit-width the FORMAT is worth more than "
|
|
448
449
|
"the bytes - Q4_0 measured +19% over Q4_K_M on the same model (26.87 vs 22.72 "
|
|
449
|
-
"tok/s)
|
|
450
|
-
"
|
|
451
|
-
"
|
|
452
|
-
"
|
|
450
|
+
"tok/s), and IQ4_NL measured +14% (25.63) at the same size class WITH imatrix "
|
|
451
|
+
"quality: its kernel is Q4_0-class, not codebook-class (prereg #70), so it is the "
|
|
452
|
+
"quality-per-byte pick of the fast formats here. Mechanism (measured, preregs "
|
|
453
|
+
"#56/#57): metadata application DENSITY - K-quants apply fine-grained scale+min "
|
|
454
|
+
"chains far more often per byte, and that cost is intrinsic to the format "
|
|
455
|
+
"definition, not a kernel bug. Avoid codebook IQ (IQ2/IQ3) for VRAM decode on "
|
|
456
|
+
"this class of card: measured 36-52% below Q4_K per byte. On Ampere+ this is "
|
|
457
|
+
"unverified and may invert.")
|
|
453
458
|
return None
|
|
454
459
|
|
|
455
460
|
|
|
@@ -468,7 +473,7 @@ def dense_draft_note(moe, placement):
|
|
|
468
473
|
return ("dense-SPLIT speculation (measured, prereg #69): a small same-family draft is "
|
|
469
474
|
"the best speculation cell on this box - `-md draft.gguf -ngld 0 "
|
|
470
475
|
"--spec-draft-n-max 2` bought **+33%** decode on a 14B split target (5.5 -> 7.4 "
|
|
471
|
-
"tok/s, 76
|
|
476
|
+
"tok/s, 76% acceptance, novel code), and the draft costs ZERO VRAM because it "
|
|
472
477
|
"runs on CPU. Mechanism: the K+1-token verify batch reads each CPU-resident "
|
|
473
478
|
"layer once, so the CPU share of every token amortizes. Keep K=2: every "
|
|
474
479
|
"measured K>=3 landed AT OR BELOW no-draft baseline (the CPU draft spends the "
|
|
@@ -478,7 +483,7 @@ def dense_draft_note(moe, placement):
|
|
|
478
483
|
return None
|
|
479
484
|
return ("dense-model speculation (measured, prereg #67): pairing this model with a small "
|
|
480
485
|
"same-family draft (-md draft.gguf -ngld 99 --spec-draft-n-max 2) buys ~+11% on "
|
|
481
|
-
"CODE-style novel output at 79
|
|
486
|
+
"CODE-style novel output at 79% acceptance - and LOSES speed on prose and at "
|
|
482
487
|
"draft lengths >=4 (llama.cpp's default 3 is past the optimum here). Copy-regime "
|
|
483
488
|
"ngram speculation remains the big multiplier where output copies context.")
|
|
484
489
|
|
|
@@ -527,8 +532,13 @@ def speculation_advice(moe, placement):
|
|
|
527
532
|
"negative here (0.72x), and stacking a second drafter costs 10%. Note llama-cli "
|
|
528
533
|
"ignores --spec-type silently; the flag only works on llama-server.")
|
|
529
534
|
if moe and experts_offloaded:
|
|
530
|
-
return ("speculation will NOT pay here: measured +3% (ngram) and
|
|
531
|
-
"
|
|
535
|
+
return ("speculation will NOT pay here with external drafts: measured +3% (ngram) and "
|
|
536
|
+
"-24% (MTP, old-generation) with experts offloaded - a verify batch unions "
|
|
537
|
+
"experts, and every extra one is a slow read. ONE measured exception (prereg "
|
|
538
|
+
"#71): models with a TRAINED-IN MTP head (Qwen3.6 class) reach ~93% acceptance, "
|
|
539
|
+
"enough for `--spec-type draft-mtp --spec-draft-n-max 2` to buy +11% - and K "
|
|
540
|
+
"MUST stay at 2: K=4 measured 0.61x on the same pair (the union tax is alive, "
|
|
541
|
+
"the head just out-accepts it at short drafts).")
|
|
532
542
|
if not moe:
|
|
533
543
|
return ("if you write CODE, add `--spec-type ngram-simple` - measured **2.10x decode** "
|
|
534
544
|
"(17.7 -> 37.2 tok/s), one flag, no download, identical output. Prose gains "
|
|
@@ -33,6 +33,12 @@ FORMAT_EBW = {
|
|
|
33
33
|
"Q4_0": 119.1, "Q4_K": 106.4, "Q2_K": 65.4, "Q3_K": 57.3, "Q6_K": 100.0, # measured
|
|
34
34
|
"Q8_0": 115.0, "Q5_K": 103.0, "Q5_0": 117.0, "Q5_1": 115.0, # derived
|
|
35
35
|
"F16": 150.0, "F32": 150.0, "BF16": 150.0, # derived
|
|
36
|
+
# IQ entries measured in prereg #70 (same-session matched set vs the Q4_K control, pure-type
|
|
37
|
+
# values solved from file blends). The divide is CODEBOOK vs not, not IQ vs K: the codebook
|
|
38
|
+
# formats (IQ2/IQ3) pay their lookup in decode; IQ4_NL's kernel is Q4_0-class and lands
|
|
39
|
+
# beside it. IQ2/IQ3 variants not listed stay excluded (coverage rule withholds fmt_bw).
|
|
40
|
+
"IQ2_XS": 51.1, "IQ3_S": 61.1, "IQ3_XXS": 68.3, # measured (#70)
|
|
41
|
+
"IQ4_NL": 117.0, # measured (#70)
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantprobe
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.22.0
|
|
4
4
|
Summary: Probe-then-quantize for LLMs: measure a model's fragility curve, plan bit/tier placement by the tiered decode law, and emit ready-to-run llama.cpp recipes.
|
|
5
5
|
Author: Federico Sciuca
|
|
6
6
|
License: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|