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.

The top 3

  1. MLC LLM's Peak Inference: Llama2-7B on RTX 4090: MLC LLM achieves an impressive 204.8 tokens/second for Llama2-7B (4-bit quantization) on an NVIDIA RTX 4090, marking it as a top performer for consumer-grade LLM inference.
  2. MLC LLM Outpaces Rivals on RTX 4090 Benchmarks: Benchmarking Llama2-7B (4-bit) on RTX 4090, MLC LLM's 204.8 tokens/second surpasses Exllama V2 (177.46 tok/s) and Llama.cpp (151.1 tok/s), demonstrating its leading performance among local inference engines. For Llama2-13B, MLC LLM also leads with 113.5 tok/s.
  3. RTX 4090's Quantization Edge for Larger LLMs: The RTX 4090's 24 GB VRAM, combined with quantization techniques, is crucial for MLC LLM to run models beyond 13B parameters. While 7B-13B models achieve interactive speeds, 4-bit quantization allows the RTX 4090 to handle much larger open-source LLMs, including those up to 70B parameters.

Sources

Open the full topic