Skip to content
ml-recall

#zero

1 question from Deep Learning Frameworks

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

hardAI-checkedDeep Learning Frameworks

A model with 2 billion parameters is trained with mixed-precision Adam on 8 GPUs. Per parameter it needs 2 bytes for the fp16 weights, 2 bytes for the fp16 gradients and 12 bytes of optimizer state (fp32 master weights, momentum and variance), so plain data parallelism stores 32 GB of these model states on every GPU. ZeRO stage 2 splits the gradients and the optimizer states evenly across the 8 GPUs, while every GPU still keeps all the fp16 weights. How many GB (10910^9 bytes) of model states does each GPU hold?

a number of GB