Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The KV cache is just another tensor to be used with matmuls. Unlike the model weights which are fixed, the KV cache is uniquely constructed for every input. Think of it as the model growing new weights to represent the new knowledge it learns about the user's input at inference time because not everything can be baked into the pretrained model.

You want to store your KV cache in the same processor that does the rest of your matmuls.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: