quantprobe 1.28.0__tar.gz → 1.28.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.
Files changed (38) hide show
  1. {quantprobe-1.28.0 → quantprobe-1.28.1}/PKG-INFO +29 -3
  2. quantprobe-1.28.0/quantprobe.egg-info/PKG-INFO → quantprobe-1.28.1/README.md +334 -326
  3. {quantprobe-1.28.0 → quantprobe-1.28.1}/pyproject.toml +1 -1
  4. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/__init__.py +1 -1
  5. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/calibrate.py +33 -6
  6. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/cli.py +12 -0
  7. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/detect.py +143 -27
  8. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/ollama.py +337 -314
  9. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/plan.py +90 -15
  10. quantprobe-1.28.1/quantprobe/report.py +924 -0
  11. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/spec.py +2 -0
  12. quantprobe-1.28.0/README.md → quantprobe-1.28.1/quantprobe.egg-info/PKG-INFO +352 -308
  13. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe.egg-info/SOURCES.txt +1 -0
  14. {quantprobe-1.28.0 → quantprobe-1.28.1}/LICENSE +0 -0
  15. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/__main__.py +0 -0
  16. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/auto.py +0 -0
  17. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/branding.py +0 -0
  18. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/dashboard.py +0 -0
  19. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/fetch.py +0 -0
  20. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/optimize.py +0 -0
  21. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/probe.py +0 -0
  22. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/recipes/mistral-7b.json +0 -0
  23. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/recipes/qwen2.5-7b.json +0 -0
  24. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/recipes/qwen3-30b.json +0 -0
  25. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/recipes/qwen3.5-35b.json +0 -0
  26. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/recipes/qwen3.8-27b.json +0 -0
  27. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/recipes.py +0 -0
  28. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/runtime.py +0 -0
  29. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe/target.py +0 -0
  30. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe.egg-info/dependency_links.txt +0 -0
  31. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe.egg-info/entry_points.txt +0 -0
  32. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe.egg-info/requires.txt +0 -0
  33. {quantprobe-1.28.0 → quantprobe-1.28.1}/quantprobe.egg-info/top_level.txt +0 -0
  34. {quantprobe-1.28.0 → quantprobe-1.28.1}/setup.cfg +0 -0
  35. {quantprobe-1.28.0 → quantprobe-1.28.1}/tests/test_engine.py +0 -0
  36. {quantprobe-1.28.0 → quantprobe-1.28.1}/tests/test_evaluator.py +0 -0
  37. {quantprobe-1.28.0 → quantprobe-1.28.1}/tests/test_pipeline.py +0 -0
  38. {quantprobe-1.28.0 → quantprobe-1.28.1}/tests/test_transforms.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantprobe
3
- Version: 1.28.0
3
+ Version: 1.28.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
@@ -66,11 +66,12 @@ quantprobe plan - Qwen3-30B-A3B @ 2.5-bit on THIS machine [auto-detected]
66
66
  13.2 tok/s pure CPU (GPU idle) [RAM boundary - expect bimodal speed]
67
67
 
68
68
  binding constraint: BANDWIDTH-BOUND (system RAM bandwidth) - 51% of every decode token is spent there.
