BAGUET 1.0 β Compute on Compressed Memory (100% Lossless, Bit-Exact)
BAGUET 1.0 (baguet>=1.0.13) is a deterministic, 100% lossless, bit-exact binary memory and AI checkpoint engine that lets you store, index, search, stream, and compute directly on compressed tensors with zero quantization drift. Every restoration is cryptographically verifiable down to the last bit (max_abs_error == 0.0).
AI Benchmark Summary (100% Lossless)
| Workload | Compression / Efficiency | Fidelity / Accuracy |
|---|---|---|
| RAG Vector Search | 4.00x (FP32) Β· >78% RAM saved |
100% Recall@10 (exact) |
| Long-Context KV-Cache & Flash-SDPA | 2.71x+ Β· >85% RAM saved |
< 1e-4 Flash-SDPA error (bit-exact block restore) |
SafeTensors Selective mmap (.bgtt) |
~1.2 ms per tensor |
Bit-exact (0.0 drift) |
Fine-Tuning LoRA Deltas (.bgtd) |
-96.88% (>95%β99% reduction) |
Bit-exact Β· SHA-256 base-bound |
| Domain Prior Checkpoints | -98.66% (74.5x ratio) |
Bit-exact (0.0 drift) |
| Tabular & Feature Datasets | Up to 55.89x |
Bit-exact (0.0 drift) |
3 Core AI Moats
- Sub-Linear RAG Vector Search (Zero-Unpack): Run exact (
100% Recall@10) top-k similarity search directly over compressed FP16/FP32 embedding archives without materializing the full uncompressed matrix in RAM. - Long-Context KV-Cache Offloader & Online Flash-SDPA: Offload transformer key/value cache blocks into compressed memory and compute online softmax attention over long context windows without exhausting system or GPU RAM.
- Differential Fine-Tuning, Progressive Streaming,
mmapSafeTensors & Forensic Audit:- Differential Fine-Tuning (
.bgtd): Store only exact weight deltas cryptographically bound to the base checkpoint's SHA-256. - Progressive Bit-Plane Streaming (
.bgtp): Stream coarse-to-exact precision stages on demand. - Selective
mmapSafeTensors (.bgtt) &BaguetCompressedLinear: Load individual tensor slices in milliseconds or execute compressed PyTorch linear layers directly from compressed storage. - Ed25519 Forensic Audit Receipts (
BGTR-AUDIT-1.0): Emit tamper-evident provenance receipts for every container.
- Differential Fine-Tuning (
60-Second Quickstart (Install First, Run All 5 Acts)
Install the Python SDK and run the official 5-Act real-world AI benchmark locally:
pip install baguet numpy
curl -fsSLO https://huggingface.co/soilore/baguet-compute-on-compressed-memory/resolve/main/quickstart.py
python quickstart.py --real-ai-showcase
This executes all five real-world acts end-to-end (SafeTensors selective mmap, 1M-scale RAG Zero-Unpack search, Long-Context KV-Cache Flash-SDPA, Domain Prior compression, and Differential LoRA Fine-Tuning + Ed25519 Audit Receipt).
Desktop App β Baguet Studio
Prefer a native desktop GUI with drag-and-drop compression, live telemetry, and 1-click verification? Download the signed Baguet Studio installers (macOS / Windows / Linux) from the canonical release channels so you always get the latest verified build:
- Official Website & Studio: baguet.soilore.com
- Latest Signed Releases: github.com/soilore/baguet/releases/latest
Repository Files Guide
| File | Description |
|---|---|
quickstart.py |
Standalone 5-Act real-world AI benchmark (--real-ai-showcase or --export-notebook). |
reproduce.py |
Minimal verification script for inspecting the pre-generated .bgtt, .bgtd, and .receipt.json artifacts in this repo. |
transformer_layers_indexed.bgtt |
Indexed SafeTensors catalog supporting selective per-tensor mmap loading. |
lora_finetune_delta.bgtd |
Differential fine-tuning container cryptographically bound to the base checkpoint SHA-256. |
demo_audit_receipt.baguet.receipt.json |
Forensic integrity receipt (BGTR-AUDIT-1.0) certifying the differential container. |
Free Perpetual Verification (10 Lines)
Public decompression and verification are 100% free and perpetual under Baguet EULA v1.0:
import baguet_sdk as baguet
from baguet_sdk import ai
engine = baguet.BaguetEngine()
q_weight = ai.decompress_safetensors_tensor_mmap("transformer_layers_indexed.bgtt", "attn.q_proj.weight", engine=engine)
k_weight = ai.decompress_safetensors_tensor_mmap("transformer_layers_indexed.bgtt", "attn.k_proj.weight", engine=engine)
restored_ft = ai.decompress_safetensors_delta(
open("lora_finetune_delta.bgtd", "rb").read(),
{"attn.q_proj.weight": q_weight, "attn.k_proj.weight": k_weight},
engine=engine,
)
print("Bit-exact layers restored:", list(restored_ft.keys()))
Licensing & Official Links
- Free & Perpetual Decompression: Reading, verifying, and decompressing
.bgt,.bgtt,.bgtd, and.bgtpfiles is free forever with no license key required. - Commercial & Pro Encoding: View current plans and licensing details on the official site.
- Interactive Live Showcase: huggingface.co/spaces/soilore/baguet-ai-showcase
- Official Website & Plans: baguet.soilore.com
- Technical Litepaper: baguet.soilore.com/legal/litepaper
- GitHub SDK & Releases: github.com/soilore/baguet