Skip to content

Commit 9af1b7c

Browse files
authored
Remove warning (#623)
1 parent 086fae3 commit 9af1b7c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

optimum/intel/openvino/modeling_decoder.py

-21
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,6 @@
7070
```
7171
"""
7272

73-
_SUPPORTED_ARCHITECTURES = {
74-
"bart",
75-
"blenderbot",
76-
"blenderbot-small",
77-
"bloom",
78-
"codegen",
79-
"gpt2",
80-
"gpt-bigcode",
81-
"gpt-neo",
82-
"gpt-neox",
83-
"llama",
84-
"marian",
85-
"opt",
86-
"pegasus",
87-
}
88-
8973

9074
@add_start_docstrings(
9175
"""
@@ -247,11 +231,6 @@ def _from_transformers(
247231
quantization_config: Optional[Union[OVWeightQuantizationConfig, Dict]] = None,
248232
**kwargs,
249233
):
250-
if config.model_type.replace("_", "-") not in _SUPPORTED_ARCHITECTURES:
251-
logger.warning(
252-
f"This architecture : {config.model_type} was not validated, only :{', '.join(_SUPPORTED_ARCHITECTURES)} architectures were "
253-
"validated, use at your own risk."
254-
)
255234
save_dir = TemporaryDirectory()
256235
save_dir_path = Path(save_dir.name)
257236

0 commit comments

Comments
 (0)