iamroot commited on
Commit
aa156c3
1 Parent(s): def591b

Upload ZeroShotEmbedding

Browse files
Files changed (2) hide show
  1. model.py +4 -0
  2. 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:d449b9dd7a347194e3596a3398581419c5f13a2efad7a82fe1478df0b152eec6
3
  size 13640544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c190260213a40bd005edc34138ac93485adc7386575a5a8e2d5ec5ecd2479c0
3
  size 13640544