Stock LLM Wiki

報告_OCP2026_Micron_KVCache卸載分層記憶體模型_20261015

PDF 原檔:報告_OCP2026_Micron_KVCache卸載分層記憶體模型_20261015_original.pdf

講者公開簡報(OCP 官方 Recorded Content 頁提供下載)。文字以 PyMuPDF 逐頁抽取,### p<n> 為頁碼;圖表內容見原檔。

圖片清單(已驗證 2026-10-19)

檔名 頁 分類 親眼所見內容
報告_OCP2026_Micron_KVCache卸載分層記憶體模型_20261015_p11.png p11 真資料圖 Llama3-70B、kv-tier=800GB、bs=16、isl/osl=30K/128:有效重用率 0.1/0.25/0.5/0.75/1 對應實測 TTFT 60.10/56.27/39.12/24.38/5.77 秒;框架預測(綠柱)較低,約 52/45/32/17 秒,兩者同為近線性下降
報告_OCP2026_Micron_KVCache卸載分層記憶體模型_20261015_p12.png p12 真資料圖 Llama3-70B、bs=16(約 3.8RPS):KV tier 容量 100/200/400/600/800GB,有效重用率約 0.7→0.9→1.0 並自 400GB 起持平;實測 TTFT 約 31/28/12/2/2 秒(讀自長條圖,非標註值)
報告_OCP2026_Micron_KVCache卸載分層記憶體模型_20261015_p13.png p13 真資料圖 Llama3-70B、kv-tier=800GB:並行數 1/4/8/16/32/64,有效重用率約 1.0 維持到 16,32 略降、64 大幅崩落;TTFT(對數軸 ms)自並行 16 起由數百 ms 急升至萬 ms 等級

原始內容

p1

Khayam Anjam [Staff Engineer – Micron Technology] Tiered Memory for LLM Inference — A Modeling Framework for KV-Cache Offload SERVER: COMPOSABLE MEMORY SYSTEMS (CMS)

p2

Growth in: • Context lengths • Concurrent users • Multi-turn conversations • Agent workloads LLM Inference Has Created a New Memory Wall HBM bandwidth is no longer the only bottleneck—capacity increasingly determines scalability The challenge is no longer whether KV should be offloaded, but where it should be placed. Result: • KV-cache dominates memory footprint • HBM capacity becomes limiting • Memory offload is becoming mandatory

p3

• Evaluating KV offload today requires expensive experimentation Why Existing Analysis Is Difficult Approach Limitation Hardware benchmarking Slow and expensive Detailed simulation Long runtimes Roofline analysis Ignores capacity Rule-of-thumb sizing Misses workload dynamics A practical architecture-level framework is missing!

p4

• Architects need answers before hardware is built. Examples: • How much secondary-tier memory is needed? • When does offload improve TTFT? • When does capacity matter more than bandwidth? • When does CXL become useful? • How much memory is needed at high concurrency? What Questions Should a Framework Answer? Our goal is a framework that answers these questions analytically.

p5

Memory Hierarchy • HBM • Host Memory • CXL Memory • Storage Memory Model inference as workload × working set × memory hierarchy Workload • Request Rate • Context Length • Concurrency KV Working Set • Reusable KV • Active KV Generates Mapped onto TTFT/ Throughput Performance emerges from the interaction of all three.

p6

Two workloads with identical potential reuse Reuse Alone Is Not Enough Potential reuse is not the same as effective reuse Takeaway: Reuse must be capacity-aware. Potential Reuse Capacity Constraints Effective Reuse TTFT / Throughput En ou g h c ap ac i t y I ns u f f i c i e nt ca pa ci t y Potential Effective high high Lower TTFT/ Higher throughput Higher TTFT/ Lower throughput Potential Effective low high but different tier capacity Capacity aware

p7

Effective reuse = workload reuse gated by capacity Policy-agnostic framework: no dependence on proprietary cache implementations Capacity determines the range of achievable reuse; cache policy only determines where within that range a system operates. Bound Formula Random (conservative) γeffective = γworkload × min(1, S/W) "Oracle" – best case (optimistic) γeffective = min(γworkload , S/W) Theoretical (Workload) Reuse Rate γworkload Effective Reuse Rate γeffective S/W (Capacity / Working Set)

p8

