When is LLM inference actually memory-bound?
The two speeds of a GPU, the arithmetic of decode, prefill, batching and the KV cache, and an index card for telling which limit you are actually hitting.
Notes and essays on hardware/software co-design, FPGA systems, AI infrastructure, and practical engineering tradeoffs.
The two speeds of a GPU, the arithmetic of decode, prefill, batching and the KV cache, and an index card for telling which limit you are actually hitting.
A drop-in HuggingFace Cache for Llama-3.1-8B that makes KV memory about 10× smaller at 8K context, using different compression paths for K, V, and decode tokens.