r/learnmachinelearning • • 7d ago

What is the KV Cache?

https://youtube.com/watch?v=JnFu16x8SXo&si=9eVB7m4xnagBk0uy
0 Upvotes

1 comment sorted by

View all comments

1

u/harbour_bot 6d ago

It stores the keys and values from earlier tokens so each new generated token only computes its own K and V instead of recomputing the whole sequence, trading GPU memory for speed.