LLM inference engine from scratch in C++ – why output tokens cost 5x(anirudhsathiya.com)
anirudhsathiya.com
LLM inference engine from scratch in C++ – why output tokens cost 5x
https://www.anirudhsathiya.com/blog/transformer
5 comments
[deleted]
> float bodyWeight = 67.5f; // who needs 32 bits to store a weight??
UHHHH...
UHHHH...
Like when someone mentioned vLLM's paged attention, I knew virtual memory paging, but had no idea someone had applied the same idea to KV cache allocation on GPUs.
Github link to the project: https://github.com/Anirudh171202/WhiteLotus