quantprobe 1.30.0__tar.gz → 1.31.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.30.0/quantprobe.egg-info → quantprobe-1.31.0}/PKG-INFO +1 -1
- {quantprobe-1.30.0 → quantprobe-1.31.0}/pyproject.toml +1 -1
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/__init__.py +1 -1
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/detect.py +7 -1
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/spec.py +37 -5
- {quantprobe-1.30.0 → quantprobe-1.31.0/quantprobe.egg-info}/PKG-INFO +1 -1
- {quantprobe-1.30.0 → quantprobe-1.31.0}/LICENSE +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/README.md +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/__main__.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/auto.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/branding.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/calibrate.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/cli.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/dashboard.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/fetch.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/ollama.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/optimize.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/plan.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/probe.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/recipes/mistral-7b.json +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/recipes/qwen2.5-7b.json +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/recipes/qwen3-30b.json +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/recipes/qwen3.5-35b.json +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/recipes/qwen3.6-35b.json +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/recipes/qwen3.8-27b.json +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/recipes.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/report.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/runtime.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe/target.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe.egg-info/SOURCES.txt +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe.egg-info/dependency_links.txt +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe.egg-info/entry_points.txt +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe.egg-info/requires.txt +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/quantprobe.egg-info/top_level.txt +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/setup.cfg +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/tests/test_engine.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/tests/test_evaluator.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.0}/tests/test_pipeline.py +0 -0
- {quantprobe-1.30.0 → quantprobe-1.31.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.31.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.31.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.31.0"
|
|
@@ -308,7 +308,13 @@ def residency(model_bytes, free_gb=None):
|
|
|
308
308
|
f"minute's\n"
|
|
309
309
|
f" machine state, not the file. Expect it to move when something else is "
|
|
310
310
|
f"running,\n"
|
|
311
|
-
f" and do not publish it without the free-RAM number beside it (C-32)
|
|
311
|
+
f" and do not publish it without the free-RAM number beside it (C-32).\n"
|
|
312
|
+
f" COMPARING CONFIGURATIONS? In this regime a run is contaminated by the one\n"
|
|
313
|
+
f" before it - the page cache carries the previous config's working set into\n"
|
|
314
|
+
f" the next process. Measured: identical arms spread 0.8-1.8% when the\n"
|
|
315
|
+
f" predecessor matched and 21-72% when it did not, a 6.3x span from run "
|
|
316
|
+
f"order\n"
|
|
317
|
+
f" alone (L-31). Interleave your arms and repeat them, or A/B here is noise.")
|
|
312
318
|
|
|
313
319
|
|
|
314
320
|
WIDE_CPU = ("threadripper", "epyc", "xeon w-3", "xeon(r) w9", "xeon(r) w7", "xeon gold",
|
|
@@ -264,7 +264,29 @@ def expert_ceiling(s):
|
|
|
264
264
|
share, k_def = s.get("routed_byte_share") or 0.0, s.get("n_expert_used") or 0
|
|
265
265
|
if not share or k_def < 2:
|
|
266
266
|
return None # k=1 already: there is nothing left to turn down
|
|
267
|
-
return share,
|
|
267
|
+
return share, _ceil(share, k_def)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def _ceil(share, k_def):
|
|
271
|
+
return 1.0 / (1.0 - share * (1.0 - 1.0 / k_def))
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def expert_ceiling_prefill(s):
|
|
275
|
+
"""The same ceiling for PREFILL -> (share, ceiling) or None.
|
|
276
|
+
|
|
277
|
+
L-30 prices decode, which is bandwidth-bound, so it divides BYTES. Prefill is compute-bound
|
|
278
|
+
and compute scales with PARAMETERS - quantization shrinks bytes, not FLOPs. The routed share
|
|
279
|
+
is therefore larger here, and so is the ceiling.
|
|
280
|
+
|
|
281
|
+
Measured (prereg #108, V-23): prefill moved 1.613x at k=4 and 3.766x at k=2, where decode
|
|
282
|
+
moved 1.146x and 1.175x. The direction and ordering are confirmed. The MAGNITUDE is not -
|
|
283
|
+
the param share predicted 1.206x at k=4 and the measurement came in 34% above it, so this
|
|
284
|
+
number is a FLOOR on what prefill does, not an estimate of it. Said that way in the note."""
|
|
285
|
+
a, ne, k_def = s.get("a") or 0.0, s.get("ne") or 0.0, s.get("n_expert_used") or 0
|
|
286
|
+
if not s.get("moe") or not a or a <= ne or k_def < 2:
|
|
287
|
+
return None
|
|
288
|
+
share = (a - ne) / a
|
|
289
|
+
return share, _ceil(share, k_def)
|
|
268
290
|
|
|
269
291
|
|
|
270
292
|
def expert_ceiling_note(s):
|
|
@@ -276,10 +298,20 @@ def expert_ceiling_note(s):
|
|
|
276
298
|
if ceil < 1.05: # below a 5% ceiling the knob is not worth a line
|
|
277
299
|
return (f" experts routed experts are only {share*100:.0f}% of the active bytes - "
|
|
278
300
|
f"cutting expert_used_count cannot help here (L-30)")
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
301
|
+
out = (f" experts routed experts are {share*100:.0f}% of the active bytes, so "
|
|
302
|
+
f"lowering expert_used_count\n"
|
|
303
|
+
f" buys at most ~{ceil:.2f}x DECODE even at k=1 - and quality falls "
|
|
304
|
+
f"long before that (L-30, prereg #107)")
|
|
305
|
+
pf = expert_ceiling_prefill(s)
|
|
306
|
+
if pf:
|
|
307
|
+
pshare, pceil = pf
|
|
308
|
+
out += (f"\n PREFILL is the better place for it: {pshare*100:.0f}% of "
|
|
309
|
+
f"active PARAMS are routed, and\n"
|
|
310
|
+
f" measured gains beat this {pceil:.2f}x floor (1.6x at k=4, "
|
|
311
|
+
f"3.8x at k=2 - V-23, prereg #108).\n"
|
|
312
|
+
f" Neither is free: halving the experts cost +1.51 perplexity "
|
|
313
|
+
f"on the measured model.")
|
|
314
|
+
return out
|
|
283
315
|
|
|
284
316
|
|
|
285
317
|
def apply(a, quiet=False):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantprobe
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.31.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|