srikarvar commited on
Commit
d3da1ed
·
verified ·
1 Parent(s): 159639d

Add new SentenceTransformer model.

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: srikarvar/multilingual-e5-small-pairclass-contrastive
3
+ datasets: []
4
+ language:
5
+ - en
6
+ library_name: sentence-transformers
7
+ license: apache-2.0
8
+ metrics:
9
+ - cosine_accuracy@1
10
+ - cosine_accuracy@3
11
+ - cosine_accuracy@5
12
+ - cosine_accuracy@10
13
+ - cosine_precision@1
14
+ - cosine_precision@3
15
+ - cosine_precision@5
16
+ - cosine_precision@10
17
+ - cosine_recall@1
18
+ - cosine_recall@3
19
+ - cosine_recall@5
20
+ - cosine_recall@10
21
+ - cosine_ndcg@10
22
+ - cosine_mrr@10
23
+ - cosine_map@100
24
+ - dot_accuracy@1
25
+ - dot_accuracy@3
26
+ - dot_accuracy@5
27
+ - dot_accuracy@10
28
+ - dot_precision@1
29
+ - dot_precision@3
30
+ - dot_precision@5
31
+ - dot_precision@10
32
+ - dot_recall@1
33
+ - dot_recall@3
34
+ - dot_recall@5
35
+ - dot_recall@10
36
+ - dot_ndcg@10
37
+ - dot_mrr@10
38
+ - dot_map@100
39
+ pipeline_tag: sentence-similarity
40
+ tags:
41
+ - sentence-transformers
42
+ - sentence-similarity
43
+ - feature-extraction
44
+ - generated_from_trainer
45
+ - dataset_size:246
46
+ - loss:MultipleNegativesRankingLoss
47
+ widget:
48
+ - source_sentence: How to tie a tie?
49
+ sentences:
50
+ - How to identify diabetes?
51
+ - How to reset a password
52
+ - Instructions for tying a tie
53
+ - source_sentence: What are the benefits of meditation?
54
+ sentences:
55
+ - First President of the USA
56
+ - Advantages of meditation
57
+ - Name the capital of Canada
58
+ - source_sentence: How to improve English vocabulary?
59
+ sentences:
60
+ - Methods to improve English vocabulary
61
+ - Methods for saving money efficiently
62
+ - Current Prime Minister of the United Kingdom
63
+ - source_sentence: What are the symptoms of COVID-19?
64
+ sentences:
65
+ - COVID-19 symptoms
66
+ - Current population of India
67
+ - Tesla's Chief Executive Officer
68
+ - source_sentence: What time does the event start?
69
+ sentences:
70
+ - When does the event begin?
71
+ - Japan's capital city
72
+ - Tips for efficient time management
73
+ model-index:
74
+ - name: e5 cogcache small refined
75
+ results:
76
+ - task:
77
+ type: information-retrieval
78
+ name: Information Retrieval
79
+ dataset:
80
+ name: e5 cogcache small refined
81
+ type: e5-cogcache-small-refined
82
+ metrics:
83
+ - type: cosine_accuracy@1
84
+ value: 0.5
85
+ name: Cosine Accuracy@1
86
+ - type: cosine_accuracy@3
87
+ value: 0.8571428571428571
88
+ name: Cosine Accuracy@3
89
+ - type: cosine_accuracy@5
90
+ value: 1.0
91
+ name: Cosine Accuracy@5
92
+ - type: cosine_accuracy@10
93
+ value: 1.0
94
+ name: Cosine Accuracy@10
95
+ - type: cosine_precision@1
96
+ value: 0.5
97
+ name: Cosine Precision@1
98
+ - type: cosine_precision@3
99
+ value: 0.2857142857142857
100
+ name: Cosine Precision@3
101
+ - type: cosine_precision@5
102
+ value: 0.20000000000000004
103
+ name: Cosine Precision@5
104
+ - type: cosine_precision@10
105
+ value: 0.10000000000000002
106
+ name: Cosine Precision@10
107
+ - type: cosine_recall@1
108
+ value: 0.5
109
+ name: Cosine Recall@1
110
+ - type: cosine_recall@3
111
+ value: 0.8571428571428571
112
+ name: Cosine Recall@3
113
+ - type: cosine_recall@5
114
+ value: 1.0
115
+ name: Cosine Recall@5
116
+ - type: cosine_recall@10
117
+ value: 1.0
118
+ name: Cosine Recall@10
119
+ - type: cosine_ndcg@10
120
+ value: 0.7634769642911022
121
+ name: Cosine Ndcg@10
122
+ - type: cosine_mrr@10
123
+ value: 0.6845238095238095
124
+ name: Cosine Mrr@10
125
+ - type: cosine_map@100
126
+ value: 0.6845238095238094
127
+ name: Cosine Map@100
128
+ - type: dot_accuracy@1
129
+ value: 0.5
130
+ name: Dot Accuracy@1
131
+ - type: dot_accuracy@3
132
+ value: 0.8571428571428571
133
+ name: Dot Accuracy@3
134
+ - type: dot_accuracy@5
135
+ value: 1.0
136
+ name: Dot Accuracy@5
137
+ - type: dot_accuracy@10
138
+ value: 1.0
139
+ name: Dot Accuracy@10
140
+ - type: dot_precision@1
141
+ value: 0.5
142
+ name: Dot Precision@1
143
+ - type: dot_precision@3
144
+ value: 0.2857142857142857
145
+ name: Dot Precision@3
146
+ - type: dot_precision@5
147
+ value: 0.20000000000000004
148
+ name: Dot Precision@5
149
+ - type: dot_precision@10
150
+ value: 0.10000000000000002
151
+ name: Dot Precision@10
152
+ - type: dot_recall@1
153
+ value: 0.5
154
+ name: Dot Recall@1
155
+ - type: dot_recall@3
156
+ value: 0.8571428571428571
157
+ name: Dot Recall@3
158
+ - type: dot_recall@5
159
+ value: 1.0
160
+ name: Dot Recall@5
161
+ - type: dot_recall@10
162
+ value: 1.0
163
+ name: Dot Recall@10
164
+ - type: dot_ndcg@10
165
+ value: 0.7634769642911022
166
+ name: Dot Ndcg@10
167
+ - type: dot_mrr@10
168
+ value: 0.6845238095238095
169
+ name: Dot Mrr@10
170
+ - type: dot_map@100
171
+ value: 0.6845238095238094
172
+ name: Dot Map@100
173
+ - type: cosine_accuracy@1
174
+ value: 0.5
175
+ name: Cosine Accuracy@1
176
+ - type: cosine_accuracy@3
177
+ value: 0.8571428571428571
178
+ name: Cosine Accuracy@3
179
+ - type: cosine_accuracy@5
180
+ value: 1.0
181
+ name: Cosine Accuracy@5
182
+ - type: cosine_accuracy@10
183
+ value: 1.0
184
+ name: Cosine Accuracy@10
185
+ - type: cosine_precision@1
186
+ value: 0.5
187
+ name: Cosine Precision@1
188
+ - type: cosine_precision@3
189
+ value: 0.2857142857142857
190
+ name: Cosine Precision@3
191
+ - type: cosine_precision@5
192
+ value: 0.20000000000000004
193
+ name: Cosine Precision@5
194
+ - type: cosine_precision@10
195
+ value: 0.10000000000000002
196
+ name: Cosine Precision@10
197
+ - type: cosine_recall@1
198
+ value: 0.5
199
+ name: Cosine Recall@1
200
+ - type: cosine_recall@3
201
+ value: 0.8571428571428571
202
+ name: Cosine Recall@3
203
+ - type: cosine_recall@5
204
+ value: 1.0
205
+ name: Cosine Recall@5
206
+ - type: cosine_recall@10
207
+ value: 1.0
208
+ name: Cosine Recall@10
209
+ - type: cosine_ndcg@10
210
+ value: 0.7634769642911022
211
+ name: Cosine Ndcg@10
212
+ - type: cosine_mrr@10
213
+ value: 0.6845238095238095
214
+ name: Cosine Mrr@10
215
+ - type: cosine_map@100
216
+ value: 0.6845238095238094
217
+ name: Cosine Map@100
218
+ - type: dot_accuracy@1
219
+ value: 0.5
220
+ name: Dot Accuracy@1
221
+ - type: dot_accuracy@3
222
+ value: 0.8571428571428571
223
+ name: Dot Accuracy@3
224
+ - type: dot_accuracy@5
225
+ value: 1.0
226
+ name: Dot Accuracy@5
227
+ - type: dot_accuracy@10
228
+ value: 1.0
229
+ name: Dot Accuracy@10
230
+ - type: dot_precision@1
231
+ value: 0.5
232
+ name: Dot Precision@1
233
+ - type: dot_precision@3
234
+ value: 0.2857142857142857
235
+ name: Dot Precision@3
236
+ - type: dot_precision@5
237
+ value: 0.20000000000000004
238
+ name: Dot Precision@5
239
+ - type: dot_precision@10
240
+ value: 0.10000000000000002
241
+ name: Dot Precision@10
242
+ - type: dot_recall@1
243
+ value: 0.5
244
+ name: Dot Recall@1
245
+ - type: dot_recall@3
246
+ value: 0.8571428571428571
247
+ name: Dot Recall@3
248
+ - type: dot_recall@5
249
+ value: 1.0
250
+ name: Dot Recall@5
251
+ - type: dot_recall@10
252
+ value: 1.0
253
+ name: Dot Recall@10
254
+ - type: dot_ndcg@10
255
+ value: 0.7634769642911022
256
+ name: Dot Ndcg@10
257
+ - type: dot_mrr@10
258
+ value: 0.6845238095238095
259
+ name: Dot Mrr@10
260
+ - type: dot_map@100
261
+ value: 0.6845238095238094
262
+ name: Dot Map@100
263
+ ---
264
+
265
+ # e5 cogcache small refined
266
+
267
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [srikarvar/multilingual-e5-small-pairclass-contrastive](https://huggingface.co/srikarvar/multilingual-e5-small-pairclass-contrastive). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
268
+
269
+ ## Model Details
270
+
271
+ ### Model Description
272
+ - **Model Type:** Sentence Transformer
273
+ - **Base model:** [srikarvar/multilingual-e5-small-pairclass-contrastive](https://huggingface.co/srikarvar/multilingual-e5-small-pairclass-contrastive) <!-- at revision 8f7c78e1a86ff99f36abad1ae1bfbd871fa4eb95 -->
274
+ - **Maximum Sequence Length:** 512 tokens
275
+ - **Output Dimensionality:** 384 tokens
276
+ - **Similarity Function:** Cosine Similarity
277
+ <!-- - **Training Dataset:** Unknown -->
278
+ - **Language:** en
279
+ - **License:** apache-2.0
280
+
281
+ ### Model Sources
282
+
283
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
284
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
285
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
286
+
287
+ ### Full Model Architecture
288
+
289
+ ```
290
+ SentenceTransformer(
291
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
292
+ (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
293
+ (2): Normalize()
294
+ )
295
+ ```
296
+
297
+ ## Usage
298
+
299
+ ### Direct Usage (Sentence Transformers)
300
+
301
+ First install the Sentence Transformers library:
302
+
303
+ ```bash
304
+ pip install -U sentence-transformers
305
+ ```
306
+
307
+ Then you can load this model and run inference.
308
+ ```python
309
+ from sentence_transformers import SentenceTransformer
310
+
311
+ # Download from the 🤗 Hub
312
+ model = SentenceTransformer("srikarvar/fine_tuned_model_3")
313
+ # Run inference
314
+ sentences = [
315
+ 'What time does the event start?',
316
+ 'When does the event begin?',
317
+ "Japan's capital city",
318
+ ]
319
+ embeddings = model.encode(sentences)
320
+ print(embeddings.shape)
321
+ # [3, 384]
322
+
323
+ # Get the similarity scores for the embeddings
324
+ similarities = model.similarity(embeddings, embeddings)
325
+ print(similarities.shape)
326
+ # [3, 3]
327
+ ```
328
+
329
+ <!--
330
+ ### Direct Usage (Transformers)
331
+
332
+ <details><summary>Click to see the direct usage in Transformers</summary>
333
+
334
+ </details>
335
+ -->
336
+
337
+ <!--
338
+ ### Downstream Usage (Sentence Transformers)
339
+
340
+ You can finetune this model on your own dataset.
341
+
342
+ <details><summary>Click to expand</summary>
343
+
344
+ </details>
345
+ -->
346
+
347
+ <!--
348
+ ### Out-of-Scope Use
349
+
350
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
351
+ -->
352
+
353
+ ## Evaluation
354
+
355
+ ### Metrics
356
+
357
+ #### Information Retrieval
358
+ * Dataset: `e5-cogcache-small-refined`
359
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
360
+
361
+ | Metric | Value |
362
+ |:--------------------|:-----------|
363
+ | cosine_accuracy@1 | 0.5 |
364
+ | cosine_accuracy@3 | 0.8571 |
365
+ | cosine_accuracy@5 | 1.0 |
366
+ | cosine_accuracy@10 | 1.0 |
367
+ | cosine_precision@1 | 0.5 |
368
+ | cosine_precision@3 | 0.2857 |
369
+ | cosine_precision@5 | 0.2 |
370
+ | cosine_precision@10 | 0.1 |
371
+ | cosine_recall@1 | 0.5 |
372
+ | cosine_recall@3 | 0.8571 |
373
+ | cosine_recall@5 | 1.0 |
374
+ | cosine_recall@10 | 1.0 |
375
+ | cosine_ndcg@10 | 0.7635 |
376
+ | cosine_mrr@10 | 0.6845 |
377
+ | **cosine_map@100** | **0.6845** |
378
+ | dot_accuracy@1 | 0.5 |
379
+ | dot_accuracy@3 | 0.8571 |
380
+ | dot_accuracy@5 | 1.0 |
381
+ | dot_accuracy@10 | 1.0 |
382
+ | dot_precision@1 | 0.5 |
383
+ | dot_precision@3 | 0.2857 |
384
+ | dot_precision@5 | 0.2 |
385
+ | dot_precision@10 | 0.1 |
386
+ | dot_recall@1 | 0.5 |
387
+ | dot_recall@3 | 0.8571 |
388
+ | dot_recall@5 | 1.0 |
389
+ | dot_recall@10 | 1.0 |
390
+ | dot_ndcg@10 | 0.7635 |
391
+ | dot_mrr@10 | 0.6845 |
392
+ | dot_map@100 | 0.6845 |
393
+
394
+ #### Information Retrieval
395
+ * Dataset: `e5-cogcache-small-refined`
396
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
397
+
398
+ | Metric | Value |
399
+ |:--------------------|:-----------|
400
+ | cosine_accuracy@1 | 0.5 |
401
+ | cosine_accuracy@3 | 0.8571 |
402
+ | cosine_accuracy@5 | 1.0 |
403
+ | cosine_accuracy@10 | 1.0 |
404
+ | cosine_precision@1 | 0.5 |
405
+ | cosine_precision@3 | 0.2857 |
406
+ | cosine_precision@5 | 0.2 |
407
+ | cosine_precision@10 | 0.1 |
408
+ | cosine_recall@1 | 0.5 |
409
+ | cosine_recall@3 | 0.8571 |
410
+ | cosine_recall@5 | 1.0 |
411
+ | cosine_recall@10 | 1.0 |
412
+ | cosine_ndcg@10 | 0.7635 |
413
+ | cosine_mrr@10 | 0.6845 |
414
+ | **cosine_map@100** | **0.6845** |
415
+ | dot_accuracy@1 | 0.5 |
416
+ | dot_accuracy@3 | 0.8571 |
417
+ | dot_accuracy@5 | 1.0 |
418
+ | dot_accuracy@10 | 1.0 |
419
+ | dot_precision@1 | 0.5 |
420
+ | dot_precision@3 | 0.2857 |
421
+ | dot_precision@5 | 0.2 |
422
+ | dot_precision@10 | 0.1 |
423
+ | dot_recall@1 | 0.5 |
424
+ | dot_recall@3 | 0.8571 |
425
+ | dot_recall@5 | 1.0 |
426
+ | dot_recall@10 | 1.0 |
427
+ | dot_ndcg@10 | 0.7635 |
428
+ | dot_mrr@10 | 0.6845 |
429
+ | dot_map@100 | 0.6845 |
430
+
431
+ <!--
432
+ ## Bias, Risks and Limitations
433
+
434
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
435
+ -->
436
+
437
+ <!--
438
+ ### Recommendations
439
+
440
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
441
+ -->
442
+
443
+ ## Training Details
444
+
445
+ ### Training Dataset
446
+
447
+ #### Unnamed Dataset
448
+
449
+
450
+ * Size: 246 training samples
451
+ * Columns: <code>anchor</code> and <code>positive</code>
452
+ * Approximate statistics based on the first 1000 samples:
453
+ | | anchor | positive |
454
+ |:--------|:--------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
455
+ | type | string | string |
456
+ | details | <ul><li>min: 6 tokens</li><li>mean: 9.6 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.28 tokens</li><li>max: 13 tokens</li></ul> |
457
+ * Samples:
458
+ | anchor | positive |
459
+ |:-------------------------------------------------|:------------------------------------------------|
460
+ | <code>How to speak confidently?</code> | <code>Tips for confident speaking</code> |
461
+ | <code>How to manage time effectively?</code> | <code>Tips for efficient time management</code> |
462
+ | <code>Where can I find a good restaurant?</code> | <code>Suggestions for a good restaurant</code> |
463
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
464
+ ```json
465
+ {
466
+ "scale": 20.0,
467
+ "similarity_fct": "cos_sim"
468
+ }
469
+ ```
470
+
471
+ ### Training Hyperparameters
472
+ #### Non-Default Hyperparameters
473
+
474
+ - `eval_strategy`: epoch
475
+ - `per_device_train_batch_size`: 16
476
+ - `per_device_eval_batch_size`: 16
477
+ - `learning_rate`: 1e-05
478
+ - `num_train_epochs`: 2
479
+ - `warmup_ratio`: 0.1
480
+ - `batch_sampler`: no_duplicates
481
+
482
+ #### All Hyperparameters
483
+ <details><summary>Click to expand</summary>
484
+
485
+ - `overwrite_output_dir`: False
486
+ - `do_predict`: False
487
+ - `eval_strategy`: epoch
488
+ - `prediction_loss_only`: True
489
+ - `per_device_train_batch_size`: 16
490
+ - `per_device_eval_batch_size`: 16
491
+ - `per_gpu_train_batch_size`: None
492
+ - `per_gpu_eval_batch_size`: None
493
+ - `gradient_accumulation_steps`: 1
494
+ - `eval_accumulation_steps`: None
495
+ - `learning_rate`: 1e-05
496
+ - `weight_decay`: 0.0
497
+ - `adam_beta1`: 0.9
498
+ - `adam_beta2`: 0.999
499
+ - `adam_epsilon`: 1e-08
500
+ - `max_grad_norm`: 1.0
501
+ - `num_train_epochs`: 2
502
+ - `max_steps`: -1
503
+ - `lr_scheduler_type`: linear
504
+ - `lr_scheduler_kwargs`: {}
505
+ - `warmup_ratio`: 0.1
506
+ - `warmup_steps`: 0
507
+ - `log_level`: passive
508
+ - `log_level_replica`: warning
509
+ - `log_on_each_node`: True
510
+ - `logging_nan_inf_filter`: True
511
+ - `save_safetensors`: True
512
+ - `save_on_each_node`: False
513
+ - `save_only_model`: False
514
+ - `restore_callback_states_from_checkpoint`: False
515
+ - `no_cuda`: False
516
+ - `use_cpu`: False
517
+ - `use_mps_device`: False
518
+ - `seed`: 42
519
+ - `data_seed`: None
520
+ - `jit_mode_eval`: False
521
+ - `use_ipex`: False
522
+ - `bf16`: False
523
+ - `fp16`: False
524
+ - `fp16_opt_level`: O1
525
+ - `half_precision_backend`: auto
526
+ - `bf16_full_eval`: False
527
+ - `fp16_full_eval`: False
528
+ - `tf32`: None
529
+ - `local_rank`: 0
530
+ - `ddp_backend`: None
531
+ - `tpu_num_cores`: None
532
+ - `tpu_metrics_debug`: False
533
+ - `debug`: []
534
+ - `dataloader_drop_last`: False
535
+ - `dataloader_num_workers`: 0
536
+ - `dataloader_prefetch_factor`: None
537
+ - `past_index`: -1
538
+ - `disable_tqdm`: False
539
+ - `remove_unused_columns`: True
540
+ - `label_names`: None
541
+ - `load_best_model_at_end`: False
542
+ - `ignore_data_skip`: False
543
+ - `fsdp`: []
544
+ - `fsdp_min_num_params`: 0
545
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
546
+ - `fsdp_transformer_layer_cls_to_wrap`: None
547
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
548
+ - `deepspeed`: None
549
+ - `label_smoothing_factor`: 0.0
550
+ - `optim`: adamw_torch
551
+ - `optim_args`: None
552
+ - `adafactor`: False
553
+ - `group_by_length`: False
554
+ - `length_column_name`: length
555
+ - `ddp_find_unused_parameters`: None
556
+ - `ddp_bucket_cap_mb`: None
557
+ - `ddp_broadcast_buffers`: False
558
+ - `dataloader_pin_memory`: True
559
+ - `dataloader_persistent_workers`: False
560
+ - `skip_memory_metrics`: True
561
+ - `use_legacy_prediction_loop`: False
562
+ - `push_to_hub`: False
563
+ - `resume_from_checkpoint`: None
564
+ - `hub_model_id`: None
565
+ - `hub_strategy`: every_save
566
+ - `hub_private_repo`: False
567
+ - `hub_always_push`: False
568
+ - `gradient_checkpointing`: False
569
+ - `gradient_checkpointing_kwargs`: None
570
+ - `include_inputs_for_metrics`: False
571
+ - `eval_do_concat_batches`: True
572
+ - `fp16_backend`: auto
573
+ - `push_to_hub_model_id`: None
574
+ - `push_to_hub_organization`: None
575
+ - `mp_parameters`:
576
+ - `auto_find_batch_size`: False
577
+ - `full_determinism`: False
578
+ - `torchdynamo`: None
579
+ - `ray_scope`: last
580
+ - `ddp_timeout`: 1800
581
+ - `torch_compile`: False
582
+ - `torch_compile_backend`: None
583
+ - `torch_compile_mode`: None
584
+ - `dispatch_batches`: None
585
+ - `split_batches`: None
586
+ - `include_tokens_per_second`: False
587
+ - `include_num_input_tokens_seen`: False
588
+ - `neftune_noise_alpha`: None
589
+ - `optim_target_modules`: None
590
+ - `batch_eval_metrics`: False
591
+ - `batch_sampler`: no_duplicates
592
+ - `multi_dataset_batch_sampler`: proportional
593
+
594
+ </details>
595
+
596
+ ### Training Logs
597
+ | Epoch | Step | Training Loss | e5-cogcache-small-refined_cosine_map@100 |
598
+ |:-----:|:----:|:-------------:|:----------------------------------------:|
599
+ | 0 | 0 | - | 0.7024 |
600
+ | 0.625 | 10 | 0.0252 | - |
601
+ | 1.0 | 16 | - | 0.6845 |
602
+ | 1.25 | 20 | 0.0119 | - |
603
+ | 1.875 | 30 | 0.0035 | - |
604
+ | 2.0 | 32 | - | 0.6845 |
605
+
606
+
607
+ ### Framework Versions
608
+ - Python: 3.10.12
609
+ - Sentence Transformers: 3.0.1
610
+ - Transformers: 4.41.2
611
+ - PyTorch: 2.1.2+cu121
612
+ - Accelerate: 0.32.1
613
+ - Datasets: 2.19.1
614
+ - Tokenizers: 0.19.1
615
+
616
+ ## Citation
617
+
618
+ ### BibTeX
619
+
620
+ #### Sentence Transformers
621
+ ```bibtex
622
+ @inproceedings{reimers-2019-sentence-bert,
623
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
624
+ author = "Reimers, Nils and Gurevych, Iryna",
625
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
626
+ month = "11",
627
+ year = "2019",
628
+ publisher = "Association for Computational Linguistics",
629
+ url = "https://arxiv.org/abs/1908.10084",
630
+ }
631
+ ```
632
+
633
+ #### MultipleNegativesRankingLoss
634
+ ```bibtex
635
+ @misc{henderson2017efficient,
636
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
637
+ 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},
638
+ year={2017},
639
+ eprint={1705.00652},
640
+ archivePrefix={arXiv},
641
+ primaryClass={cs.CL}
642
+ }
643
+ ```
644
+
645
+ <!--
646
+ ## Glossary
647
+
648
+ *Clearly define terms in order to be accessible across audiences.*
649
+ -->
650
+
651
+ <!--
652
+ ## Model Card Authors
653
+
654
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
655
+ -->
656
+
657
+ <!--
658
+ ## Model Card Contact
659
+
660
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
661
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "srikarvar/multilingual-e5-small-pairclass-contrastive",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 384,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 1536,
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
+ "tokenizer_class": "XLMRobertaTokenizer",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.41.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 250037
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.1.2+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30cbd0a4bfb8578ca884243a6b54b05b750c9a15714d3ec771aba2063af5ed05
3
+ size 470637416
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef04f2b385d1514f500e779207ace0f53e30895ce37563179e29f4022d28ca38
3
+ size 17083053
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "max_length": 512,
50
+ "model_max_length": 512,
51
+ "pad_to_multiple_of": null,
52
+ "pad_token": "<pad>",
53
+ "pad_token_type_id": 0,
54
+ "padding_side": "right",
55
+ "sep_token": "</s>",
56
+ "sp_model_kwargs": {},
57
+ "stride": 0,
58
+ "tokenizer_class": "XLMRobertaTokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "<unk>"
62
+ }