-ngl / Offload
-ngl / Offload
What problem it solves
Give part of the model to the GPU and keep the rest on the CPU — the compromise when VRAM falls short.
What it is
Assigning layers across devices: whatever fits in VRAM goes to the GPU, the rest runs on the CPU backed by system memory.
In llama.cpp this is usually controlled with the `-ngl` flag.
Why it matters
It lets models that "almost" fit run at all, at a clear cost in speed. A trade-off, not a free lunch.
What you can do now
Sources
- Choosing by VRAM, backwards (Qwen3.8) ↗
Use this term in a task
Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.