AI Inference Optimization
Knowledge from "AI Engineering" by Chip Huyen (Chapter 9). Practical techniques for making inference faster and cheaper.
Quick Start
- Check
guidelines.mdto find which files to load for your task - Load only relevant files (each topic has knowledge.md, rules.md, examples.md)
- Apply guidance to your work
Contents
References
| Category | Purpose |
|---|---|
inference-fundamentals |
Computational bottlenecks, online/batch APIs, latency/throughput/utilization metrics |
ai-accelerators |
GPUs/TPUs, computational capabilities, memory size/bandwidth, power |
model-optimization |
Compression, speculative decoding, attention optimization, kernels/compilers |
service-optimization |
Batching, prefill/decode decoupling, prompt caching, parallelism |
Workflows
| Task | Workflow |
|---|---|
| Diagnose and fix inference bottlenecks | workflows/diagnose-bottleneck.md |
Guidelines
See guidelines.md for task-based file selection.