OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Infrastructure & Serving

Kvsplit

KVSplit is an open-source Python developer tool that applies differentiated quantization to the key and value portions of an LLM attention KV cache. Its documented integration configures llama.cpp with Metal support for local inference on Apple Silicon, and the repository includes scripts for comparing memory, speed and perplexity across cache settings.

Independent OpenViST project profile, based on linked sources.

Kvsplit — Apple Silicon systems using the documented llama.cpp integration
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Clone https://github.com/dipampaul17/KVSplit.git and change into the project directory.

  2. Run chmod +x scripts/install_kvsplit.sh.

  3. 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.
Source-based practical guide

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

  1. Place or identify the model file, for example models/your-model.gguf.

  2. 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.
Evidence and transparency

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