Hardware-Aware Model Optimization › Summary
Michael BrenndoerferDecember 1, 20261 min read
Language AI HandbookAll chapters Start with the model, runtime, and device you intend to deploy. Check each limit in the units that match the workload.
- Decode traffic. Count weight and cache bytes at the interface you model. Use effective bandwidth to estimate the transfer-time floor.
- Roofline. Compare the intensity of a kernel with the compute-to-bandwidth ridge under consistent operation and byte counts.
- Stored bits. Account for the weight payload and group metadata. Allow separate space for the KV cache and runtime buffers.
- Runtime support. Check that the actual dispatched kernel supports the chosen format and tensor shape.
- Unpacking. Measure the cost of making stored weights usable by the arithmetic kernel.
- Sparsity. Count the position metadata and check whether the executed kernel consumes sparse data or a smaller dense shape.
- Deployment. Measure the complete path at representative workloads and temperatures. Check the task quality of each candidate.
Use the cost model to choose what to profile first. Use the observed latency, memory, and quality to decide which configuration to ship.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!