You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: optimum/intel/ipex/modeling_base.py
+5
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,11 @@ def _from_pretrained(
192
192
subfolder: str="",
193
193
**kwargs,
194
194
):
195
+
ifnotgetattr(config, "torchscript", False):
196
+
raiseValueError(
197
+
"`config.torchscript` should be set to `True`, if your model is not a TorchScript model and needs to be traced please set `export=True` when loading it with `.from_pretrained()`"
0 commit comments