Inference Stack
Gateway
- Router
- Router
- Dynamo Router
- Model Gateway
- ATOM Mesh
Prompt
Output
Route requests to servers
Several copies of the model run on different servers. The router receives each request and picks which server handles it. Smarter routers pick the server that already has it cached, or split the work into prefill and decode.
Inference engines
- vLLM
- SGLang
- ATOM
- TensorRT-LLM
Offload and reload KV cache
The inference engine interacts with the KV-cache manager to either look up what is already cached, or offload the cache from the accelerator for later, or load the cache back to the accelerator. The manager decides where the cache goes, and the actual copying happens in the layers below.
KV-cache management
- Store
- LMCache
- HiCache
- Offloading Connector
- MoRI UMBP
- KVBM
Issue KV cache transfers
The KV-cache manager instructs the data movement library which KV cache blocks to move and where.
Data movement
- Mooncake
- NIXL
- MORI-IO
- cudaMemcpy / hipMemcpy
Move bytes around
The data movement library moves KV cache between accelerator memory (L1), host memory (L2) and storage (L3 and L4), either within the server or across the network.
Accelerators
- NVIDIA
- AMD
- HBML1
Storage
- DRAML2
- NVMeL3
- Remote storageL4
Hover, focus or tap a trace to follow it through the stack.
Diagram after SemiAnalysis. Component names belong to their projects.