From 890662610b10711488e53764d96ca5f0b3ff3429 Mon Sep 17 00:00:00 2001 From: Yuwen Hu <54161268+Oscilloscope98@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:17:43 +0800 Subject: [PATCH] Fix auto importer for LNL release (#12175) --- python/llm/src/ipex_llm/utils/ipex_importer.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/llm/src/ipex_llm/utils/ipex_importer.py b/python/llm/src/ipex_llm/utils/ipex_importer.py index 98f02037..7758258d 100644 --- a/python/llm/src/ipex_llm/utils/ipex_importer.py +++ b/python/llm/src/ipex_llm/utils/ipex_importer.py @@ -112,8 +112,13 @@ class IPEXImporter: distribution('bigdl-core-xe-21') return True except PackageNotFoundError: - # bigdl-core-xe not found - return False + # bigdl-core-xe & bigdl-core-xe-21 not found + # Check if bigdl-core-xe-23 is installed + try: + distribution('bigdl-core-xe-23') + return True + except PackageNotFoundError: + return False return False def import_ipex(self):