TLDRocket
Sign in

Vision-Language Models

21 summarised stories about Vision-Language Models, each linking back to the original source. Browse all topics →

Wednesday, 4 June 2025

KV Cache from scratch in nanoVLM

Hugging Face Blog 1 year ago

The nanoVLM team implemented KV caching, a technique that caches key and value matrices during transformer inference, in their small Vision Language Model codebase. The optimization achieved a 38% speedup in generation by eliminating redundant recomputation of attention keys and values for previously processed tokens. The implementation separates generation into a prefill phase that processes the full prompt once and a decode phase that generates tokens incrementally using the cached values.