Inferra and vLLM: the KV Connector V1 Integration

Arthur Rasmusson Director of AI Infrastructure at Lightbits Labs
Arthur Rasmusson
Director of AI Architecture
December 03, 2026

vLLM’s KV Connector V1 interface is the seam that makes tiered KV cache possible without forking the engine. This post covers what sits on our side of that seam: where the connector intercepts, what it deliberately doesn’t touch, and the configuration that actually changes behavior.

What is the KV cache? When a model reads your prompt, every token it attends to produces a key and a value vector at every layer. Those vectors are the model’s working memory of the conversation so far. They are per-session state; they grow linearly with context length, and at long context they dwarf the weights. Throw them away and the only way to get them back is to run the entire prompt through the model again: prefill.

Where the Connector Sits

The connector has two halves, running in two different processes, and most integration confusion comes from conflating them.

The scheduler half runs in vLLM’s scheduler process. It participates in admission and allocation decisions before any GPU work happens. Its central question is asked once per request: how much of this prompt do I already have? vLLM asks the connector for the number of externally matched tokens, and the answer changes how many blocks the scheduler allocates and how much of the prompt needs computing. The scheduler half also builds the per-step metadata that tells the worker half what to do.

The worker half runs in each model-executor process, next to the GPU. It is driven by the metadata the scheduler produced: start loading external KV for this step, wait for a given layer’s KV to be resident before its attention runs, and save this layer’s KV after it is computed. It runs on the hot path, and everything it does must fit within the model’s execution schedule.

The split matters because the two halves know different things. The scheduler knows about requests, blocks, and admission; it does not have the GPU. The worker has the GPU and the tensors; it does not make scheduling decisions. Metadata flows one way, per step.

What Stays vLLM’s Job

Worth being explicit, because the most common integration misconception is that a KV connector replaces vLLM‘s memory management. It does not.

vLLM’s allocator still owns GPU blocks. The connector does not allocate, free, or relocate GPU memory. It supplies KV content for blocks vLLM has allocated, and reads content out of blocks vLLM tells it about. The engine still decides block lifetime.

vLLM’s prefix cache still works normally. The engine’s own prefix caching is the first tier and it is untouched. The connector serves what the prefix cache misses. A warm-in-GPU prefix never reaches us, and should not.

Scheduling policy is vLLM’s. The connector influences scheduling only through the matched-token count it reports; it does not reorder, preempt, or prioritize.

The model is unmodified. No weight changes, no graph surgery. The attention path is intercepted where the engine already provides a seam.

The practical consequence: if you hit a scheduling or memory behavior that looks wrong, the connector is usually not where to start. If you hit a content problem, such as a prefix that should have been reused and was not, it is.

One request, end to end

A diagram depicting KV catch prefetch request through vLLM connector
Loads are latency-critical; stores are not. A late load stalls a kernel, a late store costs nothing — which is what makes the asymmetry in steps 5 and 8 safe.

Take a returning session whose history is on the storage tier.

  1. Admission. The scheduler asks the connector how many tokens of this prompt it can supply externally. The connector resolves the prompt’s prefix against what it holds and returns a count.
  2. Allocation. vLLM allocates blocks for the full sequence, but only the unmatched remainder needs computing. This is where the savings are realized, and where interaction with chunked prefill happens, because the engine allocates for the claimed tokens and the chunk it is about to compute together.
  3. Metadata. The scheduler builds per-step metadata naming which blocks to load for which requests, and ships it to the workers.
  4. Load. The worker begins fetching external KV. This is asynchronous and starts as early as possible: the whole design depends on transfers overlapping computation rather than blocking it.
  5. Per-layer wait. Before a layer’s attention runs, the worker ensures that layer’s KV is resident. If the prefetch did its job, this is a no-op; if not, it stalls, and stalls here are what the prefetch design exists to avoid.
  6. Compute. Attention runs. On the streamed path, history is consumed as windows with an online-softmax accumulation that is numerically identical to the monolithic form.
  7. Save. Newly computed KV is handed to the connector for storage. This is asynchronous: the store is dispatched and completes later, off the critical path.
  8. Completion. The connector reports which transfers have finished so the engine can release resources.

The asymmetry between steps 4 and 7 is worth internalizing. Loads are latency-critical; stores are not. A load that arrives late stalls a kernel. A store that completes late costs nothing, provided the blocks it references are still valid when it lands, which is the real constraint on how aggressively the engine may recycle blocks.

Configuration that Actually Matters

block_size. The unit of both vLLM’s allocator and the connector’s storage granularity. It sets prefix-cache boundaries, and therefore reuse: a prefix shared between two requests is only reusable up to a block boundary. Small blocks give finer reuse and more per-block overhead; large blocks give coarser reuse and fewer, larger transfers. Changing it changes what is reusable, not just how fast transfers are.

gpu_memory_utilization. Determines how much HBM vLLM claims, and therefore how much is left for the engine’s own prefix cache. With a storage tier behind it, the calculus changes: HBM is no longer the last line of defense, so pushing it to the maximum is less necessary than it was. Leaving headroom for staging buffers is often the better trade.

Prefill backend selection. Which attention implementation runs determines whether the streamed windowed path is available for a given layer configuration. This is the setting most likely to silently disable the feature: a backend without the streaming path will simply run the ordinary dense path, correctly and slowly, with no error.

Chunked prefill interaction. The chunk size is not a pure throughput knob here. The engine allocates blocks for the connector’s claimed tokens plus the chunk about to be computed, together, so an overly large chunk can demand more blocks at once than the pool can satisfy on a long-context request. If long-context requests appear to stall without progressing, this is the first thing to check.

Hybrid and Mamba Models

Models such as Qwen 3.5/3.6 mix full-attention layers with state-space layers, and this changes what is cacheable.

Only full-attention layers have a KV cache in the sense this system deals with. State-space layers carry recurrent state instead: a fixed-size summary, not a per-token key/value history. It is not addressable per token and it is not what the connector stores.

So on a hybrid model, the windowed streaming path arms on the full-attention layers and the state-space layers run their ordinary path. As a result, the proportion of the model that benefits depends on the architecture’s mix. A model that is mostly state-space has less KV cache to tier and, correspondingly, less to gain. This is a real effect on the achievable speedup and it is worth checking against the specific model before modelling savings.

Diagnosing an Integration Problem

Check the release notes and the errata for your version first. This is a fast-moving integration against a fast-moving engine, and a meaningful share of what looks like a defect is a known interaction with a specific vLLM version, documented with a workaround.

The connector guide, release notes, and errata are on docs.lightbits.ai. Engine-side changes live in the Lightbits Labs vLLM fork’s pull requests, which are the fastest way to see what actually changed between versions.

If you use an agent for documentation search, this corpus is well-suited to it:

Search docs.lightbits.ai for the vLLM connector guide, I'm on vLLM <version> with <model>, and <symptom>.
About the writer
Arthur Rasmusson Director of AI Infrastructure at Lightbits Labs
Arthur Rasmusson
Director of AI Architecture