Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
update ipex api
Browse files Browse the repository at this point in the history
Signed-off-by: intellinjun <[email protected]>
  • Loading branch information
intellinjun committed Jul 3, 2024
1 parent 86087dc commit fdd4d34
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -840,12 +840,10 @@ def load_model(

if not use_tpp:
try:
model = intel_ipex.optimize(
model = intel_ipex.llm.optimize(
model.eval(),
dtype=torch_dtype,
inplace=True,
level="O1",
auto_kernel_selection=True,
)
except AssertionError:
model = intel_ipex.optimize(
Expand Down

0 comments on commit fdd4d34

Please sign in to comment.