Upload ZeroShotEmbedding
Browse files- model.py +4 -0
- model.safetensors +1 -1
model.py
CHANGED
@@ -17,6 +17,8 @@ class ZeroShotEmbeddingConfig(PretrainedConfig):
|
|
17 |
|
18 |
|
19 |
class ZeroShotEmbedding(PreTrainedModel):
|
|
|
|
|
20 |
def __init__(self, config):
|
21 |
super(ZeroShotEmbedding, self).__init__(config)
|
22 |
|
@@ -66,6 +68,8 @@ class ZeroShotEmbedding(PreTrainedModel):
|
|
66 |
|
67 |
|
68 |
class ZeroShotEmbeddingForClustering(PreTrainedModel):
|
|
|
|
|
69 |
def __init__(self, config):
|
70 |
super(ZeroShotEmbeddingForClustering, self).__init__(config)
|
71 |
self.base_embedding_model = SentenceTransformer(
|
|
|
17 |
|
18 |
|
19 |
class ZeroShotEmbedding(PreTrainedModel):
|
20 |
+
config_class = ZeroShotEmbeddingConfig
|
21 |
+
|
22 |
def __init__(self, config):
|
23 |
super(ZeroShotEmbedding, self).__init__(config)
|
24 |
|
|
|
68 |
|
69 |
|
70 |
class ZeroShotEmbeddingForClustering(PreTrainedModel):
|
71 |
+
config_class = ZeroShotEmbeddingConfig
|
72 |
+
|
73 |
def __init__(self, config):
|
74 |
super(ZeroShotEmbeddingForClustering, self).__init__(config)
|
75 |
self.base_embedding_model = SentenceTransformer(
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 13640544
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5c190260213a40bd005edc34138ac93485adc7386575a5a8e2d5ec5ecd2479c0
|
3 |
size 13640544
|