Skip to content

Commit e4aa76e

Browse files
committed
Add deprecated models to DEPRECATED_MODELS constant
1 parent ecb7438 commit e4aa76e

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

src/transformers/models/auto/configuration_auto.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,31 @@
911911

912912
# This is tied to the processing `-` -> `_` in `model_type_to_module_name`. For example, instead of putting
913913
# `transfo-xl` (as in `CONFIG_MAPPING_NAMES`), we should use `transfo_xl`.
914-
DEPRECATED_MODELS = []
914+
DEPRECATED_MODELS = [
915+
"deta",
916+
"efficientformer",
917+
"ernie_m",
918+
"gptsan_japanese",
919+
"graphormer",
920+
"jukebox",
921+
"mctct",
922+
"mega",
923+
"mmbt",
924+
"nat",
925+
"nezha",
926+
"open_llama",
927+
"qdqbert",
928+
"realm",
929+
"retribert",
930+
"speech_to_text_2",
931+
"tapex",
932+
"trajectory_transformer",
933+
"transfo_xl",
934+
"tvlt",
935+
"van",
936+
"vit_hybrid",
937+
"xlm_prophetnet",
938+
]
915939

916940
SPECIAL_MODEL_TYPE_TO_MODULE_NAME = OrderedDict[str, str](
917941
[

0 commit comments

Comments
 (0)