Skip to content

Commit

Permalink
Fix imports, add model docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed Oct 13, 2022
1 parent c2a67a8 commit ab774a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions docs/source/en/model_doc/esm.mdx
Expand Up @@ -107,3 +107,23 @@ and [Matt](https://huggingface.co/Rocketknight1).

[[autodoc]] EsmForTokenClassification
- forward

## TFEsmModel

[[autodoc]] TFEsmModel
- call

## TFEsmForMaskedLM

[[autodoc]] TFEsmForMaskedLM
- call

## TFEsmForSequenceClassification

[[autodoc]] TFEsmForSequenceClassification
- call

## TFEsmForTokenClassification

[[autodoc]] TFEsmForTokenClassification
- call
4 changes: 2 additions & 2 deletions src/transformers/models/esm/__init__.py
Expand Up @@ -47,7 +47,7 @@
pass
else:
_import_structure["modeling_tf_esm"] = [
"ESM_PRETRAINED_MODEL_ARCHIVE_LIST",
"TF_ESM_PRETRAINED_MODEL_ARCHIVE_LIST",
"TFEsmForMaskedLM",
"TFEsmForSequenceClassification",
"TFEsmForTokenClassification",
Expand Down Expand Up @@ -82,7 +82,7 @@
pass
else:
from .modeling_tf_esm import (
ESM_PRETRAINED_MODEL_ARCHIVE_LIST,
TF_ESM_PRETRAINED_MODEL_ARCHIVE_LIST,
TFEsmForMaskedLM,
TFEsmForSequenceClassification,
TFEsmForTokenClassification,
Expand Down

0 comments on commit ab774a6

Please sign in to comment.