Q2_K & Q3_K_M: Max Compression for Scarcest RAM

Q2_K and Q3_K_M offer the most aggressive memory compression, significantly reducing model size to enable LLMs on extremely low-resource devices, though with a more noticeable impact on accuracy, making them suitable for simpler tasks or when fitting the model is the absolute priority.

The top 3

  1. Q2_K vs. Q3_K_M: Memory & Quality Trade-offs: Q2_K achieves the smallest memory footprint, reducing a 7B LLM to approximately 2.7GB, but results in 'poor' quality and 'significant loss.' Q3_K_M quantizes a 7B LLM to about 3.1GB, offering 'fair' quality with 'noticeable degradation,' suitable for 'tight budgets.'
  2. 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.
  3. Accuracy Impact: Significant Degradation at Max Compression: Q2_K introduces 'significant degradation' in perplexity, such as +0.8698 for Llama-3-8B, and generally leads to 'poor' quality. Both Q2_K and Q3_K_M 'significantly reduce scores' in tasks like coding and data analysis, though larger models tend to be more resilient to such aggressive quantization.

Sources

Open the full topic