Repository navigation
Releases
v0.2.0a3
What's Changed
- Add bootstrap and cohort diagnostics by @gedouluhui in #2
Full Changelog: v0.2.0a2...v0.2.0a3
roundoff-lab 0.2.0a2
Lossless quantization diagnostics and reproducible Torch integration. Local verification is documented in the repository; no external real-world certification is claimed.
v0.2.0a1 — discovery-frozen candidate validation
RoundoffLab 0.2.0a1 — discovery-frozen candidate validation
An alpha upgrade for comparing already-dequantized quantization candidates without letting validation data pick the winner:
roundofflab studycombines a weight matrix with discovery and validation inputs, plus a manifest of external candidate.npyfiles.- The candidate is selected only on discovery propagated MSE (or explicitly chosen, or selected by observed output MSE). Validation views never change the selection.
- Reports keep selection fixed while switching cohorts, show propagated error and zero-masking conditions, and identify worst-sample row/channel coordinates without embedding raw activations.
- External files are called user-declared candidates, not verified GPTQ/AWQ models. Unknown scale counts, clipping counts and bit widths remain unknown.
- Schema-1 analyses and the existing
analyze/democommands remain supported; validation studies use schema version 2.
Verification
- 68 tests pass; one test skips where the optional dependency is unavailable.
- 9 in-suite mutations are caught by named assertions on disposable copies.
- A fresh venv installed the built wheel, ran the installed test suite, the demo and the version command outside the source checkout.
- The hosted example remains the v0.1 demo; this pre-release is the 0.2 alpha.
Limits
Different fingerprints do not prove independent sampling, and repeatedly tuning after viewing validation reuses that data. Identical numeric cohorts receive a reuse warning, but the absence of a warning does not certify no overlap. No model-quality, deployment-performance or external-adoption result is claimed.
Check downloaded artifacts against SHA256SUMS-0.2.0a1.
v0.1.0 — Offline quantization diagnostics
RoundoffLab v0.1.0
Compare weight reconstruction error with actual linear-layer output error, entirely offline.
- CPU NumPy diagnostics for symmetric 2–8 bit weight-only fake quantization: per tensor, per output channel, or contiguous groups, with explicit optional percentile clipping.
- A self-contained interactive HTML report: two error rankings, per-channel metrics, aggregated heatmap, keyboard navigation and JSON export.
- Two reproducible synthetic examples using the same weights and different input conditions; bring your own float32/64
.npymatrices without model conversion or an API key. - Read-only, pickle-disabled input; guarded output replacement, rollback and retained recovery backups on failure.
Try the demo: https://gedouluhui.github.io/roundoff-lab/
Install: download the wheel below and run python -m pip install roundoff_lab-0.1.0-py3-none-any.whl, then python -m roundofflab demo --out demo. Python 3.10+ and NumPy are required. Node.js is not a runtime dependency.
The source archive includes the numerical contract, tests and the synthetic-site generator. SHA256SUMS verifies the exact release files; it is a checksum list, not a cryptographic signature.
Verification includes independent scalar references, real CLI round trips, six isolated-source mutation checks, installed-wheel tests, and the Linux/Windows CI matrix (including NumPy 1.24). Initial CI exposed a NumPy-version difference in empty-file errors; this release includes the compatibility fix rather than removing the old-version test.
Scope: a single bias-free linear contribution, computed in float64. Not a deployment quantizer, GPU benchmark, whole-model accuracy evaluator, novel quantization algorithm or a claim of external-user adoption. Results on the supplied inputs do not establish behavior on unseen data. See README and docs/DESIGN.md for limits and recovery semantics.