Engineering guide

LLM compression and efficient inference

A source-backed map of the fundamentally different ways to shrink checkpoints, lower runtime memory, reduce active compute, or decode more tokens per target-model step. Each choice changes a different bottleneck.

Data as of
Aug 3, 2026
Techniques

46

Categories

9

Primary sources

46

Project profiles

9

46 techniquesOfficial sources are rechecked by the scheduled LLM Insights refresh. Editorial claims change only after source review.1163036
46 of 46 sources reachable20 sources changed since the previous checkSources checked Aug 25, 2026
26 comparison rows

Technique map

Choose the resource you need to change

Interactive comparison

What each technique actually changes

Rows use source-scoped ranges or explicitly state when no authoritative cross-hardware benchmark exists.

Sources
AWQQuantizationYesYesOften with fused kernelsLow to moderateCalibration only4-bit weights; total variesWidely deployed67
BF16QuantizationYesYesUsually on native hardwareLowNo~2x weight bytes vs FP32Mature13
BitNetQuantizationYesYesKernel-dependentTraining recipe-dependentYes1.58-bit ternary weightsEmerging10
Dynamic Expert CachingRuntime memoryNoBounded cacheLocality-dependentNone if misses load exactlyNoCache-budget-dependentSpecialized2225
Expert StreamingRuntime memoryNoYesUsually slowerNone if losslessNoKimi example: 1.45 TB experts nonresidentExperimental2225
FP8QuantizationYesYesHardware-dependentLow to moderateNo for PTQ; yes for QATUp to ~2x tensor bytes vs FP16Production on supported GPUs3
FP16QuantizationYesYesUsually on native hardwareLowNo~2x weight bytes vs FP32Mature13
GPTQQuantizationYesYesOften with fused kernelsLow to moderateCalibration onlyUp to ~4x INT4 weight memoryWidely deployed45
HQQQuantizationYesYesBackend-dependentBit-width-dependentNo calibration1-8 bit weights; total variesSupported in Transformers9
INT2QuantizationYesYesNot guaranteedHigh riskMethod-dependentNo authoritative end-to-end valueEmerging133
INT4QuantizationYesYesKernel-dependentModerateNo~4x memory in HF 4-bit pathWidely deployed21
INT8QuantizationYesYesKernel-dependentLow to moderateNo~2x memory in HF 8-bit pathMature28
Knowledge DistillationDistillationYesYesYes for smaller studentStudent-dependentYesStudent architecture-dependentMature concept14
KV Cache QuantizationKV cacheNoYes during generationCan hurt short-context latencyBit-width-dependentNoKIVI: 2.6x peak memory in testsAvailable in runtimes3233
Layer StreamingRuntime memoryNoYesUsually slowerNone if losslessNoRuntime budget-dependentSpecialized2223
LoRA MergeEmergingNo meaningful base reductionAdapter overhead onlyCan remove adapter overheadNone from exact mergeAdapter already trainedBase size unchangedSupported by PEFT15
Memory MappingRuntime memoryNoYesWorkload-dependentNoneNoOnly touched pages residentMature OS primitive2440
Mixture of ExpertsSparse / MoENoNot automaticallyVs same total-parameter dense modelArchitecture-dependentYesActive parameters are top-k subsetProduction at scale161718
Multi-Token PredictionSpeculativeNoAdds headsUp to 3x in Meta paperCan improve trained modelYesSerial decode steps reducedGrowing3818
PagedAttentionArchitectureNoLess KV waste2-4x serving throughput in paperNoneNoNear-zero KV waste in paperWidely deployed3041
PruningPruningSometimesSometimesOnly with usable sparsitySparsity-dependentOptional recoveryNo authoritative universal valuePattern-dependent1213
SmoothQuantQuantizationYesYesUp to 1.56x in paperNegligible in tested modelsCalibration onlyUp to 2x memory in paperProduction implementations8
SparseGPTPruningSparse representationWith sparse storageNeeds sparse kernelsMinimal at reported sparsityNo retraining50-60% sparsity in paperResearch / specialized12
Speculative DecodingSpeculativeNoUsually adds draft memory2-3x in cited papersNone with exact acceptanceNo for classic draft pairSerial target steps reducedWidely supported3637
SSD-backed inferenceRuntime memoryNoYesMuch slower than resident weightsNone if losslessNoKimi example: 8.24 GB RSSExperimental / specialized22
Structured PruningPruningYes when re-exportedYesMore likely than unstructuredStructure-dependentOften recoveryPattern-dependentSupported patterns only13

Categories

Mechanisms, tradeoffs and hardware

Decision guide

Start with the limiting resource

Need to run locally?

Which hardware tier?

Datacenter GPU

Maximum quality

FP16 or BF16

Use FP8 only after engine-specific validation.

3

Consumer GPU

Fit matters

