Integrated GPU vs CPU for Local LLMs: Performance, Memory, Tradeoffs
In this article
For running local large language models (LLMs), a dedicated GPU is generally far faster than a CPU, and an integrated GPU (iGPU) sits in between—often offering a meaningful speedup over CPU-only inference if it has enough shared memory and bandwidth, but still lagging behind discrete GPUs. The main tradeoffs are speed, memory capacity, and cost: CPUs can use large amounts of system RAM but are slow, iGPUs use the same system RAM and are faster but still limited by bandwidth and shared memory, and discrete GPUs are fastest but have limited VRAM and cost more.
Background: Why Local LLMs Are Different
Local LLM inference is a memory-bandwidth-bound task. The model weights must be read from memory for every token generated, so the speed of your memory system (VRAM, RAM, or shared memory) often matters more than raw compute. A 7B parameter model in 4-bit quantization takes about 4 GB of memory; a 13B model takes about 7 GB; a 70B model takes about 35 GB. This means the memory capacity of your system determines which models you can run, and the memory bandwidth determines how fast they run.
How CPU-Only Inference Works
When running an LLM on a CPU, the model weights are stored in system RAM. The CPU reads them, performs matrix multiplications using its vector instructions (AVX-512, AVX2, etc.), and writes the output. Modern CPUs have high memory bandwidth (dual-channel DDR4/DDR5 can reach 50-90 GB/s), but they are still slower than discrete GPUs because they have fewer parallel cores and lower memory bandwidth compared to GDDR6 or HBM.
For example, a 7B model in 4-bit on a modern 8-core CPU might generate 5-10 tokens per second, which is usable for chat but slow for complex tasks. A 70B model would be painfully slow, often under 1 token per second, because the CPU must read 35 GB of weights for every token.
How Integrated GPUs Fit In
Integrated GPUs (like Intel Iris Xe, AMD Radeon 680M, or Apple M-series) share system RAM with the CPU. They have many more parallel cores than a CPU, so they can perform matrix operations faster. However, they are limited by the same memory bandwidth as the CPU, because they use the same RAM. The key difference is that the iGPU can use its parallel cores to hide latency better, so it often achieves 2-4x the tokens per second of a CPU for the same model.
For instance, a 7B 4-bit model on a recent iGPU might hit 15-25 tokens per second, while the same CPU might do 5-10. But a discrete GPU with dedicated VRAM (like an RTX 3060 with 12 GB) can reach 50-100 tokens per second on the same model because its memory bandwidth is 360 GB/s or more, and it doesn't compete with the OS for memory.
Memory Capacity and the Shared Memory Bottleneck
The biggest practical issue with iGPUs is that they share system RAM, so you need enough RAM to hold both the model and the operating system and other applications. If you have 16 GB of RAM, you can run a 7B model (4 GB) comfortably, but a 13B model (7 GB) would leave little room for the OS and browser. Also, iGPUs are often allocated a fixed amount of shared memory (e.g., 512 MB or 1 GB) in the BIOS, but most LLM software can bypass that by using system RAM directly via the CPU, so the iGPU's dedicated allocation matters less.
However, the real bottleneck is memory bandwidth. A dual-channel DDR4-3200 system has about 50 GB/s; DDR5-6000 dual-channel has about 90 GB/s. A discrete GPU like an RTX 4090 has over 1 TB/s. That's a 10-20x difference, which directly translates to tokens per second. So an iGPU will never match a discrete GPU for large models, but it can be a good middle ground for small models (up to 13B) if you have fast RAM.
Choosing What to Run: Model Size and Quantization
Your choice depends on your hardware and your patience. Here's a rough guide:
- CPU-only (16 GB RAM): You can run 7B models in 4-bit quantization at 5-10 tokens/sec. Good for casual chat.
- iGPU (16 GB RAM, dual-channel DDR4/DDR5): You can run 7B models at 15-25 tokens/sec, and 13B models at 8-12 tokens/sec. This is often the sweet spot for integrated graphics.
- Discrete GPU (8 GB VRAM): You can run 7B models at 50-100 tokens/sec, and 13B models at 30-50 tokens/sec, but you may need to offload layers to RAM if the model doesn't fit.
- Discrete GPU (24 GB VRAM): You can run 70B models in 4-bit at 10-20 tokens/sec, or 13B models at 100+ tokens/sec.
Quantization is key: using 4-bit or 5-bit quantization (like GGUF Q4_K_M) reduces memory usage and speeds up inference because less data needs to be read. For iGPUs, using quantized models is almost mandatory to stay within memory bandwidth limits.
How to Get the Best Performance on an iGPU
If you're stuck with an iGPU, here are practical steps to improve speed:
- Use a quantized model (e.g., GGUF Q4_K_M) rather than a full-precision model.
- Use software that supports GPU offloading, like llama.cpp with OpenCL or Vulkan, or Ollama with its iGPU support.
- Ensure your system RAM runs in dual-channel mode (two sticks) and at the highest supported speed (e.g., enable XMP/DOCP in BIOS).
- Close other memory-heavy applications to free up RAM and bandwidth.
- If your BIOS allows, increase the shared memory allocation for the iGPU, but note that most LLM software uses system RAM directly, so this may not help much.
- For Apple Silicon (M1/M2/M3), use Metal acceleration, which is well-supported in llama.cpp and gives excellent performance because the unified memory has high bandwidth.
Common Misconceptions and Pitfalls
One common misconception is that an iGPU is useless for LLMs. That's not true; it can be 2-4x faster than a CPU for small models. Another is that more VRAM is always better. Actually, memory bandwidth matters more for speed. A GTX 1060 6GB has about 192 GB/s, which is slower than a modern iGPU with DDR5-6000 (90 GB/s) but still faster because of the parallel cores. The real pitfall is running out of RAM: if you try to run a 13B model on a 16 GB system with an iGPU, the OS may start swapping to disk, which is catastrophically slow. Always check your RAM usage.
Another pitfall is using the wrong software. Some LLM frameworks don't support iGPUs well and fall back to CPU, negating any benefit. Use llama.cpp with the Vulkan or OpenCL backend, or Ollama which automatically detects iGPUs on many systems. On Windows, DirectML is another option but can be slower.
Frequently Asked Questions
Can an integrated GPU run a 70B model?
Technically yes, if you have enough system RAM (at least 48 GB for a 4-bit 70B model), but it will be extremely slow—likely under 1 token per second—because the iGPU shares the same memory bandwidth as the CPU, and the model is huge. You'd be better off using the CPU alone, which can sometimes be faster for very large models due to better memory access patterns.
Is it worth buying a discrete GPU just for LLMs?
If you run LLMs frequently and want speed, yes. A used RTX 3060 12GB can run 13B models at 30+ tokens/sec, which is a huge improvement over iGPU. But if you only run small models occasionally, an iGPU with fast RAM might be sufficient.
Does Apple Silicon's integrated GPU perform better than PC iGPUs?
Yes, generally. Apple's M-series chips have unified memory with very high bandwidth (e.g., M1 Pro has 200 GB/s, M2 Max has 400 GB/s), which is much higher than typical DDR4/DDR5. This makes them excellent for LLMs, often outperforming many discrete GPUs for inference.
How much RAM do I need for a 7B model with an iGPU?
You need at least 8 GB of system RAM, but 16 GB is recommended to avoid memory pressure. The model itself takes about 4 GB in 4-bit quantization, but the OS and other applications need space too.
Can I use the iGPU and CPU together to run a model?
Yes, some software like llama.cpp supports splitting layers between CPU and GPU. This can help if the model is too large for the iGPU's shared memory, but it usually doesn't speed things up because the CPU becomes the bottleneck. It's more useful for discrete GPUs with limited VRAM.