Minimum RAM Footprint for 7B LLMs
These extreme quantizations enable 7B parameter LLMs to run with as little as ~2.7GB (Q2_K) or ~3.1GB (Q3_K_M) of RAM, making them accessible on devices with very limited memory. Smaller models like Gemma 2B can even run on devices with 1GB shared VRAM, such as a Raspberry Pi.
The top 3
- 7B LLM RAM: Q2_K vs. Q4_K_M Footprints: For 7B LLMs, Q2_K quantization can reduce RAM to as low as 2.6-2.7GB, while the more common Q4_K_M typically requires around 4.0-4.2GB, a significant reduction from the ~14-28GB needed for full precision (FP32) versions.
- Record Lowest: 7B LLM on 2.6GB RAM with Q2_K: The absolute minimum RAM footprint for a 7B LLM is achieved with aggressive Q2_K quantization, allowing models like Mistral 7B to run with as little as 2.6-2.7GB of system memory, making them accessible on highly constrained devices.
- 7B LLMs on Low-End: Raspberry Pi to 4GB Laptops: Thanks to memory mapping and advanced quantization techniques, 7B LLMs can run on surprisingly low-resource hardware, including a Raspberry Pi with 4GB RAM (albeit at slower speeds of 0.1 tokens/s) or older laptops with as little as 4GB VRAM (potentially requiring CPU offloading) or 8GB system RAM.
Sources
Open the full topic