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

  1. 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.
  2. 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.
  3. Differential Fine-Tuning, Progressive Streaming, mmap SafeTensors & 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 mmap SafeTensors (.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.

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:


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

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using soilore/baguet-compute-on-compressed-memory 1

Collection including soilore/baguet-compute-on-compressed-memory