Watch GPU Memory, Utilization & Power

While the tokens of token generation and streaming were streaming, the card underneath was filling memory, running kernels, and drawing power. This lesson runs that generation again with a monitor open beside it and teaches three readings: memory, utilization, and power. Each is easy to read and one of them is routinely read wrong. Readouts on this page are representative of the course's H100 box; your columns will differ in the digits, not the shape.

Watching

Open two terminals, per the habits from remote GPU setup: one runs generation inside tmux, the other watches.

Start the watcher before the load, then run time.py from token generation and streaming, and the whole lesson plays out in the columns.

Memory

Memory tells a three-act story. Idle, the card sits near zero. As the load from model loading and tokenization runs, it climbs shard by shard to roughly 17,000 MiB and stays there: the weights, resident, exactly as the inference stack described. During generation it creeps up by a modest amount, and the creep does not fall back when the run ends.

The panel's 17,024 MiB is more than 16.06 GB allocated from model loading and tokenization, and both units and bookkeeping are to blame. MiB are the binary units from memory and throughput arithmetic: medusa, eagle and multi-token prediction decimal GB is only 15,317 MiB. On top of the model's tensors, the process carries CUDA's own working state plus memory PyTorch has reserved but not currently allocated; the gap between torch.cuda.memory_reserved() and torch.cuda.memory_allocated() shows the latter. The full accounting of what a running model holds belongs to prefill, decode, and KV memory.

The creep during generation is the growing per-request state the lesson on inference engineering said every request carries, visible here for the first time. Generate a longer answer and it creeps further; end the run and the panel holds its high-water mark, because PyTorch pockets the freed blocks in the reserved pool rather than returning them to the driver. The release shows in torch.cuda.memory_allocated(), and the column falls to zero only when the process exits. Prefill, decode, and KV memory names the state, sizes it, and shows why it, not the weights, is what limits how many requests share a GPU.

Utilization

While tokens stream, GPU-Util sits high, often pinned near 99%, and this is the reading the lede warned about.

Common misconception. GPU-Util near 100 percent does not mean the GPU's compute is being fed. The column measures whether kernels were executing on the device, not what those kernels were doing with the silicon, and the lesson on inference engineering showed what single-stream generation does with it: the compute units spend over 99 percent of each step waiting on memory. Both facts hold at once, kernels running almost continuously, arithmetic mostly starved. Read utilization as a liveness signal (whether the GPU is doing anything at all), never as an efficiency signal; measuring how well the silicon is actually used is profiling work for GPU profiling.

The liveness reading is still useful daily: a stuck queue shows 0 percent with full memory, a healthy stream shows the pin, and the difference diagnoses more hung jobs than any log file.

Power

The power column is the physics. Idle, the card draws well under a hundred watts; under generation it climbs into the hundreds, against the H100 SXM's 700 W ceiling. Power is the utility bill what inference is promised inference would be, one card at a time, and it is also a plausibility check: a job that claims to be running while the card draws idle watts is not really running. Sustained heavy draw also raises temperature, and a card that hits its thermal limits slows itself; on rented single-GPU boxes this is rarely your problem.

The triage habit

The three columns make a thirty-second triage that will serve you for the whole course. Memory says whether the model fits and how much room requests have; utilization says whether anything is running at all; power says whether claimed work is physically happening. None of them says whether the machine is being used well; that question waits for the measurement discipline from inference benchmarking.

That is the machine's side of generation, watched live. One step remains in this module's arc before the lab: the model still only answers you, in a Python session, on the box. The next lesson puts it behind HTTP, where anything can ask.