Commit
·
162ee38
1
Parent(s):
7d4d5d1
update
Browse files- config.json/config.json +3 -0
- config.json/model.py +1 -1
- pytorch_model.bin/config.json +4 -0
- pytorch_model.bin/model.py +1 -1
- pytorch_model.bin/model.safetensors +1 -1
config.json/config.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
| 2 |
"input_dim": 4,
|
| 3 |
"model_type": "test-model",
|
| 4 |
"output_dim": 16,
|
|
|
|
| 1 |
{
|
| 2 |
+
"auto_map": {
|
| 3 |
+
"AutoConfig": "model.TestConfig"
|
| 4 |
+
},
|
| 5 |
"input_dim": 4,
|
| 6 |
"model_type": "test-model",
|
| 7 |
"output_dim": 16,
|
config.json/model.py
CHANGED
|
@@ -5,9 +5,9 @@ class TestConfig(PretrainedConfig):
|
|
| 5 |
model_type = "test-model"
|
| 6 |
|
| 7 |
def __init__(self, input_dim=4, output_dim=16, **kwargs):
|
| 8 |
-
super().__init__(**kwargs)
|
| 9 |
self.input_dim = input_dim
|
| 10 |
self.output_dim = output_dim
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
class TestModel(PreTrainedModel):
|
|
|
|
| 5 |
model_type = "test-model"
|
| 6 |
|
| 7 |
def __init__(self, input_dim=4, output_dim=16, **kwargs):
|
|
|
|
| 8 |
self.input_dim = input_dim
|
| 9 |
self.output_dim = output_dim
|
| 10 |
+
super().__init__(**kwargs)
|
| 11 |
|
| 12 |
|
| 13 |
class TestModel(PreTrainedModel):
|
pytorch_model.bin/config.json
CHANGED
|
@@ -2,6 +2,10 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"TestModel"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"input_dim": 4,
|
| 6 |
"model_type": "test-model",
|
| 7 |
"output_dim": 16,
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"TestModel"
|
| 4 |
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoConfig": "model.TestConfig",
|
| 7 |
+
"AutoModel": "model.TestModel"
|
| 8 |
+
},
|
| 9 |
"input_dim": 4,
|
| 10 |
"model_type": "test-model",
|
| 11 |
"output_dim": 16,
|
pytorch_model.bin/model.py
CHANGED
|
@@ -5,9 +5,9 @@ class TestConfig(PretrainedConfig):
|
|
| 5 |
model_type = "test-model"
|
| 6 |
|
| 7 |
def __init__(self, input_dim=4, output_dim=16, **kwargs):
|
| 8 |
-
super().__init__(**kwargs)
|
| 9 |
self.input_dim = input_dim
|
| 10 |
self.output_dim = output_dim
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
class TestModel(PreTrainedModel):
|
|
|
|
| 5 |
model_type = "test-model"
|
| 6 |
|
| 7 |
def __init__(self, input_dim=4, output_dim=16, **kwargs):
|
|
|
|
| 8 |
self.input_dim = input_dim
|
| 9 |
self.output_dim = output_dim
|
| 10 |
+
super().__init__(**kwargs)
|
| 11 |
|
| 12 |
|
| 13 |
class TestModel(PreTrainedModel):
|
pytorch_model.bin/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 496
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:218cdc4788564080b5cb32506374a2dc69c766c1313c96eaf08aa34f922f20f3
|
| 3 |
size 496
|