Dynamic quantization and memory management of key-value cache for serving large language models
AssigneeIntel Corporation
InventorsSameh Gobriel, Nilesh Jain, Vui Seng Chua, Juan Pablo Munoz, Gopi Krishna Jha
Life of this patent
Estimating the term…
Loading patent…
AssigneeIntel Corporation
InventorsSameh Gobriel, Nilesh Jain, Vui Seng Chua, Juan Pablo Munoz, Gopi Krishna Jha
Estimating the term…
Key-value (KV) cache paging schemes can improve memory management for KV caches by storing a KV cache page having key tensors and value tensors for a fixed number of tokens in a fixed-sized block in the KV cache of a worker. To further improve memory management, the schemes can be modified to implement dynamic variable quantization. Quantization level of a KV cache page can be set based on a runtime importance score of the KV cache page. In addition, the quantization level of the KV cache page can be set based on the system load. The end result is a scheme that can achieve a high compression ratio of KV cache pages in the KV cache. Fitting more KV cache pages in the KV cache can lead to higher inference throughput, higher system-level user capacity, and higher end-to-end service availability.
An apparatus, comprising:
One or more non-transitory computer-readable media storing instructions executable by a computing processor to perform operations for memory management, the operations comprising:
A method for memory management, comprising:
Dependencies are inferred from the claim text.