Practical overview
When it fits
Use KVSplit when local llama.cpp inference on Apple Silicon is constrained by KV-cache memory and you want to compare separate key/value precision settings.
Who it is for
- Developers running local LLM inference on Apple Silicon Macs with llama.cpp.
- Practitioners who need to reduce KV-cache memory use to try larger models or longer contexts.
- Users comparing the memory, speed and quality trade-offs of different key and value precisions.
Documented uses
- Set up llama.cpp with differentiated KV-cache quantization and Metal support.
- Compare FP16 and quantized cache configurations for memory use, inference speed and quality metrics.
- Generate benchmark results and visualizations for local inference experiments.
Requirements & limits
The project is available as a public GitHub repository and displays an MIT license badge.
- The documented setup targets macOS on Apple Silicon and configures Metal support.
- The installer requires Homebrew and Xcode Command Line Tools.
- The installer offers virtual-environment, system-Python and manually managed Python setup options.
- The project-reported K8V4 result at 8K tokens is 59% less cache memory than FP16, with a 0.86% perplexity change; other configurations show different trade-offs.
- The README documents llama.cpp integration; compatibility with other inference backends is experimental.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up KVSplit with llama.cpp on Apple Silicon
Install the repository workflow and configure llama.cpp with Metal and differentiated KV-cache quantization.
Before you start
- macOS tested on Apple Silicon
- Homebrew
- Xcode Command Line Tools
Steps
Clone https://github.com/dipampaul17/KVSplit.git and change into the project directory.
Run chmod +x scripts/install_kvsplit.sh.
Run ./scripts/install_kvsplit.sh and choose the documented Python and llama.cpp setup options.
Expected outcome
The installer sets up the project, configures llama.cpp with Metal support, and enables differentiated KV-cache quantization. It can optionally offer to download a small test model.
Guide limitations
- The documented platform is macOS on Apple Silicon.
- The optional test-model download is not required by the installation instructions.
Compare KV-cache precision settings for a GGUF model
Use the documented quick comparison script to view memory, speed and quality metrics for several KV-cache configurations.
Before you start
- KVSplit project setup
- A model file in GGUF format
Steps
Place or identify the model file, for example models/your-model.gguf.
Run python scripts/quick_compare.py --model models/your-model.gguf.
Expected outcome
The script presents a side-by-side comparison of FP16, K8V8, K8V4, K4V8 and K4V4 using memory, speed and quality metrics.
Guide limitations
- Results depend on the model and local inference workload.
- The README describes the comparison workflow but does not establish results for a particular model or machine.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- dipampaul17/KVSplit · Official homepage title · retained in its source language

