Skip to content

Commit 55a673b

Browse files
committed
Removed unnecessary exception
1 parent 9e108d7 commit 55a673b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

optimum/intel/openvino/quantization.py

-8
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,6 @@ def _quantize_ovcausallm(
278278
quantization_config: QuantizationConfigMixin = None,
279279
**kwargs,
280280
):
281-
if self.model.stateful and not weights_only:
282-
raise Exception(
283-
"Full quantizaiton for stateful OVModelForCausalLM is currently broken. Possbile options:\n"
284-
"1. Quantize AutoModelForCausalLM\n"
285-
"2. Use weight only quantization\n"
286-
"3. Use stateful=False to export stateless model"
287-
)
288-
289281
save_directory = Path(save_directory)
290282
save_directory.mkdir(parents=True, exist_ok=True)
291283

0 commit comments

Comments
 (0)