AWQ INT4

GPTQ is another mature path; choose the format your runtime accelerates.

64

CPU only

Local portability

GGUF

Pick a quantization that fits RAM and quality needs.

4011

Model exceeds RAM

Capacity first

Expert / layer streaming

Expect storage-bound, very low throughput.

2225

Comparison matrix

Deployment characteristics at a glance

TechniqueCompression ratioAccuracy lossHardware compatibilityInference speedImplementation complexityPopularityMaturitySources
AWQCommonly ~4x vs FP16 weightsLow to moderateBroad serving supportOften with fused kernelsMediumVery highMature67
BF16~2x vs FP32 weightsLowDatacenter / newer CPUUsually on native hardwareLowVery highMature13
BitNet1.58 bits/weight representationTraining recipe-dependentSpecialized runtimesKernel-dependentHighHigh research interestResearch / emerging10
Dynamic Expert CachingCheckpoint unchangedNone if misses load exactlyMoE + tiered memoryLocality-dependentVery highEmergingSpecialized2225
Expert StreamingCheckpoint unchangedNone if losslessMoE + fast storageUsually slowerVery highEmergingExperimental2225
FP8Up to ~2x vs FP16 tensorsLow to moderateHopper/newer and runtime-specificHardware-dependentMediumHighProduction on supported hardware3
FP16~2x vs FP32 weightsLowBroadUsually on native hardwareLowVery highMature13
GPTQCommonly ~4x vs FP16 weightsLow to moderateBroad via GPTQModelOften with fused kernelsMediumVery highMature45
HQQConfigurable 1-8 bitBit-width-dependentCPU/CUDA/XPU; backend-specificBackend-dependentLow-mediumMediumGrowing9
INT22-bit payload; overhead variesHigh riskSpecializedNot guaranteedHighLowResearch / emerging133
INT4~4x vs FP16 weightsModerateBroad but format-specificKernel-dependentMediumVery highMature formats; varied kernels21
INT8~2x vs FP16 weightsLow to moderateBroadKernel-dependentLow-mediumVery highMature28
Knowledge DistillationTeacher/student-dependentStudent-dependentBroadYes for smaller studentHighVery highMature14
KV Cache QuantizationCache-only, configurable bitsBit-width-dependentBackend-specificCan hurt short-context latencyMediumHighGrowing3233
Layer StreamingCheckpoint unchangedNone if losslessSequential layer executionUsually slowerHighLow-mediumSpecialized2223
LoRA Merge~1x base modelNone from exact mergePEFT-supported architecturesCan remove adapter overheadLowVery highMature deployment step15
Memory MappingCheckpoint unchangedNoneFile-backed runtimesWorkload-dependentLow-mediumHigh in CPU runtimesMature primitive2440
Mixture of ExpertsStored size unchangedArchitecture-dependentMoE serving stackVs same total-parameter dense modelVery highVery highProduction at scale161718
Multi-Token PredictionNot compressionCan improve trained modelMTP-aware model/runtimeUp to 3x in Meta paperHighHighGrowing3818
PagedAttentionNo value compressionNonePaged serving engines2-4x serving throughput in paperHighVery highMature3041
PruningMethod-specificSparsity-dependentSparse-kernel-dependentOnly with usable sparsityMediumHigh research interestMixed1213
SmoothQuantW8A8Negligible in tested modelsINT8 acceleratorsUp to 1.56x in paperMediumHighProduction-ready with supported stacks8
SparseGPT50-60% sparsity demonstratedMinimal at reported sparsitySparse-kernel-dependentNeeds sparse kernelsHighHigh research interestResearch / specialized12
Speculative DecodingNot compressionNone with exact acceptanceDraft-target support2-3x in cited papersHighVery highProduction3637
SSD-backed inferenceCheckpoint unchangedNone if losslessFast local SSDMuch slower than resident weightsVery highEmergingExperimental22
Structured PruningPattern-dependentStructure-dependentBest for fixed N:M or removed channelsMore likely than unstructuredHighMediumProduction for selected patterns13

Real-world implementations

Where these techniques ship

llama.cpp

Portable local inference

CPU, Metal, CUDA and other backends

GGUFlow-bit quantizationmemory mappingCPU/GPU offloadKV cache options
40

vLLM

High-throughput serving

NVIDIA, AMD, Intel, TPU and CPU paths vary by feature

paged KV cachequantizationspeculative decodingcontinuous batchingexpert parallelism
41

TensorRT-LLM

NVIDIA-optimized serving

Supported NVIDIA GPUs

FP8/INT8/INT4paged attentionKV cache managementspeculative decodingMTP/Medusa/EAGLE
42

MLX

Apple Silicon inference

Apple Silicon unified memory

4-bit conversionrotating KV cacheprompt cachingdistributed inference
43

ExLlamaV2

