Designing Training Chips with Hybrid 3D DRAM and Local LPDDR Memory
This article explores a tiered hybrid memory architecture for AI training chips targeting 10,000- to 100,000-GPU Mixture-of-Experts (MoE) workloads. It explains why conventional high-bandwidth memory ties bandwidth to capacity, and how combining near-logic 3D DRAM with local high-capacity LPDDR separates hot working storage from cold state storage. The article covers the three-layer data placement principle, why MoE training suits tiered memory, capacity and bandwidth baselines, and how compute configuration and the software stack must be co-designed. Readers will learn to drive capacity from the working set, bandwidth from per-step data movement, and compute from the communication-hiding window, using simulation and constraint solving rather than assuming high bandwidth requires large stacks.
1. Problem Background: Why High Bandwidth Is Always Bundled with Large Capacity
For Mixture-of-Experts (MoE) training at 10,000- to 100,000-GPU scale, the competitiveness of a custom training chip often comes down to memory cost. Common high-bandwidth memory solutions are constrained by the planar package shoreline, so bandwidth and capacity are typically bundled together: reaching multi-TB/s bandwidth requires stacking multiple high-capacity memory stacks, which leaves capacity idle and wastes material cost.
This article discusses a general technical approach: a tiered hybrid memory architecture that pairs near-logic 3D DRAM with local high-capacity low-power DRAM (LPDDR). The core idea is not to keep stacking expensive memory stacks, but to separate “hot-layer working storage” from “cold-layer state storage” and optimize each for bandwidth density and capacity cost respectively.
2. Overall Architecture: A Three-Layer Data Placement Principle
Training state is divided into three layers:
- Compute layer: 3D DRAM sits close to the logic compute die and holds only low-precision compute weights, current micro-batch activations, and gradients.
- State layer: each card is equipped with local high-capacity LPDDR, for example 512 GB, with a fixed peak bandwidth of about 283 GB/s, persistently storing FP32 master weights and AdamW momentum and variance.
- Interconnect layer: intra-node bidirectional bandwidth totals 1.8 TB/s, or 900 GB/s per direction; inter-node bandwidth is 800 Gb/s per card, or 100 GB/s per direction.
The key benefit of this design is that high bandwidth no longer forces the purchase of high-capacity stacks; capacity scaling is handled by low-cost local storage.
3. Why MoE Training Fits Tiered Memory
MoE training has three characteristics at once: large state, sparse compute, and fluctuating expert routing. FP32 master weights and optimizer states are accessed less frequently than compute weights but occupy much more capacity; low-precision compute weights and activations demand higher bandwidth. Placing the two data types in separate tiers avoids paying a high-bandwidth premium for low-frequency state.
An illustrative capacity estimate:
Compute weights = parameter count × bytes per parameterOptimizer states = parameter count × bytes for master weights, momentum, and variance3D DRAM demand ≈ compute weights + peak activations + peak gradients + routing buffersLocal high-capacity DRAM demand ≈ optimizer states + master weights + checkpoint and recomputation buffers
A real design should perform a parameter search based on model structure, expert parallelism degree, micro-batch size, and recomputation strategy, rather than estimating simply from peak parameters.
4. How to Determine Capacity and Bandwidth Baselines
3D DRAM capacity should not be maximized for its own sake; it should cover the “single-step compute working set” while leaving headroom for routing jitter. The bandwidth baseline is determined by the compute weights, activations, and gradients that must be moved per card per step, and is jointly constrained by the degree of overlap with tensor-parallel and expert-parallel communication. If the compute phase cannot hide state updates and cross-card communication, training efficiency drops quickly.
Therefore, whether 8 TB/s must be matched depends on micro-batch scheduling, operator fusion, expert cache hit rate, and communication overlap capability. A reasonable approach is to first build a coarse-grained system simulator, then use formal constraint solving to search for the minimum viable combination of bandwidth and capacity.
5. Co-Designing Compute Configuration and the Software Stack
Dense FP4 throughput on tensor cores should be matched to memory bandwidth. Too little compute causes memory stalls; too much compute makes LPDDR state updates the bottleneck. A practical constraint is that single-step time must not exceed the window in which communication and state updates can be hidden, from which the viable compute range can be derived.
The software stack needs to support low-precision compute, master-weight write-back, expert cache eviction, pipeline parallelism, and fault recovery. In related practice, Baidu AI Cloud can rely on general capabilities such as container platforms, object storage, and monitoring and alerting to host training jobs, checkpoints, and observability, but chip design should still be based on public, verifiable modeling results.
6. Conclusion
For 10,000- to 100,000-GPU MoE training, the value of 3D DRAM plus local high-capacity LPDDR lies in decoupling bandwidth from capacity. Engineering practice should drive capacity from the working set, bandwidth from per-step data movement, and compute from the communication-hiding window, and determine final parameters through simulation and constraint solving, rather than following the traditional assumption that high bandwidth must be bundled with large capacity.
