Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides LLM compression: quantization (FP8, INT8, INT4, GPTQ, AWQ, GGUF), KV-cache quantization, speculative decoding, and distillation.
82% 91%+9 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
3 of 3 safety checks passed
Not used yet
Compression is how a model that trained on a cluster serves on the GPU you can afford. Three orthogonal tools attack three different costs: quantization cuts memory/cost (maybe lossy), speculative decoding cuts decode latency (lossless), distillation produces a genuinely smaller model (training cost up front). Pick by the bottleneck, not by hype. They compose.
Rule: prefill is compute-bound (FLOPs), decode is bandwidth-bound (byte reads). Quantization helps decode most; it does little for prefill-heavy/long-prompt workloads.
| Format | Bits | Range driver | Precision | Mem vs FP16 | Hardware | Notes |
|---|---|---|---|---|---|---|
| FP32 | 32 | 8 exp | 23 mantissa | 2× | universal | training/reference baseline |
| FP16 | 16 | 5 exp | 10 mantissa | 1× | all modern GPU | narrow range — can overflow in training |
| BF16 | 16 | 8 exp | 7 mantissa | 1× | A100+/TPU | FP32 range, less precision — default training dtype |
| FP8 E4M3 | 8 | 4 exp | 3 mantissa | 0.5× | H100/Ada, MI300 | more precision, less range — weights/activations; ~lossless inference |
| FP8 E5M2 | 8 | 5 exp | 2 mantissa | 0.5× | H100/Ada | more range, less precision — gradients/error-tolerant |
| INT8 | 8 | scale/zero-point | uniform | 0.5× | universal (DP4A/tensor) | classic W8A8; needs outlier handling |
| INT4 | 4 | scale/zero-point | uniform | 0.25× | via dequant kernels | weight-only sweet spot; quality risk on small models |
Key contrasts:
Hardware reality check:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.