Offline Contract Review & Confidential Case Memos
Keep client NDAs, M&A data rooms, and tax advisory notes strictly on partner MacBooks—running compressed 1.5B–3B+ checkpoints locally without sending a byte to external servers.
Whether you are fitting fast open-weight models onto 8 GB–16 GB laptops, analyzing confidential PDFs and codebases offline, shipping zero-API-fee Mac apps, or running air-gapped enterprise fleets—pick your outcome below.
Run Qwen, Llama, and open-weight models completely offline on 8 GB–16 GB Apple Silicon Macs—fitting larger models cleanly in memory so confidential notes and code never leave your laptop.
Review lengthy contracts, clinical PDFs, due-diligence folders, and code repositories locally without running out of unified memory—cutting 8K conversation memory 5.1× so long prompts stay fast.
Replace €30–€60/seat monthly cloud copilots and API token overages by running hardware-tuned inference at €0 marginal cost on employees' existing Apple Silicon Macs—or inside paid Mac apps.
Keep portfolio covariance solves, physics integrators, and CAD solvers accurate inside Apple Silicon GPU pipelines—recovering ~15–16 IEEE decimal digits instead of drifting in 32-bit shaders.
Keep client NDAs, M&A data rooms, and tax advisory notes strictly on partner MacBooks—running compressed 1.5B–3B+ checkpoints locally without sending a byte to external servers.
Summarize sensitive protocols locally and verify every matrix operation with open-source JSON logs, transparent weights, and 15–16 decimal digit GPU precision when simulations require it.
Ship offline writing, coding, and search assistants inside native macOS/Apple Silicon products using ~784 MB checkpoints—never worrying about surprise cloud token bills as installs scale.
Deploy signed, zero-telemetry packages across 20 to 5,000+ employee Apple Silicon Macs with custom weight compression and MOHAWK 3:1 hybrid distillation tuned for your memory tier.
Standard Qwen2.5-3B BF16 requires 5,886 MB (~5.75 GiB) and aborts on 8 GB Apple Silicon; native 3-bit collapses to 180.84 WT2 PPL.
1,804.1 MB (1.18 s safetensors reload) with 9.43 WT2 PPL, 0.111 KL divergence, and 76.0% HellaSwag / 45.0% ARC-Challenge on 8 GB Macs.
# 1. Free Open Runtime: stream any Hugging Face checkpoint or reload compressed safetensors (~0.7s)
# CLI: pip install "xfermat[llm]" && xfermat run ./qwen-1.5b-3bit --kv-bits 4
from fermat import load_compressed_model, make_kivi_prompt_cache
reloaded, tokenizer = load_compressed_model("./qwen-1.5b-3bit")
kv_cache = make_kivi_prompt_cache(reloaded, bits=4) # shrink long chat KV memory ~2.9x–3.6x
# 2. [xFermat Pro / Enterprise Offline Compiler] Produce compact 3-bit/4-bit checkpoints once:
# import mlx.core as mx, mlx_lm
# from fermat import compress_pretrained_model, save_compressed_model
# model, tok, cfg = mlx_lm.load("Qwen/Qwen2.5-1.5B-Instruct", return_config=True)
# cal = [mx.array([tok.encode("Confidential legal, engineering, or financial notes stay on device.")], dtype=mx.int32)]
# _, report = compress_pretrained_model(model, method="hadamard_3bit", group_size=64, calibration_inputs=cal, embed_bits=8)
# save_compressed_model(model, "./qwen-1.5b-3bit", tokenizer=tok, config=cfg, report=report) Yes. Standard Qwen2.5-3B BF16 requires 5,886 MB (~5.75 GiB) and exceeds the 5.33 GiB GPU working-set limit on 8 GB Macs (OOM). Compressing to 3-bit or mixed_2_3bit shrinks 3B to 1,474 MB (10.42 WT2 PPL, 29.1 tok/s) or 1,193 MB (16.01 PPL, 56.9 tok/s), while Qwen2.5-1.5B compresses from 2,944 MB to 783.9 MB (11.48 PPL at 54.0 tok/s, vs 25.8 tok/s BF16).
Passing --kv-bits 2 --kv-outlier-ratio 0.625 in the free Open Runtime activates GQA-packed Mixed KIVI (62.5% key channels promoted to 4-bit, values 2-bit per-token, 3.16 bpw)—shrinking 16K Qwen2.5-1.5B KV cache 5.06× (448 MB -> 88.6 MB) while holding 5/5 Passkey retrieval (vs 0/5 naive 2-bit) and 10.51 WT2 PPL at 8K. MOHAWK 3:1 distillation further cuts Qwen2.5-0.5B 8K cache 24.6% (96.0 -> 72.4 MB).
The Open Runtime contains zero telemetry and loads weights strictly locally with zero outbound inference API calls. Teams can unplug Wi-Fi or block outbound hosts at the firewall and keep 100% of legal memos, medical notes, source repositories, and financial data physically inside company-owned Macs.
Yes. Solo non-commercial and academic usage on 1 personal Mac is free forever (€0), while commercial desktop/Apple Silicon app bundling and multi-seat teams (1–20 seats) are covered under a flat €39/seat/month Pro license—eliminating cloud LLM usage bills as your user base grows.
The public PyPI & GitHub Open Runtime includes xfermat info, xfermat bench, xfermat run (with live --kv-bits 4|2 KIVI), sub-second safetensors reloading (load_compressed_model), auto-tuned Metal routing (FermatEngine), FlashDecode attention, 3:1 Hybrid inference, and 150-bit Garner CRT FP64 math. Proprietary offline weight compression (Clip-GPTQ, 4D VPTQ codebook), MOHAWK distillation, commercial app redistribution rights, and signed Jamf/MDM fleet packages ship in Pro & Enterprise.
Install from PyPI, benchmark local Metal acceleration, or run long private prompts offline with fused KIVI KV-cache compression.
$ pip install "xfermat[llm]"
$ xfermat info
$ xfermat run Qwen/Qwen2.5-1.5B-Instruct --kv-bits 4 \
--prompt "Summarize key obligations in this contract." Clip-GPTQ vs. mlx_lm.awq, --kv-bits 4|2, 2-bit E2E-QP / VPTQ PV-tuning, Qwen2.5-3B 8 GB Mac capacity, or Pro/Enterprise licensing.