lora cpu fix

Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
This commit is contained in:
Wang, Yi A 2025-07-16 23:36:14 -07:00
parent d31bdfdbae
commit 0df4d225b5

View File

@ -16,12 +16,15 @@ else:
punica_sgmv = None
if SYSTEM == "ipex":
from intel_extension_for_pytorch.llm.functional import (
bgmv_expand,
bgmv_shrink,
sgmv_expand,
sgmv_shrink,
)
try:
from intel_extension_for_pytorch.llm.functional import (
bgmv_expand,
bgmv_shrink,
sgmv_expand,
sgmv_shrink,
)
except ImportError:
pass
if TYPE_CHECKING: