4 ms·
This was a simplification. Of course you need some extra VRAM I/O based on your KV cache size. But assuming your KV cache size is << model size, that simplific
by lostmsu 2y ago
This was a simplification. Of course you need some extra VRAM I/O based on your KV cache size.
But assuming your KV cache size is << model size, that simplification is pretty accurate.
See, e.g. https://www.databricks.com/blog/llm-inference-performance-engineering-best-practices https://www.databricks.com/blog/llm-inference-performance-en...
You can just scroll to the first chart they have that explains the idea.