How would you train a model that does not fit on one accelerator?

HardConcept15 minRERSPro outline

The question

You need to train a 30 billion parameter transformer, and each accelerator has 80 GB of memory. Explain where the memory goes and walk me through the techniques you would combine to make training fit and run efficiently.

What the interviewer is looking for

  • A memory budget: weights, gradients, optimizer state and activations, with rough numbers
  • Data parallelism versus sharding of optimizer state, gradients and weights
  • Tensor parallelism and pipeline parallelism, and what each communicates
  • Activation checkpointing and mixed precision as memory levers
  • Awareness of trade-offs: communication cost, pipeline bubbles, interconnect topology

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Google DeepMind question type: how you would train a model too large to fit on one accelerator.

Reported in: leetml.org

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Google DeepMind question.