Skip to content

Commit

Permalink
Add DonutSwin to MODEL_NAMES_MAPPING
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Rogge authored and Niels Rogge committed Aug 12, 2022
1 parent 18b2aed commit 34c9f38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/en/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Flax), PyTorch, and/or TensorFlow.
| DeiT | | | | | |
| DETR | | | | | |
| DistilBERT | | | | | |
| Donut | | | | | |
| DonutSwin | | | | | |
| DPR | | | | | |
| DPT | | | | | |
| ELECTRA | | | | | |
Expand Down
3 changes: 2 additions & 1 deletion src/transformers/models/auto/configuration_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
("dialogpt", "DialoGPT"),
("distilbert", "DistilBERT"),
("dit", "DiT"),
("donut-swin", "Donut"),
("donut", "Donut"),
("donut-swin", "DonutSwin"),
("dpr", "DPR"),
("dpt", "DPT"),
("electra", "ELECTRA"),
Expand Down
1 change: 1 addition & 0 deletions utils/check_copies.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def check_model_list_copy(overwrite=False, max_per_line=119):
"Data2VecAudio": "Data2Vec",
"Data2VecText": "Data2Vec",
"Data2VecVision": "Data2Vec",
"DonutSwin": "Donut",
"Marian": "MarianMT",
"OpenAI GPT-2": "GPT-2",
"OpenAI GPT": "GPT",
Expand Down

0 comments on commit 34c9f38

Please sign in to comment.