Upload model
Browse files- modeling_test.py +3 -3
- pytorch_model.bin +2 -2
modeling_test.py
CHANGED
@@ -12,9 +12,9 @@ class TestModel(PreTrainedModel):
|
|
12 |
super().__init__(config)
|
13 |
self.input_dim = config.input_dim
|
14 |
self.model1 = nn.Linear(config.input_dim, config.output_dim)
|
15 |
-
self.model2 = AutoModelForMaskedLM.from_config(
|
16 |
-
|
17 |
-
)
|
18 |
|
19 |
def forward(self, tensor):
|
20 |
return self.model1(tensor)
|
|
|
12 |
super().__init__(config)
|
13 |
self.input_dim = config.input_dim
|
14 |
self.model1 = nn.Linear(config.input_dim, config.output_dim)
|
15 |
+
# self.model2 = AutoModelForMaskedLM.from_config(
|
16 |
+
# AutoConfig.from_pretrained("bert-base-uncased")
|
17 |
+
# )
|
18 |
|
19 |
def forward(self, tensor):
|
20 |
return self.model1(tensor)
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:652bf7b2bdc254841672719f7491681582fbb546a9d05fe470da0d4315f2d192
|
3 |
+
size 1215
|