Upload folder using huggingface_hub
Browse files- .ipynb_checkpoints/model-checkpoint.py +6 -2
- model.py +6 -2
.ipynb_checkpoints/model-checkpoint.py
CHANGED
@@ -12,9 +12,13 @@ from huggingface_hub import PyTorchModelHubMixin
|
|
12 |
|
13 |
from transformers import AutoModel, PreTrainedModel
|
14 |
from .config import LUARConfig
|
|
|
|
|
15 |
|
16 |
-
class UARScene(
|
17 |
-
|
|
|
|
|
18 |
"""Defines the SBERT model.
|
19 |
"""
|
20 |
config_class = LUARConfig
|
|
|
12 |
|
13 |
from transformers import AutoModel, PreTrainedModel
|
14 |
from .config import LUARConfig
|
15 |
+
from huggingface_hub import PyTorchModelHubMixin
|
16 |
+
|
17 |
|
18 |
+
class UARScene(
|
19 |
+
nn.Module,
|
20 |
+
PyTorchModelHubMixin,
|
21 |
+
):
|
22 |
"""Defines the SBERT model.
|
23 |
"""
|
24 |
config_class = LUARConfig
|
model.py
CHANGED
@@ -12,9 +12,13 @@ from huggingface_hub import PyTorchModelHubMixin
|
|
12 |
|
13 |
from transformers import AutoModel, PreTrainedModel
|
14 |
from .config import LUARConfig
|
|
|
|
|
15 |
|
16 |
-
class UARScene(
|
17 |
-
|
|
|
|
|
18 |
"""Defines the SBERT model.
|
19 |
"""
|
20 |
config_class = LUARConfig
|
|
|
12 |
|
13 |
from transformers import AutoModel, PreTrainedModel
|
14 |
from .config import LUARConfig
|
15 |
+
from huggingface_hub import PyTorchModelHubMixin
|
16 |
+
|
17 |
|
18 |
+
class UARScene(
|
19 |
+
nn.Module,
|
20 |
+
PyTorchModelHubMixin,
|
21 |
+
):
|
22 |
"""Defines the SBERT model.
|
23 |
"""
|
24 |
config_class = LUARConfig
|