commit from alex
Browse files- config.json +2 -1
- configuration_bert.py +1 -1
config.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
|
|
|
| 6 |
"AutoModel": "modeling_bert.BertForPreTraining"
|
| 7 |
},
|
| 8 |
"attention_probs_dropout_prob": 0.1,
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"BertForMaskedLM"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
+
"AutoConfig": "configuration_bert.BertConfig",
|
| 7 |
"AutoModel": "modeling_bert.BertForPreTraining"
|
| 8 |
},
|
| 9 |
"attention_probs_dropout_prob": 0.1,
|
configuration_bert.py
CHANGED
|
@@ -2,7 +2,7 @@ from transformers import PretrainedConfig
|
|
| 2 |
from typing import List
|
| 3 |
|
| 4 |
|
| 5 |
-
class
|
| 6 |
model_type="bert"
|
| 7 |
|
| 8 |
def __init__(
|
|
|
|
| 2 |
from typing import List
|
| 3 |
|
| 4 |
|
| 5 |
+
class BertConfig(PretrainedConfig):
|
| 6 |
model_type="bert"
|
| 7 |
|
| 8 |
def __init__(
|