๐Ÿฆ™Stalecollected in 53m

High-speed NVMe arrays for large-scale LLM inference

PostLinkedIn
๐Ÿฆ™Read original on Reddit r/LocalLLaMA

๐Ÿ’กCould massive NVMe arrays replace expensive VRAM for hosting giant LLMs? A deep dive into hardware bottlenecks.

โšก 30-Second TL;DR

What Changed

Utilizing 80 PCIe 5.0 lanes for massive NVMe bifurcation

Why It Matters

If viable, this could democratize the hosting of massive models that currently require expensive enterprise-grade GPU clusters.

What To Do Next

Benchmark your model's latency when offloading layers to NVMe using llama.cpp's disk-offloading features.

Who should care:Developers & AI Engineers

Key Points

  • โ€ขUtilizing 80 PCIe 5.0 lanes for massive NVMe bifurcation
  • โ€ขTheoretical throughput of up to 1.2TB/sec with 80 drives
  • โ€ขPotential to overcome VRAM capacity limitations for 1-2TB models
  • โ€ขDiscussion on the viability of disk-based model offloading

๐Ÿง  Deep Insight

Web-grounded analysis with 30 cited sources.

๐Ÿ”‘ Enhanced Key Takeaways

  • โ€ขNVMe arrays are increasingly utilized for Key-Value (KV) cache offloading in LLM inference, particularly for models with long context windows and multi-turn conversations, effectively extending memory capacity beyond GPU High Bandwidth Memory (HBM) and CPU DRAM.
  • โ€ขSpecialized PCIe Gen5 switch adapters and fabrics are emerging to create direct, low-latency pathways between GPUs and NVMe storage, enabling GPU Direct Storage (GDS) and bypassing traditional CPU bottlenecks.
  • โ€ขSoftware frameworks like vLLM (with LMCache), DeepSpeed, and projects such as llm-d are actively developing and optimizing strategies for disk-based LLM inference, including tiered KV caching (GPU HBM, CPU DRAM, NVMe SSD) and disaggregated prefill/decode phases.
  • โ€ขWhile NVMe offloading significantly expands capacity, it introduces latency penalties compared to HBM. Performance gains are primarily derived from avoiding redundant computation through KV cache hits rather than NVMe raw speed matching HBM, necessitating optimizations like NVMe-direct paths and intelligent caching heuristics.
  • โ€ขComposable infrastructure platforms are gaining traction, allowing dynamic allocation and disaggregation of NVMe storage, GPUs, and other PCIe-connected resources over a fabric, which enhances resource utilization and flexibility for evolving AI workloads.
