Pyramid key-value cache compression for transformer models
AssigneeMicrosoft Technology Licensing, LLC
InventorsWen XIAO, Wei XIONG, Abedelkader ASI, Zefan CAI
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Technology Licensing, LLC
InventorsWen XIAO, Wei XIONG, Abedelkader ASI, Zefan CAI
Estimating the term…
A method for operating a transformer model includes algorithmically allocating a fixed budget for a key-value cache between multiple decoding layers per an allocation scheme that ensures progressively higher decoding layers in the transformer model are allocated progressively smaller quantities of cache memory. The method further includes configuring each of the multiple decoding layers of the transformer model to retain no more than a maximum number of key-value vector pairs in the key-value cache during a token decoding operation, the maximum number of key-value vector pairs being independently determined for each decoding layer of the multiple decoding layers based on the cache memory that is allocated to the decoding layer.
A method comprising:
A system comprising:
One or more tangible processor-readable storage media encoding processor-executable instruction for executing a computer process, the computer process comprising:
Dependencies are inferred from the claim text.