add model
Browse files- config.json +2 -2
- modeling.py +1 -1
- pytorch_model.bin +1 -1
config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "bert-
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"classifier_dropout": null,
|
1 |
{
|
2 |
+
"_name_or_path": "sgugger/my-bert-model",
|
3 |
"architectures": [
|
4 |
+
"MyBertModel"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"classifier_dropout": null,
|
modeling.py
CHANGED
@@ -3,4 +3,4 @@ from transformers import BertModel
|
|
3 |
class MyBertModel(BertModel):
|
4 |
def forward(self, *args, **kwargs):
|
5 |
print("Success")
|
6 |
-
return super(*args, **kwargs)
|
3 |
class MyBertModel(BertModel):
|
4 |
def forward(self, *args, **kwargs):
|
5 |
print("Success")
|
6 |
+
return super.forward(*args, **kwargs)
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 433324855
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5924121a66d99ee2983de8025e32ce5378a98928719b916719d810dc07be30c4
|
3 |
size 433324855
|