๐Ÿ“Š Competitor Analysisโ–ธ Show
Feature/CategoryHigh-Lane-Count PCIe 5.0 NVMe Arrays (Self-Hosted)Pure Storage FlashBlade (Enterprise Storage)Liqid Composable InfrastructureGroq (Specialized Hardware)
Primary Use CaseOvercoming VRAM limits for large LLM inference via local NVMe offloading.High-performance, scale-out storage for AI/ML workloads, including RAG and KV cache acceleration.Dynamic allocation and disaggregation of compute, memory, and storage resources over PCIe fabric.Ultra-low latency, high-throughput inference using custom Language Processing Units (LPUs).
Hardware FocusDirect-attached NVMe SSDs, PCIe 5.0 bifurcation, high-lane-count servers.All-flash, scale-out storage arrays (FlashBlade//S) with NVMe-oF optimization.Software-defined orchestration of commodity hardware (CPUs, GPUs, NVMe, CXL memory) via PCIe fabric.Custom-built LPU chips optimized for sequential processing in LLMs.
Key AdvantageCost-effective capacity extension for multi-terabyte models, high theoretical local throughput.Optimized for parallel data delivery, metadata-indexed pipelines, and KV cache acceleration (Pure KVA).Maximizes hardware utilization, provides real-time resource flexibility, and scales independently.Exceptional speed and cost-efficiency for inference, often surpassing GPU-based systems.
Challenges/LimitationsPotential for I/O bottlenecks if not optimized (e.g., kernel page cache thrashing), complex software stack.Enterprise-grade cost, may require integration with existing GPU infrastructure.Requires specific hardware compatibility and software integration for full composability.Limited ecosystem compared to GPUs, specific to inference workloads.
Performance (LLM Inference)Theoretical 1.2TB/sec with 80 drives; actual performance depends on offloading strategy and software.Up to 20x faster inference with Pure KVA for KV cache reuse.Improved GPU utilization and reduced idle time through dynamic resource provisioning.Delivers exceptional low-latency and high-throughput.

๐Ÿ› ๏ธ Technical Deep Dive

  • PCIe 5.0 Bandwidth: A x16 PCIe 5.0 slot provides up to 64 GB/s of bidirectional bandwidth, doubling PCIe 4.0's capabilities.
  • PCIe Switch Architectures: Advanced PCIe switches, such as Marvell's Structera S 50256 (PCIe 5.0) with 256 lanes, offer 2048 GB/sec of aggregate bidirectional bandwidth. HighPoint's Rocket 7638D is a PCIe Gen5 switch adapter that provides dedicated x16 pathways for both GPUs and NVMe storage, enabling GPU Direct Storage (GDS) by bypassing the host CPU.
  • NVMe-Direct Paths: Frameworks like Dual-Blade implement NVMe-direct paths that bypass the operating system's filesystem and kernel page cache. This approach maps Key-Value (KV) tensors to contiguous logical block address (LBA) regions, reducing software overhead and improving latency for offloaded data.
  • Tiered KV Cache Management: A common strategy for LLM inference involves a three-tier storage hierarchy: hot KV blocks reside in GPU HBM, warm blocks in CPU DRAM, and cold or historical context blocks are offloaded to NVMe SSDs.
  • Offloading Mechanisms: DeepSpeed supports offloading optimizer states and model parameters from GPU VRAM to CPU RAM or NVMe. The dominant I/O pattern for NVMe offloading is typically large, sequential reads and writes, and RAID0 configurations can significantly improve throughput.
  • NVMe-over-Fabrics (NVMe-oF) with RDMA: Solutions like Dell's Project Lightning leverage NVMe-oF with Remote Direct Memory Access (RDMA) to facilitate direct data transfer from disk drives to GPU memory, minimizing CPU involvement and latency.
  • Compute Express Link (CXL): CXL, an open standard built on PCIe, provides memory and coherency extensions. CXL 1.0 coincided with PCIe 5.0, and newer versions like CXL 4.0 (based on PCIe 7.0, released in 2025) enable memory pooling and disaggregation, offering significantly lower latency than NVMe for memory expansion.

๐Ÿ”ฎ Future ImplicationsAI analysis grounded in cited sources

Composable infrastructure will become a standard for AI data centers.
The ability to dynamically allocate and disaggregate GPUs, NVMe storage, and CXL memory will be crucial for optimizing resource utilization and adapting to the rapidly evolving demands of LLM workloads and agentic AI.
NVMe-based KV cache offloading will be a mandatory feature for serving large context LLMs.
As LLM context windows expand to 128K tokens and beyond, GPU HBM alone cannot accommodate the KV cache for multiple concurrent users, making NVMe offloading essential for practical and cost-effective inference at scale.
Dedicated PCIe switch fabrics and GPU Direct Storage will be critical for high-performance AI.
Bypassing CPU bottlenecks and enabling direct, low-latency GPU-to-NVMe communication is necessary to fully leverage the increasing bandwidth of PCIe 5.0 and future generations for massive AI datasets and models.

โณ Timeline

2019-05
PCIe 5.0 standard released, doubling bandwidth over PCIe 4.0.
2019
Compute Express Link (CXL) 1.0 specification released, building on PCIe 5.0 for memory and coherency.
2024-04
HighPoint Technologies announces industry's first 8-Channel PCIe Gen5 x16 NVMe Switch & RAID AICs, integrating Broadcom's PEX89048 switch IC.
2025-01
Dell introduces Project Lightning, leveraging NVMe-oF with RDMA for direct disk-to-GPU memory transfer for KV cache offloading.
2025-03
Marvell Technology introduces the Structera S family of PCIe switches, including the Structera S 50256 for PCIe 5.0 with 256 lanes.
2025-08
Pliops introduces the XDP LightningAI accelerator card for NVMe-based KV cache offloading, augmenting GPU server memory.
๐Ÿ“ฐ

Weekly AI Recap

Read this week's curated digest of top AI events โ†’

๐Ÿ‘‰Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA โ†—