Upload TypeBERTForSequenceClassification
Browse files- config.json +1 -0
- type_bert_model.py +1 -0
config.json
CHANGED
@@ -23,6 +23,7 @@
|
|
23 |
"virtual": 4
|
24 |
},
|
25 |
"model_type": "type_bert",
|
|
|
26 |
"torch_dtype": "float32",
|
27 |
"transformers_version": "4.22.1"
|
28 |
}
|
|
|
23 |
"virtual": 4
|
24 |
},
|
25 |
"model_type": "type_bert",
|
26 |
+
"tokenizer_class": "bert-base-uncased",
|
27 |
"torch_dtype": "float32",
|
28 |
"transformers_version": "4.22.1"
|
29 |
}
|
type_bert_model.py
CHANGED
@@ -28,6 +28,7 @@ class TypeBERTConfig(PretrainedConfig):
|
|
28 |
}
|
29 |
|
30 |
self.architectures = ['TypeBERTForSequenceClassification']
|
|
|
31 |
|
32 |
|
33 |
|
|
|
28 |
}
|
29 |
|
30 |
self.architectures = ['TypeBERTForSequenceClassification']
|
31 |
+
self.tokenizer_class = 'bert-base-uncased'
|
32 |
|
33 |
|
34 |
|