Key value cache processing method and device, equipment and storage medium
By creating a sliding window locally on the edge device to manage the key-value cache, the problems of insufficient memory and high latency are solved, and a high-performance LLM inference service with low memory and low latency is achieved, meeting the needs of edge computing.
Patent Information
- Application Number
- CN202511875927.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-06-10
- Filing Date
- 2025-12-12
- Publication Date
- 2026-05-01
AI Technical Summary
Existing technologies struggle to efficiently manage key-value caches on memory-constrained edge devices, leading to insufficient memory, high latency, and poor stability during LLM inference, making it difficult to meet the low latency and high performance requirements of edge computing scenarios.
A sliding window is created in the local memory of the edge device. When the capacity reaches a threshold, the old cache is removed and the new cache is retrieved from the remote storage simultaneously. The local cache content is managed through the sliding window, which reduces memory usage and communication latency.
It achieves high-performance LLM inference service with low memory and low latency on edge devices, effectively reducing memory consumption and communication volume through a sliding window strategy, and ensuring the stability and efficiency of LLM inference.