We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c885a54 commit a85b8aaCopy full SHA for a85b8aa
optimum/exporters/openvino/model_patcher.py
@@ -41,7 +41,7 @@ def patch_model_with_bettertransformer(model):
41
+ COLOR_RESET
42
)
43
44
- if is_transformers_version(">=", "4.38") and is_openvino_version("<", "2024.1.0-14612"):
+ if getattr(model.config, "model_type") in {"gpt_bigcode", "llama"} and is_transformers_version(">=", "4.38") and is_openvino_version("<", "2024.1.0-14612"):
45
log.warn(
46
COLOR_RED + f"[WARNING] Stateful models are not supported with Transformers {_transformers_version} and "
47
"this OpenVINO version. For good performance, consider using a nightly OpenVINO build: "
0 commit comments