Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_llm-paged-kv-and-prefix-caching

Paged KV memory and prefix caching

7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[![Paged KV memory and prefix caching — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_llm-paged-kv-and-prefix-caching/opengraph-image)](https://archos.sageideas.dev/d/dgm_llm-paged-kv-and-prefix-caching)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_llm-paged-kv-and-prefix-caching)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_llm-paged-kv-and-prefix-caching" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Paged KV memory and prefix caching — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  src_0[("Client application")]
  n0_1["AI gateway"]
  n1_2["Inference server"]
  n2_3[("KV cache")]
  n3_4[("Storage")]
  ctrl_5["OpenTelemetry Collector"]
  sink_6[("Client application")]
  src_0 -->|"1. Hashes pfx · HTTPS"| n0_1
  n0_1 -->|"2. Maps blks · TCP"| n1_2
  n1_2 -->|"3. Reuses KV · TCP"| n2_3
  n2_3 -->|"4. Pages HBM · TCP"| n3_4
  n3_4 -->|"5. Fast TTFT · HTTPS"| sink_6
  n1_2 -->|"Hit rate · OTLP"| ctrl_5

COMPONENT STACK (7)

  • Client applicationSTATEFUL
    Shared system prompt
  • AI gatewaySTATELESS
    Prefix-hash router
  • Inference serverSTATELESS
    Block table mapper
  • KV cacheSTATEFUL
    Non-contiguous 16-tok blks
  • StorageSTATEFUL
    HBM3 + CPU RAM offload
  • OpenTelemetry CollectorSTATELESS
    Prefix hit % & TTFT
  • Client applicationSTATEFUL
    5x lower TTFT

REQUEST & DATA FLOW (6)

  1. Client application → AI gateway (Hashes pfx)[HTTPS]
  2. AI gateway → Inference server (Maps blks)[TCP]
  3. Inference server → KV cache (Reuses KV)[TCP]
  4. KV cache → Storage (Pages HBM)[TCP]
  5. Storage → Client application (Fast TTFT)[HTTPS]
  6. Inference server → OpenTelemetry Collector (Hit rate)[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →