Top Projects Pioneering 4-bit CUDA LLM Acceleration

Open-source projects like `llama.cpp`, `ExLlamaV2`, and `vLLM` are at the forefront of 4-bit LLM acceleration, each developing highly specialized CUDA kernels and optimization strategies to deliver peak inference speeds on NVIDIA GPUs.

The top 3

  1. QLoRA & bitsandbytes: Pioneering 4-bit LLM Finetuning: The QLoRA method, powered by the bitsandbytes library, introduced innovations like 4-bit NormalFloat (NF4) data type, double quantization, and paged optimizers, enabling the finetuning of 65-billion-parameter models on a single 48GB GPU while retaining full 16-bit performance.
  2. Marlin Kernel: Accelerating 4-bit LLM Inference Speed: Marlin is a highly optimized CUDA kernel, not a quantization algorithm itself, designed to accelerate inference for already 4-bit quantized models like GPTQ and AWQ. Benchmarks show Marlin can achieve significant speedups, such as 2.6x for GPTQ and 10.9x for AWQ quantized models, by efficiently utilizing GPU memory bandwidth.
  3. NVIDIA's NVFP4: 4-bit Training and Inference Breakthrough: NVIDIA's NVFP4 is a novel 4-bit floating-point format that enables training large language models with accuracy matching 8-bit FP8 performance while using half the memory. On Blackwell Tensor Cores, NVFP4 for W4A4 (4-bit weights and activations) delivers up to 7x faster GEMM performance compared to Hopper architecture, significantly boosting both training and inference throughput.

Sources

Open the full topic