LLM Memory Footprint: Quantization's Dramatic Reductions
Quantization dramatically shrinks LLM memory usage, enabling deployment on consumer hardware. For example, a Llama 3.1 8B model's 16 GB footprint can be reduced to 8 GB with 8-bit quantization and further to approximately 4 GB with 4-bit quantization. A 70B parameter model, when quantized to 4-bit, can see its raw weight footprint reduced to about 32.6 GiB, allowing it to run on a 40-48 GB class GPU or consumer RTX 4090 cards with appropriate settings.
The top 3
- Bit-Widths' Memory Savings: Top Reductions: 4-bit quantization typically achieves a 75% memory reduction from FP16, while 8-bit cuts it by 50%, enabling a 70B parameter LLM to shrink from 140GB to approximately 35GB.
- 70B LLM's Quantized Cost Revolution: Quantizing a 70B parameter LLM to 4-bit can reduce monthly GPU costs from $24,000 to $4,000, enabling it to run on a single NVIDIA RTX 4090 instead of requiring multiple A100 GPUs.
- Quantization's Accuracy vs. Memory Balancing Act: 8-bit quantization typically offers near-lossless accuracy (99.9% recovery), while 4-bit, using advanced techniques like AWQ or GPTQ, maintains about 98.9% accuracy on benchmarks, though sub-4-bit precision often leads to sharp performance regressions.
Sources
Open the full topic