Video yükleniyor...
Video Yüklenemedi
LLM inference speed with vs. without KV caching: (learn how and why it works below)
396,012 görüntüleme • 7 ay önce •via X (Twitter)
13 Yorum

kv caching is basically the llm refusing to do the same math twice. saving memory so it can hallucinate faster.

This is awesome, thanks Avi.

What laptop/pc are you using?

I have much to learn

Entire MQA/GQA Attention is built over this

Uses the same peak memory tho

Bookmarked.

V cool

kv cache really makes the speed jump crazy fast

@_avichawla great tut as usual Is there any better and effective way or KV caching is still SOTA?

KV caching feels like the first optimization everyone learns, but the interesting question is where memory bandwidth becomes the real bottleneck.

KV caching feels like the moment LLMs became real systems engineering problems, where memory bandwidth can matter as much as model quality.

KV cache removes recomputation. It shifts decode from compute-bound → memory-bound. But at scale, KV itself becomes the bottleneck.

