Skip to content

Commit

Permalink
Fix auto mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsRogge committed May 17, 2022
1 parent 7f72f40 commit d14072b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transformers/models/auto/modeling_auto.py
Expand Up @@ -28,6 +28,10 @@
MODEL_MAPPING_NAMES = OrderedDict(
[
# Base model mapping
("albert", "AlbertModel"),
("bart", "BartModel"),
("beit", "BeitModel"),
("bert", "BertModel"),
("bert-generation", "BertGenerationEncoder"),
("big_bird", "BigBirdModel"),
("bigbird_pegasus", "BigBirdPegasusModel"),
Expand Down Expand Up @@ -56,6 +60,7 @@
("flaubert", "FlaubertModel"),
("flava", "FlavaModel"),
("fnet", "FNetModel"),
("fsmt", "FSMTModel"),
("funnel", ("FunnelModel", "FunnelBaseModel")),
("glpn", "GLPNModel"),
("gpt2", "GPT2Model"),
Expand Down

0 comments on commit d14072b

Please sign in to comment.