Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiyuan Chen <[email protected]>
  • Loading branch information
ZhiyuanChen committed Mar 26, 2024
1 parent 3188088 commit 0f62c93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions multimolecule/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
from transformers import AutoTokenizer

from . import models, tokenizers
from .models import RnaBertConfig
from .tokenizers import RnaTokenizer

AutoTokenizer.register(RnaBertConfig, RnaTokenizer)


__all__ = ["models", "tokenizers"]
4 changes: 2 additions & 2 deletions multimolecule/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .rnabert import RnaBertConfig, RnaBertModel
from .rnabert import RnaBertConfig, RnaBertModel, RnaTokenizer

__all__ = ["RnaBertConfig", "RnaBertModel"]
__all__ = ["RnaBertConfig", "RnaBertModel", "RnaTokenizer"]
2 changes: 1 addition & 1 deletion multimolecule/models/rnabert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .configuration_rnabert import RnaBertConfig
from .modeling_rnabert import RnaBertModel

__all__ = ["RnaBertConfig", "RnaBertModel"]
__all__ = ["RnaBertConfig", "RnaBertModel", "RnaTokenizer"]

AutoConfig.register("rnabert", RnaBertConfig)
AutoModel.register(RnaBertConfig, RnaBertModel)
Expand Down

0 comments on commit 0f62c93

Please sign in to comment.