Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion torchao/quantization/quantize_/common/packing_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ class PackingFormat(str, Enum):
MARLIN_SPARSE = "marlin_sparse"

"""
Unpacked means the subbyte quantized data is stored as int8
Unpacked to int8 means the subbyte quantized data is stored as int8
"""
UNPACKED_TO_INT8 = "unpacked_to_int8"

"""
Opaque packing format that's used for tensors that does not have a predefined packing format
(that may be decided on hardware, tensor shape, library availability etc.) and it's not
needed for the rest of the system to understand the specific format that's adopted.
"""
OPAQUE = "opaque"
Loading