BAGUET 1.0 — Technical Installation, Usage, and Operations Guide
100% lossless compression and algebraic memory ecosystem engineered to execute vector search, attention, and inference directly on compressed AI data without prior decompression — eliminating up to 75% of RAM and storage overhead with exact mathematical preservation of the original bits.
PROTOTYPE & ENGINE
BAGUET Core C-ABI 1.0
NATIVE ACCELERATORS
AVX2 / NEON / CUDA / MPS
CRYPTO CERTIFICATION
Ed25519 & AES-256-SIV
LICENSING
Baguet EULA v1.0
[TECHNICAL GUIDE]
Scope: This official production guide documents cross-platform installation (Pip, Conda, and desktop), Python SDK integration, CLI commands, BAGUET Studio operation, offline governance, and troubleshooting for BAGUET 1.0.
[AUDIENCE CURATION]
Who This Guide Is For
SEC.CAT-00.1
[01]
Product managers and teams: understand the problems BAGUET solves, the unconditional zero lock-in guarantee, and how to evaluate real infrastructure savings.
[02]
Studio users: operate each of the 5 visual interface halls with ease, learn productivity shortcuts, and safely run audits, compressions, and verifications.
[03]
Software and AI engineers: integrate the core, ai, media, license, and studio namespaces into your data pipelines and tensor models.
[04]
Infrastructure operators and SecOps: install verified packages, configure offline cryptographic licenses, and diagnose incidents without compromising credentials.
[MATHEMATICAL SCOPE & LIMITS]
What BAGUET Does — and Does Not Promise
SEC.CAT-00.2
BAGUET provides:
[+]
universal byte compression and restoration with a mathematical guarantee of bit-exact integrity via SHA-256;
[+]
direct execution on compressed data (Compute-on-Compressed-Data), including LLM KV cache, RAG embeddings, weight matrices, and differential checkpoints;
[+]
dedicated lossless paths for structured audio, image, and video formats;
[+]
indexed containers for O(1) record access and a multi-block parallel streaming engine;
[+]
offline cryptographic license governance (Ed25519), forensic receipts, and local ROI auditing tools;
[+]
a local interactive visual interface called BAGUET Studio.
FORMAL DEFINITIONSTRICT LOSSLESS & INFORMATION THEORY LIMITS
The lossless designation applies strictly to operations that preserve the full integrity of the original data and whose restoration reproduces the exact same bit sequence. Certain progressive modes expose lower-precision base layers for fast startup or preview; these layers are partial, and exact refinement remains accessible on demand. As with any information-theoretic system, high-entropy or already-compressed data may incur a small header overhead.
BAGUET does not replace a language or vision model, nor does it perform full neural network training on its own. It serves as a high-efficiency substrate for storing and computing over tensor and binary representations.
For data science workstations and enterprise clusters managed via Conda:
CONSOLE // CONDA CHANNELbash
# Create dedicated environment
conda create -n baguet-env python=3.10 -y
conda activate baguet-env
# Install from the official Soilore Conda channel
conda install -c soilore baguet
(Distribution note: the packaging recipe automatically provisions binary dependencies numpy >= 1.24 and cryptography >= 41, registering the package under the canonical identifier baguet with executable aliases baguet and baguet-studio.)
1.3 Desktop Installers and Operating System Integration
For users who prefer to use BAGUET Studio integrated into their operating system without managing virtual environments from the terminal:
[OSX]
macOS Universal:.dmg package compatible with Apple Silicon (M1/M2/M3/M4) and Intel, including a Finder Quick Action.
[WIN]
Windows x64: executable installer with Windows Explorer context menu integration.
The engine loads the Rust-compiled backend by default, enabling SIMD acceleration via AVX2/FMA on x86_64 processors or NEON on ARM64 architectures. The self-test suite runs a deterministic battery validating all cryptographic and tensor subsystems in milliseconds.
[SDK INITIALIZATION]
2. First Steps with Python
SEC.CAT-02
The public baguet_sdk facade exposes five structured namespaces: core, ai, media, license, and studio. The example below demonstrates compression and restoration with integrity verification:
PYTHON // FUNDAMENTAL EXAMPLEpython
from baguet_sdk import core
engine = core.BaguetEngine()
original = b"Sample data for first use of BAGUET. " * 2
packet, useful_bits = engine.compress_bytes(original)
restored = engine.decompress_bytes(packet)
assert restored == original
print(f"Input: {len(original)} B; packet: {len(packet)} B; useful bits: {useful_bits}")
compress_bytes returns a tuple: the compressed binary packet and the number of encoded useful bits. decompress_bytes returns the exact restored bytes. Creating a single BaguetEngine instance is recommended to share settings, licenses, and limits across your application.
The namespace also supports direct functional calls by passing engine=engine:
DIRECT EXECUTION PIPELINE // COMPUTE-ON-COMPRESSED-DATA[ZERO-UNPACK EXECUTION]
INPUT TENSOR (FP16 / BF16 / FP32): [ Weight Matrix / KV-Cache / Embedding Vectors ]
|
v
+-------------------------------------------------------------------------------------------------+
| BAGUET ALGEBRAIC CONTAINER (.BGT / .BGTT / .BGTP): |
| • Independent-Block Structural Indexing • Built-in SHA-256 Cryptographic Verification |
| • 100% Bit-Exact Full Preservation • Zero-Copy Direct Access via Memory Mapping |
+-------------------------------------------------------------------------------------------------+
|
v
Top-K Search, Flash-SDPA Attention, and Linear Projection kernels (CPU / CUDA / Apple MPS) operate
directly on compressed blocks without requiring full decompression!
4.3 AI: Embeddings and Sub-Linear Top-K Search
To ensure alignment with the SIMD vector registers of the search engine, embedding matrices for search and sketch indexing must be created in np.float16 or bfloat16:
PYTHON // SUB-LINEAR VECTOR TOP-Kpython
import numpy as np
from baguet_sdk import core, ai
engine = core.BaguetEngine()
# FP16 Embeddings (128 vectors of 32 dimensions)
embeddings = np.random.default_rng(7).normal(size=(128, 32)).astype(np.float16)
query = np.random.default_rng(8).normal(size=(32,)).astype(np.float32)
packed, _ = ai.compress_embeddings(embeddings, engine=engine)
restored = ai.decompress_embeddings(packed, engine=engine)
assert np.array_equal(restored, embeddings)
# 1. Direct top-k vector search over compressed data
indices, scores = ai.search_compressed_embeddings_topk(
packed, query, k=5, metric="dot", engine=engine
)
# 2. Sketch index construction and direct sub-linear search
sketch = ai.build_embedding_sketch_index(packed, block_size=16, engine=engine)
pruned_indices, pruned_scores = ai.query_compressed_embeddings_topk(
packed, query, k=5, metric="dot", sketch_index=sketch, engine=engine
)
With PyTorch (when the [torch] extra is installed):
PYTHON // PYTORCH LINEAR MODULEpython
import torch
from baguet_sdk import ai, core
engine = core.BaguetEngine()
torch_linear = torch.nn.Linear(3, 4).eval()
# Native execution support on accelerators (CUDA and Apple Silicon MPS)
layer = ai.BaguetCompressedLinear.from_torch(torch_linear, engine=engine)
# When processing tensors on an accelerated device, executes directly with GPU cache
y = layer(torch.ones((1, 3), dtype=torch.float32))
4.6 AI: SafeTensors, Delta, and Progressive Tensors
from baguet_sdk import core, license, studio
engine = core.BaguetEngine()
raw = b"audit data"
packet, _ = engine.compress_bytes(raw)
restored = engine.decompress_bytes(packet)
# Issuance and verification of forensic receipt
receipt = license.BaguetCryptographicReceipt.create(raw, packet, restored)
assert license.BaguetCryptographicReceipt.verify_receipt(receipt)
4.12 Forensic ROI Audit
PYTHON // FORENSIC ROI AUDITpython
from pathlib import Path
from baguet_sdk import core, studio
engine = core.BaguetEngine()
# Prepare local sample directory for audit
data_dir = Path("./data")
data_dir.mkdir(exist_ok=True)
(data_dir / "sample.log").write_text("Telemetry record " * 100, encoding="utf-8")
report = studio.audit_roi(
engine,
data_dir,
scale_projection_tb=10.0,
cloud_storage_cost_per_gb_month=0.023,
ram_vram_cost_per_gb_month=6.50,
)
print(f"Files: {report['files_scanned']} | Reduction: {report['baguet_savings_pct']:.1f}%")
[TERMINAL UTILITY]
5. Command-Line Interface (CLI)
SEC.CAT-05
Run baguet --help or baguet <subcommand> --help (for example, baguet compress --help) to inspect all available options.
Fundamental File Operations
CLI // FUNDAMENTAL OPERATIONSbash
# Compress file to .bgt
baguet compress input.bin output.bgt
# Decompress with SHA-256 hash verification
baguet decompress output.bgt restored.bin
# Inspect O(1) header of any Baguet file
baguet info output.bgt
Fast Mode and Forensic Receipt
CLI // FAST PIPELINE & CERTIFICATESbash
# Fast mode for high-throughput pipelines
baguet compress input.bin output.bgt --fast-mode
# Compress and issue a signed forensic receipt (.baguet.receipt.json)
baguet compress input.bin output.bgt --receipt
# Verify authenticity and round-trip integrity of a receipt
baguet verify-receipt output.bgt.baguet.receipt.json --input-file input.bin --packet-file output.bgt
Reversible Multimedia Transcoding (BGTU6)
The transcoder analyzes the internal structure of pre-compressed containers and images (non-interlaced 8-bit RGB PNG, PCM16 WAV audio, NPY arrays, and .gz / .zlib files) and reorganizes streams into .bgtu containers with bit-exact restoration:
# Train contextual prior on sample files
baguet train-prior domain.bgtpr sample1.txt sample2.txt
# Insert and extract from a Slab vault (.bgtv) in O(1) (use --encrypt-vault to encrypt the entire vault in BGTV5\x03 without inflating small files)
baguet slab-put vault.bgtv "document/1" input.txt
baguet slab-put secure-vault.bgtv "document/1" input.txt --encrypt-vault --key "$BAGUET_KEY"
baguet slab-get vault.bgtv "document/1" restored.txt
# Parallel streaming of large files with multi-core workers (up to 2 workers on Community; up to 16/64 on Pro/Growth)
baguet stream-compress large-file.bin large-file.bgts --chunk-size 4194304 --workers 2
baguet stream-decompress large-file.bgts restored.bin --workers 2
ROI Audit and License Activation
CLI // AUDIT & LICENSESbash
# Deterministic reduction audit and savings projection
baguet roi-audit ./dataset --scale-tb 10.0 --json
# Check active license status
baguet license status
# Activate offline BGTL1 license (persists to ~/.baguet/license.key)
baguet license activate "$BAGUET_LICENSE_TOKEN"
In addition to compression and licensing operations, the CLI provides fast utilities to validate your installation, verify offline updates, and invoke Studio actions:
CLI // VERIFICATION & MAINTENANCEbash
# Run deterministic self-test battery for installation and engine
baguet self-test
# Verify signed offline update package or manifest (.bgtupd / .json)
baguet verify-update package.bgtupd
# Direct 1-click action on files or folders (automatic compress/decompress)
baguet desktop-action ./my_file.csv --mode auto
[LOCAL VISUAL INTERFACE]
6. Complete BAGUET Studio Tutorial
SEC.CAT-06
BAGUET Studio is the ecosystem's native visual interface, operating as a secure local web console over loopback (127.0.0.1). It removes intermediaries and lets you control every engine capability directly.
+---------------------+---------------------+---------------------+---------------------+---------------------+
| HALL 01: ROI & AUDIT| HALL 02: COMPRESSOR | HALL 03: SLAB/STREAM| HALL 04: AI KERNELS | HALL 05: LICENSES |
| Financial Projection| Drag & Drop + Folder| O(1) Slab Vault | Sub-linear RAG Top-K| BGTL1 Passport |
| 1:1 Memory Rulers | AES-256-SIV Crypto | Parallel Streaming | Flash-SDPA Attention| Check / Renew Cred. |
| JSON ROI Report | Receipt Verifier | 1-Clk OS Integration| BGTD6 Checkpoints | Subscription Check. |
+---------------------+---------------------+---------------------+---------------------+---------------------+
| | | | |
v v v v v
[Keyboard Key 1] [Keyboard Key 2] [Keyboard Key 3] [Keyboard Key 4] [Keyboard Key 5]
[TOP HEADER] -> Tier Badge (clicks to Hall 05) | Alerts | [SETTINGS / TOOLS] | 7 Languages | [⌘K]
6.1 How to Launch Studio
In your terminal, run:
CONSOLE // START STUDIObash
baguet studio
This command starts the local service on the default port 8765 and automatically opens your browser at:
http://127.0.0.1:8765/
Startup Options:
baguet studio --host 127.0.0.1: specifies the local listening IP address (secure default 127.0.0.1).
baguet studio --port 8765: sets a custom TCP port if 8765 is already occupied by another service.
baguet studio --no-browser: runs the service without automatically launching a browser window (ideal for remote servers, Docker containers, or SSH tunnel access).
baguet studio --once: serves a single usage session and automatically shuts down the local server process.
OPERATIONAL NOTICESECURE EXECUTION VIA LOCAL SERVER (LOOPBACK)
Important: opening the HTML file directly via the file:// protocol in a browser prevents access to the local engine and system files. To compress real data, issue signed certificates, and manage persistent licenses in ~/.baguet, always launch through the Baguet.app desktop application or the baguet studio command.
6.2 Global Navigation, Languages, and Keyboard Shortcuts
Quick Keyboard Shortcuts: Press number keys 1, 2, 3, 4, or 5 to jump instantaneously between Halls.
Header Plan Indicator: In the top-left corner, displays the active plan (clickable to open Hall 05 directly).
SETTINGS / TOOLS Button: In the top-right corner, opens the centralized panel for tools, self-test, subscription, updates, and the danger zone (session shutdown and complete uninstallation).
Command Palette ([ ⌘K ] or Ctrl+K): Opens localized quick search in the active language to navigate between Halls, trigger self-test, or inspect recent receipts.
Language Selector: Switch instantaneously across 7 full languages: EN, PT, ES, DE, FR, ZH, and JA. The preference is saved in ~/.baguet/preferences.json.
Instrumentation Footer: Displays the vector accelerator status (AVX2/FMA or NEON), summary of the last operation, latency in microseconds, and access to the session audit history ([ SESSION AUDIT LOG ]).
HALL 01 — ROI & Audit (01 / ROI & AUDIT)
[FINANCIAL AUDIT]
Objective: Audit real files or folders and calculate cloud storage and RAM/VRAM cost savings.
1
Select the path to a local file or directory in the native picker (e.g., ~/datasets/logs).
2
Adjust the Scale Projection using the quick selectors: 1 TB, 10 TB (default), 100 TB, or 1 PB.
3
Adjust your infrastructure unit costs:
Cloud Storage ($ / GB / Month): default 0.023.
GPU RAM/VRAM ($ / GB / Month): default 3.40.
4
Click RE-RUN FORENSIC AUDIT.
5
The panel displays the actual physical reduction ratio, the 1:1 comparative ruler, the projected annual financial savings, and a detailed breakdown by modality.
6
Click ISSUE CRYPTOGRAPHIC AUDIT CERTIFICATE to inspect and download the signed certificate exclusive to the Hall 01 audit, or click EXPORT EXECUTIVE REPORT to export the full executive report in JSON (with human-readable UTC timestamps).
HALL 02 — Compressor & Transcoder (02 / COMPRESSOR)
[LOSSLESS ENGINE & AUDIT]
Objective: Compress files or folders, restore contents with full mathematical precision, transcode formats, and verify forensic certificates.
1
Load Files or Folders: Drag and drop onto the central Drag & Drop zone or use the + ADD FILES and + ADD FOLDER buttons.
2
Choose the Operation:
Compress File: compresses individual files or entire directories, generating a .bgt / .bgtd container.
Restore Original: decompresses a .bgt* file while validating integrity via SHA-256 and displaying the exact restoration percentage.
Authenticated Encryption (AES-256-SIV // Universal Passphrase): optional authenticated cryptographic protection (creation available on Growth/Enterprise plans). When enabled and executed, Studio opens a secure modal requesting a passphrase (minimum 12 characters) defined by you — never tied to your BGTL1 license. The same passphrase works identically in Studio, the CLI (--key), and the Python SDK, survives plan renewals or cancellations, and can be shared with third parties. Warning: store your passphrase safely, as it is unrecoverable. Decompressing/opening any encrypted file works freely on every plan, including free Community (simply supply the passphrase set during compression).
Issue Bit-Exact Delivery Certificate: generates an individualized certificate for the Hall 02 operation. On decompression, the modal includes the Round-Trip Integrity verification stamp and properly ordered SHA-256 hashes (compressed -> restored); on compression, it records the packet generation summary and SHA-256.
Real-Time Fast Mode: prioritizes maximum throughput for intensive pipelines.
Optional Domain Dictionary (.bgtpr): lets you apply a dictionary trained in Hall 04 to compress repetitive files even further (e.g., JSON logs, code, telemetry) and displays a comparison across original, standard, and .bgtpr sizes. When selecting a .bgtpr for compression, a confirmation modal reminds you of this critical point: keep a backup of this .bgtpr file, as it is indispensable to decompress the file later (decompression works on any plan, including Community, CLI, and SDK, provided the same .bgtpr is present).
4
Click EXECUTE COMPRESSION ENGINE [ ⏎ ].
5
Once complete, use DOWNLOAD RESULT to download the generated file and VIEW RECEIPT to view/copy/download the JSON certificate for this execution (isolated from other Halls and verifications).
6
Forensic Certificate Verifier (CRYPTOGRAPHIC AUDIT CERTIFICATE VERIFIER): In the dedicated section directly below in Hall 02, select any .json certificate issued by any plan and click OPEN / VERIFY CERTIFICATE to open the forensic modal with an authenticity banner (Ed25519 / HMAC signature and SHA-256 integrity), without overwriting the receipt of your last compression.
HALL 03 — Slab & Stream (03 / SLAB & STREAM)
[CONTAINERS & THROUGHPUT]
Objective: Inspect formats in O(1) time, manage single-file object vaults, and run parallel streaming.
Universal Format Inspector (UNIVERSAL FORMAT INSPECTOR): Click the path field at the top of the panel to open the file picker (or enter the path to any .bgt* file); in connected mode, selection automatically triggers inspection (with the INSPECT FILE button also available) to view line-by-line header metadata, format version (1.0), official description, size, and integrity without unpacking. Below the result, the 9 format profiles serve as a structural reference guide.
Indexed Object Vault (Slab Pool .bgtv):
Click the .bgtv vault field to select an existing file on the system (or enter the path, e.g., my_vault.bgtv); in connected mode, the object list loads automatically upon selecting or confirming the path.
Use + INSERT OBJECT to select one or multiple files (or specify an entire folder) at once; for 1 file the optional field defines the exact key, and for batches or folders it acts as an organizational prefix (e.g., models/v1/). Use the checkboxes with GET ALL / GET O(1) (N) (exports 1 file or a batch .zip archive) and DEL ALL / DEL (N) to bulk-extract or remove entries, plus COMPACT VAULT to optimize the vault.
Optional Domain Dictionary in Vault (.bgtpr): you can attach a .bgtpr below the vault bar to individually compress each object stored in the .bgtv (greatly reducing the size of many small/repetitive files while keeping O(1) random access, and migrating existing objects when running COMPACT VAULT). Upon attaching the .bgtpr, Studio displays a notice confirming that the same .bgtpr must be preserved, as it is indispensable to open or extract objects with GET O(1) later (including on the free Community plan, CLI, and SDK).
Optional Vault-Level AES-256 Encryption: the AES-256 checkbox next to the .bgtpr field is unchecked by default to preserve pure compression with zero per-file overhead. When checked to create/write a secure vault (Growth/Enterprise plan), it applies AES-256-SIV authenticated encryption to the entire .bgtv container (BGTV5\x03, only +16 B total in the file) using the passphrase (minimum 12 characters) entered in the modal — keep it safe, as it is unrecoverable. Any user (even without a commercial plan, on Community or CLI slab-get --key) can open and extract the vault by supplying the passphrase (and the .bgtpr, if used).
Parallel Streaming Engine (.bgts):
Specify input and .bgts destination (and optionally a .bgtpr dictionary — the confirmation modal will remind you to back up the .bgtpr, since DECOMPRESS STREAM also requires the same .bgtpr file).
Optionally check the AES-256 box next to the .bgtpr field (Growth/Enterprise plan) to protect the stream with a passphrase (≥12 characters) interoperable with stream-compress --key and stream-decompress --key.
Adjust chunk size and worker count.
Run RUN STREAM COMPRESSION or DECOMPRESS STREAM (decompression/restoration of original files operates without size limits or plan restrictions; if the stream is encrypted with AES-256, the modal prompts for the passphrase automatically).
HALL 04 — AI & LLM Studio (04 / AI KERNELS)
[COMPUTE-ON-COMPRESSED-DATA]
Objective: Simulate, benchmark, and train prior dictionaries for direct computation over compressed tensors and embeddings.
1
Select the Mathematical Kernel:
RAG Sub-Linear Top-K (Direct Sketch Index): direct vector search with 100% Recall@K by pruning irrelevant blocks.
Online Flash-SDPA Attention: attention computation directly over compressed KV-Cache slices.
Zero-Copy KV-Cache Offloader: structured swap with on-demand paged attention.
Direct Compressed Linear Projection (CUDA / Apple MPS Native): direct matrix product W · x + b on CPU, NVIDIA CUDA, or Apple Silicon MPS via BaguetCompressedLinear.from_torch.
Progressive Tensor & AllReduce (BGTP6) and Differential Fine-Tuning Checkpoint (BGTD6).
2
Adjust the test payload size (on the free Community license, the sandbox supports up to 16 MB; Pro/Growth/Enterprise plans scale according to quota).
3
Click RUN LIVE AI BENCHMARK [ ⏎ ] to measure the live kernel using a synthetic test tensor (no file upload required), or train a domain dictionary under TRAIN EMBEDDING PRIOR DICTIONARY by selecting the folder containing reference UTF-8 files (in the macOS folder picker, internal files appear dimmed because you are selecting the directory itself; Growth/Enterprise plan).
4
Inspect real-time telemetry and copy the ready-to-use Python integration snippet via COPY [⌘C].
HALL 05 — Licenses & Chancellery (05 / LICENSES)
[CRYPTOGRAPHIC PASSPORT & PLANS]
Objective: Manage the offline cryptographic passport (BGTL1), verify renewals, and subscribe to commercial plans.
1
Cryptographic Passport: Inspect organization, Key ID, offline validity, grace period days (with an automatic red visual alert if the token enters its final 7 days or grace window), and node/worker limits.
2
Activation and Verification/Renewal (ACTIVATE CREDENTIAL // CHECK / RENEW CREDENTIAL):
To activate a new token received via email or .bgtl1 file, paste the BGTL1.<payload>.<signature> text into the credential field and click ACTIVATE CREDENTIAL. The signature is validated locally via Ed25519 with zero external calls.
To revalidate or fetch a newer renewal, click CHECK / RENEW CREDENTIAL directly — you do not need to re-type or re-paste the token: Studio automatically inspects the active credential saved on your device (~/.baguet/license.key) and, if a newer renewal is available (locally or on an enterprise license server configured via BAGUET_LICENSE_REFRESH_URL), applies the update automatically.
3
Self-Service Subscription and Upgrade:
Toggle between MONTHLY and ANNUAL BILLING.
For Pro and Growth plans, click UPGRADE TO PRO ↗ / UPGRADE TO GROWTH ↗ to complete checkout securely via Stripe and receive your token by email with automatic activation upon returning to Studio.
For the Enterprise plan, use the institutional link or contact contact@soilore.com.
6.3 SETTINGS / TOOLS Panel (Tools, Updates, and Danger Zone)
Accessible at any time from the SETTINGS / TOOLS button in the top-right corner of the header, this panel brings together operational application utilities, subscription management, update verification, and shutdown/uninstallation:
RUN SELF-TEST SUITE: Runs the deterministic engine self-test battery and validates installation integrity.
MANAGE / CANCEL SUBSCRIPTION ↗: Automatically displayed when an active paid plan (Pro or Growth) is present. Directs you to the secure billing portal to change payment methods or cancel automatic renewal without interrupting the remaining paid days.
CHECK FOR UPDATES: Checks if a new release is available by querying the official release channel. Requires internet access (clearly informing you if the device is offline).
SIGNED OFFLINE UPDATE VERIFIER (VERIFY OFFLINE UPDATE): Allows selecting a local .bgtupd package or .json manifest to verify its Ed25519 cryptographic signature and anti-rollback protection 100% offline before updating.
DANGER ZONE (Shutdown and Complete Removal):
STOP ACTIVE STUDIO SESSION: Prompts for confirmation and immediately shuts down the active session's local server, closing Studio while keeping your licenses and settings intact.
UNINSTALL BAGUET COMPLETELY: Completely removes the baguet package, the desktop application (Baguet.app), context menu integrations, and the ~/.baguet user directory, requiring exact input of DELETE in the confirmation dialog.
[DETERMINISTIC METRICS]
7. Benchmarks and Industry Comparison
SEC.CAT-07
The following results were certified from BAGUET technical audit reports. All measurements reflect deterministic executions with cryptographic SHA-256 integrity validation and strict floating-point tolerance np.allclose(atol=1e-5, rtol=1e-5) for matrix operations.
1:1 MEMORY SAVINGS RULER // CRITICAL PRODUCTION CASES[PHYSICAL SCALE PROJECTION]
LARGE-SCALE FP16 KV CACHE (67,117,056 B RAW)99.90% REDUCTION (1,008× SMALLER)
SAFETENSORS RAW: 67.1 MB
BAGUET: 66.5 KB
RAG TOP-K EMBEDDINGS (262,144 B RAW)4.00× SMALLER // 100% RECALL@K
ZSTD LEVEL-3: 239.8 KB
BAGUET: 65.5 KB
7.1 AI Data and Compute-on-Compressed-Data
Workload
Raw Input
BAGUET Output
Alternative / Standard
Observed Performance & Metrics
RAG Top-K Embeddings
262,144 B
65,536 B
Zstandard (level 3): 239,862 B
4.00× smaller than original; Top-K search completed in 1.78 ms p50 with 100% Recall@K (292.5× faster)
LLM KV Cache (Attention)
262,144 B
96,732 B
Zstandard (level 3): 233,570 B
2.71× smaller than original; direct attention executed in 0.29 ms to 1.84 ms (up to 414.8×)
Large-Scale FP16 KV Cache
67,117,056 B
66,545 B
SafeTensors (raw): 67,117,184 B
99.90% reduction vs. input; approx. 1,008× more compact; execution in 1,350.13 ms (4.93×)
Neural Network Weights (BF16)
2,097,240 B
1,410,383 B
Blosc2 (1,492,881 B) / ZipNN (1,535,445 B)
32.75% smaller than original; smaller than all frontier competitors; inference in 14.30 ms
LoRA Delta Checkpoint (BGTD6)
524,342 B
2,739 B
Standalone Weights: 419,634 B
Delta is 99.35% smaller than standalone weights (191.4× smaller); restoration in 286.38 ms (2.28×)
Progressive FP32 Tensor (BGTP6)
40,960 B
49,329 B (Base: 14,421 B)
Raw FP32 Tensor: 40,960 B
Base layer saves 64.80% GPU traffic on fast startup; execution in 0.36 ms (9.73×)
7.2 Multimedia and Specialized Codecs
Modality
Raw Input
BAGUET Output
Specialized Standard Codec
Comparison vs. Industry Standard
Mono PCM16 Audio
96,000 B
3,163 B
FLAC (FFmpeg): 46,066 B
93.1% more compact than FLAC; restoration in 0.72 ms
Volumetric Video / CT Gray8
65,536 B
103 B
FFV1 Matroska: 2,662 B
96.1% more compact than FFV1; restoration in 0.21 ms
24-bit RGB Image
36,864 B
2,832 B
PNG (Pillow): 4,962 B
42.9% more compact than PNG; restoration in 0.07 ms
Gzip Transcoding
31,548 B
3,734 B
Original Gzip: 31,548 B
88.16% smaller than gzip file; restoration in 0.89 ms
7.3 Streams and Structured Data
Scenario
Raw Input
BAGUET Output
Market Alternatives
Performance & Latency
Core 53 Aggregated Suite
1,922,921 B
60,980 B
Zstd: 227,515 B; Brotli: 209,327 B
96.83% reduction vs. input; 31.5× more compact
Repetitive Telemetry Stream
1,200,000 B
2,396 B
LZ4 (fast block): 4,750 B
49.6% smaller than LZ4; restoration in 0.77 ms
Structured JSONL Logs
4,640 B
237 B
Zstandard (level 3): 1,120 B
94.89% reduction (19.58×); operation in 0.64 ms p50
Object Vault (Slab Pool)
9,480 B
1,518 B
TAR + Gzip: 3,890 B
61.0% smaller than TAR + Gzip; indexed access in ~0.18 ms
METHODOLOGY // ENTROPYMETHODOLOGY NOTE AND REAL-WORLD ENTROPY RANGES
The results in the tables above reflect real production datasets. In practice, the lossless reduction rate achieved by Baguet Studio or via the CLI follows three fundamental physical rules:
1. Raw, Structured Data and AI Tensors (50% to 98%+ reduction): Columnar/CSV tables, telemetry time series, repetitive logs, AI model weights (.safetensors, FP16/BF16), genomics (.bam/.fastq), scientific matrices, and raw medical/spatial imagery (.dcm, .fits, .tiff) possess high algebraic structure and multi-column correlation, achieving the highest reduction ratios in dedicated containers (.bgtt, .bgtp, .bgtu).
2. Media and Pre-Compressed Source Files — Bijective Transcoding (5% to 48% additional reduction): Formats such as .png, .jpeg, .mp4, .mov, .flac, .pdf, and .docx already apply native entropy compression (DEFLATE, AAC/H.264, FLAC). For these formats, Baguet operates via Bijective Transcoding (CONVERT FILE), unpacking the stream and applying superior contextual modeling before sealing the .bgt container, with guaranteed bit-for-bit (SHA-256) restoration of the original file. On very small files (< 100 KB) or files already optimized near the theoretical entropy limit, variance may range between 0% and 15%.
3. Encrypted Data or Random Noise (~0%): Previously encrypted streams (AES/TLS) or pure hashes possess maximum Shannon entropy (with no mathematical redundancy exploitable by any lossless compressor). In these cases, the engine automatically triggers a safety bypass to preserve exact byte integrity without inflating the file.
7.4 Strict Gate Latency and Industrial Reliability
[GATE]
Core 53 Strict Gate: All 5 rounds of 53 scenarios completed with an average of 56.01 ms (standard deviation of 0.25 ms).
[ASAN]
C-ABI Sanitizers & Zero Leaks: Over 16,600 FFI calls instrumented with ASan/UBSan and TSan with zero memory leaks or data races recorded.
[FUZZ]
Intensive LLVM Fuzzing: Over 561 million automated executions without crashes, panics, or memory overflows.
7.5 5-Minute Real-World Test (1M RAG Vectors + 64K KV-Cache + Real SafeTensors + Prior)
Any user can audit Baguet 1.0's real-world performance on their own machine using production Transformer model weights (xlm-roberta-large/model.safetensors, 2.24 GB / 396 tensors), a 1,000,000-vector RAG index, 65,536-token KV-Cache offloading, and a contextual Domain Prior (.bgtpr) dictionary in under 2 minutes:
Audited Act
Raw Input
macOS Apple Silicon (Darwin-arm64)
Linux ELF64 Docker (Linux-aarch64)
Mathematical Guarantee
Act 1 — SafeTensors .bgtt + Linear W·x
8.39 MB (FP32)
3.64 MB (43.43% RAM / -56.57%) · 28.89 ms mmap
3.64 MB (43.43% RAM / -56.57%) · 21.30 ms mmap
SHA-256 Bit-Exact (Linear max_abs_err = 0.0)
Act 2 — 1,000,000-Vector RAG Index (FP16)
256.00 MB
55.55 MB Index (-78.30% / 4.61×) · 44.73 MB .bgt (-82.53%) · 11.67 ms
55.49 MB Index (-78.32% / 4.61×) · 44.73 MB .bgt (-82.53%) · 13.20 ms
# Run the complete 1M RAG vectors + 64K KV-Cache + SafeTensors showcase:
python examples/quickstart.py --real-ai-showcase
# Generate a self-contained Jupyter Notebook (.ipynb) for JupyterLab, VS Code, or Colab:
python examples/quickstart.py --export-notebook baguet_real_ai_5min.ipynb
[LICENSING ARCHITECTURE]
8. Licensing, Commercial Matrix, and Offline Governance (BGTL1)
SEC.CAT-08
BAGUET is distributed under the proprietary Baguet EULA v1.0 license agreement (Perpetual Free Decompression Grant):
FORMAL STATEMENTUNCONDITIONAL RIGHT TO ZERO VENDOR LOCK-IN
All reading, universal decompression (.bgt), container reversal (.bgtu),
mmap extraction (.bgtt), and SHA-256 integrity verification routines are guaranteed under Baguet EULA v1.0 (Grant I):
100% FREE, PERPETUAL, AND GRATIS FOREVER.
Advanced compression technology, multi-threaded SIMD acceleration, and direct compute-on-tensor kernels for production are governed by offline cryptographic tokens BGTL1, asymmetrically signed via Ed25519 (RFC 8032).
Current Pricing and Commercial Terms:
As this document is an engineering technical guide and architectural reference, current self-service subscription pricing (Pro and Growth) and tailored Enterprise proposals (B2B under contract) are not hardcoded in this technical documentation. To view current pricing and complete a self-service subscription for Pro or Growth, visit the official commercial portal at https://baguet.soilore.com or use the interactive panel in BAGUET Studio (baguet studio -> Hall 05 Licenses). For Enterprise contracting, contact us directly at contact@soilore.com.
8.2 How to Activate a BGTL1 Token Offline
License validation operates 100% offline via Ed25519 public keys embedded in the library.
import os
from baguet_sdk import core
# Pass the BGTL1.<payload>.<signature> token (or None to operate on the Community tier)
token = os.environ.get("BAGUET_LICENSE_TOKEN")
engine = core.BaguetEngine(license_token=token)
8.2.1 Subscription Renewal, Grace Period, and Optional Synchronization
Automatic Subscription Renewal: On monthly and annual plans (Pro and Growth), once payment is confirmed for each new billing cycle, a new BGTL1 token is issued and sent to your purchase email, ready for activation via ACTIVATE CREDENTIAL in Hall 05 or baguet license activate.
CHECK / RENEW CREDENTIAL Button: Does not require pasting the token again — it automatically revalidates the active credential saved on your device (~/.baguet/license.key) and synchronizes any newer available token.
Grace Period: If the credential expires before the new token is applied, paid plans enter a tolerance window (7 days for Pro, 15 days for Growth, and 90 days for Enterprise). During this interval, the Passport in Hall 05 highlights the warning in red and features continue operating normally. Once the grace window ends, paid features are suspended, while file reading and decompression remain free and unlimited forever.
Optional use of BAGUET_LICENSE_REFRESH_URL: Intended for teams or enterprise environments with a dedicated license distribution server. It is empty by default, keeping Baguet 100% offline with zero external calls. When configured, Baguet does not maintain a persistent connection or upload user files: it performs only point checks near expiration or when you trigger CHECK / RENEW CREDENTIAL, continuing to operate offline if the network is unavailable.
8.3 Environment Variables and Operational Hardening
The BAGUET ecosystem supports an audited set of environment variables for container orchestration, high-criticality clusters, and vulnerability mitigation in third-party native dependencies:
Environment Variable
Values / Type
Purpose and Operational Behavior
BAGUET_LICENSE_TOKEN
String (BGTL1)
Ed25519 cryptographic token for offline activation of Pro, Growth, or Enterprise licenses in environments without persistent disk (Docker / Kubernetes / CI).
BAGUET_REQUIRE_PATCHED_BROTLI
"1" / "0"
Defensive mitigation against CVE-2026-111497 (Brotli HTTP2Shell / Broccoli2Shell). When set to "1", the engine requires C library brotli >= 1.2.1 to unwrap pre-compressed streams in _unwrap_precompressed_stream; older versions are safely handled as raw without feeding the vulnerable C decompressor.
BAGUET_DISABLE_BROTLI_PROBE
"1" / "0"
Completely disables any attempt to probe or decompress Brotli streams, immediately returning raw data as raw.
BAGUET_HOME
Path (Directory)
Sets the base directory for storing local licenses, node leases, and preferences (default: ~/.baguet).
BAGUET_LANG
"en" | "pt" | ...
Overrides automatic OS language detection for the CLI and Studio (7 languages supported).
BAGUET_NODE_ID
String
Explicit node identifier for tracking and release in concurrent Floating Node Lease management.
BAGUET_LICENSE_DIR
Path (Directory)
Dedicated alternate directory for storing the local license file (license.key) without altering other data in BAGUET_HOME.
BAGUET_LICENSE_REFRESH_URL
HTTPS URL
Optional HTTPS endpoint configured by enterprise administrators for point-in-time license synchronization near expiration or via CHECK / RENEW CREDENTIAL; empty by default in offline operation.
8.4 Offline Cryptographic Integrity & Official Keys
Enterprise and air-gapped operators can independently audit the authenticity and binary integrity of their local BAGUET 1.0 runtime against the official Soilore technical keys below — with zero internet access or telemetry required.
100% Air-Gapped Auditability: Comparing the SHA-256 digest of your installed native binary and validating release/license artifacts against the Ed25519 public key (ed25519-soilore-official-2026) confirms zero tampering across local workstations, CI/CD runners, and isolated production clusters.
[SOFTWARE LIFECYCLE]
9. Updates, Maintenance, and Uninstallation
SEC.CAT-09
9.1 Update Workflow (Online and Offline)
[01]
Check for New Release in Studio: Click SETTINGS / TOOLS → CHECK FOR UPDATES (requires active internet). If operating on an air-gapped network, use the VERIFY OFFLINE UPDATE button or baguet verify-update file.bgtupd to validate the package's Ed25519 signature before installing.
[02]
Back up your license and preferences in ~/.baguet/ preventatively before updating.
[03]
Update via Pip, Conda, or the new official Desktop installer:
pip install --upgrade baguet
# or via Conda:
conda update -c soilore baguet
[04]
Run the deterministic self-test suite (or in Studio via RUN SELF-TEST SUITE):
baguet self-test
[05]
Restart Studio and run a quick sample compression and restoration cycle to validate the new binary in production.
9.2 Session Shutdown and Complete Uninstallation
Stop only the current server in Studio: Under SETTINGS / TOOLS → DANGER ZONE, click STOP ACTIVE STUDIO SESSION to shut down the local server and close the app while keeping licenses and files intact.
Complete uninstallation via Studio: Under SETTINGS / TOOLS → DANGER ZONE, click UNINSTALL BAGUET COMPLETELY and type DELETE exactly in the confirmation dialog. The wizard removes the package, the desktop application (Baguet.app), context menu integrations, and the ~/.baguet/ folder, then closes Studio.
Alternative terminal removal: If using only the Python environment installation, run pip uninstall baguet in the corresponding virtual environment.
[TECHNICAL DIAGNOSTICS]
10. Troubleshooting & FAQ
SEC.CAT-10
Error Diagnostics and Resolution Table
Symptom / Error
Probable Cause
Resolution Action
ImportError: cannot import name 'baguet_sdk'
Incorrect Python environment or missing package
Activate the correct virtual environment (source .venv/bin/activate); verify installation with python -m pip show baguet.
Missing native Rust core error
Package lacks a compiled native library for this architecture
Install the official release for your system (x86_64 or arm64). Do not copy dynamic libraries (.so/.dylib/.dll) across different operating systems.
Truncated file, disk corruption (bit-rot), or mismatched SHA-256 hash
The engine operates in fail-closed mode. Check file size, verify backups, and inspect the header by running baguet info <file>.
BaguetSecurityError: Decompression bomb blocked
Output exceeds the in-memory safety ceiling (MAX_DECOMPRESSED_BYTES, default 64 MB)
For large files, use the parallel streaming engine (baguet stream-compress) or instantiate the engine with a higher ceiling: BaguetEngine(max_decompressed_bytes=1024*1024*1024).
BaguetSecurityError: Packet marked as keyed requires BGT-AE key
File was written with authenticated encryption (AES-256-SIV) and the symmetric key was not supplied
Provide the matching key: baguet decompress file.bgt restored.bin --key "your-key" or in the SDK: BaguetEngine(license_key=b"your-key").
BaguetSecurityError: Invalid or expired BGTL1 token
Invalid token signature, untrusted key, or expired past the grace period
Verify that your system clock is accurate and request credential renewal; during the grace period, the engine continues operating normally.
BaguetPriorMismatchError: Incompatible prior
File was compressed with a specific domain dictionary that was not provided during restoration
Supply the original .bgtpr file used during compression: baguet decompress file.bgt output.bin --prior domain.bgtpr.
Address already in use when starting Studio
Local port 8765 is already in use by another instance
Specify an alternate port: baguet studio --port 9000.
Studio disconnected or opened via file://
Page was opened as a static file (file://) instead of launching the local server
Launch through the Baguet.app desktop application or the baguet studio command and navigate to http://127.0.0.1:8765/ in your browser.
CVE-2026-111497 / Brotli HTTP2Shell
Malformed stream triggering invalid block switch or buffer loop in outdated libbrotli (< 1.2.1)
BAGUET includes a multi-block guard with a 64 KiB cap and anti-stall lock that safely aborts to raw. To block vulnerable libraries, set export BAGUET_REQUIRE_PATCHED_BROTLI=1 or disable probing with export BAGUET_DISABLE_BROTLI_PROBE=1.
BaguetSecurityError: Host is not an allowed loopback authority
Access to local Studio via DNS rebinding or external Host header
The Studio HTTP server blocks requests with non-local Host headers (Host Socket Guard). Access exclusively via http://127.0.0.1:8765/ or http://localhost:8765/.
Frequently Asked Questions (FAQ)
FAQ // QUESTION 01DATA ACCESS & CANCELLATION
Q: Can files compressed with BAGUET become inaccessible if our company cancels its subscription? A: No. All reading, universal decompression (.bgt), container reversal (.bgtu), and memory-mapping (mmap) routines are perpetually guaranteed free of charge under Grant I of the Baguet EULA v1.0. You have a technical guarantee to access and decompress your data forever at no additional cost.
FAQ // QUESTION 02AI MODEL INTEGRITY
Q: Does BAGUET alter AI model weights at any decimal place? A: No. BAGUET operates with 100% bit-exact reconstruction. Restored tensors return strictly the exact same original IEEE 754 bits, automatically validated by SHA-256 signature.
Q: Is it safe to use BAGUET with confidential or regulated data (LGPD, GDPR, HIPAA)? A: Yes. BAGUET runs 100% locally on your company's hardware, with no outbound internet calls and zero telemetry. To protect against leaks at rest, the engine offers BGT-AE (AES-256-SIV — RFC 5297) shielding with HKDF-SHA256 key derivation.
FAQ // QUESTION 04MATHEMATICAL COMPRESSION LIMITS
Q: Does BAGUET always reduce the size of every file? A: No. No mathematically viable lossless compression algorithm can shrink every arbitrary byte sequence (by the Pigeonhole Principle). For already-compressed or completely random data, the output may retain its original size with a minimal header overhead.
FAQ // QUESTION 05SUBSCRIPTION EXPIRATION & GRACE PERIOD
Q: What happens when a production license expires? A: The engine activates the cryptographically embedded grace period in the token (7 days for Pro, 15 days for Growth, and 90 days for Enterprise), keeping all operations active while logging warnings. Even after the grace period ends, all reading and decompression routines remain free and unlimited.
[TECHNICAL TERMINOLOGY]
11. Quick Glossary
SEC.CAT-11
[GL-01]
Lossless: Reconstruction that strictly reproduces the exact original bit and byte sequence, validated by SHA-256 integrity verification.
[GL-02]
Compute-on-Compressed-Data: Execution of mathematical operations (vector search, attention, and linear algebra) directly on data in its compressed format without prior decompression.
[GL-03]
KV Cache: Key and value tensors accumulated during sequential inference of large language models (LLMs).
[GL-04]
Sketch Pruning: Selective filtering of vector blocks directly over compressed data, discarding irrelevant candidates without dense decompression.
[GL-05]
Virtual Slab Pool: Single-file vault organizing multiple logical records or files with O(1) retrieval and validation.
[GL-06]
Domain Prior: Contextual statistical matrix trained on real data samples to optimize entropy on repetitive streams.
[GL-07]
BGT-AE: Deterministic authenticated encryption layer based on AES-256-SIV (RFC 5297) with HKDF-SHA256 key derivation (RFC 5869).
[GL-08]
Loopback: Local network address strictly restricted to the host machine itself (127.0.0.1), preventing unauthorized external connections.
[SYMBOL CATALOG]
Annex A — Inventory of Documented Python Interface
ANX.CAT-A
Namespace baguet_sdk.core
[CLS]
Classes and Engines:BaguetEngine, BaguetPriorDictionary, BaguetPriorTrainer, BaguetVirtualSlabPool, BaguetStreamEngine.
import os
from baguet_sdk import license
token = os.environ.get("BAGUET_LICENSE_TOKEN")
if token:
license.BaguetLicenseManager.save_local_license(token)
stored = license.BaguetLicenseManager.load_local_license()
verified = license.BaguetLicenseManager.verify_license_token(stored)
# Synchronize one-time renewal only if BAGUET_LICENSE_REFRESH_URL is configured
renewed = license.BaguetLicenseManager.refresh_license_token_if_needed(stored)
Studio Server and Dashboard via Python
PYTHON // LAUNCHING STUDIO VIA SDKpython
from baguet_sdk import core, studio
engine = core.BaguetEngine()
dashboard = studio.BaguetLocalDashboard(engine=engine)
server = dashboard.make_server(host="127.0.0.1", port=8765)
server.server_close()