tomaarsen HF Staff commited on
Commit
c6831d8
·
verified ·
1 Parent(s): 70acde1

Add new SparseEncoder model

Browse files
README.md ADDED
@@ -0,0 +1,834 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - sentence-transformers
7
+ - sparse-encoder
8
+ - sparse
9
+ - asymmetric
10
+ - inference-free
11
+ - splade
12
+ - generated_from_trainer
13
+ - dataset_size:99000
14
+ - loss:SpladeLoss
15
+ - loss:SparseMultipleNegativesRankingLoss
16
+ - loss:FlopsLoss
17
+ widget:
18
+ - text: Rollin' (Limp Bizkit song) The music video was filmed atop the South Tower
19
+ of the former World Trade Center in New York City. The introduction features Ben
20
+ Stiller and Stephen Dorff mistaking Fred Durst for the valet and giving him the
21
+ keys to their Bentley Azure. Also making a cameo is break dancer Mr. Wiggles.
22
+ The rest of the video has several cuts to Durst and his bandmates hanging out
23
+ of the Bentley as they drive about Manhattan. The song Ben Stiller is playing
24
+ at the beginning is "My Generation" from the same album. The video also features
25
+ scenes of Fred Durst with five girls dancing in a room. The video was filmed around
26
+ the same time as the film Zoolander, which explains Stiller and Dorff's appearance.
27
+ Fred Durst has a small cameo in that film.
28
+ - text: document
29
+ - text: who played the dj in the movie the warriors
30
+ - text: Lionel Messi Born and raised in central Argentina, Messi was diagnosed with
31
+ a growth hormone deficiency as a child. At age 13, he relocated to Spain to join
32
+ Barcelona, who agreed to pay for his medical treatment. After a fast progression
33
+ through Barcelona's youth academy, Messi made his competitive debut aged 17 in
34
+ October 2004. Despite being injury-prone during his early career, he established
35
+ himself as an integral player for the club within the next three years, finishing
36
+ 2007 as a finalist for both the Ballon d'Or and FIFA World Player of the Year
37
+ award, a feat he repeated the following year. His first uninterrupted campaign
38
+ came in the 2008–09 season, during which he helped Barcelona achieve the first
39
+ treble in Spanish football. At 22 years old, Messi won the Ballon d'Or and FIFA
40
+ World Player of the Year award by record voting margins.
41
+ - text: 'Send In the Clowns "Send In the Clowns" is a song written by Stephen Sondheim
42
+ for the 1973 musical A Little Night Music, an adaptation of Ingmar Bergman''s
43
+ film Smiles of a Summer Night. It is a ballad from Act Two, in which the character
44
+ Desirée reflects on the ironies and disappointments of her life. Among other things,
45
+ she looks back on an affair years earlier with the lawyer Fredrik, who was deeply
46
+ in love with her but whose marriage proposals she had rejected. Meeting him after
47
+ so long, she realizes she is in love with him and finally ready to marry him,
48
+ but now it is he who rejects her: he is in an unconsummated marriage with a much
49
+ younger woman. Desirée proposes marriage to rescue him from this situation, but
50
+ he declines, citing his dedication to his bride. Reacting to his rejection, Desirée
51
+ sings this song. The song is later reprised as a coda after Fredrik''s young wife
52
+ runs away with his son, and Fredrik is finally free to accept Desirée''s offer.[1]'
53
+ datasets:
54
+ - sentence-transformers/natural-questions
55
+ pipeline_tag: feature-extraction
56
+ library_name: sentence-transformers
57
+ metrics:
58
+ - dot_accuracy@1
59
+ - dot_accuracy@3
60
+ - dot_accuracy@5
61
+ - dot_accuracy@10
62
+ - dot_precision@1
63
+ - dot_precision@3
64
+ - dot_precision@5
65
+ - dot_precision@10
66
+ - dot_recall@1
67
+ - dot_recall@3
68
+ - dot_recall@5
69
+ - dot_recall@10
70
+ - dot_ndcg@10
71
+ - dot_mrr@10
72
+ - dot_map@100
73
+ - query_active_dims
74
+ - query_sparsity_ratio
75
+ - corpus_active_dims
76
+ - corpus_sparsity_ratio
77
+ co2_eq_emissions:
78
+ emissions: 68.29458484042254
79
+ energy_consumed: 0.17569908269168294
80
+ source: codecarbon
81
+ training_type: fine-tuning
82
+ on_cloud: false
83
+ cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K
84
+ ram_total_size: 31.777088165283203
85
+ hours_used: 0.483
86
+ hardware_used: 1 x NVIDIA GeForce RTX 3090
87
+ model-index:
88
+ - name: Inference-free SPLADE bert-base-uncased trained on Natural-Questions tuples
89
+ results:
90
+ - task:
91
+ type: sparse-information-retrieval
92
+ name: Sparse Information Retrieval
93
+ dataset:
94
+ name: NanoMSMARCO
95
+ type: NanoMSMARCO
96
+ metrics:
97
+ - type: dot_accuracy@1
98
+ value: 0.26
99
+ name: Dot Accuracy@1
100
+ - type: dot_accuracy@3
101
+ value: 0.62
102
+ name: Dot Accuracy@3
103
+ - type: dot_accuracy@5
104
+ value: 0.68
105
+ name: Dot Accuracy@5
106
+ - type: dot_accuracy@10
107
+ value: 0.78
108
+ name: Dot Accuracy@10
109
+ - type: dot_precision@1
110
+ value: 0.26
111
+ name: Dot Precision@1
112
+ - type: dot_precision@3
113
+ value: 0.20666666666666667
114
+ name: Dot Precision@3
115
+ - type: dot_precision@5
116
+ value: 0.136
117
+ name: Dot Precision@5
118
+ - type: dot_precision@10
119
+ value: 0.078
120
+ name: Dot Precision@10
121
+ - type: dot_recall@1
122
+ value: 0.26
123
+ name: Dot Recall@1
124
+ - type: dot_recall@3
125
+ value: 0.62
126
+ name: Dot Recall@3
127
+ - type: dot_recall@5
128
+ value: 0.68
129
+ name: Dot Recall@5
130
+ - type: dot_recall@10
131
+ value: 0.78
132
+ name: Dot Recall@10
133
+ - type: dot_ndcg@10
134
+ value: 0.5307390793273258
135
+ name: Dot Ndcg@10
136
+ - type: dot_mrr@10
137
+ value: 0.450047619047619
138
+ name: Dot Mrr@10
139
+ - type: dot_map@100
140
+ value: 0.4590024318818437
141
+ name: Dot Map@100
142
+ - type: query_active_dims
143
+ value: 7.21999979019165
144
+ name: Query Active Dims
145
+ - type: query_sparsity_ratio
146
+ value: 0.999763449322122
147
+ name: Query Sparsity Ratio
148
+ - type: corpus_active_dims
149
+ value: 106.36942291259766
150
+ name: Corpus Active Dims
151
+ - type: corpus_sparsity_ratio
152
+ value: 0.9965149917137607
153
+ name: Corpus Sparsity Ratio
154
+ - task:
155
+ type: sparse-information-retrieval
156
+ name: Sparse Information Retrieval
157
+ dataset:
158
+ name: NanoNFCorpus
159
+ type: NanoNFCorpus
160
+ metrics:
161
+ - type: dot_accuracy@1
162
+ value: 0.44
163
+ name: Dot Accuracy@1
164
+ - type: dot_accuracy@3
165
+ value: 0.54
166
+ name: Dot Accuracy@3
167
+ - type: dot_accuracy@5
168
+ value: 0.58
169
+ name: Dot Accuracy@5
170
+ - type: dot_accuracy@10
171
+ value: 0.62
172
+ name: Dot Accuracy@10
173
+ - type: dot_precision@1
174
+ value: 0.44
175
+ name: Dot Precision@1
176
+ - type: dot_precision@3
177
+ value: 0.38
178
+ name: Dot Precision@3
179
+ - type: dot_precision@5
180
+ value: 0.34
181
+ name: Dot Precision@5
182
+ - type: dot_precision@10
183
+ value: 0.274
184
+ name: Dot Precision@10
185
+ - type: dot_recall@1
186
+ value: 0.043133464872628924
187
+ name: Dot Recall@1
188
+ - type: dot_recall@3
189
+ value: 0.07664632573379433
190
+ name: Dot Recall@3
191
+ - type: dot_recall@5
192
+ value: 0.09608957617217664
193
+ name: Dot Recall@5
194
+ - type: dot_recall@10
195
+ value: 0.121568983205876
196
+ name: Dot Recall@10
197
+ - type: dot_ndcg@10
198
+ value: 0.33893766293410243
199
+ name: Dot Ndcg@10
200
+ - type: dot_mrr@10
201
+ value: 0.5020238095238095
202
+ name: Dot Mrr@10
203
+ - type: dot_map@100
204
+ value: 0.1460630924219036
205
+ name: Dot Map@100
206
+ - type: query_active_dims
207
+ value: 5.659999847412109
208
+ name: Query Active Dims
209
+ - type: query_sparsity_ratio
210
+ value: 0.9998145599945151
211
+ name: Query Sparsity Ratio
212
+ - type: corpus_active_dims
213
+ value: 178.6857452392578
214
+ name: Corpus Active Dims
215
+ - type: corpus_sparsity_ratio
216
+ value: 0.9941456737684536
217
+ name: Corpus Sparsity Ratio
218
+ - task:
219
+ type: sparse-information-retrieval
220
+ name: Sparse Information Retrieval
221
+ dataset:
222
+ name: NanoNQ
223
+ type: NanoNQ
224
+ metrics:
225
+ - type: dot_accuracy@1
226
+ value: 0.44
227
+ name: Dot Accuracy@1
228
+ - type: dot_accuracy@3
229
+ value: 0.6
230
+ name: Dot Accuracy@3
231
+ - type: dot_accuracy@5
232
+ value: 0.74
233
+ name: Dot Accuracy@5
234
+ - type: dot_accuracy@10
235
+ value: 0.84
236
+ name: Dot Accuracy@10
237
+ - type: dot_precision@1
238
+ value: 0.44
239
+ name: Dot Precision@1
240
+ - type: dot_precision@3
241
+ value: 0.2
242
+ name: Dot Precision@3
243
+ - type: dot_precision@5
244
+ value: 0.14800000000000002
245
+ name: Dot Precision@5
246
+ - type: dot_precision@10
247
+ value: 0.08599999999999998
248
+ name: Dot Precision@10
249
+ - type: dot_recall@1
250
+ value: 0.43
251
+ name: Dot Recall@1
252
+ - type: dot_recall@3
253
+ value: 0.57
254
+ name: Dot Recall@3
255
+ - type: dot_recall@5
256
+ value: 0.68
257
+ name: Dot Recall@5
258
+ - type: dot_recall@10
259
+ value: 0.78
260
+ name: Dot Recall@10
261
+ - type: dot_ndcg@10
262
+ value: 0.59207822376941
263
+ name: Dot Ndcg@10
264
+ - type: dot_mrr@10
265
+ value: 0.5457777777777778
266
+ name: Dot Mrr@10
267
+ - type: dot_map@100
268
+ value: 0.5296003788208009
269
+ name: Dot Map@100
270
+ - type: query_active_dims
271
+ value: 10.319999694824219
272
+ name: Query Active Dims
273
+ - type: query_sparsity_ratio
274
+ value: 0.9996618832417657
275
+ name: Query Sparsity Ratio
276
+ - type: corpus_active_dims
277
+ value: 96.61132049560547
278
+ name: Corpus Active Dims
279
+ - type: corpus_sparsity_ratio
280
+ value: 0.9968346988894697
281
+ name: Corpus Sparsity Ratio
282
+ - task:
283
+ type: sparse-nano-beir
284
+ name: Sparse Nano BEIR
285
+ dataset:
286
+ name: NanoBEIR mean
287
+ type: NanoBEIR_mean
288
+ metrics:
289
+ - type: dot_accuracy@1
290
+ value: 0.37999999999999995
291
+ name: Dot Accuracy@1
292
+ - type: dot_accuracy@3
293
+ value: 0.5866666666666668
294
+ name: Dot Accuracy@3
295
+ - type: dot_accuracy@5
296
+ value: 0.6666666666666666
297
+ name: Dot Accuracy@5
298
+ - type: dot_accuracy@10
299
+ value: 0.7466666666666666
300
+ name: Dot Accuracy@10
301
+ - type: dot_precision@1
302
+ value: 0.37999999999999995
303
+ name: Dot Precision@1
304
+ - type: dot_precision@3
305
+ value: 0.2622222222222222
306
+ name: Dot Precision@3
307
+ - type: dot_precision@5
308
+ value: 0.20800000000000005
309
+ name: Dot Precision@5
310
+ - type: dot_precision@10
311
+ value: 0.146
312
+ name: Dot Precision@10
313
+ - type: dot_recall@1
314
+ value: 0.24437782162420962
315
+ name: Dot Recall@1
316
+ - type: dot_recall@3
317
+ value: 0.42221544191126475
318
+ name: Dot Recall@3
319
+ - type: dot_recall@5
320
+ value: 0.4853631920573922
321
+ name: Dot Recall@5
322
+ - type: dot_recall@10
323
+ value: 0.5605229944019586
324
+ name: Dot Recall@10
325
+ - type: dot_ndcg@10
326
+ value: 0.48725165534361276
327
+ name: Dot Ndcg@10
328
+ - type: dot_mrr@10
329
+ value: 0.4992830687830687
330
+ name: Dot Mrr@10
331
+ - type: dot_map@100
332
+ value: 0.37822196770818267
333
+ name: Dot Map@100
334
+ - type: query_active_dims
335
+ value: 7.733333110809326
336
+ name: Query Active Dims
337
+ - type: query_sparsity_ratio
338
+ value: 0.999746630852801
339
+ name: Query Sparsity Ratio
340
+ - type: corpus_active_dims
341
+ value: 118.98687776342045
342
+ name: Corpus Active Dims
343
+ - type: corpus_sparsity_ratio
344
+ value: 0.9961016028516014
345
+ name: Corpus Sparsity Ratio
346
+ ---
347
+
348
+ # Inference-free SPLADE bert-base-uncased trained on Natural-Questions tuples
349
+
350
+ This is a [Asymmetric Inference-free SPLADE Sparse Encoder](https://www.sbert.net/docs/sparse_encoder/usage/usage.html) model trained on the [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) dataset using the [sentence-transformers](https://www.SBERT.net) library. It maps sentences & paragraphs to a 30522-dimensional sparse vector space and can be used for semantic search and sparse retrieval.
351
+ ## Model Details
352
+
353
+ ### Model Description
354
+ - **Model Type:** Asymmetric Inference-free SPLADE Sparse Encoder
355
+ <!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
356
+ - **Maximum Sequence Length:** 512 tokens
357
+ - **Output Dimensionality:** 30522 dimensions
358
+ - **Similarity Function:** Dot Product
359
+ - **Training Dataset:**
360
+ - [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions)
361
+ - **Language:** en
362
+ - **License:** apache-2.0
363
+
364
+ ### Model Sources
365
+
366
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
367
+ - **Documentation:** [Sparse Encoder Documentation](https://www.sbert.net/docs/sparse_encoder/usage/usage.html)
368
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
369
+ - **Hugging Face:** [Sparse Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=sparse-encoder)
370
+
371
+ ### Full Model Architecture
372
+
373
+ ```
374
+ SparseEncoder(
375
+ (0): Router(
376
+ (query_0_IDF): IDF ({'frozen': False}, dim:30522, tokenizer: BertTokenizerFast)
377
+ (document_0_MLMTransformer): MLMTransformer({'max_seq_length': 512, 'do_lower_case': False}) with MLMTransformer model: BertForMaskedLM
378
+ (document_1_SpladePooling): SpladePooling({'pooling_strategy': 'max', 'activation_function': 'relu', 'word_embedding_dimension': 30522})
379
+ )
380
+ )
381
+ ```
382
+
383
+ ## Usage
384
+
385
+ ### Direct Usage (Sentence Transformers)
386
+
387
+ First install the Sentence Transformers library:
388
+
389
+ ```bash
390
+ pip install -U sentence-transformers
391
+ ```
392
+
393
+ Then you can load this model and run inference.
394
+ ```python
395
+ from sentence_transformers import SparseEncoder
396
+
397
+ # Download from the 🤗 Hub
398
+ model = SparseEncoder("tomaarsen/inference-free-splade-bert-base-uncased-nq-3e-3-lambda-corpus-1e-3-idf-lr-2e-5-lr")
399
+ # Run inference
400
+ sentences = [
401
+ 'is send in the clowns from a musical',
402
+ 'Send In the Clowns "Send In the Clowns" is a song written by Stephen Sondheim for the 1973 musical A Little Night Music, an adaptation of Ingmar Bergman\'s film Smiles of a Summer Night. It is a ballad from Act Two, in which the character Desirée reflects on the ironies and disappointments of her life. Among other things, she looks back on an affair years earlier with the lawyer Fredrik, who was deeply in love with her but whose marriage proposals she had rejected. Meeting him after so long, she realizes she is in love with him and finally ready to marry him, but now it is he who rejects her: he is in an unconsummated marriage with a much younger woman. Desirée proposes marriage to rescue him from this situation, but he declines, citing his dedication to his bride. Reacting to his rejection, Desirée sings this song. The song is later reprised as a coda after Fredrik\'s young wife runs away with his son, and Fredrik is finally free to accept Desirée\'s offer.[1]',
403
+ 'query',
404
+ ]
405
+ embeddings = model.encode(sentences)
406
+ print(embeddings.shape)
407
+ # (3, 30522)
408
+
409
+ # Get the similarity scores for the embeddings
410
+ similarities = model.similarity(embeddings, embeddings)
411
+ print(similarities.shape)
412
+ # [3, 3]
413
+ ```
414
+
415
+ <!--
416
+ ### Direct Usage (Transformers)
417
+
418
+ <details><summary>Click to see the direct usage in Transformers</summary>
419
+
420
+ </details>
421
+ -->
422
+
423
+ <!--
424
+ ### Downstream Usage (Sentence Transformers)
425
+
426
+ You can finetune this model on your own dataset.
427
+
428
+ <details><summary>Click to expand</summary>
429
+
430
+ </details>
431
+ -->
432
+
433
+ <!--
434
+ ### Out-of-Scope Use
435
+
436
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
437
+ -->
438
+
439
+ ## Evaluation
440
+
441
+ ### Metrics
442
+
443
+ #### Sparse Information Retrieval
444
+
445
+ * Datasets: `NanoMSMARCO`, `NanoNFCorpus` and `NanoNQ`
446
+ * Evaluated with [<code>SparseInformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sparse_encoder/evaluation.html#sentence_transformers.sparse_encoder.evaluation.SparseInformationRetrievalEvaluator)
447
+
448
+ | Metric | NanoMSMARCO | NanoNFCorpus | NanoNQ |
449
+ |:----------------------|:------------|:-------------|:-----------|
450
+ | dot_accuracy@1 | 0.26 | 0.44 | 0.44 |
451
+ | dot_accuracy@3 | 0.62 | 0.54 | 0.6 |
452
+ | dot_accuracy@5 | 0.68 | 0.58 | 0.74 |
453
+ | dot_accuracy@10 | 0.78 | 0.62 | 0.84 |
454
+ | dot_precision@1 | 0.26 | 0.44 | 0.44 |
455
+ | dot_precision@3 | 0.2067 | 0.38 | 0.2 |
456
+ | dot_precision@5 | 0.136 | 0.34 | 0.148 |
457
+ | dot_precision@10 | 0.078 | 0.274 | 0.086 |
458
+ | dot_recall@1 | 0.26 | 0.0431 | 0.43 |
459
+ | dot_recall@3 | 0.62 | 0.0766 | 0.57 |
460
+ | dot_recall@5 | 0.68 | 0.0961 | 0.68 |
461
+ | dot_recall@10 | 0.78 | 0.1216 | 0.78 |
462
+ | **dot_ndcg@10** | **0.5307** | **0.3389** | **0.5921** |
463
+ | dot_mrr@10 | 0.45 | 0.502 | 0.5458 |
464
+ | dot_map@100 | 0.459 | 0.1461 | 0.5296 |
465
+ | query_active_dims | 7.22 | 5.66 | 10.32 |
466
+ | query_sparsity_ratio | 0.9998 | 0.9998 | 0.9997 |
467
+ | corpus_active_dims | 106.3694 | 178.6857 | 96.6113 |
468
+ | corpus_sparsity_ratio | 0.9965 | 0.9941 | 0.9968 |
469
+
470
+ #### Sparse Nano BEIR
471
+
472
+ * Dataset: `NanoBEIR_mean`
473
+ * Evaluated with [<code>SparseNanoBEIREvaluator</code>](https://sbert.net/docs/package_reference/sparse_encoder/evaluation.html#sentence_transformers.sparse_encoder.evaluation.SparseNanoBEIREvaluator) with these parameters:
474
+ ```json
475
+ {
476
+ "dataset_names": [
477
+ "msmarco",
478
+ "nfcorpus",
479
+ "nq"
480
+ ]
481
+ }
482
+ ```
483
+
484
+ | Metric | Value |
485
+ |:----------------------|:-----------|
486
+ | dot_accuracy@1 | 0.38 |
487
+ | dot_accuracy@3 | 0.5867 |
488
+ | dot_accuracy@5 | 0.6667 |
489
+ | dot_accuracy@10 | 0.7467 |
490
+ | dot_precision@1 | 0.38 |
491
+ | dot_precision@3 | 0.2622 |
492
+ | dot_precision@5 | 0.208 |
493
+ | dot_precision@10 | 0.146 |
494
+ | dot_recall@1 | 0.2444 |
495
+ | dot_recall@3 | 0.4222 |
496
+ | dot_recall@5 | 0.4854 |
497
+ | dot_recall@10 | 0.5605 |
498
+ | **dot_ndcg@10** | **0.4873** |
499
+ | dot_mrr@10 | 0.4993 |
500
+ | dot_map@100 | 0.3782 |
501
+ | query_active_dims | 7.7333 |
502
+ | query_sparsity_ratio | 0.9997 |
503
+ | corpus_active_dims | 118.9869 |
504
+ | corpus_sparsity_ratio | 0.9961 |
505
+
506
+ <!--
507
+ ## Bias, Risks and Limitations
508
+
509
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
510
+ -->
511
+
512
+ <!--
513
+ ### Recommendations
514
+
515
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
516
+ -->
517
+
518
+ ## Training Details
519
+
520
+ ### Training Dataset
521
+
522
+ #### natural-questions
523
+
524
+ * Dataset: [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) at [f9e894e](https://huggingface.co/datasets/sentence-transformers/natural-questions/tree/f9e894e1081e206e577b4eaa9ee6de2b06ae6f17)
525
+ * Size: 99,000 training samples
526
+ * Columns: <code>query</code> and <code>answer</code>
527
+ * Approximate statistics based on the first 1000 samples:
528
+ | | query | answer |
529
+ |:--------|:-----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
530
+ | type | string | string |
531
+ | details | <ul><li>min: 10 tokens</li><li>mean: 11.71 tokens</li><li>max: 26 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 131.81 tokens</li><li>max: 450 tokens</li></ul> |
532
+ * Samples:
533
+ | query | answer |
534
+ |:--------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
535
+ | <code>who played the father in papa don't preach</code> | <code>Alex McArthur Alex McArthur (born March 6, 1957) is an American actor.</code> |
536
+ | <code>where was the location of the battle of hastings</code> | <code>Battle of Hastings The Battle of Hastings[a] was fought on 14 October 1066 between the Norman-French army of William, the Duke of Normandy, and an English army under the Anglo-Saxon King Harold Godwinson, beginning the Norman conquest of England. It took place approximately 7 miles (11 kilometres) northwest of Hastings, close to the present-day town of Battle, East Sussex, and was a decisive Norman victory.</code> |
537
+ | <code>how many puppies can a dog give birth to</code> | <code>Canine reproduction The largest litter size to date was set by a Neapolitan Mastiff in Manea, Cambridgeshire, UK on November 29, 2004; the litter was 24 puppies.[22]</code> |
538
+ * Loss: [<code>SpladeLoss</code>](https://sbert.net/docs/package_reference/sparse_encoder/losses.html#spladeloss) with these parameters:
539
+ ```json
540
+ {
541
+ "loss": "SparseMultipleNegativesRankingLoss(scale=1.0, similarity_fct='dot_score')",
542
+ "lambda_corpus": 0.003,
543
+ "lambda_query": 0
544
+ }
545
+ ```
546
+
547
+ ### Evaluation Dataset
548
+
549
+ #### natural-questions
550
+
551
+ * Dataset: [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) at [f9e894e](https://huggingface.co/datasets/sentence-transformers/natural-questions/tree/f9e894e1081e206e577b4eaa9ee6de2b06ae6f17)
552
+ * Size: 1,000 evaluation samples
553
+ * Columns: <code>query</code> and <code>answer</code>
554
+ * Approximate statistics based on the first 1000 samples:
555
+ | | query | answer |
556
+ |:--------|:-----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
557
+ | type | string | string |
558
+ | details | <ul><li>min: 10 tokens</li><li>mean: 11.69 tokens</li><li>max: 23 tokens</li></ul> | <ul><li>min: 15 tokens</li><li>mean: 134.01 tokens</li><li>max: 512 tokens</li></ul> |
559
+ * Samples:
560
+ | query | answer |
561
+ |:-------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
562
+ | <code>where is the tiber river located in italy</code> | <code>Tiber The Tiber (/ˈtaɪbər/, Latin: Tiberis,[1] Italian: Tevere [ˈteːvere])[2] is the third-longest river in Italy, rising in the Apennine Mountains in Emilia-Romagna and flowing 406 kilometres (252 mi) through Tuscany, Umbria and Lazio, where it is joined by the river Aniene, to the Tyrrhenian Sea, between Ostia and Fiumicino.[3] It drains a basin estimated at 17,375 square kilometres (6,709 sq mi). The river has achieved lasting fame as the main watercourse of the city of Rome, founded on its eastern banks.</code> |
563
+ | <code>what kind of car does jay gatsby drive</code> | <code>Jay Gatsby At the Buchanan home, Jordan Baker, Nick, Jay, and the Buchanans decide to visit New York City. Tom borrows Gatsby's yellow Rolls Royce to drive up to the city. On the way to New York City, Tom makes a detour at a gas station in "the Valley of Ashes", a run-down part of Long Island. The owner, George Wilson, shares his concern that his wife, Myrtle, may be having an affair. This unnerves Tom, who has been having an affair with Myrtle, and he leaves in a hurry.</code> |
564
+ | <code>who sings if i can dream about you</code> | <code>I Can Dream About You "I Can Dream About You" is a song performed by American singer Dan Hartman on the soundtrack album of the film Streets of Fire. Released in 1984 as a single from the soundtrack, and included on Hartman's album I Can Dream About You, it reached number 6 on the Billboard Hot 100.[1]</code> |
565
+ * Loss: [<code>SpladeLoss</code>](https://sbert.net/docs/package_reference/sparse_encoder/losses.html#spladeloss) with these parameters:
566
+ ```json
567
+ {
568
+ "loss": "SparseMultipleNegativesRankingLoss(scale=1.0, similarity_fct='dot_score')",
569
+ "lambda_corpus": 0.003,
570
+ "lambda_query": 0
571
+ }
572
+ ```
573
+
574
+ ### Training Hyperparameters
575
+ #### Non-Default Hyperparameters
576
+
577
+ - `eval_strategy`: steps
578
+ - `per_device_train_batch_size`: 16
579
+ - `per_device_eval_batch_size`: 16
580
+ - `learning_rate`: 2e-05
581
+ - `num_train_epochs`: 1
582
+ - `warmup_ratio`: 0.1
583
+ - `fp16`: True
584
+ - `batch_sampler`: no_duplicates
585
+ - `router_mapping`: ['query', 'document']
586
+ - `learning_rate_mapping`: {'IDF\\.weight': 0.001}
587
+
588
+ #### All Hyperparameters
589
+ <details><summary>Click to expand</summary>
590
+
591
+ - `overwrite_output_dir`: False
592
+ - `do_predict`: False
593
+ - `eval_strategy`: steps
594
+ - `prediction_loss_only`: True
595
+ - `per_device_train_batch_size`: 16
596
+ - `per_device_eval_batch_size`: 16
597
+ - `per_gpu_train_batch_size`: None
598
+ - `per_gpu_eval_batch_size`: None
599
+ - `gradient_accumulation_steps`: 1
600
+ - `eval_accumulation_steps`: None
601
+ - `torch_empty_cache_steps`: None
602
+ - `learning_rate`: 2e-05
603
+ - `weight_decay`: 0.0
604
+ - `adam_beta1`: 0.9
605
+ - `adam_beta2`: 0.999
606
+ - `adam_epsilon`: 1e-08
607
+ - `max_grad_norm`: 1.0
608
+ - `num_train_epochs`: 1
609
+ - `max_steps`: -1
610
+ - `lr_scheduler_type`: linear
611
+ - `lr_scheduler_kwargs`: {}
612
+ - `warmup_ratio`: 0.1
613
+ - `warmup_steps`: 0
614
+ - `log_level`: passive
615
+ - `log_level_replica`: warning
616
+ - `log_on_each_node`: True
617
+ - `logging_nan_inf_filter`: True
618
+ - `save_safetensors`: True
619
+ - `save_on_each_node`: False
620
+ - `save_only_model`: False
621
+ - `restore_callback_states_from_checkpoint`: False
622
+ - `no_cuda`: False
623
+ - `use_cpu`: False
624
+ - `use_mps_device`: False
625
+ - `seed`: 42
626
+ - `data_seed`: None
627
+ - `jit_mode_eval`: False
628
+ - `use_ipex`: False
629
+ - `bf16`: False
630
+ - `fp16`: True
631
+ - `fp16_opt_level`: O1
632
+ - `half_precision_backend`: auto
633
+ - `bf16_full_eval`: False
634
+ - `fp16_full_eval`: False
635
+ - `tf32`: None
636
+ - `local_rank`: 0
637
+ - `ddp_backend`: None
638
+ - `tpu_num_cores`: None
639
+ - `tpu_metrics_debug`: False
640
+ - `debug`: []
641
+ - `dataloader_drop_last`: False
642
+ - `dataloader_num_workers`: 0
643
+ - `dataloader_prefetch_factor`: None
644
+ - `past_index`: -1
645
+ - `disable_tqdm`: False
646
+ - `remove_unused_columns`: True
647
+ - `label_names`: None
648
+ - `load_best_model_at_end`: False
649
+ - `ignore_data_skip`: False
650
+ - `fsdp`: []
651
+ - `fsdp_min_num_params`: 0
652
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
653
+ - `fsdp_transformer_layer_cls_to_wrap`: None
654
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
655
+ - `deepspeed`: None
656
+ - `label_smoothing_factor`: 0.0
657
+ - `optim`: adamw_torch
658
+ - `optim_args`: None
659
+ - `adafactor`: False
660
+ - `group_by_length`: False
661
+ - `length_column_name`: length
662
+ - `ddp_find_unused_parameters`: None
663
+ - `ddp_bucket_cap_mb`: None
664
+ - `ddp_broadcast_buffers`: False
665
+ - `dataloader_pin_memory`: True
666
+ - `dataloader_persistent_workers`: False
667
+ - `skip_memory_metrics`: True
668
+ - `use_legacy_prediction_loop`: False
669
+ - `push_to_hub`: False
670
+ - `resume_from_checkpoint`: None
671
+ - `hub_model_id`: None
672
+ - `hub_strategy`: every_save
673
+ - `hub_private_repo`: None
674
+ - `hub_always_push`: False
675
+ - `gradient_checkpointing`: False
676
+ - `gradient_checkpointing_kwargs`: None
677
+ - `include_inputs_for_metrics`: False
678
+ - `include_for_metrics`: []
679
+ - `eval_do_concat_batches`: True
680
+ - `fp16_backend`: auto
681
+ - `push_to_hub_model_id`: None
682
+ - `push_to_hub_organization`: None
683
+ - `mp_parameters`:
684
+ - `auto_find_batch_size`: False
685
+ - `full_determinism`: False
686
+ - `torchdynamo`: None
687
+ - `ray_scope`: last
688
+ - `ddp_timeout`: 1800
689
+ - `torch_compile`: False
690
+ - `torch_compile_backend`: None
691
+ - `torch_compile_mode`: None
692
+ - `include_tokens_per_second`: False
693
+ - `include_num_input_tokens_seen`: False
694
+ - `neftune_noise_alpha`: None
695
+ - `optim_target_modules`: None
696
+ - `batch_eval_metrics`: False
697
+ - `eval_on_start`: False
698
+ - `use_liger_kernel`: False
699
+ - `eval_use_gather_object`: False
700
+ - `average_tokens_across_devices`: False
701
+ - `prompts`: None
702
+ - `batch_sampler`: no_duplicates
703
+ - `multi_dataset_batch_sampler`: proportional
704
+ - `router_mapping`: ['query', 'document']
705
+ - `learning_rate_mapping`: {'IDF\\.weight': 0.001}
706
+
707
+ </details>
708
+
709
+ ### Training Logs
710
+ | Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_dot_ndcg@10 | NanoNFCorpus_dot_ndcg@10 | NanoNQ_dot_ndcg@10 | NanoBEIR_mean_dot_ndcg@10 |
711
+ |:------:|:----:|:-------------:|:---------------:|:-----------------------:|:------------------------:|:------------------:|:-------------------------:|
712
+ | 0.0323 | 200 | 0.3722 | - | - | - | - | - |
713
+ | 0.0646 | 400 | 0.1417 | 0.1266 | 0.5266 | 0.3095 | 0.4259 | 0.4207 |
714
+ | 0.0970 | 600 | 0.1152 | - | - | - | - | - |
715
+ | 0.1293 | 800 | 0.1099 | 0.1030 | 0.5202 | 0.3405 | 0.5552 | 0.4719 |
716
+ | 0.1616 | 1000 | 0.0956 | - | - | - | - | - |
717
+ | 0.1939 | 1200 | 0.0832 | 0.0920 | 0.4988 | 0.3432 | 0.5157 | 0.4526 |
718
+ | 0.2262 | 1400 | 0.0872 | - | - | - | - | - |
719
+ | 0.2586 | 1600 | 0.0915 | 0.0986 | 0.4900 | 0.3412 | 0.5269 | 0.4527 |
720
+ | 0.2909 | 1800 | 0.0999 | - | - | - | - | - |
721
+ | 0.3232 | 2000 | 0.0993 | 0.1024 | 0.5253 | 0.3405 | 0.5190 | 0.4616 |
722
+ | 0.3555 | 2200 | 0.1011 | - | - | - | - | - |
723
+ | 0.3878 | 2400 | 0.1046 | 0.0979 | 0.5241 | 0.3397 | 0.5518 | 0.4719 |
724
+ | 0.4202 | 2600 | 0.0935 | - | - | - | - | - |
725
+ | 0.4525 | 2800 | 0.0953 | 0.0914 | 0.5284 | 0.3362 | 0.5523 | 0.4723 |
726
+ | 0.4848 | 3000 | 0.09 | - | - | - | - | - |
727
+ | 0.5171 | 3200 | 0.0857 | 0.0910 | 0.5166 | 0.3358 | 0.5555 | 0.4693 |
728
+ | 0.5495 | 3400 | 0.086 | - | - | - | - | - |
729
+ | 0.5818 | 3600 | 0.0857 | 0.0861 | 0.5058 | 0.3353 | 0.5657 | 0.4689 |
730
+ | 0.6141 | 3800 | 0.0857 | - | - | - | - | - |
731
+ | 0.6464 | 4000 | 0.0816 | 0.0879 | 0.5228 | 0.3283 | 0.5576 | 0.4696 |
732
+ | 0.6787 | 4200 | 0.0835 | - | - | - | - | - |
733
+ | 0.7111 | 4400 | 0.0816 | 0.0859 | 0.5458 | 0.3395 | 0.5666 | 0.4840 |
734
+ | 0.7434 | 4600 | 0.0778 | - | - | - | - | - |
735
+ | 0.7757 | 4800 | 0.0815 | 0.0761 | 0.5514 | 0.3379 | 0.5966 | 0.4953 |
736
+ | 0.8080 | 5000 | 0.0758 | - | - | - | - | - |
737
+ | 0.8403 | 5200 | 0.0714 | 0.0770 | 0.5335 | 0.3388 | 0.5828 | 0.4850 |
738
+ | 0.8727 | 5400 | 0.077 | - | - | - | - | - |
739
+ | 0.9050 | 5600 | 0.0741 | 0.0772 | 0.5277 | 0.3398 | 0.5927 | 0.4867 |
740
+ | 0.9373 | 5800 | 0.0743 | - | - | - | - | - |
741
+ | 0.9696 | 6000 | 0.0787 | 0.0773 | 0.5307 | 0.3393 | 0.5921 | 0.4874 |
742
+ | -1 | -1 | - | - | 0.5307 | 0.3389 | 0.5921 | 0.4873 |
743
+
744
+
745
+ ### Environmental Impact
746
+ Carbon emissions were measured using [CodeCarbon](https://github.com/mlco2/codecarbon).
747
+ - **Energy Consumed**: 0.176 kWh
748
+ - **Carbon Emitted**: 0.068 kg of CO2
749
+ - **Hours Used**: 0.483 hours
750
+
751
+ ### Training Hardware
752
+ - **On Cloud**: No
753
+ - **GPU Model**: 1 x NVIDIA GeForce RTX 3090
754
+ - **CPU Model**: 13th Gen Intel(R) Core(TM) i7-13700K
755
+ - **RAM Size**: 31.78 GB
756
+
757
+ ### Framework Versions
758
+ - Python: 3.11.6
759
+ - Sentence Transformers: 4.2.0.dev0
760
+ - Transformers: 4.52.3
761
+ - PyTorch: 2.6.0+cu124
762
+ - Accelerate: 1.5.1
763
+ - Datasets: 2.21.0
764
+ - Tokenizers: 0.21.1
765
+
766
+ ## Citation
767
+
768
+ ### BibTeX
769
+
770
+ #### Sentence Transformers
771
+ ```bibtex
772
+ @inproceedings{reimers-2019-sentence-bert,
773
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
774
+ author = "Reimers, Nils and Gurevych, Iryna",
775
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
776
+ month = "11",
777
+ year = "2019",
778
+ publisher = "Association for Computational Linguistics",
779
+ url = "https://arxiv.org/abs/1908.10084",
780
+ }
781
+ ```
782
+
783
+ #### SpladeLoss
784
+ ```bibtex
785
+ @misc{formal2022distillationhardnegativesampling,
786
+ title={From Distillation to Hard Negative Sampling: Making Sparse Neural IR Models More Effective},
787
+ author={Thibault Formal and Carlos Lassance and Benjamin Piwowarski and Stéphane Clinchant},
788
+ year={2022},
789
+ eprint={2205.04733},
790
+ archivePrefix={arXiv},
791
+ primaryClass={cs.IR},
792
+ url={https://arxiv.org/abs/2205.04733},
793
+ }
794
+ ```
795
+
796
+ #### SparseMultipleNegativesRankingLoss
797
+ ```bibtex
798
+ @misc{henderson2017efficient,
799
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
800
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
801
+ year={2017},
802
+ eprint={1705.00652},
803
+ archivePrefix={arXiv},
804
+ primaryClass={cs.CL}
805
+ }
806
+ ```
807
+
808
+ #### FlopsLoss
809
+ ```bibtex
810
+ @article{paria2020minimizing,
811
+ title={Minimizing flops to learn efficient sparse representations},
812
+ author={Paria, Biswajit and Yeh, Chih-Kuan and Yen, Ian EH and Xu, Ning and Ravikumar, Pradeep and P{'o}czos, Barnab{'a}s},
813
+ journal={arXiv preprint arXiv:2004.05665},
814
+ year={2020}
815
+ }
816
+ ```
817
+
818
+ <!--
819
+ ## Glossary
820
+
821
+ *Clearly define terms in order to be accessible across audiences.*
822
+ -->
823
+
824
+ <!--
825
+ ## Model Card Authors
826
+
827
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
828
+ -->
829
+
830
+ <!--
831
+ ## Model Card Contact
832
+
833
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
834
+ -->
config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "types": {
3
+ "query_0_IDF": "sentence_transformers.sparse_encoder.models.IDF",
4
+ "document_0_MLMTransformer": "sentence_transformers.sparse_encoder.models.MLMTransformer",
5
+ "document_1_SpladePooling": "sentence_transformers.sparse_encoder.models.SpladePooling"
6
+ },
7
+ "structure": {
8
+ "query": [
9
+ "query_0_IDF"
10
+ ],
11
+ "document": [
12
+ "document_0_MLMTransformer",
13
+ "document_1_SpladePooling"
14
+ ]
15
+ },
16
+ "parameters": {
17
+ "allow_empty_key": true
18
+ }
19
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SparseEncoder",
3
+ "__version__": {
4
+ "sentence_transformers": "4.2.0.dev0",
5
+ "transformers": "4.52.3",
6
+ "pytorch": "2.6.0+cu124"
7
+ },
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "dot"
14
+ }
document_0_MLMTransformer/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForMaskedLM"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.52.3",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
document_0_MLMTransformer/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9da706ce477955d507016bfde14a20219a7620a672d432d061d97c94f5e1a560
3
+ size 438080896
document_0_MLMTransformer/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
document_0_MLMTransformer/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
document_0_MLMTransformer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
document_0_MLMTransformer/tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
document_0_MLMTransformer/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
document_1_SpladePooling/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "pooling_strategy": "max",
3
+ "activation_function": "relu",
4
+ "word_embedding_dimension": 30522
5
+ }
modules.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Asym"
7
+ }
8
+ ]
query_0_IDF/config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "frozen": false
3
+ }
query_0_IDF/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce8499dff65486489e6f51bda78d48948354efb27012baf28a4b254d7a50d3e3
3
+ size 122168
query_0_IDF/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
query_0_IDF/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
query_0_IDF/tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
query_0_IDF/vocab.txt ADDED
The diff for this file is too large to render. See raw diff