Persistent KV-cache software for self-hosted LLMs

Stop paying twice for the same answer.

Galahad gives your self-hosted model a long-term memory. It retrieves work the model has already done instead of redoing it, with the same output, byte-for-byte.

  • No model changes
  • Runs on your own hardware
  • Tested with llama.cpp, vLLM and SGLang on NVIDIA GPUs
corbenic-node // galahad-runtime
SHA-256 Bit-Exact
$ galahad verify --exact
galahad reuse --model gemma-4-12b --ctx 64k
merlin lookup .................1.4 µs HIT
taliesin graft ................0 tokens recomputed
sha-256 a3f9c1..8e2dexpected
sha-256 a3f9c1..8e2dactual
bit-exact match: 0 divergent bytes answer identical
Illustrative output of the verification flow token delta = 0

The Galahad memory layer

A long-term memory for your LLM

Galahad remembers what your model has already read and solved, and retrieves it instead of recomputing it. It runs next to your serving engine, on your own servers, and your model stays exactly as it is.

Patent pending

Measured results with their conditions are in Benchmarks.

Three engines, one memory

Engine 1 · Memory and deduplication

Merlin

Hashes every incoming prompt and answers from a live registry, in under 2 µs. A durable on-disk ledger survives restarts and moves byte-identical between machines. It can also run standalone to strip redundant context.

Engine 2 · KV-Graft protocol

Taliesin

Takes the state Merlin identified and splices it into the live request with 0 tokens recomputed. Logits are byte-for-byte identical, SHA-256 equal and verified across model scales and GPUs.

Engine 3 · Text memory

Blaise

Keeps your documents as byte-exact text in sections and passes the model only the section a question needs, so it reads a few hundred tokens instead of the whole corpus.

How a request flows

Repeated contextMerlin and Taliesin

  1. RequestFrom your app
  2. CheckSame input, model, tenant?
  3. Match: reuse0 tokens recomputed
    No match: computethen save the state

DocumentsBlaise

  1. Stored sectionsByte-exact, kept once
  2. Selected sectionChosen per question
  3. Model reads668 tokens, not 97,000
Simplified from the published papers. Taliesin and Blaise each run without the other. A failed check always falls back to recomputing.

Fundamental Principles

What Galahad is not

Requests go straight from your application to your model. Galahad sits beside the model as its memory and is not in the request path. Nothing leaves your servers.YOUR SERVERSYour applicationTalks to your model as beforeYour model on your GPUsUnchanged, answers directlyGalahad memory layerBeside the model, not in front of itData and weights never leave

Not a cloud

You keep renting your servers wherever you like. We only license the software layer on top. Runs in your VPC, your colocation facility, or your bare-metal racks.

Not a model

Galahad is model-agnostic. Whatever you run stays 100% yours, and we never see your data or weights. You provide the model: Llama, Mistral, Gemma, Qwen, DeepSeek, or custom fine-tunes.

Not a cache

A cache keeps copies that can go stale. Galahad is a memory layer: it stores your model's work byte-exact, checks it before every reuse, and recomputes if a check fails.

Not a leap of faith

Every single claim is measured, SHA-256 verifiable, and re-measurable on your own workload. We provide reproducible benchmark scripts before any production rollout.

Measured & Reproducible

Measurably less GPU work.

Measured on AWS, Google Cloud, RunPod and vast.ai, across 12 GPU models and three runtimes: llama.cpp, vLLM and SGLang. Replay and rewind checks: 1,367 run, 0 failures. Each result states its conditions.

GPU energy per question, in joules (lower is better)

llama.cpp

Without Galahad2,754 J
With Galahad213 J

vLLM

Without Galahad2,402 J
With Galahad200 J

SGLang

Without Galahad2,940 J
With Galahad210 J

12 to 14 times less GPU energy per question on all three runtimes.