69
+ validation derived from the law, not confirmed by variance attribution (prereg #95 - …)
69
70
 
70
71
  run it: llama-server -m model.gguf -ngl 99 -ot "blk\.(16|17|…|47)\.ffn_.*_exps\.=CPU" --no-mmap -b 1024 -ub 1024 --threads 4
71
72
  ```
72
73
 
73
- The first line is what a fresh install prints. The `calibration applied` and `anchored:` lines appear after you run `quantprobe calibrate` once — measured constants and your own anchor runs, not spec sheets. The **binding constraint** line is the part most tools never tell you: *3 tok/s, disk-bound* means buy RAM; *3 tok/s, bandwidth-bound* means don't bother.
74
+ The first line is what a fresh install prints. The `calibration applied` and `anchored:` lines appear after you run `quantprobe calibrate` once — measured constants and your own anchor runs, not spec sheets. The **binding constraint** line is the part most tools never tell you: *3 tok/s, disk-bound* means buy RAM; *3 tok/s, bandwidth-bound* means don't bother. And it now carries its own scope label, because we tested it the hard way: [prereg #95](preregistrations/2026-08-07-doe-flag-screening.md)'s variance-attribution arm did **not** confirm the flag-level mapping (the placement lever carried the variance, decided 1000/1000) — so every classification prints *"derived from the law, not confirmed by variance attribution"* until a re-derivation earns the confirmation. The time decomposition itself is untouched arithmetic; the label prices exactly what isn't measured.
74
75
 
75
76
  **Downloads nothing. Takes a second.** No hardware flags needed — it reads your machine. `--model` and `--bits` just say what you're considering; point it at a file you already have with `--gguf model.gguf` instead.
76
77
 
@@ -265,6 +266,7 @@ mechanisms we tested and the one that survived: [CHANGELOG](CHANGELOG.md).
265
266
  ```bash
266
267
  quantprobe auto # interactive: detects, asks, decides, runs
267
268
  quantprobe plan --gguf model.gguf # predicted tok/s + placement + launch command
269
+ quantprobe report --gguf model.gguf # one page to forward: verdict, what binds, quality - every number labeled
268
270
  quantprobe hw # what the law sees on THIS machine
269
271
  quantprobe calibrate # measure, don't assume: RAM stream, disk, GPU clocks; optional anchor runs
270
272
  quantprobe run --gguf model.gguf # plan the placement, then launch chat
@@ -285,10 +287,33 @@ quantprobe dashboard --gguf 2bit.gguf # the law live, every r
285
287
  ```
286
288
  </details>
287
289
 
288
- `hw`/`plan`/`target`/`optimize` need nothing but Python. The weight-touching commands drive stock llama.cpp — point at it with `--llama-dir`, `QUANTPROBE_LLAMA_DIR`, or `PATH`, and preview anything with `--dry`. 17 machine presets ship in (`--machine`); multi-GPU and RAID aggregate with comma lists (`--vram 24,24`).
290
+ `hw`/`plan`/`report`/`target`/`optimize` need nothing but Python. The weight-touching commands drive stock llama.cpp — point at it with `--llama-dir`, `QUANTPROBE_LLAMA_DIR`, or `PATH`, and preview anything with `--dry`. 17 machine presets ship in (`--machine`); multi-GPU and RAID aggregate with comma lists (`--vram 24,24`).
289
291
 
290
292
  > **Windows: `'quantprobe' is not recognized`?** pip put it in a folder that isn't on your PATH. Use `python -m quantprobe ...` — identical, always works.
291
293
 
294
+ ### Reports
295
+
296
+ `plan` answers you at the terminal. `quantprobe report` writes that answer as **one Markdown file meant to be forwarded** — to the IT manager sizing a hardware buy, the consultant's client, the ISV writing hardware requirements. The reader it is built for will never run the tool, so the file carries what the terminal session would have told them: every number labeled **[measured]** / **[derived]** / **[est]** / **UNVALIDATED** on the line or block it qualifies — never only in a footnote — the verdict speeds spelled **PREDICTED** or **[measured]** in so many words, and a mandatory scope block, because the person who could explain the caveats is not in the room. It is a renderer over the same engine `plan` runs, so the two cannot disagree about the same file.
297
+
298
+ ```bash
299
+ quantprobe report --gguf Qwen3.8-27B-Q4_K_M.gguf --machine 2016-xmp --bench-log qwen38_bench.log
300
+ # reads the GGUF header (~10 s on this 17 GB file), downloads nothing, launches nothing -
301
+ # prints the path of the file it wrote
302
+ ```
303
+
304
+ `--bench-log` quotes a llama-bench run you already made next to the prediction. The file opens with the verdict:
305
+
306
+ ```
307
+ ## Verdict
308
+
309
+ PREDICTED decode speed, one user: 1.8 tok/s (band 1.4 - 2.3) [derived]
310
+ MEASURED on this machine: 2.04 +/- 0.02 tok/s (llama-bench) [measured]
311
+ The measurement is 1.11x the prediction - inside the +/-25% band, on the side
312
+ our misses err (low).
313
+ ```
314
+
315
+ Then the placements, the binding constraint with its per-lever ceilings ("faster storage / NVMe: NO effect"), the exact llama.cpp command, and what the quant costs in quality — including UNVALIDATED said in exactly that word where no measurement covers the model's size. Full contract and a complete example report: [docs/DESIGN_REPORT_CMD.md](docs/DESIGN_REPORT_CMD.md).
316
+
292
317
  ## Contributing
293
318
 
294
319
  `quantprobe bench --contribute` prints exactly what would be shared plus a pre-filled issue link — **you review and submit; nothing is ever sent automatically.** Points that land *outside* the predicted bands are the most valuable ones, and there are [open predictions](preregistrations/) anyone can settle.
@@ -310,6 +335,7 @@ quantprobe dashboard --gguf 2bit.gguf # the law live, every r
310
335
  | [CONTRIBUTING.md](CONTRIBUTING.md) | the method: stake, measure, score *and wire*, audit |
311
336
  | [docs/DEEP-DIVE.md](docs/DEEP-DIVE.md) | what's new vs. built-on, parity tables, and the repository map |
312
337
  | [docs/QUANT_QUALITY.md](docs/QUANT_QUALITY.md) | **does the recipe preserve capability, not just perplexity?** — naive vs recipe vs original on MATH-500/GSM8K/IFEval; the size-dependence law; fragility survives hybrid linear attention |
338
+ | [docs/DESIGN_REPORT_CMD.md](docs/DESIGN_REPORT_CMD.md) | **the `report` file's contract** — the four labels every number must carry, the two ways a forwarded page misleads a decision-maker and the exact wording that prevents them, a complete worked report |
313
339
  | [papers/arxiv/](papers/arxiv/) | the paper (submission-ready LaTeX) |
314
340
  | [CHANGELOG.md](CHANGELOG.md) | every release, including corrections to numbers published here |
315
341