Upload folder using huggingface_hub
Browse files- config.json +0 -4
- model.py +6 -0
config.json
CHANGED
|
@@ -2,10 +2,6 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"INF5Model"
|
| 4 |
],
|
| 5 |
-
"auto_map": {
|
| 6 |
-
"AutoConfig": "model.INF5Config",
|
| 7 |
-
"AutoModel": "model.INF5Model"
|
| 8 |
-
},
|
| 9 |
"ckpt_path": "checkpoints/model_best.pt",
|
| 10 |
"model_type": "inf5",
|
| 11 |
"remove_sil": true,
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"INF5Model"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"ckpt_path": "checkpoints/model_best.pt",
|
| 6 |
"model_type": "inf5",
|
| 7 |
"remove_sil": true,
|
model.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from transformers import PreTrainedModel, PretrainedConfig
|
| 2 |
import torch
|
| 3 |
import numpy as np
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
+
sys.path.append(current_dir)
|
| 6 |
+
|
| 7 |
from transformers import PreTrainedModel, PretrainedConfig
|
| 8 |
import torch
|
| 9 |
import numpy as np
|