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
12 changes: 11 additions & 1 deletion src/compressed_tensors/quantization/quant_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,19 @@ def validate_model_after(model: "QuantizationScheme") -> "QuantizationScheme":
if inputs.strategy not in (
QuantizationStrategy.TOKEN,
QuantizationStrategy.TENSOR,
QuantizationStrategy.GROUP,
QuantizationStrategy.TENSOR_GROUP,
):
raise ValueError(
if (
inputs.strategy == QuantizationStrategy.GROUP
and inputs.dynamic is True
):
raise NotImplementedError(
"Static and local group-wise activation "
"quantization is not supported"
)

raise NotImplementedError(
f"Using {inputs.strategy} strategy is not supported for "
"activation quantization"
)
Expand Down