Skip to content

Commit 9f6db33

Browse files
committed
rm set device on config
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
1 parent 18b2a6a commit 9f6db33

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

optimum/exporters/ipex/model_patcher.py

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def _patch_vit_model(model):
134134

135135

136136
def _patch_model(model):
137-
setattr(model.config, "device", model.device)
138137
if is_ipex_version("<", _IPEX_MINIMUM_VERSION_FOR_PATCHING):
139138
raise ImportError(f"Only ipex version >= {_IPEX_MINIMUM_VERSION_FOR_PATCHING} supports llama model patching")
140139
if is_transformers_version("<", _TRANSFORMERS_MIN_VERSION) or is_transformers_version(

0 commit comments

Comments
 (0)