Delete saved
Browse files- saved/config.json +0 -14
- saved/model.py +0 -21
- saved/model.safetensors +0 -3
saved/config.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
{
|
| 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,
|
| 12 |
-
"torch_dtype": "float32",
|
| 13 |
-
"transformers_version": "4.54.1"
|
| 14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
saved/model.py
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
from transformers import PreTrainedModel, PretrainedConfig
|
| 2 |
-
from torch import nn
|
| 3 |
-
|
| 4 |
-
class TestConfig(PretrainedConfig):
|
| 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):
|
| 14 |
-
config_class = TestConfig
|
| 15 |
-
|
| 16 |
-
def __init__(self, config):
|
| 17 |
-
super().__init__(config)
|
| 18 |
-
self.layer = nn.Linear(config.input_dim, config.output_dim)
|
| 19 |
-
|
| 20 |
-
def forward(self, input):
|
| 21 |
-
return self.layer(input)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
saved/model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6129e117260ef9958a341f3a738c069b1dbdde687e29b8de423475dd5c3e631b
|
| 3 |
-
size 496
|
|
|
|
|
|
|
|
|
|
|
|