VeloxQuant-MLX compresses the KV cache your Mac builds during LLM inference — up to 98% less peak memory across 43 methods, accelerated with hand-written Metal kernels, integrated in three lines of code.
In Development VeloxQuant Studio, the native Mac app, is currently in development.
LLMs like Llama, Mistral, and Qwen store past context in a KV cache that grows linearly with sequence length. A 7B model at 8k context can consume 14 GB on an 18 GB MacBook M3 Pro — leaving almost no room for anything else.
VeloxQuant-MLX compresses that cache on-the-fly with Metal GPU kernels, making long-context inference practical on consumer hardware.
EXPLORE THE METHODSThirty-three compression algorithms behind a single drop-in API. Change one method string to switch between them.
Fit bigger models and longer chats in the RAM you have — most methods need no calibration step.
The only methods that free RAM you'll see drop in Activity Monitor in real time.
Layers share memory instead of duplicating it. No code changes required.
Up to 13× faster and 98% less peak memory than plain MLX. Built for your GPU, not ported from elsewhere.
Change one method string to switch algorithms. Your model-loading code stays exactly the same.
Tested on Llama, Mistral, Qwen, Phi, Gemma, Falcon, and vision-language models.
The added lines are all you need. Your model-loading code stays exactly the same.
pip install VeloxQuant-MLX
from veloxquant_mlx import KVCacheBuilder, KVCacheConfig
config = KVCacheConfig(method="turboquant_rvq", bit_width_inlier=1, seed=42)
caches = KVCacheBuilder.for_model(model, config)
CALCULATOR
Pick your model, how long a conversation you want, and how much RAM your Mac has. Calculations match what you get running on your Mac.
Example: Llama-3.1-8B with a 64k-token conversation needs 8.00 GB of memory normally — more than the ~7.5 GB free on a 16 GB Mac. Our RVQ-1bit setting brings that down to 1.07 GB; VecInfer-1bit to 512 MB. Enable JavaScript to size your own model.
mlx_lm — same weights, same file format, zero conversion step. You add the compression with three lines of code; your model file itself remains untouched.
turboquant_rvq — no calibration or setup step required. It's the default for a reason: it cuts memory use to roughly a third with near-zero effect on perplexity. If you need the smallest possible footprint, vecinfer reaches about 16× compression on keys with a one-time calibration pass.
Official Swift, Kotlin, NPM, Rust, and Go SDK runtimes and a VS Code extension available today — with native macOS app coming soon.
The flagship visual workspace engineered exclusively for macOS and Apple Silicon. Monitor local model memory in real-time, benchmark hand-written Metal kernels, and reclaim up to 98% of KV-cache footprint in a single click — without touching a terminal.