quantprobe 1.35.1__tar.gz → 1.37.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.
Files changed (41) hide show
  1. {quantprobe-1.35.1/quantprobe.egg-info → quantprobe-1.37.0}/PKG-INFO +13 -4
  2. {quantprobe-1.35.1 → quantprobe-1.37.0}/README.md +12 -3
  3. {quantprobe-1.35.1 → quantprobe-1.37.0}/pyproject.toml +1 -1
  4. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/__init__.py +1 -1
  5. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/auto.py +34 -1
  6. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/plan.py +2988 -2957
  7. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/probe.py +623 -623
  8. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/deepseek-v2-lite.json +12 -1
  9. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/mistral-7b.json +12 -1
  10. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/qwen2.5-7b.json +12 -1
  11. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/qwen3-30b.json +12 -1
  12. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/qwen3.5-35b.json +12 -1
  13. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/qwen3.5-4b.json +12 -1
  14. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/qwen3.6-35b.json +12 -1
  15. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes/qwen3.8-27b.json +15 -2
  16. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/recipes.py +49 -0
  17. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/report.py +1214 -1211
  18. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/spec.py +53 -7
  19. {quantprobe-1.35.1 → quantprobe-1.37.0/quantprobe.egg-info}/PKG-INFO +13 -4
  20. {quantprobe-1.35.1 → quantprobe-1.37.0}/LICENSE +0 -0
  21. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/__main__.py +0 -0
  22. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/branding.py +0 -0
  23. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/calibrate.py +0 -0
  24. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/cli.py +0 -0
  25. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/dashboard.py +0 -0
  26. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/detect.py +0 -0
  27. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/fetch.py +0 -0
  28. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/ollama.py +0 -0
  29. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/optimize.py +0 -0
  30. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/runtime.py +0 -0
  31. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe/target.py +0 -0
  32. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe.egg-info/SOURCES.txt +0 -0
  33. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe.egg-info/dependency_links.txt +0 -0
  34. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe.egg-info/entry_points.txt +0 -0
  35. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe.egg-info/requires.txt +0 -0
  36. {quantprobe-1.35.1 → quantprobe-1.37.0}/quantprobe.egg-info/top_level.txt +0 -0
  37. {quantprobe-1.35.1 → quantprobe-1.37.0}/setup.cfg +0 -0
  38. {quantprobe-1.35.1 → quantprobe-1.37.0}/tests/test_engine.py +0 -0
  39. {quantprobe-1.35.1 → quantprobe-1.37.0}/tests/test_evaluator.py +0 -0
  40. {quantprobe-1.35.1 → quantprobe-1.37.0}/tests/test_pipeline.py +0 -0
  41. {quantprobe-1.35.1 → quantprobe-1.37.0}/tests/test_transforms.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantprobe
3
- Version: 1.35.1
3
+ Version: 1.37.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
@@ -94,9 +94,18 @@ Or skip straight to a model we already did the surgery on — the 35B whose dept
94
94
  quantprobe fetch qwen3.6-35b ./models
95
95
  ```
96
96
 
97
- Every model in the [fragility atlas](quantprobe/recipes/) answers to its own name. Ask `auto` about
98
- one and it tells you where that model breaks and what proved it, whether or not it can build it for
99
- you.
97
+ Every model in the [fragility atlas](quantprobe/recipes/) answers to its own name — including the
98
+ opening question, *before* you spend the download:
99
+
100
+ ```bash
101
+ quantprobe plan --model qwen3.6-35b --bits 2.9
102
+ ```
103
+
104
+ Those parameter counts are read from a real GGUF, never typed in. Worth knowing why that matters:
105
+ two uploads under the same model name can differ by a **whole transformer block** — one Qwen3.6-35B
106
+ build ships an MTP head that others strip, 41 layers against 40 ([L-33](FINDINGS.md)). So a stored
107
+ number travels with the file it was measured on, and quantprobe checks the layer count instead of
108
+ trusting the name.
100
109
 
101
110
  ## What it does
102
111
 
@@ -72,9 +72,18 @@ Or skip straight to a model we already did the surgery on — the 35B whose dept
72
72
  quantprobe fetch qwen3.6-35b ./models
73
73
  ```
74
74
 
