internalsGet Pro

Module 17 · Lesson 7 of 11Pro

Feeding the GPUs: data loading at scale

Level
Advanced
Topic
Distributed training and scalable ML systems
Reading time
17 min

When you finish this page you can

  1. Work out the events, bytes and CPU time per second a distributed training job needs from its step time and batch.
  2. Tell an input-bound step from a compute-bound one, and measure which one a job has on its slowest rank.
  3. Split a dataset across ranks and loader workers without gaps or duplicates, for map-style and iterable-style datasets.
  4. Choose a file layout and shuffle for streaming training data: row group size, shard order and a shuffle buffer.

Builds on 2 lessons

Start with lesson 217 min
  1. Data parallel training: same model, many GPUs17 min
  2. Training on GPUs: memory, precision and speed18 min

Video lesson · coming soon

A 4.8-hour retrain on pace for 20

is an online store with 5 million customers a day and 20 million products. Every night, Farah, an ML engineer, retrains the sequence model that picks products for each customer’s home page, the model from Generative recommenders. Joseph, who leads the growth team, needs it done inside a 6-hour overnight window.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan