Skip to content

Commit

Permalink
Add missing ESM autoclass (huggingface#20177)
Browse files Browse the repository at this point in the history
* Add missing ESM autoclass

* Correct ESMFold checkpoint
  • Loading branch information
Rocketknight1 authored Nov 15, 2022
1 parent 92cfe8b commit d3d5fa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/transformers/models/auto/modeling_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@
("distilbert", "DistilBertForMaskedLM"),
("electra", "ElectraForMaskedLM"),
("ernie", "ErnieForMaskedLM"),
("esm", "EsmForMaskedLM"),
("flaubert", "FlaubertWithLMHeadModel"),
("fnet", "FNetForMaskedLM"),
("funnel", "FunnelForMaskedLM"),
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/models/esm/modeling_esmfold.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@


logger = logging.get_logger(__name__)
_CHECKPOINT_FOR_DOC = "Rocketknight1/esmfold_v1"
_CHECKPOINT_FOR_DOC = "facebook/esmfold_v1"
_CONFIG_FOR_DOC = "EsmConfig"
_TOKENIZER_FOR_DOC = "EsmTokenizer"

Expand Down

0 comments on commit d3d5fa3

Please sign in to comment.