Inference Optimization

Model-level LLM inference optimization and efficiency — making models smaller, faster, and cheaper to serve at the level of an engineer who squeezes frontier models onto fewer accelerators. Use when quantizing (PTQ vs QAT, INT8/INT4, FP8, GPTQ, AWQ, SmoothQuant, GGUF, NF4, KV-cache quant), pruning/sparsifying (structured, 2:4 semi-structured, layer/width pruning), distilling (teacher→student, sequence-level/on-policy), or speeding up decode with speculative decoding (draft models, Medusa, EAGLE, lookahead, n-gram, self-speculative). Also covers low-rank/structural efficiency (LoRA, MoE, GQA/MQA/MLA, FlashAttention) and compilation/kernels (torch.compile/Inductor, TensorRT-LLM engine build, ONNX Runtime, XLA, Triton/CUTLASS, CUDA graphs). Reach for it to reason about the memory-bandwidth vs compute bound, arithmetic intensity, accuracy recovery, acceptance-rate economics, and which technique buys latency vs throughput vs memory vs $/token vs quality. The serving *engine* that runs the result is `[[serving-fram

sanjeevrg89 5756e8d 5 files · 51.9 KB Updated

File contents

sanjeevrg89/arete/tree/main/skills/inference-optimization commit 5756e8dc89

Frequently asked questions

npx skillmds@latest add sanjeevrg89/inference-optimization