quantprobe 1.12.0__tar.gz → 1.12.1__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.12.0/quantprobe.egg-info → quantprobe-1.12.1}/PKG-INFO +1 -1
- {quantprobe-1.12.0 → quantprobe-1.12.1}/pyproject.toml +1 -1
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/__init__.py +1 -1
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/plan.py +20 -6
- {quantprobe-1.12.0 → quantprobe-1.12.1/quantprobe.egg-info}/PKG-INFO +1 -1
- {quantprobe-1.12.0 → quantprobe-1.12.1}/LICENSE +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/README.md +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/__main__.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/auto.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/cli.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/dashboard.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/detect.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/fetch.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/optimize.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/probe.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/recipes/mistral-7b.json +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/recipes/qwen2.5-7b.json +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/recipes/qwen3-30b.json +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/recipes/qwen3.5-35b.json +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/recipes.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/runtime.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/spec.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe/target.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe.egg-info/SOURCES.txt +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe.egg-info/dependency_links.txt +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe.egg-info/entry_points.txt +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe.egg-info/requires.txt +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/quantprobe.egg-info/top_level.txt +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/setup.cfg +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/tests/test_engine.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/tests/test_evaluator.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/tests/test_pipeline.py +0 -0
- {quantprobe-1.12.0 → quantprobe-1.12.1}/tests/test_transforms.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantprobe
|
|
3
|
-
Version: 1.12.
|
|
3
|
+
Version: 1.12.1
|
|
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.12.
|
|
7
|
+
version = "1.12.1"
|
|
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.12.
|
|
11
|
+
__version__ = "1.12.1"
|
|
@@ -15,13 +15,13 @@ MODELS = {
|
|
|
15
15
|
"qwen3-30b": dict(t=30.5, a=3.3, ne=1.2, moe=True, kvp=98304, nl=48, hint="Qwen3-30B-A3B"), # 48L x 4KV x 128d (exact; calibration anchor)
|
|
16
16
|
"deepseek-16b": dict(t=15.7, a=2.4, ne=1.3, moe=True, kvp=31104, nl=27, hint="DeepSeek-V2-Lite"), # MLA: 27L x (512+64) latent (exact)
|
|
17
17
|
"gemma-12b": dict(t=11.9, a=11.9, ne=11.9, moe=False, kvp=65536, hint="Gemma 4 12B"), # [est] SWA: long-ctx slope from global layers only
|
|
18
|
-
"mistral-7b": dict(t=7.2, a=7.2, ne=7.2, moe=False, kvp=131072, hint="Mistral 7B"), # 32L x 8KV x 128d (exact)
|
|
18
|
+
"mistral-7b": dict(t=7.2, a=7.2, ne=7.2, moe=False, kvp=131072, nl=32, hint="Mistral 7B"), # 32L x 8KV x 128d (exact)
|
|
19
19
|
"glm-air": dict(t=110, a=12, ne=2.7, moe=True, kvp=94208, hint="GLM-4.5-Air 106B"), # [est]
|
|
20
20
|
"glm-744b": dict(t=753.3, a=32, ne=8, moe=True, kvp=188416, hint="GLM-5.2 (753B)"), # total exact (HF safetensors); a/ne/kvp [est]
|
|
21
21
|
"qwen3-235b": dict(t=235.1, a=22, ne=7.5, moe=True, kvp=192512, hint="Qwen3-235B-A22B"), # total exact; kvp: 94L x 4KV x 128d [est]
|
|
22
22
|
"kimi-k2.6": dict(t=1058.6, a=32, ne=6, moe=True, kvp=70272, hint="Kimi K2.6 (1T MLA)"), # total exact; kvp: 61L x 576 MLA latent [est]
|
|
23
23
|
"gpt-oss-120b": dict(t=120.4, a=5.1, ne=1.8, moe=True, kvp=73728, hint="gpt-oss-120b"), # total+active official; kvp: 36L x 8KV x 64d [est]
|
|
24
|
-
"llama-70b": dict(t=70.6, a=70.6, ne=70.6, moe=False, kvp=327680, hint="Llama-3.3-70B"), # dense; kvp: 80L x 8KV x 128d
|
|
24
|
+
"llama-70b": dict(t=70.6, a=70.6, ne=70.6, moe=False, kvp=327680, nl=80, hint="Llama-3.3-70B"), # dense; kvp: 80L x 8KV x 128d
|
|
25
25
|
}
|
|
26
26
|
DESKTOP_VRAM_RESERVE = 1.0 # GB held by the OS/desktop on a real machine, not the model's to use.
|
|
27
27
|
# Measured 0.8-1.5 GB on this box (pre-registration #13 sweep).
|
|
@@ -279,10 +279,24 @@ def evaluate(t, a, ne, moe, bits, vc, vb, rc, rb, db, geta, act_scale=1.0, gl=No
|
|
|
279
279
|
out.append((f"split experts: {f:.0%}->VRAM, rest->RAM", 1 / t_split, None, fl))
|
|
280
280
|
if (not moe) and vc > 0 and size + kv_gb > vc * 0.90 and size + kv_gb <= ra + vc * 0.9:
|
|
281
281
|
g = min(0.95, vc * 0.9 / (size + kv_gb)) # KV splits with its layers
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
282
|
+
# -ngl takes a LAYER COUNT. This emitted `int(g * 99)`, treating 99 - the all-layers
|
|
283
|
+
# sentinel used elsewhere in this file - as if it were a layer count. Two failures, and
|
|
284
|
+
# the second is severe:
|
|
285
|
+
# * the split is misreported: llama-70b (80 layers) printed "50% layers->VRAM" and
|
|
286
|
+
# emitted -ngl 49, which is 61%.
|
|
287
|
+
# * for any model with <= 99*g layers the flag EXCEEDS the layer count and llama.cpp
|
|
288
|
+
# puts EVERYTHING on the GPU - on a row that exists only because the model does NOT
|
|
289
|
+
# fit in VRAM. A 32-layer model does this for any g > 0.32. That is an OOM, or a
|
|
290
|
+
# silent thrash on Windows with driver memory fallback.
|
|
291
|
+
# Same discipline as moe_split_flags: without a grounded layer count we suppress the row
|
|
292
|
+
# rather than print a command we cannot honour (the v1.6.5 bug class). --gguf always
|
|
293
|
+
# unlocks it, since autospec reads block_count from the file.
|
|
294
|
+
gpu_layers = int(g * n_layer) if n_layer else 0
|
|
295
|
+
if 0 < gpu_layers < n_layer:
|
|
296
|
+
kv_t = g * kv_gb / (ETA_KV * vb) + (1 - g) * kv_gb / (ETA_KV * rb)
|
|
297
|
+
out.append((f"split: {gpu_layers}/{n_layer} layers->VRAM, rest->RAM",
|
|
298
|
+
1 / (g * act / (geta_w * vb) + (1 - g) * act / (eta_r * rb) + kv_t), None,
|
|
299
|
+
f"-ngl {gpu_layers}"))
|
|
286
300
|
if size + kv_gb <= ra:
|
|
287
301
|
warn = "RAM boundary - expect bimodal speed" if size + kv_gb > ra * 0.85 else None
|
|
288
302
|
out.append(("pure CPU (GPU idle)", 1 / (act / (eta_r * rb) + kv_gb / (ETA_KV * rb)), warn, "-ngl 0"))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantprobe
|
|
3
|
-
Version: 1.12.
|
|
3
|
+
Version: 1.12.1
|
|
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
|