MLC LLM's Core Quantization: Grouping & FP8 Advantage

MLC LLM employs a grouping quantization method and supports both weight-only (e.g., q4f16_awq) and weight-activation (e.g., FP8 on CUDA) quantization, integrating with tools like AutoAWQ and utilizing calibration for optimized on-device deployment.

The top 3

  1. Grouping Quantization: Outlier Mitigation's Accuracy Advantage: MLC LLM's grouping quantization divides weights into blocks (e.g., 32-128 weights), applying individual scaling factors per group. This block-wise approach significantly mitigates the impact of outliers, preserving model accuracy more effectively than global quantization methods.
  2. FP8 Quantization: Up to 33% Speed & 2x Memory Gain: MLC LLM leverages FP8 quantization, which enables up to a 33% improvement in inference speed (tokens per second) and a 50% reduction in memory footprint compared to FP16, particularly on NVIDIA H100 GPUs. This allows a 70B parameter model to fit on a single 80GB H100 card, which would otherwise require 140GB in BF16.
  3. FP8: Near-Zero Accuracy Loss for Optimal Efficiency: FP8 quantization, supported natively by NVIDIA Hopper and Blackwell GPUs, consistently maintains 99-100% model quality compared to FP16. It achieves near-zero perplexity gains and scores comparably to BF16 on benchmarks like MMLU-Pro and HumanEval, establishing itself as a practical sweet spot for balancing efficiency and accuracy in LLM deployment.

Sources

Open the full topic