75
- Every model in the [fragility atlas](quantprobe/recipes/) answers to its own name. Ask `auto` about
76
- one and it tells you where that model breaks and what proved it, whether or not it can build it for
77
- you.
75
+ Every model in the [fragility atlas](quantprobe/recipes/) answers to its own name — including the
76
+ opening question, *before* you spend the download:
77
+
78
+ ```bash
79
+ quantprobe plan --model qwen3.6-35b --bits 2.9
80
+ ```
81
+
82
+ Those parameter counts are read from a real GGUF, never typed in. Worth knowing why that matters:
83
+ two uploads under the same model name can differ by a **whole transformer block** — one Qwen3.6-35B
84
+ build ships an MTP head that others strip, 41 layers against 40 ([L-33](FINDINGS.md)). So a stored
85
+ number travels with the file it was measured on, and quantprobe checks the layer count instead of
86
+ trusting the name.
78
87
 
79
88
  ## What it does
80
89
 
@@ -4,7 +4,7 @@ requires = [ "setuptools>=68" ]
4
4
 
5
5
  [project]
6
6
  name = "quantprobe"
7
- version = "1.35.1"
7
+ version = "1.37.0"
8
8
  description = """\
9
9
  Probe-then-quantize for LLMs: measure a model's fragility curve, plan bit/tier placement by the tiered decode law, \
10
10
  and emit ready-to-run llama.cpp recipes.\
@@ -9,4 +9,4 @@ Every constant in `plan` is fitted from measurements published in the repo, incl
9
9
  pre-registered hardware predictions confirmed within 8%.
10
10
  """
11
11
 
12
- __version__ = "1.35.1"
12
+ __version__ = "1.37.0"
@@ -28,7 +28,10 @@ MODEL_REPOS = {
28
28
  "glm-air": ("unsloth/GLM-4.5-Air-GGUF", 110, 12, 2.7, True),
29
29
  "laguna-s": ("unsloth/Laguna-S-2.1-GGUF", 117.6, 8, 2.5, True),
30
30
  "gemma-12b": ("unsloth/gemma-4-12b-it-GGUF", 11.9, 11.9, 11.9, False),
31
- "mistral-7b": ("unsloth/Mistral-7B-Instruct-v0.3-GGUF", 7.2, 7.2, 7.2, False),
31
+ # unsloth/Mistral-7B-Instruct-v0.3-GGUF was gated and now 404s outright (verified 2026-08-24
32
+ # against the Hub). bartowski's is public and carries a Q8_0 source, and it is the repo the
33
+ # measured recipe records - a preset pointing at a dead repo is worse than no preset.
34
+ "mistral-7b": ("bartowski/Mistral-7B-Instruct-v0.3-GGUF", 7.2, 7.2, 7.2, False),
32
35
  "qwen3-235b": (
33
36
  "unsloth/Qwen3-235B-A22B-GGUF",
34
37
  235.1,
@@ -256,6 +259,28 @@ def resolve_model(a, target):
256
259
  from . import recipes as recmod
257
260
 
258
261
  rec = recmod.find(key=target)
262
+ # A recipe that records a verified high-precision source CAN drive the whole
263
+ # pipeline - that was the only thing `auto` was missing to build any atlas model
264
+ # from its name. Params supply the spec; the repo supplies the bytes.
265
+ src = recmod.source_repo(rec) if rec else None
266
+ p = recmod.params(rec) if rec else None
267
+ if rec and src and p:
268
+ repo = src
269
+ t, ac, ne = p["total_b"], p["active_b"], p["always_active_b"]
270
+ moe = p.get("moe", ac < t * 0.9)
271
+ print(f"[quantprobe auto] '{target}' resolved from the measured atlas -> {repo}")
272
+ print(
273
+ f" {rec['model']['name']}: {t:.1f}B total, {ac:.1f}B active, "
274
+ f"{p['n_layer']} layers, band {rec['probe']['fragile_band']}"
275
+ )
276
+ return ModelSpec(
277
+ repo=repo,
278
+ total=t,
279
+ active=ac,
280
+ always_active=ne,
281
+ moe=moe,
282
+ n_layer=p["n_layer"],
283
+ )
259
284
  if rec:
260
285
  msg = [
261
286
  f"'{target}' is not an `auto` preset - but quantprobe HAS MEASURED it.",
@@ -269,6 +294,14 @@ def resolve_model(a, target):
269
294
  "",
270
295
  " build it yourself from a high-precision source (f16/bf16/Q8_0):",
271
296
  f" quantprobe quantize --gguf <source.gguf> --recipe {target}",
297
+ ]
298
+ if recmod.params(rec):
299
+ msg += [
300
+ "",
301
+ " or find out what it does on THIS box before downloading anything:",
302
+ f" quantprobe plan --model {target}",
303
+ ]
304
+ msg += [
272
305
  "",
273
306
  " `auto` needs a fetchable source repo, which this recipe does not carry yet.",
274
307
  ]