MLC LLM's Peak Inference Speeds on Consumer GPUs
MLC LLM, powered by TVM Unity, achieves 34.5 tokens/sec for 4-bit quantized Llama2-70B on two NVIDIA RTX 4090 GPUs and 29.9 tokens/sec on two AMD Radeon 7900XTX GPUs, demonstrating high-performance multi-GPU inference.
The top 3
- MLC LLM's Peak Inference Speeds on RTX 4090: MLC LLM achieved 204.8 tokens/second for Llama2-7B (4-bit) on an NVIDIA RTX 4090, surpassing Exllama V2 (177.46 tok/sec) and Llama.cpp (151.1 tok/sec). For Llama 3 8B (Q4_K_M), it can reach approximately 6,900 tokens/second, and 9,056 tokens/second at FP16 on this GPU.
- MLC LLM Makes AMD GPUs Competitive for LLM Inference: MLC LLM enables the AMD Radeon RX 7900 XTX to achieve competitive LLM inference performance, reaching 80% of the speed of an NVIDIA RTX 4090 and 94% of an RTX 3090 Ti for Llama2-7B/13B models with 4-bit quantization. On dual 7900 XTX GPUs, it achieved 29.9 tokens/second for Llama2-70B (4-bit).
- Quantization's Role in MLC LLM's Performance Edge: Quantization is crucial for boosting LLM inference speed and memory efficiency on consumer GPUs by reducing model precision (e.g., from FP16 to INT4). MLC LLM supports production-grade quantization methods like AWQ, GPTQ, FP8, and mixed precision, which are essential for maintaining stable performance and significant memory savings for various models.
Sources
Open the full topic