Upload model
Browse files- prot_albert_model.py +4 -2
prot_albert_model.py
CHANGED
@@ -5,11 +5,13 @@ from transformers import AlbertModel, AutoConfig
|
|
5 |
from transformers import PreTrainedModel, AutoModel, AutoConfig
|
6 |
|
7 |
# from protalbert_pfam.prot_albert_config import ProtAlBertConfig
|
8 |
-
from protalbert_pfam.prot_albert_config import ProtAlBertConfig
|
|
|
|
|
9 |
|
10 |
|
11 |
class ProtAlBertModel(PreTrainedModel):
|
12 |
-
config_class =
|
13 |
def __init__(self, num_labels: int, hidden_size: int, model_name: str, *args, **kwargs):
|
14 |
"""
|
15 |
Initialise the model.
|
|
|
5 |
from transformers import PreTrainedModel, AutoModel, AutoConfig
|
6 |
|
7 |
# from protalbert_pfam.prot_albert_config import ProtAlBertConfig
|
8 |
+
#from protalbert_pfam.prot_albert_config import ProtAlBertConfig
|
9 |
+
from transformers.models.albert.configuration_albert import AlbertConfig
|
10 |
+
|
11 |
|
12 |
|
13 |
class ProtAlBertModel(PreTrainedModel):
|
14 |
+
config_class = AlbertConfig
|
15 |
def __init__(self, num_labels: int, hidden_size: int, model_name: str, *args, **kwargs):
|
16 |
"""
|
17 |
Initialise the model.
|