Designing a Training Chip with 3D DRAM and LPDDR Hybrid Memory

    This article explores a hybrid memory architecture for AI training chips that combines near-logic 3D DRAM with local LPDDR to decouple bandwidth from capacity. It explains why traditional high-bandwidth memory bundles capacity and bandwidth together, and how a three-tier storage hierarchy addresses the conflicting demands of Mixture-of-Experts (MoE) training. The discussion covers sizing the 3D DRAM hot tier, setting a realistic bandwidth floor of 2–4 TB/s, matching compute to bandwidth under the Small-M effect, precision layering with FP32 state offloading, and deployment constraints at 10,000- and 100,000-card scale. Readers will find capacity and bandwidth formulas, configuration guidelines, and the key ratios needed to reduce storage BOM cost without sacrificing training efficiency. All conclusions come from coarse-grained system simulation and formal constraint solving rather than measured product data.

    Designing a Training Chip with 3D DRAM and LPDDR Hybrid Memory

    1. The Problem: Why High Bandwidth Always Comes Bundled

    When designing a custom training chip for Mixture-of-Experts (MoE) models at the scale of ten thousand or even a hundred thousand cards, the real commercial outcome is not decided by peak compute numbers. It is decided by how much effective training throughput each dollar of BOM cost can buy. The packaging form of traditional high-bandwidth memory forces it to occupy a large amount of planar package shoreline: the number of physical pins at the chip edge is limited, so the only way to get more bandwidth is to stack more and larger memory stacks. The result is that bandwidth and capacity are forcibly bound together. To obtain bandwidth in the 6–8 TB/s range, you must purchase far more capacity than you actually need, leaving a large amount of memory idle for the entire training run and wasting cost.

    MoE training amplifies this conflict further. In dense models, state size and compute grow together, but MoE pushes the total parameter count into the hundreds of billions or even trillions, while each token activates only a small subset of experts. The chip therefore faces two extreme demands at once: it needs massive capacity to persistently hold the master weights and optimizer states, and it needs extremely high bandwidth to feed the compute units. Satisfying both with a single memory medium is nearly impossible economically.

    The approach discussed here is to use near-logic 3D DRAM, stacked vertically on top of the logic compute die, to provide “compact capacity, extreme bandwidth” hot-tier working memory, decoupling bandwidth from the proportional relationship with capacity. Each card is also configured with 512 GB of high-capacity local LPDDR (fixed peak bandwidth of 283 GB/s) as cold-tier persistent state storage. The FP32 master weights and the first- and second-moment states of AdamW all reside permanently in LPDDR, while 3D DRAM holds only the compute weights quantized via NVFP4 (or FP8), plus the activations and gradients of the current micro-batch. The interconnect spec targets the current mainstream flagship training chips: 1.8 TB/s bidirectional combined 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).

    Note that all conclusions in this article come from coarse-grained system simulation and formal constraint solving. They are used to determine the order of magnitude and proportional relationships of the architecture, not measured data from any specific product.

    2. Architecture Overview: Three Memory Tiers and Two Bandwidth Channels

    The entire memory subsystem can be abstracted into three tiers:

    Tier Medium Capacity Role Bandwidth Role Contents
    L0 On-chip SRAM/registers KB–MB Extreme Current tile, accumulators
    L1 Near-logic 3D DRAM Compact (GB scale) Extreme (TB/s scale) Low-precision compute weights, activations, gradients
    L2 Local LPDDR 512 GB 283 GB/s FP32 master weights, AdamW moments and variance

    The key design principle is “bandwidth for compute, capacity for state.” 3D DRAM moves the data path from the chip edge to above the die through vertical interconnects (TSV/hybrid bonding), so the shoreline is no longer the bottleneck. This makes it possible to obtain extreme bandwidth with very little capacity. LPDDR uses the traditional planar channel: capacity is cheap but bandwidth is limited, which is exactly right for state that is accessed infrequently but must be persisted.

    The data flow can be written as the following pseudocode, which reflects the tiered idea that “double precision lives only in the cold tier, and compute precision lives only in the hot tier”:

    1. # Logical view of each training step
    2. for mb in micro_batches:
    3. # 1. Load FP32 master weights from the cold tier on demand, quantize to compute precision, and enter the hot tier
    4. w_fp32 = lpddr.load_master_weights(expert_ids) # 283 GB/s channel
    5. w_low = quantize(w_fp32, fmt="nvfp4") # written to 3D DRAM
    6. dram.store_weights(w_low)
    7. # 2. The hot tier completes forward/backward; activations and gradients stay in 3D DRAM throughout
    8. acts = forward(dram.load_weights(), x) # TB/s-class channel
    9. grads_low = backward(acts)
    10. dram.store_grads(grads_low)
    11. # 3. Aggregate gradients back to FP32 and update the cold-tier state
    12. g_fp32 = dequantize(grads_low)
    13. m, v = lpddr.load_optimizer_state(expert_ids)
    14. w_new, m, v = adamw(w_fp32, g_fp32, m, v)
    15. lpddr.store_all(w_new, m, v)

    3. Core Question One: How Much 3D DRAM Capacity Is Actually Needed

    The capacity lower bound is determined by “what the hot tier must hold,” not by the total parameter count. The hot tier only needs to hold the low-precision weights, activations, and gradients of the batch of experts currently being computed for the current micro-batch, so the capacity requirement is approximately:

    1. C_dram ≈ (W_low + A + G) × N_experts_in_flight × (1 + fragmentation)

    Here W_low is the quantized weight size in bytes per expert, A is the activations, G is the gradients, and N_experts_in_flight is the number of experts resident at the same moment. In engineering practice, a fragmentation and double-buffering factor of 1.3–1.5 is enough to cover most MoE routing distributions.

    This formula leads to a counterintuitive but extremely important conclusion: 3D DRAM capacity is almost decoupled from the total model parameter scale. As the model scales from hundreds of billions to trillions of parameters, the hot-tier capacity requirement stays roughly unchanged as long as the number of resident experts per step stays the same. This is precisely the source of the large BOM savings from “breaking the capacity-bandwidth bundle.” The excess capacity that had to be purchased in the past was essentially paying the hot-tier price for cold-tier needs.

    4. Core Question Two: Where Is the Bandwidth Floor, and Must It Reach 8 TB/s

    Let B_step be the number of hot-tier bytes that must be moved per card per step. If the target training efficiency requires hot-tier memory access time to be no more than 1/α of compute time (α is typically 4–8), then the bandwidth constraint is:

    1. BW_dram ≥ α × B_step / T_compute

    Plugging typical MoE parameters into coarse-grained simulation yields a stable order-of-magnitude conclusion: a 3D DRAM bandwidth in the 2–4 TB/s range is enough to keep memory access from being the bottleneck, and blindly chasing 6–8 TB/s produces rapidly diminishing marginal returns. The reason is that the MoE bottleneck is often not “can’t move data” but “can’t move it evenly.” Routing skew causes some experts to be overloaded while others sit idle, and adding total bandwidth does not improve effective utilization in that situation.

    Bandwidth planning should therefore prioritize reducing ineffective data movement: expert-affinity scheduling, cross-step activation recomputation, and low-precision gradient accumulation. These techniques contribute more to throughput at the margin than increasing the number of stacks.

    5. Core Question Three: Where Should Compute Be Set

    The matching relationship between hot-tier bandwidth and compute can be written as:

    1. Required_BW = (Compute_achievable) / (Arithmetic_Intensity)

    The arithmetic intensity of MoE is significantly lower than that of dense models due to the Small-M effect, so compute cannot be sized independently of bandwidth. Using dense FP4 compute as the measure, simulation puts the reasonable landing point in the hundreds of PFLOP/s range, and it must satisfy:

    1. Peak_FLOPS ≤ BW_dram × AI_target

    If compute is configured well above this ceiling, the extra Tensor Cores will simply spin idle while waiting for weight loads, creating wasted power under a “compute wall.” The practical recommendation is to make compute a configurable set of tiers (for example, 2–3 tiers via frequency and array partitioning), so the balance point can be re-found under different model sparsity levels.

    6. Core Question Four: How the Small-M Effect Reshapes the Ratio

    When each token is routed to hundreds of experts, the row count M of the per-expert matrix multiplication shrinks sharply, and the operator slides from compute-bound to memory-bound. At this point, matrix multiplication performance is no longer determined by O(M·N·K) but is closer to the weight-reading time of O(N·K). This directly leads to the “golden ratio” between 3D DRAM bandwidth and compute:

    1. BW_dram / Peak_FLOPS ≈ 1 / AI_smallM

    Here AI_smallM is the measured arithmetic intensity when M is 1–8. The engineering implication is clear: the smaller M is, the higher the required bandwidth-to-compute ratio. If the chip is configured at the ratio for dense large M, compute will inevitably sit idle during MoE training.

    Countermeasures include: packing tokens from multiple experts into a unified GEMM (grouped GEMM) to restore M; using GEMV-style efficient kernels for extremely small M; and providing fine-grained gather/scatter capability on the 3D DRAM side to avoid repeatedly reading weights just to fill a tile.

    7. Precision Layering and Correctness Points for State Offloading

    Low-precision compute must be paired with high-precision state, otherwise MoE training can easily diverge. The key points are:

    1. Master weights, momentum, and variance reside permanently in LPDDR at FP32; updates are done in the cold tier to avoid repeated round trips in the hot tier.
    2. Quantization error must be controllable: use block-wise scale factors rather than a single per-tensor scale.
    3. Gradients can use low precision in the hot tier, but before cross-card all-reduce it is advisable to promote to FP16/BF16 accumulation to reduce numerical amplification from routing skew.
    4. Overflow and outlier handling must have a deterministic path to make fault reproduction easier.

    8. Deployment Constraints at 10,000- and 100,000-Card Scale

    Meeting single-card metrics does not mean the cluster is trainable. At the scale of ten thousand cards (10,240) and a hundred thousand cards (102,400), the following must also be satisfied:

    • The 900 GB/s per-direction bandwidth within a node is used for expert parallelism and activation exchange, while 100 GB/s per direction outside the node is used for cross-node gradient synchronization. The two are in a ratio of about 9:1, and the communication topology design must respect this asymmetry.
    • Expert parallelism degree and routing skew must be jointly optimized to avoid individual devices becoming a long tail.
    • Capacity planning for the 512 GB cold tier must cover “state plus checkpoint staging.” Checkpoints should be written asynchronously to external object storage to reduce blocking of training steps.
    • Full-link observability is required: logging services and monitoring alerts must cover three core metrics—bandwidth utilization, expert load distribution, and quantization overflow rate.

    9. Conclusion

    The tiered hybrid memory of 3D DRAM plus LPDDR is essentially splitting “bandwidth” and “capacity” into two independent budgets: the hot tier buys bandwidth with compact-capacity 3D DRAM, and the cold tier buys capacity with local high-capacity LPDDR. The engineering baseline from simulation and constraint solving is: 3D DRAM capacity only needs to cover in-flight expert state, bandwidth can land at 2–4 TB/s, compute and bandwidth must satisfy the Small-M arithmetic-intensity constraint, and the interconnect maintains the 9:1 intra/inter-node asymmetry. Following this sizing methodology can reduce the training chip’s memory BOM to a highly competitive level without sacrificing training efficiency.