Skip to content

Commit abe8704

Browse files
Update optimum/intel/ipex/modeling_base.py
Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>
1 parent 184a610 commit abe8704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimum/intel/ipex/modeling_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _from_transformers(
194194
traced_model = ipex_jit_trace(model, task, use_cache)
195195

196196
config.torchscript = True
197-
config.torch_dtype = model_kwargs.get("torch_dtype", None)
197+
config.torch_dtype = torch_dtype
198198

199199
return cls(traced_model, config=config, model_save_dir=model_id, use_cache=use_cache, warmup=False)
200200

0 commit comments

Comments
 (0)