Full-Stack Code Design to Alleviate AI Memory Pressure

NVIDIA is adopting a full-stack code design approach to alleviate memory pressure in AI models. This approach integrates GPU, CPU, networking, storage, and software to maximize memory usage efficiency. In particular, it utilizes HBM technology to enhance data processing performance in AI factories.

Current Status of AI Memory Pressure

As the size and complexity of AI models have increased recently, GPU memory pressure has intensified. NVIDIA is collaborating with memory partners to rapidly introduce the latest memory technologies to address this issue. In particular, HBM3e and HBM4 technologies have been applied for the first time in accelerated computing stacks. However, rather than simply adding more memory to GPUs, full-stack code design is being used to maximize memory efficiency.

Concept of Full-Stack Code Design

NVIDIA's full-stack code design enables more useful tasks to be performed in memory by designing GPU, CPU, networking, storage, and software together. AI factories operate within a memory and storage hierarchy, where the GPU's high-bandwidth memory (HBM) is the fastest and most expensive layer. This layer competes for limited capacity with model weights and KV caches. Therefore, efficient memory usage depends on the utilization of the entire hierarchy.

Importance and Limitations of HBM

Increasing the capacity of HBM is an obvious solution to memory pressure, but capacity is limited by the amount of bandwidth that can be moved. If HBM is likened to a warehouse, memory bandwidth is like the entrance to that warehouse. A larger warehouse can store more inventory, but if the entrance's capacity reaches its limit, the speed of inventory movement slows down, potentially delaying response times. This memory wall problem can lead to performance degradation in AI factories.

Strategies for Efficient Memory Usage

NVIDIA is maximizing every byte of HBM through full-stack code design. The following strategies are being employed to reduce inefficiencies:

Achievements and Future Outlook

As each generation of the NVIDIA platform progresses, the number of tokens per user per second is increasing much faster than HBM capacity. Under the SemiAnalysis AgentX DeepSeek V4 Pro workload, the NVIDIA GB300 NVL72 offers up to 10 times higher throughput per user than the NVIDIA H200 platform at 100 tokens per second. This achievement is a crucial metric for AI factory operators.

ModelInput $/1MOutput $/1M
Gemini 3.8 Flash0.753.75

Through these technologies, NVIDIA is effectively alleviating memory pressure in AI models and plans to further enhance performance through continuous technological development.

Verified figures

Our take

NVIDIA's full-stack code design is an innovative approach to maximizing memory efficiency in AI models. It is expected to make significant contributions to the future development of AI technology.

Open questions

Models mentioned

ProviderInputOutputContext window
Google: Gemini 3.8 Flash · Google$0.825$4.1251,048,576

Source

Back to catalog