We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141cbba commit 01c8262Copy full SHA for 01c8262
src/compressed_tensors/quantization/quant_scheme.py
@@ -63,9 +63,18 @@ def validate_model_after(model: "QuantizationScheme") -> "QuantizationScheme":
63
if inputs.strategy not in (
64
QuantizationStrategy.TOKEN,
65
QuantizationStrategy.TENSOR,
66
+ QuantizationStrategy.GROUP,
67
QuantizationStrategy.TENSOR_GROUP,
68
):
- raise ValueError(
69
+ if (
70
+ inputs.strategy == QuantizationStrategy.GROUP
71
+ and inputs.dynamic != True
72
+ ):
73
+ raise NotImplementedError(
74
+ "Static and local group-wise quantization is not supported"
75
+ )
76
+
77
78
f"Using {inputs.strategy} strategy is not supported for "
79
"activation quantization"
80
)
0 commit comments