Accelerate Large-Scale LLM Inference and KV Cache Offload with CPU-GPU Memory Sharing

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Engineers running large LLMs on NVIDIA Grace Hopper or Grace Blackwell hardware can now load models that exceed GPU memory without manual partitioning or transfers, using managed memory via RAPIDS Memory Manager.

Read this as

NVIDIA shows how its Grace Hopper chip can run AI models too big for the graphics chip alone. Normally, loading a large language model like Llama 3.1 70B, which needs about 140 GB of memory, onto a GPU with only 96 GB fails with an 'out of memory' error. The Grace Hopper Superchip combines GPU memory with 480 GB of CPU memory into one shared pool, so the extra data can spill over automatically. The article is a tutorial for developers using this hardware.

NVIDIA demonstrates that its Grace Hopper and Grace Blackwell systems can run models larger than GPU memory by sharing memory between CPU and GPU over NVLink-C2C, a 900 GB/s connection claimed to be 7x PCIe Gen 5 bandwidth. This matters for companies deploying Llama 3.1 70B or Llama 4 Scout 109B in-house: it removes the need to shard models manually on those specific systems. Buyers of standard GPU-only servers gain nothing from this approach.

NVLink-C2C provides a 900 GB/s memory-coherent interconnect, 7x PCIe Gen 5, creating a unified address space across the GH200's 96 GB GPU memory (up to 144 GB) and 480 GB LPDDR5X CPU memory. Loading Llama 3.1 70B in FP16 (~140 GB) OOMs on the GPU alone; enabling RAPIDS Memory Manager with managed_memory=True as PyTorch's allocator resolves it. A 128k-token KV cache for Llama 3 70B consumes ~40 GB at batch size 1, scaling linearly with users. The article includes no latency or throughput benchmarks for unified-memory inference.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

NVIDIA GH200 Grace Hopper Grace Blackwell NVLink-C2C RAPIDS Memory Manager

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading