File tree 1 file changed +0
-21
lines changed
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 70
70
```
71
71
"""
72
72
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
-
89
73
90
74
@add_start_docstrings (
91
75
"""
@@ -247,11 +231,6 @@ def _from_transformers(
247
231
quantization_config : Optional [Union [OVWeightQuantizationConfig , Dict ]] = None ,
248
232
** kwargs ,
249
233
):
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
- )
255
234
save_dir = TemporaryDirectory ()
256
235
save_dir_path = Path (save_dir .name )
257
236
You can’t perform that action at this time.
0 commit comments