Skip to content
inference.academy

glossary/memory/cross-model-kv-transfer

Cross-model KV cache transfer

also KV cache transfer, cross-model prefill reuse

Reusing the KV cache a small model built for a prompt as the starting cache of a larger model in the same family, so a cascade or router can escalate a request without the large model prefilling the context again. Within families whose members share KV head count and head dimension, the large model's keys and values are close to a linear function of the small model's, and a per-head ridge regression fit once on a few hundred calibration sequences maps one cache to the other for a small multiply per token. It works for some pairs and not others, and only a test of the pair says which.


25x

Faster than re-prefilling 32K tokens on Qwen3 32B when the cache comes from Qwen3 14B through the linear map, as measured in the paper; four of six pairs keep 73 to 98% of the large model's accuracy, two keep under half.


See it happen


Related