Skip to content

Commit dc43b64

Browse files
committed
reduce diff
Signed-off-by: Kyle Sayers <[email protected]>
1 parent 9ead292 commit dc43b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compressed_tensors/quantization/lifecycle/initialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def initialize_qparams(
203203
expected_shape = (1,)
204204

205205
elif strategy == QuantizationStrategy.TOKEN:
206-
expected_shape = (1, 1)
206+
raise ValueError("Cannot perform static token quantization")
207207

208208
elif strategy == QuantizationStrategy.CHANNEL:
209209
if len(observed_shape) < 2:

0 commit comments

Comments
 (0)