Variable length encoding for ml matrices
AssigneeAdvanced Micro Devices, Inc.
InventorHolger Heinrich GRUEN
Life of this patent
Estimating the term…
Abstract
Embodiments herein relate to storing the bit widths of values of matrices associated with an ML model, including quantized matrices, in a header. In the header, each number of bits included in a matrix is represented by an encoded value, and the encoded value is stored in a header. Different bits can be represented by a different encoded value, where each encoded value occupies the same amount of bits.
Claims20
A computing system comprising:
- a processor;
- and
- memory comprising:
- a matrix associated with an ML (machine learning) model, wherein the matrix comprises at least two entries, wherein the at least two entries store a different number of bits;
- and
- a block header for the matrix that stores encoded values for representing bit widths of the at least two entries, wherein the encoded values are different.
A method comprising:
- receiving a matrix associated with an ML (machine learning) model, wherein the matrix comprises at least two entries, wherein the at least two entries store a different number of bits;
- assigning encoded values to the at least two entries based on the number of bits, wherein the encoded values are different;
- and
- generating a block header for the matrix that stores the encoded values.
A computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code executable by one or more computer processors to perform operations, the operations comprising:
- receiving a matrix associated with an ML (machine learning) model, wherein the matrix comprises at least two entries, wherein the at least two entries store a different number of bits;
- assigning encoded values to the at least two entries based on the number of bits, wherein the encoded values are different;
- and
- generating a block header for the matrix that stores the encoded values.
Dependencies are inferred from the claim text.