r/MacLocalLLM • u/ElectricalEstate9608 • 8d ago
Veystrix v0.1.0: Native 4-bit Inkling 2 Mini (1M context, 150+ tok/s prefill, < 35 ms cached TTFT) running locally on a 16 GB M4 MacBook Air
I built Veystrix (v0.1.0), an open-source (Apache 2.0) local LLM inference engine and terminal coding agent written specifically for Apple Silicon (arm64, macOS 14+) using custom Metal kernels, C++20 graph compilation, and native MLX acceleration.
GitHub: https://github.com/Veystrix/Veystrix-Engine
Why Inkling 2 Mini on a Mac?
Our flagship model is Inkling 2 Mini (Inkling-2-Mini-oQ4e-mtp) in native 4-bit precision with zero quality loss—a 24-layer MoE executed as a 48-visit looped graph (128 experts, top-8 routed) with a 0.29 GiB DSpark speculative drafter and up to a 1,048,576 token (1M) context window via Quest sparse-paged KV.
On benchmarks, it scores 79.2% on SWEBench Verified, 48.2% on DeepSWE v1.1, 82.7% on MCP Atlas, and 92.8% on OmniDocBench v1.6—so you get real local coding, tool-calling, and document/image capability without cloud API fees.
Measured Speeds (16 GB M4 Air) & Mac Hardware Matrix
Only the 16 GB M4 Air row is real-measured right now; higher Unified Memory tiers are hardware-grounded estimates:
| Unified Memory | Target Mac | Residency | Steady Decode | Burst (DSpark) | Cold Prefill | Cached TTFT |
|---|---|---|---|---|---|---|
| 16 GB (Measured) | M2/M3/M4 Air/Pro/mini | ~7.5–8.5 GiB RAM + NVMe | ~8.0 tok/s (6.5–9.5) | 11.0–13.5 tok/s | 150+ tok/s | < 35 ms |
| 24 GB (Est.) | M2/M3/M4 (24 GB) | 18–20 layers in RAM | 14.0–16.5 tok/s | 19.5–23.0 tok/s | 290–340 tok/s | < 25 ms |
| 32 GB (Est.) | M1–M4 Pro (32 GB) | 100% in RAM (0 swap) | 20.0–24.0 tok/s | 28.0–32.0 tok/s | 450–540 tok/s | < 15 ms |
| 64 GB (Est.) | M1–M4 Max (64 GB) | 100% in RAM (0 swap) | 36.0–45.0 tok/s | 50.0–58.0 tok/s | 960–1,150 tok/s | < 8 ms |
| 128 GB (Est.) | Max / Ultra (128 GB) | 100% in RAM (0 swap) | 58.0–72.0+ tok/s | 75.0–90.0+ tok/s | 1,550–1,900+ tok/s | < 3 ms |
Key Mac-Specific Features
- No SSD Prefill Cliff: Stage-major looped prefill loads prelude once, runs all 3 looped core passes in RAM with zero disk I/O, and loads epilogue once.
- Hard Swap Ceiling: Enforces a strict 5 GiB process swap cap (
SWAP_HARD_LIMIT_BYTES) with sequential cache eviction so macOS never hits red memory pressure. - Built-in TUI + Coding Agent Harnesses: One command launches the engine and wires it straight into external coding agents, plus local OpenAI (
/v1/chat/completions) and Anthropic (/v1/messages) endpoints on127.0.0.1:8080. - Zero telemetry, no accounts, Minisign-verified binaries.
Quickstart
brew install veystrix/veystrix/veystrix
veystrix # Built-in TUI coding agent
veystrix run opencode # Pre-wired OpenCode
veystrix run pi # Pre-wired Pi coding agent
veystrix run hermes # Pre-wired NousResearch Hermes Agent
If anyone here tests it on a 24 GB, 32 GB, 48 GB, 64 GB, 96 GB, or 128 GB Mac, I would love your real tok/s numbers to replace the estimates in the README—and PRs are very welcome!