Back to archiveRepository
Repository
FutureMLS-Lab/FlashStates
What changed
FlashStates extends vLLM with fine‑grained checkpointing and hybrid state caching to keep reusable model state across successive turns of many agents, especially for hybrid architectures that mix attention with linear‑attention or state‑space layers.
Why it matters
By allowing arbitrary state checkpointing and coupling checkpoints with their required KV blocks, FlashStates can raise cache‑hit rates dramatically (e.g., 87 % vs 30 % in the demo) and increase token‑per‑minute throughput, translating into lower GPU usage and cheaper inference for workloads that would otherwise recompute large portions of the prompt each turn.
When to test it
- Serving dozens of coding or reasoning agents that continuously extend their context on the same GPU cluster.
- Deploying hybrid‑architecture LLMs (state‑space, linear‑attention) where traditional KV‑cache eviction is sub‑optimal.
- Research experiments on cost‑aware cache policies and persistent state stores for LLM inference.
- Building custom inference pipelines that require arbitrary checkpoint placement for low‑latency turn‑taking.