100% LOSSLESS // BIT-EXACT
100% Lossless, Bit-Exact Algebraic Memory Engine // Zero Quantization Loss // Native Rust SIMD
Execute exact Top-K similarity search directly over compressed embeddings in RAM without decompressing the entire vector store.
| WORKLOAD | RAW INPUT | BAGUET RAM | SAVINGS | PROOF |
|---|---|---|---|---|
| 1,000,000 FP16 Vectors (128D) | 256.00 MB | ~48–56 MB | >78% RAM saved | 100% RECALL@10 |
| FP32 Vector Store (Litepaper) | 100% | 25.0% | 4.00x denser | SHA-256 EXACT |
from baguet_sdk import core, ai engine = core.BaguetEngine() packed, _ = ai.compress_embeddings(embeddings_fp16, engine=engine) sketch = ai.build_embedding_sketch_index(packed, block_size=16, engine=engine) top_k, scores = ai.query_compressed_embeddings_topk(packed, query, k=10, metric="cosine", sketch_index=sketch, engine=engine)
Pack FP16 LLM KV-Cache blocks in RAM or NVMe swap and run online scaled dot-product attention directly over compressed blocks.
from baguet_sdk import core, ai engine = core.BaguetEngine() offloader = ai.BaguetKVCacheOffloader(engine=engine) offloader.put_block(0, k_block_fp16, v_block_fp16) attn_out, _ = offloader.attention_on_offloaded_blocks([0], query_vec_fp32)
Store fine-tuned checkpoints as cryptographically bound differential containers against the base SHA-256, load individual tensors via selective mmap (~1.2 ms), and issue verifiable BGTR-AUDIT-1.0 receipts.
from baguet_sdk import core, ai engine = core.BaguetEngine() delta_pkt, _ = ai.compress_safetensors_delta(finetuned_layers, base_layers, engine=engine) restored = ai.decompress_safetensors_delta(delta_pkt, base_layers, engine=engine) receipt = engine.generate_audit_receipt(delta_pkt)
| CAPABILITY | ZSTD / GZIP / LZMA | BAGUET 1.0 |
|---|---|---|
| Static Cold Storage | Excellent general-purpose cold archiving | Streaming (.bgt / .bgts) + Domain Prior (.bgtpr) |
| Direct RAG Top-K on Compressed RAM | Requires full decompression | Native 100% Recall@K without full unpack |
| KV-Cache Flash-SDPA & Linear | Not supported | Direct execution over packed blocks |
| Differential LoRA + Ed25519 Audit | External tooling required | Native .bgtd + BGTR-AUDIT-1.0 |
Run the official 5-Act benchmark from examples/quickstart.py ↗ or download it directly below. Public decompression is 100% free and perpetual (Baguet EULA v1.0); AI compute kernels include a free 16 MB Community sandbox.
| ACT | REAL-WORLD MOAT TESTED | KEY RESULT |
|---|---|---|
| ACT 1 | SafeTensors .bgtt + Zero-Copy mmap + BaguetCompressedLinear | ~1.2 ms selective load, <1e-4 error |
| ACT 2 | 1,000,000-Vector FP16 RAG Index | >78% RAM saved, 100.0% Recall@10 |
| ACT 3 | 64K-Token Long-Context KV-Cache + Flash-SDPA | >85% RAM saved, SHA-256 bit-exact |
| ACT 4 | Contextual Domain Prior (.bgtpr) | >98% reduction on structured JSONL |
| ACT 5 | Differential LoRA (.bgtd) + Progressive (.bgtp) + BGTR-AUDIT-1.0 | -96.88% (32x) delta, 1-bit tamper blocked |
pip install baguet numpy curl -fsSLO https://raw.githubusercontent.com/soilore/baguet/main/examples/quickstart.py python quickstart.py --real-ai-showcase