Learn AI Math

CPU Offloading

What is CPU Offloading?

In one sentence: CPU offloading moves some model layers or data from the GPU to the CPU and system RAM.

The CPU either runs those layers itself or holds them until the GPU needs them. Tools like llama.cpp let you choose how many layers stay on the GPU.

What does CPU Offloading look like?

Setting llama.cpp to put 30 of 40 layers on the GPU offloads the other 10 to the CPU.

Why does CPU Offloading matter?

CPU offloading helps people run models that do not quite fit their GPU.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.