LLM Speed Crown: MLC-LLM Outperforms on AMD and NVIDIA

MLC-LLM, powered by TVM Unity, achieves state-of-the-art LLM inference across diverse GPUs. It enables AMD Radeon RX 7900 XTX to reach 80% of NVIDIA RTX 4090's Llama2 performance and delivers 34.5 tok/sec for 4-bit Llama2-70B on dual RTX 4090s, with 29.9 tok/sec on dual AMD 7900XTXs.

The top 3

  1. MLC-LLM's Performance Edge: Key Speedup Benchmarks on AMD & NVIDIA: MLC-LLM enables AMD Radeon RX 7900 XTX to achieve 80% of NVIDIA RTX 4090's speed and 94% of RTX 3090 Ti's speed for Llama2 models. It also delivers 34.5 tokens/sec on dual NVIDIA RTX 4090s and 29.9 tokens/sec on dual AMD 7900XTXs for 4-bit quantized Llama2-70B.
  2. Apache TVM Unity: The Core Behind MLC-LLM's Universal Optimization: MLC-LLM's high performance and hardware universality stem from Apache TVM Unity, which provides instant high-performance CPU/GPU code generation, dynamic shape tracking, and optimizes LLMs via hardware-specific graph, memory optimizations, and kernel fusion techniques.
  3. MLC-LLM vs. Competitors: Decoding Speed vs. Prefill Performance: MLC-LLM generally excels in decoding speed, outperforming engines like llama.cpp by approximately 3x for short completions on platforms like Jetson Thor, and offers similar decoding performance to LMDeploy with best-in-class Time To First Token (TTFT). However, for long-context, prefill-dominated workloads, llama.cpp can sometimes be faster.

Sources

Open the full topic