Systems and methods for key-value (kv) cache pruning
AssigneeSalesforce, Inc.
InventorYuhui Xu
Life of this patent
Estimating the term…
Loading patent…
AssigneeSalesforce, Inc.
InventorYuhui Xu
Estimating the term…
Embodiments described herein provide a key-value (KV) cache pruning framework to improve hardware efficiency while maintaining computational accuracy of large language models (LLMS). Specifically, the channel dimension D of a key cache (or value cache) may be pruned by dynamically identifying unimportant channels based on data dependent criterion and abstracting away identified redundancies in each head's key cache (or value cache). The framework is orthogonal to other KV cache compression schemes (e.g., KV cache eviction, quantization) and can complement (without incurring loss) these other schemes. Therefore, with such improved memory optimization in KV caching, neural network technology in LLMs is improved.
A method of managing cache usage on a graphic processing unit (GPU) for a Transformer-based neural network model, the method comprising:
A system for managing cache usage on a graphic processing unit (GPU) for a Transformer-based neural network model, the system comprising:
A non-transitory machine-readable medium comprising a plurality of machine-executable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform operations comprising:
Dependencies are inferred from the claim text.