quantprobe 1.10.4__tar.gz → 1.10.5__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 (33) hide show
  1. {quantprobe-1.10.4/quantprobe.egg-info → quantprobe-1.10.5}/PKG-INFO +1 -1
  2. {quantprobe-1.10.4 → quantprobe-1.10.5}/pyproject.toml +1 -1
  3. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/__init__.py +1 -1
  4. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/runtime.py +10 -3
  5. {quantprobe-1.10.4 → quantprobe-1.10.5/quantprobe.egg-info}/PKG-INFO +1 -1
  6. {quantprobe-1.10.4 → quantprobe-1.10.5}/LICENSE +0 -0
  7. {quantprobe-1.10.4 → quantprobe-1.10.5}/README.md +0 -0
  8. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/__main__.py +0 -0
  9. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/auto.py +0 -0
  10. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/cli.py +0 -0
  11. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/dashboard.py +0 -0
  12. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/detect.py +0 -0
  13. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/fetch.py +0 -0
  14. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/optimize.py +0 -0
  15. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/plan.py +0 -0
  16. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/probe.py +0 -0
  17. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/recipes/mistral-7b.json +0 -0
  18. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/recipes/qwen2.5-7b.json +0 -0
  19. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/recipes/qwen3-30b.json +0 -0
  20. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/recipes/qwen3.5-35b.json +0 -0
  21. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/recipes.py +0 -0
  22. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/spec.py +0 -0
  23. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe/target.py +0 -0
  24. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe.egg-info/SOURCES.txt +0 -0
  25. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe.egg-info/dependency_links.txt +0 -0
  26. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe.egg-info/entry_points.txt +0 -0
  27. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe.egg-info/requires.txt +0 -0
  28. {quantprobe-1.10.4 → quantprobe-1.10.5}/quantprobe.egg-info/top_level.txt +0 -0
  29. {quantprobe-1.10.4 → quantprobe-1.10.5}/setup.cfg +0 -0
  30. {quantprobe-1.10.4 → quantprobe-1.10.5}/tests/test_engine.py +0 -0
  31. {quantprobe-1.10.4 → quantprobe-1.10.5}/tests/test_evaluator.py +0 -0
  32. {quantprobe-1.10.4 → quantprobe-1.10.5}/tests/test_pipeline.py +0 -0
  33. {quantprobe-1.10.4 → quantprobe-1.10.5}/tests/test_transforms.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantprobe
3
- Version: 1.10.4
3
+ Version: 1.10.5
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.10.4"
7
+ version = "1.10.5"
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.10.4"
11
+ __version__ = "1.10.5"
@@ -29,7 +29,7 @@ def find_llama(explicit, tool):
29
29
  def best_flags(a):
30
30
  """Run the planner, return (best_config, flags_list) for the winning placement."""
31
31
  from . import spec as specmod
32
- specmod.apply(a)
32
+ from_file = specmod.apply(a) # True when the spec came from the GGUF itself
33
33
  if getattr(a, "bits", None) is None:
34
34
  a.bits = 2.5
35
35
  m = dict(planmod.MODELS[a.model]) if getattr(a, "model", None) in planmod.MODELS else {}
@@ -51,9 +51,15 @@ def best_flags(a):
51
51
  rb = a.ram_bw if a.ram_bw is not None else hw.get("rb", 40)
52
52
  db = planmod.agg_bw(a.disk_bw, 0.75) if a.disk_bw is not None else hw.get("db", 0.5)
53
53
  geta = hw.get("geta", 0.45); gl = hw.get("gl", None)
54
+ # File-size calibration corrects a PRESET's assumed size against the real file. It must NOT
55
+ # run when autospec already read the spec from that same file: bits are then derived from
56
+ # the file size, so scaling by (real size / predicted size) corrects the same discrepancy
57
+ # twice. Measured 2026-07-26 on three models: the double correction made bench 8-13% more
58
+ # optimistic than plan on identical input, and plan was the accurate one (predicted 19.6 vs
59
+ # measured 19.88, +1.4%; bench said 22.1, -11%).
54
60
  act_scale = 1.0
55
61
  gguf = getattr(a, "gguf", None)
56
- if gguf and os.path.isfile(gguf):
62
+ if gguf and os.path.isfile(gguf) and not from_file:
57
63
  ab = max(a.bits, 4.5)
58
64
  size_pred = (ne * ab / 8 + (t - ne) * a.bits / 8) * 1.08
59
65
  size_real = os.path.getsize(gguf) / 1e9
@@ -65,7 +71,8 @@ def best_flags(a):
65
71
  kvp = (a.kv_per_pos * 1024 if getattr(a, "kv_per_pos", None)
66
72
  else m.get("kvp", planmod.DEFAULT_KVP))
67
73
  _, _, cfgs = planmod.evaluate(t, ac, ne, moe, a.bits, vc, vb, rc, rb, db, geta, act_scale, gl,
68
- ctx=ctx, kvp=kvp, n_layer=getattr(a, "n_layer", None))
74
+ ctx=ctx, kvp=kvp,
75
+ n_layer=getattr(a, "n_layer", None) or m.get("nl"))
69
76
  # run/bench/dashboard LAUNCH stock llama.cpp, so they may only pick placements stock
70
77
  # llama.cpp can actually execute. The three-tier expert-cache row's "flags" field is a
71
78
  # PROSE description ("+ runtime-managed expert cache"), not argv - exec'ing it hands
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantprobe
3
- Version: 1.10.4
3
+ Version: 1.10.5
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