News for hackers. Stuff that matters.
Re:Gemini 2.5 by xiphias2 on Tuesday March 25, 2025 @02:11PM (#43474160)
Also reusing key/values for different queries can compress the KV cache, it can be an 1000x or 10000x improvement in bandwidth if the model is trained for it.
Re:Gemini 2.5 by mmoskal on Tuesday March 25, 2025 @05:37PM (#43476279)
Just to clarify: simple prefix KV cache doesn't require any special model training. It does require the inference framework to support it, but most do by now.

You can see dramatic improvements in latency and throughput if there is a large shared prefix of the queries.