Designing a 3D DRAM and LPDDR Hybrid Memory Training Chip
This article presents a hybrid memory architecture for AI training chips that combines near-logic 3D DRAM with 512 GB of local LPDDR to decouple bandwidth from capacity. It explains why high bandwidth is traditionally bundled with large capacity due to packaging shoreline limits, and how this causes structural cost waste in Mixture-of-Experts (MoE) training. The article details the two-tier design, precision-based data placement, quantitative answers on 3D DRAM capacity, bandwidth requirements, FP4 compute targets, and interconnect constraints, along with a formal constraint-solving approach to minimize BOM cost.
Designing a 3D DRAM and LPDDR Hybrid Memory Training Chip
1. The Core Problem: Why High Bandwidth Is Always Bundled with Large Capacity
When designing in-house training chips for Mixture-of-Experts (MoE) models at the scale of tens of thousands or even hundreds of thousands of GPUs, commercial competitiveness is not determined by peak compute numbers. It is determined by how much effective memory bandwidth each dollar can buy. Traditional high-bandwidth memory solutions are constrained by the shoreline limit of planar packaging: the width available for routing along the chip edge is limited, which hard-caps the number of memory stacks that can be attached. To deliver bandwidth in the range of 6 to 8 TB/s, vendors can only stack multiple large-capacity stacks. As a result, bandwidth and capacity are sold as a bundle—you may only want extreme bandwidth on a compact capacity, but you are forced to pay for large amounts of idle capacity.
This is especially absurd in MoE training. The activated parameter count in MoE is small, but the optimizer states and master weights are extremely large. Idle capacity is not “wasting a little”—it is structural waste in the BOM cost.
2. Design Approach: Decoupling Bandwidth from Capacity with Vertical Stacking
The core idea of this design is a two-tier hybrid memory architecture of “near-logic 3D DRAM + 512 GB large-capacity LPDDR”:
- Hot tier (3D DRAM): Vertically stacked on top of the logic compute die, providing extreme bandwidth through vertical interconnects. Capacity is deliberately kept small and configured on demand, breaking the proportional coupling between bandwidth and capacity.
- Cold tier (LPDDR): A fixed 512 GB per card, with a fixed peak bandwidth of 283 GB/s, used to persistently store low-frequency-access state.
The data placement strategy follows a “precision tiering” principle:
| Data Category | Placement | Precision |
|---|---|---|
| Master weights | LPDDR | FP32 |
| AdamW first moment, second variance | LPDDR | FP32 |
| Compute weights | 3D DRAM | NVFP4 / FP8 |
| Current micro-batch activations, gradients | 3D DRAM | Low precision |
The interconnect bandwidth targets current mainstream flagship training chip specifications: 1.8 TB/s bidirectional total within a node (900 GB/s per direction), and an 800 Gb/s network port per card outside the node (100 GB/s per direction).
3. Quantitative Answers to Four Core Engineering Questions
3.1 How Much 3D DRAM Capacity Is Needed
The capacity floor is determined by the minimum working set the hot tier must hold, not by the total model parameter count. Working set = low-precision compute weights + current micro-batch activations + gradients. Because FP32 master weights and optimizer moments/variances are offloaded to LPDDR, 3D DRAM only needs to cover the active portion at compute precision, reducing capacity requirements by an order of magnitude compared to traditional solutions.
3.2 How Much Bandwidth Is Needed, and Must It Match 8 TB/s
The answer is no. Bandwidth demand is determined by arithmetic intensity: the more floating-point operations required per unit of weights and activations read in, the lower the bandwidth needed. The sparse activation characteristic of MoE further reduces the pressure of repeated weight reads. Therefore, 8 TB/s is not an efficiency floor. With reasonable micro-batch partitioning and expert parallelism layout, bandwidth significantly below that figure can sustain compute utilization.
3.3 What Should Dense FP4 Tensor Core Compute Be Set To
Compute should be determined in coordination with 3D DRAM bandwidth and LPDDR refill bandwidth, not set in isolation. If compute is too high while hot-tier bandwidth is insufficient, Tensor Cores will idle waiting for data; if LPDDR refill bandwidth is insufficient, optimizer state updates become the bottleneck. Engineering practice should derive the PFLOP/s target from a “bandwidth-to-compute ratio” constraint.
3.4 Interconnect and Cluster Constraints
At 10,240 cards and 102,400 cards, the 100 GB/s per direction outside the node has a clear gap relative to 900 GB/s within the node. Therefore, the parallelism strategy must confine the most frequent communication (such as tensor parallelism) within the node, place expert parallelism and data parallelism outside the node, and apply hierarchical aggregation to all-to-all communication.
4. Formal Constraint-Solving Method
The above problems can be written as a constrained optimization model, illustrated as follows:
# Pseudocode: feasibility constraint solving for the hybrid memory architectureconstraints = {"cap_3d": workset_fp4 + activations + grads <= CAP_3D,"bw_3d": bytes_moved_per_step / step_time <= BW_3D,"bw_lpd": optimizer_state_bytes / update_window <= 283e9,"compute": flops_per_step / step_time <= PEAK_FP4 * MFU,"inter": cross_node_traffic <= 100e9,}solution = solve(constraints, objective="minimize_bom_cost")
The objective is not to maximize peak performance, but to minimize BOM cost while satisfying convergence and throughput constraints.
5. Conclusion
“High bandwidth must be bundled with large capacity” is an industry inertia caused by packaging shoreline limits, not a physical necessity. By using near-logic 3D DRAM to provide a compact high-bandwidth hot tier, LPDDR to carry massive persistent state, and precision tiering plus formal constraint solving to determine the ratio of capacity, bandwidth, compute, and interconnect, training chip cost can be driven to the extreme in 10,000-card and 100,000-card MoE training scenarios while preserving training efficiency. This methodology can also transfer to heterogeneous training cluster planning on platforms such as Baidu AI Cloud, serving as a general reference framework for memory hierarchy and parallelism strategy design.
