01 / PRIVATE ON-DEVICE AI · Solo Builders, Mac App Studios & Regulated Teams
Run Private LLMs Locally on Everyday Macs—No Cloud Required
Shrink local language models 3.8×–5.0× (unlocking 5,886 MB Qwen2.5-3B BF16 into 1.19–1.47 GB on 8 GB Macs), cut 3-bit WikiText-2 PPL 22.7% below AWQ (17.99 vs 23.27 on 0.5B), and reload safetensors in ~0.6–1.1 seconds offline.
Works with Wi-Fi off · Completely offline on your Mac
THE BOTTLENECK
Why standard local AI either stalls your Mac or loses accuracy
Large checkpoints exceed the 5.33 GiB working-set limit on 8 GB Apple Silicon Macs (Qwen2.5-3B BF16 requires 5,886 MB / ~5.75 GiB and aborts with OOM). Naive round-to-nearest 3-bit shrinks weights yet destroys quality (39.12 PPL on 0.5B; 180.84 PPL on 3B; 56,956 PPL at 2-bit).
HOW XFERMAT FIXES IT
Compact, faithful checkpoints that reload in under a second
xFermat pairs its fast Open Inference Runtime (pip install "xfermat[llm]") with Pro/Enterprise Clip-GPTQ offline calibration (orthogonal Hadamard smoothing + full-rank N=16,384 GPU optimization). At 4-bit on 0.5B, xFermat reaches 15.20 WikiText-2 PPL (vs. 16.06 AWQ) at 181.8 tok/s decode parity. At 3-bit, quality error drops to 17.99 PPL vs. 23.27 AWQ (0.5B) and 11.48 vs. 13.02 AWQ (1.5B). On Qwen2.5-3B, xFermat compresses 5,886 MB BF16 to 1.47 GB (3b, 10.42 PPL, 29.1 tok/s) and 1.19 GB (mixed_2_3bit, 16.01 PPL, 56.9 tok/s), unlocking 8 GB Macs cleanly. For 2-bit research, VPTQ + PV-tuning achieves 16.63 WT2 PPL on 1.5B (589 MB) and 26.73 PPL on 0.5B (234.6 MB).
How it works step-by-step
BEFORE XFERMAT
Working-set OOM on 3B or broken naive 3-bit accuracy
Qwen2.5-3B BF16 (5,886 MB) aborts past the 5.33 GiB working-set limit on 8 GB Macs, while uncalibrated native 3-bit spikes to 180.84 WT2 PPL on 3B and 39.12 on 0.5B.
OPEN RUNTIME & COMPRESSION
Instant .safetensors reloads & calibrated weights
Once compressed (using Pro/Enterprise Clip-GPTQ offline rotation & scale-clipped GPU GPTQ), checkpoints save cleanly to standard .safetensors with zero online overhead at 4-bit and zero network telemetry.
EVERYDAY WORKFLOW
Sub-second startup, steady streaming, Wi-Fi off
Reload compressed models via load_compressed_model or xfermat run in ~0.55–1.10 s at 181.8 tok/s (0.5B 4b), 54.0 tok/s (1.5B 3b), or 29.1–56.9 tok/s (3B 3b/mixed) locally.
Runnable Python quickstart (private-local-ai.py)
RUNNABLE PYTHON QUICKSTART
Run & reload local models privately with the Open Runtime (+ Pro compiler preview)
Free Open Runtime: pip install "xfermat[llm]" -> xfermat run ./qwen-1.5b-3bit --kv-bits 4. Offline compression (compress_pretrained_model) ships in xFermat Pro & Enterprise.
xFermat quickstart (private-local-ai.py)
# 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)
Start with pip install "xfermat[llm]" or book a fleet pilot
Evaluate free on 1 personal Mac via PyPI Open Runtime, or unlock Pro commercial bundling (€39/seat) and Enterprise air-gapped MDM fleets (from €750/mo).
Ready. Ask about Apple Silicon RAM sizing, 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.