Skip to content

Commit

Permalink
fix congif (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqing-feng authored Oct 10, 2024
1 parent 973e034 commit 8b574d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimum/intel/ipex/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def __init__(
else:
self._device = torch.device("cpu")

config = config or model.config

OptimizedModel.__init__(self, model=model, config=config)

self.model.to(self._device)
Expand Down

0 comments on commit 8b574d0

Please sign in to comment.