LLM Quantization: Weights vs KV Cache
3-Second Blueprint (English)
- Weight-only quantization (e.g., W4A16) compresses static shared parameters but leaves dynamic per-request conversation memory untouched.
- Every generated token appends key and value vectors across all layers into a per-request KV cache that dominates long-context VRAM.
- KV cache quantization fits longer contexts and higher concurrency, so '4-bit' labels must specify whether weights or KV are compressed.
Weight-Only QuantizationKV Cache QuantizationW4A16 PrecisionTransformer Attention
3-Sekunden-Fazit (Deutsch)
- Weight-Only-Quantisierung (z. B. W4A16) komprimiert feste Modellgewichte, verkleinert aber nicht den dynamischen Gesprächsspeicher.
- Jedes neue Token speichert pro Schicht Key- und Value-Vektoren im anfragespezifischen KV-Cache, der bei langen Kontexten VRAM füllt.
- KV-Cache-Quantisierung ermöglicht längere Kontexte und mehr parallele Anfragen; '4-Bit' muss daher Gewichte vs. KV-Cache benennen.
Weight-Only-QuantisierungKV-Cache-QuantisierungW4A16-FormatTransformer-Attention
Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.