Introducing vLLM-GR: efficient inference for generative recommendation. 🎉
Turn interaction history into a set of candidate items with accelerator-side beam search, catalog constraints and shared KV caching—built on vLLM.
Benchmarks, architecture and getting started below.
𝗞𝗩 𝗖𝗮𝗰𝗵𝗶𝗻𝗴 𝗘𝘅𝗽𝗹𝗮𝗶𝗻𝗲𝗱
Ever wondered how LLMs remember thousands of tokens without processing everything from scratch every time?
That's where KV Caching comes in.
When an LLM generates a response, it doesn't need to recompute the Key and Value representations of all previous tokens at every step.
Instead, it stores them in a cache and reuses them while generating the next token.
Sounds simple, but this makes a huge difference in inference speed and computational efficiency.
Here's what happens:
- During prefill, the model processes the prompt and stores the Keys and Values.
- During decoding, it computes Q, K and V only for the new token.
- The new K and V are added to the existing cache.
- Previous KV values are reused instead of being recomputed.
But there's one important thing to understand: KV Caching doesn't eliminate attention over previous tokens. It eliminates the need to recompute their Keys and Values.
As context grows, KV cache memory can become a major bottleneck.
That's why techniques like:
- MQA (Multi-Query Attention)
- GQA (Grouped-Query Attention)
- PagedAttention
- Prefix Caching
play an important role in making LLM inference more efficient.
Understanding KV Caching is essential if you're learning how LLM inference actually works or building systems that serve LLMs at scale.
The EmbeddingGemma 2 tech report is officially live!
We are sharing the full architecture, training recipe, and ablations behind our 740M open multimodal embedding model.
Inside the paper:
🌐 Unified representations for text, code, images, audio, and video
📈 How it outperforms specialist and general models up to 12x larger
⚡ On-device efficiency: modular encoders, Matryoshka dims, and int4 quantization (down to 567MB)
Read the full report: https://t.co/gnc2NzpmIl