Bars start at zero. Gemma 4 31B, 100 questions over a 120,000-token corpus, cold start (the runtime's own cache emptied before every question), NVIDIA RTX A6000. Energy from the GPU's own hardware counter. Right answers rose from 10 to 100 of 100 in every case. Source: Corbenic measured results, October 2026. Methods and limits
Restoring a 50-million-token memory
4.25× faster than recomputing a block, with 12.3× less GPU energy. 100 of 100 blocks restored with zero recompute. Gemma 4 31B, one H100.
Against a standard RAG system
100 vs 54 right answers out of 100 against RAGFlow, on the same model and text. About 670 tokens sent per question against about 3,100. RAGFlow v0.27.2, default settings.
Redundant work on proven answers
0 generation tokens. The answer returns byte-identical. 180/180 test instances across nine problem families.

See methods and full results

Formal Peer-Reviewable Publications

Published Research on arXiv

Every claim we make is backed by formal, reproducible proofs in C++, Lean, and Z3 SMT solver invariants.

arXiv:2610.10845

Real Long-Term Memory for AI: A 50-Million-Token Window That Is Faster and Cheaper Than Recompute

A 50-million-token memory on one GPU, restored byte-exact.

Read Paper

arXiv:2609.39358

Working Around the Compute Ceiling: Byte-Exact Memory in Galahad Makes LLM Reading a One-Time Cost

Galahad as a memory layer for vLLM, SGLang and llama.cpp.

Read Paper

arXiv:2607.23806

A Frozen 12B Beats Frontier Models on Verified Work: 100% Accuracy, 0 Tokens, Bit-Exact, Forever

A frozen 12B model with Galahad memory on verified problem suites.

Read Paper

arXiv:2607.14431

Smarter and Cheaper at Once: Byte-Exact KV-Cache Grafting Turns a Frozen Small Model into a Verified-Knowledge Flywheel

KV-cache grafting lifts a frozen Gemma-4-12B from 80.0% to 93.3% on AIME 2025.

Read Paper

arXiv:2605.09990

Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inference

A local-first deduplication engine with about 1.1 µs median latency.

Read Paper

arXiv:2605.09611

Byte-Exact Deduplication in Retrieval-Augmented Generation: A Three-Regime Empirical Analysis Across Public Benchmarks

Byte reduction of 0.16%, 24.03% and 80.34% across three RAG regimes.

Read Paper

Fair & Linear Pricing

One rate. Every server. Nobody left out.

Our pricing depends solely on compute power (TFLOPS), not your server brand or cloud provider. Predictable, transparent, and fair.

Standard Hardware Rate Card

List price: monthly per-accelerator license calculated strictly on raw theoretical compute

Linear TFLOPS Scale
Standard hardware rate card: monthly license price by accelerator and compute tier
Hardware AcceleratorCompute TierList Price
AMD MI355X / NVIDIA B300 SXM2,500 TFLOPS$1,423.50 / mo
NVIDIA B200 SXM2,250 TFLOPS$1,281.15 / mo
AMD MI300X / MI325X1,307 TFLOPS$744.21 / mo
NVIDIA H100 SXM / H200 SXM989 TFLOPS$563.14 / mo
NVIDIA A100 SXM312 TFLOPS$177.65 / mo
NVIDIA RTX 4090165 TFLOPS$93.95 / mo
Apple Mac Studio (M3 Ultra)28 TFLOPS$15.94 / mo

Example: a server with 8 NVIDIA A100 SXM accelerators is 8 × $177.65 = $1,421.20 per month at list price. Prices are in US dollars, per accelerator, per month.

Running a fleet? Volume and enterprise agreements are available.

Talk to sales

Non-commercial / individual developers: 1 GPU free forever on GitHub.

Get Community License

Zero-Friction Adoption

How partnerships start

From first conversation to measured production efficiency in three straightforward steps.

  1. Scoping call

    Quick check on your cluster fleet and workload characteristics in under 30 minutes, with no obligation. Nothing to pay.

  2. Measured pilot

    Proved on your own servers with clear success criteria defined upfront. Nothing to pay. You decide if the measured speedup and savings on your workload worked.

  3. Rollout

    Scale up server by server across your cluster. Simple per-accelerator software licenses at the list prices above, with volume agreements for fleets.

Start with a scoping call

The people behind Galahad

Team

Systems architects and engineers building deterministic computational infrastructure.

Sietse Schelpe

Sietse Schelpe

CEO, Deep Systems & Science

Leads Galahad's systems architecture and formal verification, and authors the research behind its persistent memory technology.

Toon Colson

Toon Colson

CSO, Sales & Partnerships

Leads enterprise sales and partnerships, drawing on seven years of B2B sales experience to develop customer relationships.

Marloes Decraemer

Marloes Decraemer

CPO, Product

Turns systems research into deployable products and leads design partnerships, customer onboarding and the product experience.

Clarity & Common Queries

Frequently Asked Questions

Doesn’t vLLM already do this?

Partly. vLLM supports prefix caching, and the ecosystem includes external KV-storage systems. Galahad stores model state persistently and restores it only after checking that the input bytes, model and tenant match; if any check fails, it recomputes. Evaluate it on persistent reuse, verification and operational behavior under its documented compatibility conditions, and compare the same model, engine version, hardware, cache state and workload before choosing a solution.

How does it compare with LMCache?

In one side-by-side test on one hardware and model configuration, Galahad reloaded state from disk 2.3 times faster than LMCache, and its break-even against recomputing came at roughly half the input length. Stored data was 100% encrypted with Galahad and 0% in the tested LMCache configuration. With state already in GPU memory the two perform the same, because that speed comes from the inference engine. These results come from one configuration and should not be read as general performance claims. Full measurements are available on request.

Why can’t a bigger company just add this?

Exactness is not a simple configuration flag; it is a foundational architectural shift. Big-tech inference engines are built for stateless batching throughput where small semantic drifts are accepted. Corbenic’s Galahad memory layer combines zero-copy C++ sub-tensor memory addressing with formal verification guarantees (Lean, Z3), described across 6 published research papers.

Does it work on today’s hardware?

Yes. Galahad requires zero new physics, no custom ASICs, and no future hardware. It runs on the GPUs you already rent or own. It has been tested on 12 NVIDIA GPU models, from T4 to H200, on AWS, Google Cloud, RunPod and vast.ai, with llama.cpp, vLLM and SGLang. Tell us your hardware and we will confirm support.

Security and data handling

Pilot

Measure Galahad on your workload

Non-intrusive pilots on your own servers. We measure on your workload before you commit, and the pilot costs nothing. Licensing is per accelerator.

Prefer email? [email protected]

Prefer to try it yourself?

Install the community package, then measure it on your own workload. pip install galahad-kv · GitHub · Benchmark methods

  • Delaware C-Corp
  • Your data and weights stay with you
  • Works with your frozen model

Request a pilot