Skip to content

Commit 35fc918

Browse files
committed
Fix quantization requires torchao >= 0.11.0
1 parent bc82841 commit 35fc918

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

optimum/exporters/executorch/quantization.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ def quantize_model_(
2626
if not (qlinear_config or qembedding_config):
2727
return
2828

29-
# TODO: Update torchao to use 0.11.0 once released
30-
if parse(torchao.__version__) < parse("0.11.0.dev0"):
31-
raise RuntimeError("Quantization requires torchao >= 0.11.0. Please upgrade torchao.")
32-
3329
from torchao.quantization.granularity import PerAxis, PerGroup
3430
from torchao.quantization.quant_api import (
3531
Int8DynamicActivationIntxWeightConfig,

0 commit comments

Comments
 (0)