AI Engineering › XKVC
Not startedLearningMasteredNeeds review
XKVC
KV-Cache and Attention Memory Optimisation
M2Special topic in AI Engineering4 topics · 7 subtopics · 16 knowledge points
Topics
Sign up free to see the knowledge pointsA free account opens the knowledge points of 5 courses.
XKVC-01The size of the KV cache
1 subtopics · 3 knowledge points · learn first: XEFF-01, LLMS-04
1 subtopics · 3 knowledge points · learn first: XEFF-01, LLMS-04
XKVC-01-01 · Counting bytes
XKVC-02Sharing keys and values
3 subtopics · 6 knowledge points · learn first: XKVC-01
3 subtopics · 6 knowledge points · learn first: XKVC-01
XKVC-02-01 · Paper: Multi-query attention (Shazeer, 2019)
XKVC-02-02 · Paper: GQA (Ainslie et al., 2023)
XKVC-02-03 · Paper: Multi-head latent attention in DeepSeek-V2 (DeepSeek-AI, 2024)
XKVC-03Keeping only the tokens that matter
2 subtopics · 4 knowledge points · learn first: XKVC-01
2 subtopics · 4 knowledge points · learn first: XKVC-01
XKVC-03-01 · Paper: H2O (Zhang et al., 2023)
XKVC-03-02 · Paper: Attention sinks (Xiao et al., 2024)
XKVC-04Quantising the cache
1 subtopics · 3 knowledge points · learn first: XKVC-01, XQNT-01
1 subtopics · 3 knowledge points · learn first: XKVC-01, XQNT-01
XKVC-04-01 · Paper: KIVI (Liu et al., 2024)
Papers in this course
Each paper is explained in the subtopic shown next to it.
SHA19Shazeer (2019). Fast Transformer Decoding: One Write-Head is All You Need. arXiv preprint. arXiv:1911.02150XKVC-02-01
AIN23Ainslie et al. (2023). GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. EMNLP 2023. arXiv:2305.13245XKVC-02-02
DEE24DeepSeek-AI (2024). DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model. arXiv preprint. arXiv:2405.04434XKVC-02-03
ZHA23Zhang et al. (2023). H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models. NeurIPS 2023. arXiv:2306.14048XKVC-03-01
XIA24Xiao et al. (2024). Efficient Streaming Language Models with Attention Sinks. ICLR 2024. arXiv:2309.17453XKVC-03-02
LIU24CLiu et al. (2024). KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache. ICML 2024. arXiv:2402.02750XKVC-04-01