Perplexity & Accuracy: Fidelity Loss from Q8_0 to Q2_K

Q8_0 is considered 'effectively lossless,' with a perplexity increase of only 0.01 to 0.05 points compared to full-precision FP16, representing less than 0.5% degradation. In contrast, Q2_K introduces significant quality loss, showing a perplexity increase of 0.50 to over 1.00 points for a 7B model and a 15-25% degradation compared to FP16.

The top 3

  1. Q2_K vs. Q8_0: Perplexity Loss Benchmarks: Q8_0 delivers near-FP16 perplexity, with Llama-2-7B showing 7.4933 for Q8_0 compared to 7.4924 for FP16. In contrast, Q2_K introduces significant degradation, with a Vicuna-13B benchmark reporting a +0.8698 perplexity increase over FP16, and Llama 3 8B's perplexity reaching 11.36 versus Q8_0's 8.36.
  2. Critical Tasks: Q2_K's Severe Accuracy Degradation: While Q8_0 offers minimal impact on model performance, Q2_K leads to significant quality loss (15-25% degradation vs. FP16) across all task types. This degradation is particularly noticeable in precision-sensitive applications such as complex reasoning, math, and code generation.
  3. Q2_K vs. Q8_0: When to Prioritize Speed or Fidelity: Q2_K is primarily for extreme resource constraints or proof-of-concept applications, offering maximum compression for minimal memory usage, though it results in significant quality loss. In contrast, Q8_0 is recommended for tasks demanding near-FP16 accuracy, such as coding or math, and is viable when 16+ GB of VRAM is available.

Sources

Open the full topic