Consumer NVIDIA GPU inference

CUDA GPUs; project is archived in favor of ExLlamaV3

GPTQEXL2 mixed bit-widthQ4 KV cachepaged attentionspeculative decoding
44

SGLang

Production model serving

GPU, CPU, TPU and NPU support varies

paged attentionRadixAttentionFP4/FP8/INT4/AWQ/GPTQspeculative decodingexpert parallelism
45

DeepSpeed

Distributed inference and compression

Multi-GPU and supported accelerator stacks

tensor parallelismkernel injectionINT8 MoQMoE inferenceNVMe offload tooling
46

KTransformers

CPU/GPU heterogeneous MoE inference

CPU plus GPU, with architecture-specific kernels

heterogeneous expert placementINT4/INT8 CPU kernelsGPTQ GPU kernelsCPU-GPU expert schedulingtiered prefix cache
25

kimi-k3-in-c

Storage-backed Kimi K3 CPU inference

Linux x86-64 CPU with AVX2/FMA and fast local storage

MXFP4 expert executionexpert streaminglayer streamingLRU expert cacheincremental decoding
22

References

Primary evidence index

46 papers and official project sources

  1. 1Transformers quantization overviewHugging Face · Documentation
  2. 2Transformers bitsandbytes guideHugging Face · Documentation
  3. 3Using FP8 and FP4 with Transformer EngineNVIDIA · Documentation
  4. 4GPTQ: Accurate Post-Training Quantization for Generative Pre-trained TransformersarXiv · Paper
  5. 5Transformers GPTQ guideHugging Face · Documentation
  6. 6AWQ: Activation-aware Weight Quantization for LLM Compression and AccelerationarXiv · Paper
  7. 7Transformers AWQ guideHugging Face · Documentation
  8. 8SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsarXiv · Paper
  9. 9Transformers HQQ guideHugging Face · Documentation
  10. 10The Era of 1-bit LLMs: All Large Language Models are in 1.58 BitsMicrosoft Research / arXiv · Paper
  11. 11GGUF format and toolingllama.cpp · Project documentation
  12. 12SparseGPT: Massive Language Models Can Be Accurately Pruned in One-ShotarXiv · Paper
  13. 13Semi-structured (2:4) sparsityPyTorch · Documentation
  14. 14Distilling the Knowledge in a Neural NetworkarXiv · Paper
  15. 15Merge LoRA weights into the base modelHugging Face PEFT · Documentation
  16. 16Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient SparsityGoogle Research / arXiv · Paper
  17. 17Mixtral of ExpertsMistral AI / arXiv · Paper
  18. 18DeepSeek-V3 Technical ReportDeepSeek / arXiv · Technical report
  19. 19DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement LearningDeepSeek / arXiv · Paper
  20. 20Qwen3 Technical ReportQwen / arXiv · Technical report
  21. 21Kimi K3 model card and technical reportMoonshot AI · Official model documentation
  22. 22kimi-k3-in-c: measured CPU and memory reportkimi-k3-in-c · Project documentation and raw measurements
  23. 23Big Model InferenceHugging Face Accelerate · Documentation
  24. 24mmap(2) - map files or devices into memoryLinux man-pages · System documentation
  25. 25KTransformers heterogeneous LLM inferenceKTransformers · Project documentation
  26. 26Fast Transformer Decoding: One Write-Head is All You NeedGoogle Research / arXiv · Paper
  27. 27GQA: Training Generalized Multi-Query Transformer Models from Multi-Head CheckpointsGoogle Research / arXiv · Paper
  28. 28Mistral 7BMistral AI / arXiv · Paper
  29. 29FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessarXiv · Paper
  30. 30Efficient Memory Management for Large Language Model Serving with PagedAttentionvLLM / arXiv · Paper
  31. 31Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionarXiv · Paper
  32. 32Transformers cache strategiesHugging Face · Documentation
  33. 33KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV CachearXiv · Paper
  34. 34Efficient Streaming Language Models with Attention SinksarXiv · Paper
  35. 35H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language ModelsarXiv · Paper
  36. 36Fast Inference from Transformers via Speculative DecodingGoogle Research / arXiv · Paper
  37. 37Accelerating Large Language Model Decoding with Speculative SamplingDeepMind / arXiv · Paper
  38. 38Better & Faster Large Language Models via Multi-token PredictionMeta / arXiv · Paper
  39. 39Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding HeadsarXiv · Paper
  40. 40llama.cppggml-org · Official project
  41. 41vLLM documentationvLLM · Official project
  42. 42TensorRT-LLM documentationNVIDIA · Official project
  43. 43MLX LMApple MLX · Official project
  44. 44ExLlamaV2ExLlama · Official project
  45. 45SGLangLMSYS · Official project
  46. 46DeepSpeed inference tutorialMicrosoft · Official project documentation