Skip to content

Commit

Permalink
Removed unnecessary exception
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKoff88 committed Feb 5, 2024
1 parent 9e108d7 commit 55a673b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions optimum/intel/openvino/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,6 @@ def _quantize_ovcausallm(
quantization_config: QuantizationConfigMixin = None,
**kwargs,
):
if self.model.stateful and not weights_only:
raise Exception(
"Full quantizaiton for stateful OVModelForCausalLM is currently broken. Possbile options:\n"
"1. Quantize AutoModelForCausalLM\n"
"2. Use weight only quantization\n"
"3. Use stateful=False to export stateless model"
)

save_directory = Path(save_directory)
save_directory.mkdir(parents=True, exist_ok=True)

Expand Down

0 comments on commit 55a673b

Please sign in to comment.