Table of Contents
Fetching ...

Insights into DeepSeek-V3: Scaling Challenges and Reflections on Hardware for AI Architectures

Chenggang Zhao, Chengqi Deng, Chong Ruan, Damai Dai, Huazuo Gao, Jiashi Li, Liyue Zhang, Panpan Huang, Shangyan Zhou, Shirong Ma, Wenfeng Liang, Ying He, Yuqing Wang, Yuxuan Liu, Y. X. Wei

TL;DR

DeepSeek-V3 demonstrates hardware-aware co-design to address memory, compute, and interconnect bottlenecks in large-scale AI. The work combines MLA for memory-efficient KV caches, MoE for favorable compute-accuracy tradeoffs, FP8 mixed-precision training, and a Multi-Plane network to reduce cluster cost, achieving cost-efficient training on 2,048 H800 GPUs. The paper analyzes scale-up/scale-out convergence, low-latency interconnects, and proposes hardware directions like precise low-precision units and memory-semantic communication for future AI hardware. The findings offer a practical blueprint for hardware-model co-design to enable scalable, accessible AI systems.

Abstract

The rapid scaling of large language models (LLMs) has unveiled critical limitations in current hardware architectures, including constraints in memory capacity, computational efficiency, and interconnection bandwidth. DeepSeek-V3, trained on 2,048 NVIDIA H800 GPUs, demonstrates how hardware-aware model co-design can effectively address these challenges, enabling cost-efficient training and inference at scale. This paper presents an in-depth analysis of the DeepSeek-V3/R1 model architecture and its AI infrastructure, highlighting key innovations such as Multi-head Latent Attention (MLA) for enhanced memory efficiency, Mixture of Experts (MoE) architectures for optimized computation-communication trade-offs, FP8 mixed-precision training to unlock the full potential of hardware capabilities, and a Multi-Plane Network Topology to minimize cluster-level network overhead. Building on the hardware bottlenecks encountered during DeepSeek-V3's development, we engage in a broader discussion with academic and industry peers on potential future hardware directions, including precise low-precision computation units, scale-up and scale-out convergence, and innovations in low-latency communication fabrics. These insights underscore the critical role of hardware and model co-design in meeting the escalating demands of AI workloads, offering a practical blueprint for innovation in next-generation AI systems.

Insights into DeepSeek-V3: Scaling Challenges and Reflections on Hardware for AI Architectures

TL;DR

DeepSeek-V3 demonstrates hardware-aware co-design to address memory, compute, and interconnect bottlenecks in large-scale AI. The work combines MLA for memory-efficient KV caches, MoE for favorable compute-accuracy tradeoffs, FP8 mixed-precision training, and a Multi-Plane network to reduce cluster cost, achieving cost-efficient training on 2,048 H800 GPUs. The paper analyzes scale-up/scale-out convergence, low-latency interconnects, and proposes hardware directions like precise low-precision units and memory-semantic communication for future AI hardware. The findings offer a practical blueprint for hardware-model co-design to enable scalable, accessible AI systems.

Abstract

The rapid scaling of large language models (LLMs) has unveiled critical limitations in current hardware architectures, including constraints in memory capacity, computational efficiency, and interconnection bandwidth. DeepSeek-V3, trained on 2,048 NVIDIA H800 GPUs, demonstrates how hardware-aware model co-design can effectively address these challenges, enabling cost-efficient training and inference at scale. This paper presents an in-depth analysis of the DeepSeek-V3/R1 model architecture and its AI infrastructure, highlighting key innovations such as Multi-head Latent Attention (MLA) for enhanced memory efficiency, Mixture of Experts (MoE) architectures for optimized computation-communication trade-offs, FP8 mixed-precision training to unlock the full potential of hardware capabilities, and a Multi-Plane Network Topology to minimize cluster-level network overhead. Building on the hardware bottlenecks encountered during DeepSeek-V3's development, we engage in a broader discussion with academic and industry peers on potential future hardware directions, including precise low-precision computation units, scale-up and scale-out convergence, and innovations in low-latency communication fabrics. These insights underscore the critical role of hardware and model co-design in meeting the escalating demands of AI workloads, offering a practical blueprint for innovation in next-generation AI systems.
Paper Structure (55 sections, 4 equations, 8 figures, 5 tables)

This paper contains 55 sections, 4 equations, 8 figures, 5 tables.

Figures (8)

  • Figure 1: Basic architecture of DeepSeek-V3. Built upon DeepSeek-V2’s MLA and DeepSeekMoE, a Multi-Token Prediction Module and FP8 mixed-precision training are introduced to enhance inference and training efficiency. The figure indicates the precision used for computations in different parts of the architecture. All components take inputs and outputs in BF16.
  • Figure 2: H800 node interconnection.
  • Figure 3: Eight-plane two-layer fat-tree scale-out network: Each GPU and IB NIC pair belongs to one network plane. Cross-plane traffic must use another NIC and PCIe or NVLink for intra-node forwarding.
  • Figure 4: Ideal Multi-Plane Network: Each NIC is equipped with multiple physical ports, each connected to a distinct network plane. A single queue pair (QP) can simultaneously utilize all available ports for transmitting and receiving packets, which necessitates native support for out-of-order placement within the NIC.
  • Figure 5: NCCL all-to-all performance from 32 to 128 GPUs for MRFT and MPFT networks.
  • ...and 3 more figures