card: bigsmall 4.0.0 - autopilot + Ferrell Duo
Browse files
README.md
CHANGED
|
@@ -1,15 +1,11 @@
|
|
| 1 |
-
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
colorTo: blue
|
| 6 |
-
sdk: static
|
| 7 |
-
pinned: false
|
| 8 |
-
---
|
| 9 |
|
| 10 |
# BigSmall β Lossless AI Model Compression
|
| 11 |
|
| 12 |
-
**
|
| 13 |
|
| 14 |
```bash
|
| 15 |
pip install bigsmall # CLI + compression/decompression
|
|
@@ -23,9 +19,9 @@ identical to the original** (md5 verified per tensor on decompress).
|
|
| 23 |
- **Not quantization.** Nothing is rounded; the model's behaviour cannot change.
|
| 24 |
- **Not pruning, not approximation.** The same idea as ZIP for text, tuned for the statistics
|
| 25 |
of trained BF16 weights.
|
| 26 |
-
- **Fine-tunes ship as deltas.** A
|
| 27 |
measures 34β50% of the full model. Delta size is pair-dependent (measured range: under 1% for
|
| 28 |
-
the best
|
| 29 |
measured table.
|
| 30 |
|
| 31 |
## Using a pre-compressed model
|
|
@@ -41,32 +37,49 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 41 |
BigSmall decompresses transparently on load. Prefer the CLI? Download the repo and run
|
| 42 |
`bigsmall decompress model-00001-of-00002.bs -o model.safetensors`.
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
## Honest numbers
|
| 45 |
|
| 46 |
The lossless floor for trained BF16 weights is real and measured: across 4,143 weight matrices
|
| 47 |
-
in 8 architectures the per-tensor entropy floor is flat (CV
|
| 48 |
are coder-equivalent to matched random controls β training only writes the exponent. BigSmall
|
| 49 |
codes at that wall. Head-to-head under the same accounting, BigSmall codes below DFloat11's
|
| 50 |
bound on **every layer type of every model measured** (+0.45β0.55 pp model-level, +12β18 pp on
|
| 51 |
-
norm scales) β see `docs/dfloat11.md` in the source repo
|
| 52 |
-
|
| 53 |
-
## New in 3.15.0
|
| 54 |
-
|
| 55 |
-
- Fail-safe delta engine: both codings measured per tensor, a delta can never come out larger
|
| 56 |
-
than standalone.
|
| 57 |
-
- KV cache entry format v3: per-depth sequential dispatcher (end-to-end wins grow with context,
|
| 58 |
-
0.27% β 0.58% at β€2048 tokens; up to +7.7% on early-layer K), plus FP8 entries, 32k+ chunked
|
| 59 |
-
streaming entries, and device-routing `AutoKVCache`. v1/v2 entries decode forever.
|
| 60 |
-
- `bigsmall xray`: checkpoint forensics β per-tensor substream entropies vs a matched-random
|
| 61 |
-
control, lineage/anomaly flags, and a "looks untrained" detector that catches
|
| 62 |
-
silently-randomized checkpoints.
|
| 63 |
-
- Opt-in role-group stream packing for small same-role tensors.
|
| 64 |
|
| 65 |
## Links
|
| 66 |
|
| 67 |
- **PyPI** β https://pypi.org/project/bigsmall/
|
| 68 |
- **Source** β https://github.com/wpferrell/Bigsmall
|
| 69 |
- **Paper / DOI** β https://doi.org/10.5281/zenodo.20279247
|
|
|
|
| 70 |
- **License** β Elastic License 2.0 (free for personal, research, and internal commercial use);
|
| 71 |
model weights in `.bs` format keep the license of the original model.
|
| 72 |
- **Contact** β wpferrell@gmail.com
|
|
|
|
| 1 |
+
> **DRAFT β DO NOT UPLOAD.** Strip this block before publishing. Publishes at V4-REL on Will's
|
| 2 |
+
> word (V4_DOCS_SPEC.md Deliverable 8/9). Every number is traced in V4_DOCS_REPORT.md appendix A
|
| 3 |
+
> (claims ledger). Supersedes _v315/PUBLIC_DRAFTS/hf_card_README.md (the "Coming in 3.15" block
|
| 4 |
+
> there is obsolete β 3.15 shipped 2026-06-11, and this card is the 4.0 story).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# BigSmall β Lossless AI Model Compression
|
| 7 |
|
| 8 |
+
**Lossless AI model compression β ~34% smaller with bit-identical weights; the autopilot profiles your machine, picks the highest fidelity that runs, and streams models bigger than your RAM.**
|
| 9 |
|
| 10 |
```bash
|
| 11 |
pip install bigsmall # CLI + compression/decompression
|
|
|
|
| 19 |
- **Not quantization.** Nothing is rounded; the model's behaviour cannot change.
|
| 20 |
- **Not pruning, not approximation.** The same idea as ZIP for text, tuned for the statistics
|
| 21 |
of trained BF16 weights.
|
| 22 |
+
- **Fine-tunes ship as deltas.** A >=7B official instruct tune stored against its public base
|
| 23 |
measures 34β50% of the full model. Delta size is pair-dependent (measured range: under 1% for
|
| 24 |
+
the best >=7B SFT pairs, up to ~61% for small-model full tunes) β the docs carry the full
|
| 25 |
measured table.
|
| 26 |
|
| 27 |
## Using a pre-compressed model
|
|
|
|
| 37 |
BigSmall decompresses transparently on load. Prefer the CLI? Download the repo and run
|
| 38 |
`bigsmall decompress model-00001-of-00002.bs -o model.safetensors`.
|
| 39 |
|
| 40 |
+
## New in 4.0 β the autopilot release
|
| 41 |
+
|
| 42 |
+
Three commands replace every settings decision:
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
bigsmall profile # once: ~10s hardware probe (GPU read via NVML only, never touched)
|
| 46 |
+
bigsmall plan f.bs # one sentence: what would run, where, how faithfully, how fast
|
| 47 |
+
bigsmall run f.bs # do it
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
The rule is *highest fidelity at usable speed*, and the honesty rules are enforced by the test
|
| 51 |
+
suite: anything below bit-exact is announced before it happens, never silently.
|
| 52 |
+
|
| 53 |
+
- **The Ferrell Duo (`.bsd`)** β one file. Two models: the fast one and the real one. A
|
| 54 |
+
lossy-INT4 fast member (load by reading ~21% of raw bytes) *and* the lossless residual that
|
| 55 |
+
reconstructs the original bits; the bit-exact gate runs before the file may exist. Measured
|
| 56 |
+
cost: ~2.9 pp of raw over lossless-only. To our knowledge (as of 2026-06-12) the only shipped
|
| 57 |
+
LLM-weights format whose top tier is the bit-exact original β adjacent art (MatQuant,
|
| 58 |
+
Any-Precision LLM, audio hybrid formats) credited in the repo's comparison page.
|
| 59 |
+
- **Streaming executor** β run models bigger than your RAM with a bounded, promised, measured
|
| 60 |
+
resident set. Receipt at 7B: Qwen2.5-7B (14.2 GB raw, 65.95% compressed) streamed forward
|
| 61 |
+
**bit-exact** vs the fully-loaded model (identical logits sha256) in ~2.5 GB of hot state.
|
| 62 |
+
- **FP8-native lossless** β a real fp8 release (Qwen3-0.6B-FP8) compressed to **0.829 of its
|
| 63 |
+
fp8 weight bytes**, 507/507 tensors bit-exact.
|
| 64 |
+
- **`bigsmall xray`** β checkpoint forensics with a "looks untrained" trap that catches
|
| 65 |
+
silently-randomized loads; works on bf16 and fp8.
|
| 66 |
+
|
| 67 |
## Honest numbers
|
| 68 |
|
| 69 |
The lossless floor for trained BF16 weights is real and measured: across 4,143 weight matrices
|
| 70 |
+
in 8 architectures the per-tensor entropy floor is flat (CV ~ 0), and trained mantissa/sign bits
|
| 71 |
are coder-equivalent to matched random controls β training only writes the exponent. BigSmall
|
| 72 |
codes at that wall. Head-to-head under the same accounting, BigSmall codes below DFloat11's
|
| 73 |
bound on **every layer type of every model measured** (+0.45β0.55 pp model-level, +12β18 pp on
|
| 74 |
+
norm scales) β see `docs/dfloat11.md` in the source repo; the full landscape (DFloat11, ZipNN,
|
| 75 |
+
ZipServ, Unweight, quantization, and the rest) is one honest page at `docs/comparison.md`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
## Links
|
| 78 |
|
| 79 |
- **PyPI** β https://pypi.org/project/bigsmall/
|
| 80 |
- **Source** β https://github.com/wpferrell/Bigsmall
|
| 81 |
- **Paper / DOI** β https://doi.org/10.5281/zenodo.20279247
|
| 82 |
+
- **Ferrell Duo paper** β https://doi.org/10.5281/zenodo.20673133 (the dual-fidelity format: method, premium history, receipts)
|
| 83 |
- **License** β Elastic License 2.0 (free for personal, research, and internal commercial use);
|
| 84 |
model weights in `.bs` format keep the license of the original model.
|
| 85 |
- **Contact** β wpferrell@gmail.com
|