← Back to AI Infrastructure Mind Map
🖥️ AI InfrastructureID: gpu-hardware

GPU Hardware & HBM

GPU 硬件与 HBM
🎯Core Definition
The hardware foundation of GPU training/inference is a three-axis trade-off: compute, memory bandwidth, and memory capacity. Take H100 SXM as the baseline: 80GB HBM3 at 3.35TB/s; 989 TFLOPS dense FP16/BF16 (1979 with sparsity), 1979 TFLOPS FP8; 50MB L2, 132 SMs (228KB shared-memory SRAM per SM). The memory hierarchy, fastest to slowest: registers (256KB per SM) → shared memory SRAM → L2 (50MB) → HBM (80GB) → host DRAM/NVMe; each level drops roughly an order of magnitude in bandwidth while gaining capacity. Memory wall: a 70B model in FP16 is 140GB of weights; reading them once at 3.35TB/s takes 140 GB3.35 TB/s≈42 ms\frac{140\,\text{GB}}{3.35\,\text{TB/s}} \approx 42\,\text{ms}, while one token of forward compute is roughly 2×70B=140 GFLOP2 \times 70\text{B} = 140\,\text{GFLOP}, needing only ≈0.14 ms\approx 0.14\,\text{ms} at 989 TFLOPS — a ~300:1 ratio. Since weights live in HBM and every use re-reads all of them, training/inference is locked to the bandwidth wall (bandwidth-bound). Arithmetic intensity I=FLOPbyteI = \frac{\text{FLOP}}{\text{byte}} decides the regime: H100's balance point is 989 TFLOP/s3.35 TB/s≈295 FLOP/byte\frac{989\,\text{TFLOP/s}}{3.35\,\text{TB/s}} \approx 295\,\text{FLOP/byte}; ops below it are bandwidth-bound (LayerNorm, activations, elementwise), above it compute-bound (large matmuls).
💡Use Cases
the first lesson of training-infra interviews — memory estimation (16Ψ, activations, KV Cache all reference the 80GB HBM), operator bottleneck analysis (torch.profiler: memory-bound vs compute-bound), and parallelism choice (TP needs intra-node NVLink for its frequent small messages of size ~b×s×hb \times s \times h).
⚡Key Problems Solved
explains why large-model training/inference never saturates FLOPs — the 140GB of weights must be re-read from HBM constantly, 42ms of transfer vs 0.14ms of compute (~300×). Every infra optimization (FlashAttention's SRAM reuse, quantization shrinking bytes, TP/PP parallel amortization, KV Cache tuning) is ultimately a fight against this bandwidth wall.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of GPU Hardware & HBM.
Use Cases
In production engineering, what are the primary use cases for GPU Hardware & HBM and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Recite H100 specs: 80GB HBM3, 3.35TB/s bandwidth, 989 TFLOPS FP16, 50MB L2; compute the balance arithmetic intensity ≈295 FLOP/byte\approx 295\,\text{FLOP/byte} and classify the GPU as compute- or bandwidth-bound.
2
Hand-derive the memory wall: 70B FP16 weights = 140GB, one pass costs 140 GB3.35 TB/s≈42 ms\frac{140\,\text{GB}}{3.35\,\text{TB/s}} \approx 42\,\text{ms}; one token's forward is 2×70B2 \times 70\text{B} FLOP = ≈0.14 ms\approx 0.14\,\text{ms} at 989 TFLOPS; ~300:1 ratio, explaining why training is bandwidth-bound.
3
Sketch the memory hierarchy: registers → SRAM/shared memory → L2 → HBM → host memory with typical capacity/bandwidth orders (H100: 228KB/SM, 50MB, 80GB); why FlashAttention keeps intermediates in SRAM instead of writing back to HBM.
4
Use arithmetic intensity I=FLOP/byteI=\text{FLOP/byte} to classify ops: state H100's balance point ≈295\approx 295; give bandwidth-bound examples (LayerNorm/activations/GELU) vs compute-bound (large matmul) and explain the reasoning.
5
Argue from bandwidth/capacity: why 70B cannot fit one card (140GB weights > 80GB HBM), requiring weight sharding (TP/ZeRO) or quantization; why byte-reduction (quantization, recompute) beats raw FLOPs when weights are re-read wholesale.
📖 In-depth Guide:📄 gpu-hardware-and-hbm →
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "GPU Hardware & HBM"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardData Pipelines & StreamingNext Card →Collective Comm & NVLink Topology

🔗 More AI Infrastructure Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/AI_Infra/card/gpu-hardware
中文速览与面试要点

GPU 硬件与 HBM (GPU Hardware & HBM)

定义: GPU 训练/推理的硬件底座是「算力 + 显存带宽 + 显存容量」三个维度的组合。以 H100 SXM 为基准: 80GB HBM3, 带宽 3.35TB/s; FP16/BF16 密集算力 989 TFLOPS(稀疏 1979), FP8 1979 TFLOPS; L2 50MB、132 个 SM(每 SM 228KB 共享内存 SRAM)。显存层级自快到慢: 寄存器(每 SM 256KB)→ 共享内存 SRAM → L2(50MB)→ HBM(80GB)→ 主机内存/NVMe, 带宽逐级下降约一个数量级、容量逐级上升。内存墙: 70B 模型 FP16 权重 140GB, 以 3.35TB/s 搬运一遍需 140\, GB3.35\, TB/s 42\, ms; 而单 token 前向计算量约 2 70 B = 140\, GFLOP, 在 989 TFLOPS 下仅需 0.14\, ms——搬运与计算比约 300:1, 权重驻留 HBM、每次使用都要全量读出的训练/推理流程被显存带宽锁死(带宽受限)。算术强度(arithmetic intensity)I = FLOP byte 是判断依据: H100 平衡强度约 989\, TFLOP/s3.35\, TB/s 295\, FLOP/byte, 低于它为带宽受限(LayerNorm、激活、逐元素算子), 高于它为算力受限(大矩阵乘)。 使用场景: 训练 Infra 面试第一课——显存估算(16Ψ、激活、KV Cache 都以 80GB 为参照)、算子瓶颈分析(torch.profiler 看 memory-bound vs compute-bound)、并行策略选型(TP 需要节点内 NVLink 承载高频小消息, 因为其消息量 ~b s h 与带宽强相关)。 解决的问题: 解释“为什么大模型训练/推理吃不满 FLOPs”——权重 140GB 必须反复从 HBM 读出, 搬运时间 42ms 是计算时间 0.14ms 的约 300 倍; 一切 Infra 优化(FlashAttention 用 SRAM、量化减字节、TP/PP 并行摊薄、KV Cache 优化)本质上都是在与这条带宽墙博弈。

核心要点

  • 报 H100 关键数字: 80GB HBM3、3.35TB/s 带宽、989 TFLOPS FP16、L2 50MB; 口算平衡算术强度 295\, FLOP/byte 并判断它是算力受限还是带宽受限。
  • 手算内存墙: 70B FP16 权重 140GB, 搬运一遍 140\, GB3.35\, TB/s 42\, ms; 单 token 前向 2 70 B FLOP 在 989 TFLOPS 下 0.14\, ms; 比值约 300:1, 由此说明训练为何带宽受限。
  • 画出显存层级: 寄存器 → SRAM/共享内存 → L2 → HBM → 主机内存, 每级典型容量与带宽量级(H100: 228KB/SM、50MB、80GB); FlashAttention 为什么要把中间结果留在 SRAM 而不写回 HBM。
  • 用算术强度 I= FLOP/byte 判断算子类型: 给出 H100 平衡点 295; 举出带宽受限(LayerNorm/激活/GELU)与算力受限(大 matmul)的例子并解释判断过程。
  • 从带宽/容量角度论证: 为什么 70B 单卡放不下(权重 140GB > 80GB), 需要权重切分(TP/ZeRO)或量化; 为什么权重反复全量读出的场景优先优化字节数(量化、重计算)而非算力。