Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-savelyevv committed Dec 12, 2024
1 parent 54f443d commit 6aefc75
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions optimum/commands/export/openvino.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,8 @@ def run(self):
if not self.args.disable_convert_tokenizer:
maybe_convert_tokenizers(library_name, self.args.output, model, task=task)
elif (
(task.startswith("text-generation") or task == "automatic-speech-recognition")
and quantize_with_dataset
or task == "image-text-to-text"
):
task.startswith("text-generation") or task in ["automatic-speech-recognition", "image-text-to-text"]
) and quantize_with_dataset:
if task.startswith("text-generation"):
from optimum.intel import OVModelForCausalLM

Expand Down

0 comments on commit 6aefc75

Please sign in to comment.