Skip to main content
QUICK REVIEW

[Paper Review] FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Design

Haojun Xia, Zheng Zhen|arXiv (Cornell University)|Jan 25, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes FP6-LLM, a full-stack GPU system that enables efficient inference of large language models (LLMs) using 6-bit floating-point quantization (FP6) through a novel kernel design called TC-FPx. By leveraging Tensor Cores for computation and SIMT cores for efficient de-quantization, FP6-LLM achieves up to 2.65× higher normalized inference throughput than FP16 baseline on a single GPU, enabling full LLaMA-70b inference with significantly reduced memory usage.

ABSTRACT

Six-bit quantization (FP6) can effectively reduce the size of large language models (LLMs) and preserve the model quality consistently across varied applications. However, existing systems do not provide Tensor Core support for FP6 quantization and struggle to achieve practical performance improvements during LLM inference. It is challenging to support FP6 quantization on GPUs due to (1) unfriendly memory access of model weights with irregular bit-width and (2) high runtime overhead of weight de-quantization. To address these problems, we propose TC-FPx, the first full-stack GPU kernel design scheme with unified Tensor Core support of float-point weights for various quantization bit-width. We integrate TC-FPx kernel into an existing inference system, providing new end-to-end support (called FP6-LLM) for quantized LLM inference, where better trade-offs between inference cost and model quality are achieved. Experiments show that FP6-LLM enables the inference of LLaMA-70b using only a single GPU, achieving 1.69x-2.65x higher normalized inference throughput than the FP16 baseline. The source code is publicly available at https://github.com/usyd-fsalab/fp6_llm.

Motivation & Objective

  • To address the lack of efficient GPU system support for 6-bit quantized LLM inference, which offers a strong trade-off between model quality and inference cost.
  • To overcome hardware challenges in supporting irregular bit-width weights, including unfriendly memory access and high de-quantization overhead on modern GPUs.
  • To design a full-stack GPU kernel (TC-FPx) that unifies support for various quantization bit-widths, including FP6, while efficiently utilizing Tensor Cores and SIMT cores.
  • To integrate TC-FPx into an existing inference system to deliver end-to-end support for quantized LLMs with improved performance and memory efficiency.

Proposed method

  • Proposes TC-FPx, a full-stack GPU kernel design that enables unified Tensor Core support for float-point weights of arbitrary bit-width, including FP6.
  • Introduces Ahead-of-Time Bit-level Pre-packing to optimize memory access patterns for irregular bit-width weights, minimizing memory access latency.
  • Designs SIMT-Efficient GPU Runtime to minimize de-quantization overhead by offloading it to SIMT cores, reducing runtime latency.
  • Coordinates SIMT cores, Tensor Cores, and GPU memory hierarchy through a software pipeline that maximizes parallelism and data locality.
  • Integrates TC-FPx into a state-of-the-art inference system to enable end-to-end FP6-LLM inference with minimal changes to existing workflows.

Experimental results

Research questions

  • RQ1Can 6-bit quantization (FP6) be efficiently supported on modern GPUs to enable high-throughput, low-memory LLM inference?
  • RQ2What system-level optimizations are required to overcome memory access inefficiencies and de-quantization overhead for irregular bit-width weights?
  • RQ3How can Tensor Cores be effectively utilized for matrix multiplication with non-standard bit-width weights like FP6?
  • RQ4What performance and memory savings can be achieved by integrating FP6 quantization into a full-stack GPU inference system?

Key findings

  • FP6-LLM enables full inference of LLaMA-70b using only a single GPU, achieving 1.69× to 2.65× higher normalized inference throughput than the FP16 baseline.
  • For OPT-30b, FP6-LLM improves inference throughput by 1.72× to 4.05× compared to FP16, with batch size 16 achieving 319.1 tokens per GPU-second versus 78.8 for FP16.
  • The TC-FPx kernel is 2.39× faster than the FP16 cuBLAS kernel on average, primarily due to reduced linear layer execution time.
  • On LLaMA-13b, FP6-LLM achieves 1.23× higher generation throughput than FP16 at the same batch size, with linear layers being 2.11× faster on average.
  • Despite performance gains, overall improvements are limited on smaller models due to increased kernel launch latency and GPU idle time.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.