liveBook · Manning

Idle percentage

As explained in LLMs in Production

Idle percentage is the proportion of pipeline execution time during which processing devices are not performing useful computation.

Idle percentage measures how much pipeline execution time devices spend waiting instead of performing useful computation. In pipeline parallelism, sequential processing creates an inactivity bubble: one GPU works while others wait. section 3.3.2

Estimating the bubble

Use Idle Percentage = 1 − m / (m + n − 1), where m is the number of microbatches and n is pipeline depth or GPU count. Four GPUs processing one large batch are idle 75% of the time; four microbatches reduce this to about 43%. section 3.3.2

Use the metric to reason about practical trade-offs:

  • Increase microbatches to start downstream devices earlier and improve utilization, but expect cached activation memory to grow linearly. section 3.3.2
  • Prefer fewer larger GPUs when possible; memory requirements may force additional devices, increasing idle time. section 3.3.2
Figure 3.6 The bubble problem. When data runs through a broken-up model, the GPUs holding the model weights are underutilized while they wait for their counterparts to process the data. A simple way to reduce this bubble is to use microbatching.
figure

The bubble diagram makes waiting periods visible and shows how microbatching reduces underutilization. section 3.3.2

How LLMs in Production covers it

How deep it goes
Defines a formula, works through two GPU examples, and explains utilization and memory trade-offs.
Examples
Uses four GPUs with one batch, four microbatches, an idle-time formula, and a pipeline-bubble diagram.
What it assumes
Assumes pipeline stages, GPUs, batches, and microbatches; explains the idle-time calculation directly.
What you can do after
Evaluate pipeline configurations and diagnose whether microbatching or GPU selection can reduce expensive idle time.
How it connects
Connects pipeline parallelism with microbatching, GPU memory, model compression, and activation caching.

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.