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/openvino/modeling_base.py
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -619,13 +619,9 @@ def _from_transformers(
619
619
)
620
620
compile_only=False
621
621
622
-
ov_config=kwargs.get("ov_config")
623
-
ifov_configisNone:
624
-
# If load_in_8bit and quantization_config not specified then ov_config is set to None and will be set by default in convert depending on the model size
Copy file name to clipboardExpand all lines: optimum/intel/openvino/modeling_decoder.py
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -306,13 +306,9 @@ def _from_transformers(
306
306
ifuse_cache:
307
307
task=task+"-with-past"
308
308
309
-
ov_export_config=kwargs.get("ov_config")
310
-
ifov_export_configisNone:
311
-
# If load_in_8bit and quantization_config not specified then ov_config is set to None and will be set by default in convert depending on the model size
# If load_in_8bit and quantization_config not specified then ov_config is set to None and will be set by default in convert depending on the model size
# If load_in_8bit and quantization_config not specified then ov_config is set to None and will be set by default in convert depending on the model size
Copy file name to clipboardExpand all lines: optimum/intel/openvino/modeling_seq2seq.py
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -602,13 +602,9 @@ def _from_transformers(
602
602
"Please provide openvino model obtained using optimum-cli or saved on disk using `save_pretrained`"
603
603
)
604
604
compile_only=False
605
-
ov_config=kwargs.get("ov_config")
606
-
ifov_configisNone:
607
-
# If load_in_8bit and quantization_config not specified then ov_config is set to None and will be set by default in convert depending on the model size
Copy file name to clipboardExpand all lines: optimum/intel/openvino/modeling_visual_language.py
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -660,14 +660,10 @@ def _from_transformers(
660
660
iftaskisNone:
661
661
task=cls.export_feature
662
662
663
-
ov_config=kwargs.get("ov_config")
664
-
ifov_configisNone:
665
-
# If load_in_8bit and quantization_config not specified then ov_config is set to None and will be set by default in convert depending on the model size
666
-
ifload_in_8bitisNoneandnotquantization_config:
667
-
ov_config=None
668
-
else:
669
-
# Export in fp32 if compression won't be applied later
0 commit comments