AI inference glossary

Software

HiCache

Also known as SGLang HiCache, hierarchical KV cache

In plain English

HiCache extends SGLang’s prefix cache beyond accelerator memory, retaining reusable attention state in host memory and optionally a storage backend.

Technical definition

HiCache is SGLang’s hierarchical KV-cache system, extending radix-based prefix reuse across accelerator memory, instance-local host memory, and an optional storage tier.

Engineering details

The hierarchy tracks where cached state resides and manages loading, prefetching, and write-back. A host-memory hit still needs a transfer before device computation can reuse the state. Host memory is private to an inference instance; cross-instance reuse requires a storage backend configured for the intended sharing scope. Transfer implementations and supported model state depend on the serving stack.

Why it matters

A larger retained prefix cache can reduce repeated prefill in long multi-turn workloads, but transfer latency, bandwidth, and eviction policy determine whether a hit actually improves service time. High hit rate alone is not proof of lower end-to-end latency.

How to read it in InferenceX

The TPU article describes SGLang HiCache host-DRAM offload through TPU-Sync for Muse Spark Open at high concurrency. That measured recipe does not imply that every HiCache backend or configuration supports the same accelerator and model combinations.

See the concept in real benchmarks

All articles