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.
The top 3
- iGPUs Outpace CPUs for 7B+ LLMs by 2-3x: Integrated GPUs, such as AMD Radeon 780M and Intel Iris Xe, achieve 8-15 tokens/second for 7B parameter models, significantly outperforming CPU-only inference which typically ranges from 3-7 tokens/second. Apple M-series chips further extend this lead, running 30B models at 20-30 tokens/second and 70B models at 35-50 tokens/second.
- CPUs Excel in Sub-7B LLM Inference with Optimizations: While iGPUs dominate for larger models, modern CPUs can deliver 30-50 tokens/second for optimized models and handle 4-5GB models at over 20 tokens/second. Innovations like sparse fine-tuning also enable consumer CPUs to achieve 7.7 tokens/second on a single core and 26.7 tokens/second on four cores for pruned MPT models.
- Unified Memory Drives iGPU LLM Inference Efficiency: LLM inference is primarily memory-bound, making memory bandwidth a critical factor for speed. Integrated GPUs, especially Apple M-series with their unified memory architecture, excel by offering high bandwidth and allowing parallel compute units to access the same RAM as the CPU without data copying penalties, significantly boosting efficiency for memory-intensive LLM workloads.
Sources
Open the full topic