NormalFloat4 (NF4) is an information-theoretically optimal quantile quantization data type for normally distributed data, designed to compress neural network weights to 4-bit precision without losing accuracy.
Directly dictates the memory footprint and operational throughput of qlora fine-tuning, weight quantization compression, and low-compute training; configuring NormalFloat4 allows engineering teams to run high-capacity models cost-effectively on edge devices.
NormalFloat4 (NF4) is an information-theoretically optimal quantile quantization data type designed specifically for normal distributions (which neural network weights typically follow). Pioneered in the QLoRA training technique, NF4 quantizes 32-bit floating-point weights into a highly compressed 4-bit representation, allowing massive Large Language Models to run fine-tuning tasks on consumer-grade GPUs.
Since neural network weights naturally follow a normal distribution, NF4 aligns the quantization bins with the distribution probability, minimizing quantization error.
The bitsandbytes library, widely used in Hugging Face PEFT integrations for QLoRA.
We currently have no direct coverage articles matching "NormalFloat4". Explore trending global AI topics below instead.