KV Cache Is Not One Working Set KV cache naturally separates into two populations. System Prompt Tier (Cross-Session) • Shared instructions reused across sessions • Moderate reuse: 40–60% over hours • Working set accumulates with request rate × observation window • Capacity-driven, latency-tolerant • Best placed: CPU DRAM (LPDDR5x), storage- class memory Session Context Tier (Intra-Session) • Active conversation history within sessions • Very high reuse: ≥95%(system prompt incl) over minutes • Working set scales with concurrency (concurrency × context × bytes/token) • Bandwidth-critical, hot data • Best placed: HBM, spills to DDR/LPDDR tkn tkn tkn tkn tkn tkn tkn tkn tkn tkn tkn tkn tkn tkn tkn [system prefix] [session prefix] [unique]

p9

Framework Inputs: Workload spec (request rate · context length · concurrency · reuse rate) + System / tier spec (per-tier capacity · bandwidth · latency: HBM, DDR/LPDDR, CXL, storage) 1 · Operator decomposition Hardware-calibrated primitives: GEMM, attention, communication, memory 2 · Working-set decomposition Two populations: system-prompt (cross-session) + session-context (intra-session) 3 · Capacity-gated effective reuse Policy-agnostic bounds: random (lower) and oracle (upper) 4 · Tier-aware bandwidth & latency Per-tier retrieval cost mapped onto the memory hierarchy Outputs: TTFT · Throughput · Minimum tier capacity · Capacity-vs-bandwidth trade-offs Suggested CMS scope: workload schema · tier specification · effective-reuse metric · benchmark · reporting template

p10

Validation Platform Framework validated on a GH200-class tiered memory system Hardware: GH200 NVL2 • 2× H200 GPU, 288 GB HBM3e • 2× 72-core Arm Neoverse V2 @ 3.1 GHz • 2× 512 GB LPDDR5x @ 384 GB/s • NVLink 900 GB/s CPU-GPU interconnect Configuration • Model: Llama 3.1-70B, FP16 • Parallelism: tensor parallel 2 • Engine: vLLM + LMCache • ISL/OSL = 30K/128 • prefix tokens = 30K (100% reuse rate) • RPS: 3.8 req/s • Validation focuses first on the reusable-prefix population; session-context pressure is captured through concurrency scaling.

p11

Observations • Reduced hit rates increase TTFT • Framework predicts trend accurately • Effective reuse is a meaningful predictor Validation #1 — Miss Rate Determines TTFT Latency scales strongly with cache misses Takeaway Miss-rate modeling captures first-order latency impact.

p12

Observations • Capacity increases affect up to a threshold • Reuse suddenly becomes realizable • TTFT drops dramatically • Once threshold reached capacity has little effect Validation #2 — Capacity Creates Thresholds Memory capacity creates step-function behavior Takeaway Capacity and performance are not linearly related.

p13

Observations • Effective reuse remains near 100% while the reusable working set fits within available capacity. • Increasing concurrency expands the active KV working set and eventually exhausts memory capacity. • Once the capacity threshold is crossed, effective reuse collapses and TTFT increases sharply. Validation #3 — Concurrency Creates Pressure Concurrency turns reuse into a scaling problem Takeaway A memory tier sufficient today may fail at production concurrency.

p14

Design Rules Emerging from the Analysis Design rule Meaning KV is multi-population Shared prefixes and active session context behave differently. Miss rate drives latency TTFT improves as miss rate drops Capacity gates reuse The rate of reuse depends if the working set fits. Concurrency must be explicit Production load changes the working set.

p15

• Capacity-aware reuse is the right abstraction • KV consists of multiple populations with different requirements • The framework predicts: miss-rate effects, capacity thresholds, concurrency pressure • Applicable to: • HBM • DDR/LPDDR • CXL • storage-class memory Conclusions • KV-cache offload is not a binary optimization. It is a placement problem across a memory hierarchy. Memory hierarchy design will increasingly determine scalable LLM inference performance.

p16

Gaps OCP CMS can address • No vendor-neutral workload schema, capacity-aware reuse metric, tier-comparison method, or results format. • Completed • Analytical framework and initial GH200-class dense-model validation. • Remaining • Validate MoE and new KV optimizations across more memory tiers and multi-vendor platforms. • Micron's proposed inputs • Share framework, capacity-gated effective-reuse metric, and validation data, published tiered-memory analysis paper. Call to Action: Treat KV-Cache Offload as a Memory-Hierarchy Problem Suggested CMS path: align scope → co-draft v0.1 with members → validate with partners → review as a group

p17

Thank You!