Commit
·
cde23e5
1
Parent(s):
f96356a
Upload config
Browse files- config.json +3 -4
- configuration_bert.py +2 -2
config.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"architectures": [
|
3 |
-
"BertForSequenceClassification"
|
4 |
-
],
|
5 |
"attention_probs_dropout_prob": 0.1,
|
|
|
|
|
|
|
6 |
"classifier_dropout": null,
|
7 |
"hidden_act": "gelu",
|
8 |
"hidden_dropout_prob": 0.1,
|
@@ -16,7 +16,6 @@
|
|
16 |
"num_hidden_layers": 12,
|
17 |
"pad_token_id": 0,
|
18 |
"position_embedding_type": "absolute",
|
19 |
-
"torch_dtype": "float32",
|
20 |
"transformers_version": "4.33.3",
|
21 |
"type_vocab_size": 2,
|
22 |
"use_cache": true,
|
|
|
1 |
{
|
|
|
|
|
|
|
2 |
"attention_probs_dropout_prob": 0.1,
|
3 |
+
"auto_map": {
|
4 |
+
"AutoConfig": "configuration_bert.BertConfig"
|
5 |
+
},
|
6 |
"classifier_dropout": null,
|
7 |
"hidden_act": "gelu",
|
8 |
"hidden_dropout_prob": 0.1,
|
|
|
16 |
"num_hidden_layers": 12,
|
17 |
"pad_token_id": 0,
|
18 |
"position_embedding_type": "absolute",
|
|
|
19 |
"transformers_version": "4.33.3",
|
20 |
"type_vocab_size": 2,
|
21 |
"use_cache": true,
|
configuration_bert.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
from transformers import PretrainedConfig
|
2 |
|
3 |
|
4 |
-
class
|
5 |
|
6 |
-
model_type = "bert
|
7 |
|
8 |
def __init__(
|
9 |
self,
|
|
|
1 |
from transformers import PretrainedConfig
|
2 |
|
3 |
|
4 |
+
class BertConfig(PretrainedConfig):
|
5 |
|
6 |
+
model_type = "bert"
|
7 |
|
8 |
def __init__(
|
9 |
self,
|