LLM Size Divide: iGPUs Lead for 3B+ Models, CPUs for Micro-LLMs

While iGPUs offer superior performance for medium to larger LLMs (typically 3B parameters and above), CPUs can surprisingly outperform GPUs for very small models (under 3B parameters) due to reduced kernel launch overheads and more efficient thread utilization for smaller workloads.

The top 3

  1. Optimal Hardware for LLM Sizes: High-end integrated GPUs like AMD's Ryzen AI Max+ series or Intel Arc iGPUs excel with 7B-70B models, leveraging shared system RAM for larger contexts. Modern multi-core CPUs are ideal for efficient inference of smaller 1B-4B LLMs.
  2. Why iGPUs Excel for Larger LLMs: iGPUs leverage high memory bandwidth and parallel processing capabilities, vital for the extensive matrix operations in 3B+ LLMs, while CPUs, optimized for sequential tasks, face memory bandwidth limitations.
  3. LLM Inference Speed: iGPU vs. CPU Benchmarks: For 7B models, iGPUs can achieve 8-20 tokens/second, with Apple Silicon reaching 50-80 tokens/second, significantly faster than CPU-only inference which typically ranges from 5-15 tokens/second for 3B-7B models.

Sources

Open the full topic