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).

The top 3

  1. AMD's RX 7900 XTX vs. NVIDIA's Top GPUs for LLM Inference: With MLC LLM, AMD's Radeon RX 7900 XTX achieves approximately 80% of the inference speed of an NVIDIA RTX 4090 and 94% of an RTX 3090 Ti when running 4-bit quantized Llama2-7B/13B models in single-batch inference.
  2. Software, Not Hardware: AMD's Past LLM Inference Hurdle: Historically, AMD GPUs lagged in LLM inference not due to comparable hardware specifications like VRAM or memory bandwidth, but primarily due to a less mature software ecosystem and optimization stack compared to NVIDIA's CUDA. MLC LLM's machine learning compilation approach aims to overcome this software gap.
  3. Cost Advantage & Broad Device Support for AMD LLM Inference: The AMD RX 7900 XTX offers a significant cost advantage, being approximately 40% cheaper than an NVIDIA RTX 4090, while still delivering competitive LLM inference performance with MLC LLM. Additionally, MLC LLM's Vulkan support extends LLM deployment to a wider range of AMD devices, including APUs found in devices like the Steam Deck.

Sources

Open the full topic