quantprobe 1.26.3__tar.gz → 1.27.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.26.3/quantprobe.egg-info → quantprobe-1.27.0}/PKG-INFO +1 -1
- {quantprobe-1.26.3 → quantprobe-1.27.0}/pyproject.toml +1 -1
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/__init__.py +1 -1
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/detect.py +83 -2
- {quantprobe-1.26.3 → quantprobe-1.27.0/quantprobe.egg-info}/PKG-INFO +1 -1
- {quantprobe-1.26.3 → quantprobe-1.27.0}/LICENSE +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/README.md +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/__main__.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/auto.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/branding.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/calibrate.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/cli.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/dashboard.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/fetch.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/ollama.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/optimize.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/plan.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/probe.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/recipes/mistral-7b.json +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/recipes/qwen2.5-7b.json +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/recipes/qwen3-30b.json +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/recipes/qwen3.5-35b.json +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/recipes.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/runtime.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/spec.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe/target.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe.egg-info/SOURCES.txt +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe.egg-info/dependency_links.txt +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe.egg-info/entry_points.txt +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe.egg-info/requires.txt +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/quantprobe.egg-info/top_level.txt +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/setup.cfg +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/tests/test_engine.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/tests/test_evaluator.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.0}/tests/test_pipeline.py +0 -0
- {quantprobe-1.26.3 → quantprobe-1.27.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.27.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.27.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.27.0"
|
|
@@ -29,6 +29,25 @@ GPU_TABLE = [
|
|
|
29
29
|
("2080", 448, 0.45, 0.25), ("2070", 448, 0.45, 0.25), ("2060", 336, 0.42, 0.22),
|
|
30
30
|
("1080", 320, 0.38, 0.06), ("1070", 256, 0.36, 0.05), ("1060", 192, 0.35, 0.04),
|
|
31
31
|
("a100", 1935, 0.7, 0.55), ("h100", 3350, 0.75, 0.6), ("rtx 6000", 960, 0.62, 0.42),
|
|
32
|
+
# AMD / Intel, added for issue #1 (an RX 5700 XT owner got "GPU: none detected" and had to
|
|
33
|
+
# hand-pass the exact 448 this table now carries). Spec-sheet peaks, same [table] convention
|
|
34
|
+
# as above; the geta/gl hints are the generic-unknown values because NO eta has been
|
|
35
|
+
# measured on RDNA/Arc backends here - resolve_gpu_eta's size-classed floor and the user's
|
|
36
|
+
# own `calibrate` anchors do the honest work, exactly as they did for E-13's +0.1%.
|
|
37
|
+
("rx 9070 xt", 640, 0.45, 0.27), ("rx 9070", 640, 0.45, 0.27),
|
|
38
|
+
("rx 7900 xtx", 960, 0.45, 0.27), ("rx 7900 xt", 800, 0.45, 0.27),
|
|
39
|
+
("rx 7900 gre", 576, 0.45, 0.27), ("rx 7800 xt", 624, 0.45, 0.27),
|
|
40
|
+
("rx 7700 xt", 432, 0.45, 0.27), ("rx 7600 xt", 288, 0.45, 0.27),
|
|
41
|
+
("rx 7600", 288, 0.45, 0.27), ("rx 6950 xt", 576, 0.45, 0.27),
|
|
42
|
+
("rx 6900 xt", 512, 0.45, 0.27), ("rx 6800 xt", 512, 0.45, 0.27),
|
|
43
|
+
("rx 6800", 512, 0.45, 0.27), ("rx 6750 xt", 432, 0.45, 0.27),
|
|
44
|
+
("rx 6700 xt", 384, 0.45, 0.27), ("rx 6700", 320, 0.45, 0.27),
|
|
45
|
+
("rx 6650 xt", 280, 0.45, 0.27), ("rx 6600 xt", 256, 0.45, 0.27),
|
|
46
|
+
("rx 6600", 224, 0.45, 0.27), ("rx 5700 xt", 448, 0.45, 0.27),
|
|
47
|
+
("rx 5700", 448, 0.45, 0.27), ("rx 5600 xt", 288, 0.45, 0.27),
|
|
48
|
+
("radeon vii", 1024, 0.45, 0.27), ("vega 64", 484, 0.45, 0.27), ("vega 56", 410, 0.45, 0.27),
|
|
49
|
+
("arc a770", 560, 0.45, 0.27), ("arc a750", 512, 0.45, 0.27),
|
|
50
|
+
("arc b580", 456, 0.45, 0.27), ("arc b570", 380, 0.45, 0.27),
|
|
32
51
|
]
|
|
33
52
|
MAC_BW = {"m1 ultra": 800, "m1 max": 400, "m1 pro": 200, "m1": 68,
|
|
34
53
|
"m2 ultra": 800, "m2 max": 400, "m2 pro": 200, "m2": 100,
|
|
@@ -58,6 +77,45 @@ def gpu_lookup(name):
|
|
|
58
77
|
return 300, 0.45, 0.27, "[default: unknown GPU, pass --vram-bw]"
|
|
59
78
|
|
|
60
79
|
|
|
80
|
+
def _parse_win_adapters(text):
|
|
81
|
+
"""'DriverDesc|bytes' lines -> [(name, vram_gb)], virtual adapters filtered, dedup by max.
|
|
82
|
+
Pure parser so the smoke suite can test it without the registry."""
|
|
83
|
+
VIRTUAL = ("basic display", "basic render", "remote", "virtual", "vnc", "dameware",
|
|
84
|
+
"parsec", "spacedesk", "idd", "usb", "mirage", "citrix")
|
|
85
|
+
out = {}
|
|
86
|
+
for line in (text or "").strip().splitlines():
|
|
87
|
+
if "|" not in line:
|
|
88
|
+
continue
|
|
89
|
+
name, _, raw = line.rpartition("|")
|
|
90
|
+
name = name.strip()
|
|
91
|
+
if not name or any(v in name.lower() for v in VIRTUAL):
|
|
92
|
+
continue
|
|
93
|
+
try:
|
|
94
|
+
gb = int(raw.strip()) / 2**30
|
|
95
|
+
except ValueError:
|
|
96
|
+
gb = 0.0
|
|
97
|
+
out[name] = max(gb, out.get(name, 0.0))
|
|
98
|
+
return sorted(out.items())
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def gpus_other():
|
|
102
|
+
"""Non-NVIDIA adapters, Windows: driver registry first - qwMemorySize is the reliable VRAM
|
|
103
|
+
field; Win32_VideoController.AdapterRAM is a uint32 that CAPS AT 4 GB and under-reports
|
|
104
|
+
every modern card - CIM only as fallback. Issue #1's contributor ran an RX 5700 XT and this
|
|
105
|
+
tool printed 'GPU: none detected'; this function is the fix."""
|
|
106
|
+
if os.name != "nt":
|
|
107
|
+
return []
|
|
108
|
+
ps = ("$k='HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Class\\"
|
|
109
|
+
"{4d36e968-e325-11ce-bfc1-08002be10318}\\0*';"
|
|
110
|
+
"$r=Get-ItemProperty $k -ErrorAction SilentlyContinue | "
|
|
111
|
+
"Where-Object { $_.DriverDesc } | "
|
|
112
|
+
"ForEach-Object { $_.DriverDesc + '|' + $_.'HardwareInformation.qwMemorySize' };"
|
|
113
|
+
"if (-not $r) { $r = Get-CimInstance Win32_VideoController | "
|
|
114
|
+
"ForEach-Object { $_.Name + '|' + $_.AdapterRAM } };"
|
|
115
|
+
"$r")
|
|
116
|
+
return _parse_win_adapters(_run(["powershell", "-NoProfile", "-c", ps]))
|
|
117
|
+
|
|
118
|
+
|
|
61
119
|
def ram_windows():
|
|
62
120
|
"""(total_gb[os], mts[os], channels[os]) via CIM (wmic fallback)."""
|
|
63
121
|
ps = _run(["powershell", "-NoProfile", "-c",
|
|
@@ -150,8 +208,31 @@ def detect():
|
|
|
150
208
|
+ (f" (x{len(gs)} per-card sum, 0.85 TP efficiency [est]; slower card gates its share)" if len(gs) > 1 else ""))
|
|
151
209
|
hw.update(vram=vram, vram_bw=round(vram_bw), geta=geta, gl=gl)
|
|
152
210
|
else:
|
|
153
|
-
|
|
154
|
-
|
|
211
|
+
# nvidia-smi saw nothing - check the Windows driver registry for AMD/Intel (or an
|
|
212
|
+
# NVIDIA card with no driver tools). Field case: issue #1, RX 5700 XT, "none detected".
|
|
213
|
+
others = gpus_other()
|
|
214
|
+
priced = [(n, gb) + gpu_lookup(n) for n, gb in others]
|
|
215
|
+
known = [p for p in priced if "table" in p[5]]
|
|
216
|
+
unknown = [p for p in priced if "table" not in p[5]]
|
|
217
|
+
if known:
|
|
218
|
+
vram = sum(p[1] for p in known)
|
|
219
|
+
vram_bw = sum(p[2] for p in known) * (1.0 if len(known) == 1 else 0.85)
|
|
220
|
+
names = " + ".join(p[0] for p in known)
|
|
221
|
+
hw.update(vram=round(vram, 1), vram_bw=round(vram_bw),
|
|
222
|
+
geta=known[0][3], gl=known[0][4])
|
|
223
|
+
notes.append(f"GPU: {names}, {vram:.0f} GB [os], {vram_bw:.0f} GB/s [table] - "
|
|
224
|
+
f"non-NVIDIA path: VRAM from the driver registry, bandwidth from spec; "
|
|
225
|
+
f"eta on this backend is UNVALIDATED here, so run `quantprobe "
|
|
226
|
+
f"calibrate` with your llama.cpp build to anchor it")
|
|
227
|
+
elif unknown:
|
|
228
|
+
names = ", ".join(f"{p[0]} ({p[1]:.0f} GB)" for p in unknown)
|
|
229
|
+
hw.update(vram=0, vram_bw=0)
|
|
230
|
+
notes.append(f"GPU: {names} detected [os] but not in the bandwidth table - pass "
|
|
231
|
+
f"--vram <GB> --vram-bw <GB/s> (spec sheet) to include the GPU tier; "
|
|
232
|
+
f"planning CPU-only until then")
|
|
233
|
+
else:
|
|
234
|
+
hw.update(vram=0, vram_bw=0)
|
|
235
|
+
notes.append("GPU: none detected (nvidia-smi absent/empty; AMD/Intel: pass --vram/--vram-bw) [os]")
|
|
155
236
|
|
|
156
237
|
# disk: class default; a real measured number needs `quantprobe hw --measure` (reads a large file)
|
|
157
238
|
hw.update(ram=round(total), ram_bw=ram_bw, disk_bw=0.5)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantprobe
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.27.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
|