Fix wrong import in speculative (#10562)

This commit is contained in:
Xiangyu Tian 2024-03-27 18:21:07 +08:00 committed by GitHub
parent f239bc329b
commit 51d34ca68e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@ def generate(
**kwargs,
):
if hasattr(self, "draft_model"):
from ipex_llm.llm.transformers.convert import get_enable_ipex
from ipex_llm.transformers.convert import get_enable_ipex
_enable_ipex = get_enable_ipex()
if _enable_ipex and inputs.size(1) < 256:
logger.warning(