From 22458d291c69ac3a63c5fa9554d1f7dba4f1b5fe Mon Sep 17 00:00:00 2001 From: jiqing-feng Date: Mon, 16 Dec 2024 14:21:40 +0000 Subject: [PATCH] fix check Signed-off-by: jiqing-feng --- optimum/intel/ipex/modeling_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimum/intel/ipex/modeling_base.py b/optimum/intel/ipex/modeling_base.py index de004db40..2cdccb771 100644 --- a/optimum/intel/ipex/modeling_base.py +++ b/optimum/intel/ipex/modeling_base.py @@ -186,7 +186,7 @@ def can_generate(self): def maybe_apply_torch_compile(self): if ( - not self.model.device.type != "cpu" + self.model.device.type != "cpu" or self.config.model_type in _COMPILE_NOT_READY_MODEL_TYPES or is_ipex_version("<", _IPEX_MINIMUM_VERSION_FOR_COMPILE) ):