Antix5 commited on
Commit
2e16c31
·
verified ·
1 Parent(s): ad23e8c

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,530 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - multilingual
4
+ license: mit
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - dense
10
+ - generated_from_trainer
11
+ - dataset_size:74864
12
+ - loss:CoSENTLoss
13
+ base_model: intfloat/multilingual-e5-small
14
+ widget:
15
+ - source_sentence: Légumes mijotés Jardinière et haricots blancs
16
+ sentences:
17
+ - AMSCAN GOLD PLSTC FORKS | PARTY SUPPLY | 240 CT.
18
+ - 辣椒酱
19
+ - Pizza de verduras brasadas
20
+ - source_sentence: VTech Crazy Legs Learning Bugs, Pink
21
+ sentences:
22
+ - LEGO Creator Expert Garagem de Canto 10264 Kit de Construção, Novo 2019 (2569
23
+ Peças), Embalagem Sem Frustrações
24
+ - Silver Glitter Hanging Fans (4 ct)
25
+ - VTech Aspirateur Pop et Compte
26
+ - source_sentence: Pacon Tru-Ray Construction Paper, 18-Inches by 24-Inches, 50-Count,
27
+ Red (103094)
28
+ sentences:
29
+ - Funko POP Televisione Westworld Bernard Lowe Action figure
30
+ - Carta da costruzione Tru-Ray pesante, colori assortiti caldi, 12" x 18", 50 fogli
31
+ - Max Factory Kizuna Ai Figma Action Figure
32
+ - source_sentence: Zesty Cilantro Salsa, Medium
33
+ sentences:
34
+ - Melange de fruits
35
+ - Salsa de Texas
36
+ - T.S. Shure Rubber Band Powered Rescue Flier Model Plane Kit
37
+ - source_sentence: Fun World Angelic Maiden Child Costume
38
+ sentences:
39
+ - Melissa & Doug Personalized Pattern Blocks & Boards Classic Toy
40
+ - Winter sprats gerookt
41
+ - Rubie's Costume Co - Girls Gypsy Costume
42
+ pipeline_tag: sentence-similarity
43
+ library_name: sentence-transformers
44
+ metrics:
45
+ - cosine_accuracy@1
46
+ - cosine_accuracy@3
47
+ - cosine_accuracy@5
48
+ - cosine_accuracy@10
49
+ - cosine_precision@1
50
+ - cosine_precision@3
51
+ - cosine_precision@5
52
+ - cosine_precision@10
53
+ - cosine_recall@1
54
+ - cosine_recall@3
55
+ - cosine_recall@5
56
+ - cosine_recall@10
57
+ - cosine_ndcg@10
58
+ - cosine_mrr@10
59
+ - cosine_map@1
60
+ - cosine_map@3
61
+ - cosine_map@5
62
+ - cosine_map@10
63
+ model-index:
64
+ - name: multilingual-e5-small embeddings (CoSENTLoss on graded listwise pairs)
65
+ results:
66
+ - task:
67
+ type: information-retrieval
68
+ name: Information Retrieval
69
+ dataset:
70
+ name: ir eval
71
+ type: ir_eval
72
+ metrics:
73
+ - type: cosine_accuracy@1
74
+ value: 0.91015625
75
+ name: Cosine Accuracy@1
76
+ - type: cosine_accuracy@3
77
+ value: 0.95703125
78
+ name: Cosine Accuracy@3
79
+ - type: cosine_accuracy@5
80
+ value: 0.97265625
81
+ name: Cosine Accuracy@5
82
+ - type: cosine_accuracy@10
83
+ value: 1.0
84
+ name: Cosine Accuracy@10
85
+ - type: cosine_precision@1
86
+ value: 0.91015625
87
+ name: Cosine Precision@1
88
+ - type: cosine_precision@3
89
+ value: 0.5104166666666666
90
+ name: Cosine Precision@3
91
+ - type: cosine_precision@5
92
+ value: 0.40078125000000003
93
+ name: Cosine Precision@5
94
+ - type: cosine_precision@10
95
+ value: 0.296875
96
+ name: Cosine Precision@10
97
+ - type: cosine_recall@1
98
+ value: 0.13477527216379598
99
+ name: Cosine Recall@1
100
+ - type: cosine_recall@3
101
+ value: 0.1739842681808551
102
+ name: Cosine Recall@3
103
+ - type: cosine_recall@5
104
+ value: 0.1983227020362507
105
+ name: Cosine Recall@5
106
+ - type: cosine_recall@10
107
+ value: 0.2486998357621607
108
+ name: Cosine Recall@10
109
+ - type: cosine_ndcg@10
110
+ value: 0.4650339807377877
111
+ name: Cosine Ndcg@10
112
+ - type: cosine_mrr@10
113
+ value: 0.937943328373016
114
+ name: Cosine Mrr@10
115
+ - type: cosine_map@1
116
+ value: 0.91015625
117
+ name: Cosine Map@1
118
+ - type: cosine_map@3
119
+ value: 0.5282118055555556
120
+ name: Cosine Map@3
121
+ - type: cosine_map@5
122
+ value: 0.42098524305555557
123
+ name: Cosine Map@5
124
+ - type: cosine_map@10
125
+ value: 0.3311448220781368
126
+ name: Cosine Map@10
127
+ ---
128
+
129
+ # multilingual-e5-small embeddings (CoSENTLoss on graded listwise pairs)
130
+
131
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small). 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.
132
+
133
+ ## Model Details
134
+
135
+ ### Model Description
136
+ - **Model Type:** Sentence Transformer
137
+ - **Base model:** [intfloat/multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small) <!-- at revision c007d7ef6fd86656326059b28395a7a03a7c5846 -->
138
+ - **Maximum Sequence Length:** 256 tokens
139
+ - **Output Dimensionality:** 384 dimensions
140
+ - **Similarity Function:** Cosine Similarity
141
+ <!-- - **Training Dataset:** Unknown -->
142
+ - **Language:** multilingual
143
+ - **License:** mit
144
+
145
+ ### Model Sources
146
+
147
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
148
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
149
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
150
+
151
+ ### Full Model Architecture
152
+
153
+ ```
154
+ SentenceTransformer(
155
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
156
+ (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})
157
+ (2): Normalize()
158
+ )
159
+ ```
160
+
161
+ ## Usage
162
+
163
+ ### Direct Usage (Sentence Transformers)
164
+
165
+ First install the Sentence Transformers library:
166
+
167
+ ```bash
168
+ pip install -U sentence-transformers
169
+ ```
170
+
171
+ Then you can load this model and run inference.
172
+ ```python
173
+ from sentence_transformers import SentenceTransformer
174
+
175
+ # Download from the 🤗 Hub
176
+ model = SentenceTransformer("Antix5/product-embed-multi-e5-small")
177
+ # Run inference
178
+ sentences = [
179
+ 'Fun World Angelic Maiden Child Costume',
180
+ "Rubie's Costume Co - Girls Gypsy Costume",
181
+ 'Melissa & Doug Personalized Pattern Blocks & Boards Classic Toy',
182
+ ]
183
+ embeddings = model.encode(sentences)
184
+ print(embeddings.shape)
185
+ # [3, 384]
186
+
187
+ # Get the similarity scores for the embeddings
188
+ similarities = model.similarity(embeddings, embeddings)
189
+ print(similarities)
190
+ # tensor([[1.0000, 0.7135, 0.6875],
191
+ # [0.7135, 1.0000, 0.6791],
192
+ # [0.6875, 0.6791, 1.0000]])
193
+ ```
194
+
195
+ <!--
196
+ ### Direct Usage (Transformers)
197
+
198
+ <details><summary>Click to see the direct usage in Transformers</summary>
199
+
200
+ </details>
201
+ -->
202
+
203
+ <!--
204
+ ### Downstream Usage (Sentence Transformers)
205
+
206
+ You can finetune this model on your own dataset.
207
+
208
+ <details><summary>Click to expand</summary>
209
+
210
+ </details>
211
+ -->
212
+
213
+ <!--
214
+ ### Out-of-Scope Use
215
+
216
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
217
+ -->
218
+
219
+ ## Evaluation
220
+
221
+ ### Metrics
222
+
223
+ #### Information Retrieval
224
+
225
+ * Dataset: `ir_eval`
226
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
227
+
228
+ | Metric | Value |
229
+ |:--------------------|:----------|
230
+ | cosine_accuracy@1 | 0.9102 |
231
+ | cosine_accuracy@3 | 0.957 |
232
+ | cosine_accuracy@5 | 0.9727 |
233
+ | cosine_accuracy@10 | 1.0 |
234
+ | cosine_precision@1 | 0.9102 |
235
+ | cosine_precision@3 | 0.5104 |
236
+ | cosine_precision@5 | 0.4008 |
237
+ | cosine_precision@10 | 0.2969 |
238
+ | cosine_recall@1 | 0.1348 |
239
+ | cosine_recall@3 | 0.174 |
240
+ | cosine_recall@5 | 0.1983 |
241
+ | cosine_recall@10 | 0.2487 |
242
+ | **cosine_ndcg@10** | **0.465** |
243
+ | cosine_mrr@10 | 0.9379 |
244
+ | cosine_map@1 | 0.9102 |
245
+ | cosine_map@3 | 0.5282 |
246
+ | cosine_map@5 | 0.421 |
247
+ | cosine_map@10 | 0.3311 |
248
+
249
+ <!--
250
+ ## Bias, Risks and Limitations
251
+
252
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
253
+ -->
254
+
255
+ <!--
256
+ ### Recommendations
257
+
258
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
259
+ -->
260
+
261
+ ## Training Details
262
+
263
+ ### Training Dataset
264
+
265
+ #### Unnamed Dataset
266
+
267
+ * Size: 74,864 training samples
268
+ * Columns: <code>text1</code>, <code>text2</code>, and <code>label</code>
269
+ * Approximate statistics based on the first 1000 samples:
270
+ | | text1 | text2 | label |
271
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
272
+ | type | string | string | float |
273
+ | details | <ul><li>min: 4 tokens</li><li>mean: 19.67 tokens</li><li>max: 54 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 15.59 tokens</li><li>max: 72 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.53</li><li>max: 1.0</li></ul> |
274
+ * Samples:
275
+ | text1 | text2 | label |
276
+ |:-----------------------------------------------------------------|:------------------------------------------------------------------------------|:-----------------|
277
+ | <code>Premier 26764 Car Spinner, Santa, 25 by 19-1/2-Inch</code> | <code>Premier 26764 Tourbillon pour voiture, Santa, 25 x 19-1/2 pouces</code> | <code>1.0</code> |
278
+ | <code>Premier 26764 Car Spinner, Santa, 25 by 19-1/2-Inch</code> | <code>BNTS, ЧИПСЫ ИЗ ФАСОЛИ NV И МОРСКАЯ СОЛЬ</code> | <code>0.0</code> |
279
+ | <code>Premier 26764 Car Spinner, Santa, 25 by 19-1/2-Inch</code> | <code>Beanitos, Чипс из фасоли navy, Сыр на чо</code> | <code>0.0</code> |
280
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
281
+ ```json
282
+ {
283
+ "scale": 20.0,
284
+ "similarity_fct": "pairwise_cos_sim"
285
+ }
286
+ ```
287
+
288
+ ### Training Hyperparameters
289
+ #### Non-Default Hyperparameters
290
+
291
+ - `eval_strategy`: steps
292
+ - `per_device_train_batch_size`: 32
293
+ - `per_device_eval_batch_size`: 256
294
+ - `learning_rate`: 2e-05
295
+ - `num_train_epochs`: 2
296
+ - `warmup_ratio`: 0.1
297
+ - `fp16`: True
298
+ - `batch_sampler`: no_duplicates
299
+
300
+ #### All Hyperparameters
301
+ <details><summary>Click to expand</summary>
302
+
303
+ - `overwrite_output_dir`: False
304
+ - `do_predict`: False
305
+ - `eval_strategy`: steps
306
+ - `prediction_loss_only`: True
307
+ - `per_device_train_batch_size`: 32
308
+ - `per_device_eval_batch_size`: 256
309
+ - `per_gpu_train_batch_size`: None
310
+ - `per_gpu_eval_batch_size`: None
311
+ - `gradient_accumulation_steps`: 1
312
+ - `eval_accumulation_steps`: None
313
+ - `torch_empty_cache_steps`: None
314
+ - `learning_rate`: 2e-05
315
+ - `weight_decay`: 0.0
316
+ - `adam_beta1`: 0.9
317
+ - `adam_beta2`: 0.999
318
+ - `adam_epsilon`: 1e-08
319
+ - `max_grad_norm`: 1.0
320
+ - `num_train_epochs`: 2
321
+ - `max_steps`: -1
322
+ - `lr_scheduler_type`: linear
323
+ - `lr_scheduler_kwargs`: {}
324
+ - `warmup_ratio`: 0.1
325
+ - `warmup_steps`: 0
326
+ - `log_level`: passive
327
+ - `log_level_replica`: warning
328
+ - `log_on_each_node`: True
329
+ - `logging_nan_inf_filter`: True
330
+ - `save_safetensors`: True
331
+ - `save_on_each_node`: False
332
+ - `save_only_model`: False
333
+ - `restore_callback_states_from_checkpoint`: False
334
+ - `no_cuda`: False
335
+ - `use_cpu`: False
336
+ - `use_mps_device`: False
337
+ - `seed`: 42
338
+ - `data_seed`: None
339
+ - `jit_mode_eval`: False
340
+ - `use_ipex`: False
341
+ - `bf16`: False
342
+ - `fp16`: True
343
+ - `fp16_opt_level`: O1
344
+ - `half_precision_backend`: auto
345
+ - `bf16_full_eval`: False
346
+ - `fp16_full_eval`: False
347
+ - `tf32`: None
348
+ - `local_rank`: 0
349
+ - `ddp_backend`: None
350
+ - `tpu_num_cores`: None
351
+ - `tpu_metrics_debug`: False
352
+ - `debug`: []
353
+ - `dataloader_drop_last`: False
354
+ - `dataloader_num_workers`: 0
355
+ - `dataloader_prefetch_factor`: None
356
+ - `past_index`: -1
357
+ - `disable_tqdm`: False
358
+ - `remove_unused_columns`: True
359
+ - `label_names`: None
360
+ - `load_best_model_at_end`: False
361
+ - `ignore_data_skip`: False
362
+ - `fsdp`: []
363
+ - `fsdp_min_num_params`: 0
364
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
365
+ - `fsdp_transformer_layer_cls_to_wrap`: None
366
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
367
+ - `parallelism_config`: None
368
+ - `deepspeed`: None
369
+ - `label_smoothing_factor`: 0.0
370
+ - `optim`: adamw_torch_fused
371
+ - `optim_args`: None
372
+ - `adafactor`: False
373
+ - `group_by_length`: False
374
+ - `length_column_name`: length
375
+ - `ddp_find_unused_parameters`: None
376
+ - `ddp_bucket_cap_mb`: None
377
+ - `ddp_broadcast_buffers`: False
378
+ - `dataloader_pin_memory`: True
379
+ - `dataloader_persistent_workers`: False
380
+ - `skip_memory_metrics`: True
381
+ - `use_legacy_prediction_loop`: False
382
+ - `push_to_hub`: False
383
+ - `resume_from_checkpoint`: None
384
+ - `hub_model_id`: None
385
+ - `hub_strategy`: every_save
386
+ - `hub_private_repo`: None
387
+ - `hub_always_push`: False
388
+ - `hub_revision`: None
389
+ - `gradient_checkpointing`: False
390
+ - `gradient_checkpointing_kwargs`: None
391
+ - `include_inputs_for_metrics`: False
392
+ - `include_for_metrics`: []
393
+ - `eval_do_concat_batches`: True
394
+ - `fp16_backend`: auto
395
+ - `push_to_hub_model_id`: None
396
+ - `push_to_hub_organization`: None
397
+ - `mp_parameters`:
398
+ - `auto_find_batch_size`: False
399
+ - `full_determinism`: False
400
+ - `torchdynamo`: None
401
+ - `ray_scope`: last
402
+ - `ddp_timeout`: 1800
403
+ - `torch_compile`: False
404
+ - `torch_compile_backend`: None
405
+ - `torch_compile_mode`: None
406
+ - `include_tokens_per_second`: False
407
+ - `include_num_input_tokens_seen`: False
408
+ - `neftune_noise_alpha`: None
409
+ - `optim_target_modules`: None
410
+ - `batch_eval_metrics`: False
411
+ - `eval_on_start`: False
412
+ - `use_liger_kernel`: False
413
+ - `liger_kernel_config`: None
414
+ - `eval_use_gather_object`: False
415
+ - `average_tokens_across_devices`: False
416
+ - `prompts`: None
417
+ - `batch_sampler`: no_duplicates
418
+ - `multi_dataset_batch_sampler`: proportional
419
+ - `router_mapping`: {}
420
+ - `learning_rate_mapping`: {}
421
+
422
+ </details>
423
+
424
+ ### Training Logs
425
+ | Epoch | Step | Training Loss | ir_eval_cosine_ndcg@10 |
426
+ |:------:|:----:|:-------------:|:----------------------:|
427
+ | 0.0004 | 1 | 5.9178 | - |
428
+ | 0.0427 | 100 | 5.7854 | - |
429
+ | 0.0855 | 200 | 5.7118 | - |
430
+ | 0.1282 | 300 | 5.6765 | - |
431
+ | 0.1709 | 400 | 5.647 | - |
432
+ | 0.2137 | 500 | 5.6046 | - |
433
+ | 0.2564 | 600 | 5.5859 | - |
434
+ | 0.2991 | 700 | 5.5586 | - |
435
+ | 0.3419 | 800 | 5.5319 | - |
436
+ | 0.3846 | 900 | 5.564 | - |
437
+ | 0.4274 | 1000 | 5.577 | 0.4854 |
438
+ | 0.4701 | 1100 | 5.5229 | - |
439
+ | 0.5128 | 1200 | 5.5294 | - |
440
+ | 0.5556 | 1300 | 5.4836 | - |
441
+ | 0.5983 | 1400 | 5.4851 | - |
442
+ | 0.6410 | 1500 | 5.4646 | - |
443
+ | 0.6838 | 1600 | 5.4784 | - |
444
+ | 0.7265 | 1700 | 5.481 | - |
445
+ | 0.7692 | 1800 | 5.4923 | - |
446
+ | 0.8120 | 1900 | 5.4696 | - |
447
+ | 0.8547 | 2000 | 5.4932 | 0.4749 |
448
+ | 0.8974 | 2100 | 5.4752 | - |
449
+ | 0.9402 | 2200 | 5.459 | - |
450
+ | 0.9829 | 2300 | 5.4371 | - |
451
+ | 1.0256 | 2400 | 5.3701 | - |
452
+ | 1.0684 | 2500 | 5.3562 | - |
453
+ | 1.1111 | 2600 | 5.4101 | - |
454
+ | 1.1538 | 2700 | 5.3829 | - |
455
+ | 1.1966 | 2800 | 5.3687 | - |
456
+ | 1.2393 | 2900 | 5.36 | - |
457
+ | 1.2821 | 3000 | 5.3446 | 0.4725 |
458
+ | 1.3248 | 3100 | 5.3757 | - |
459
+ | 1.3675 | 3200 | 5.3821 | - |
460
+ | 1.4103 | 3300 | 5.3918 | - |
461
+ | 1.4530 | 3400 | 5.3083 | - |
462
+ | 1.4957 | 3500 | 5.3389 | - |
463
+ | 1.5385 | 3600 | 5.3037 | - |
464
+ | 1.5812 | 3700 | 5.3424 | - |
465
+ | 1.6239 | 3800 | 5.3383 | - |
466
+ | 1.6667 | 3900 | 5.3252 | - |
467
+ | 1.7094 | 4000 | 5.3358 | 0.4676 |
468
+ | 1.7521 | 4100 | 5.2704 | - |
469
+ | 1.7949 | 4200 | 5.3415 | - |
470
+ | 1.8376 | 4300 | 5.361 | - |
471
+ | 1.8803 | 4400 | 5.3654 | - |
472
+ | 1.9231 | 4500 | 5.3386 | - |
473
+ | 1.9658 | 4600 | 5.3392 | - |
474
+ | -1 | -1 | - | 0.4650 |
475
+
476
+
477
+ ### Framework Versions
478
+ - Python: 3.12.11
479
+ - Sentence Transformers: 5.1.1
480
+ - Transformers: 4.56.2
481
+ - PyTorch: 2.8.0+cu126
482
+ - Accelerate: 1.10.1
483
+ - Datasets: 2.20.0
484
+ - Tokenizers: 0.22.1
485
+
486
+ ## Citation
487
+
488
+ ### BibTeX
489
+
490
+ #### Sentence Transformers
491
+ ```bibtex
492
+ @inproceedings{reimers-2019-sentence-bert,
493
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
494
+ author = "Reimers, Nils and Gurevych, Iryna",
495
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
496
+ month = "11",
497
+ year = "2019",
498
+ publisher = "Association for Computational Linguistics",
499
+ url = "https://arxiv.org/abs/1908.10084",
500
+ }
501
+ ```
502
+
503
+ #### CoSENTLoss
504
+ ```bibtex
505
+ @article{10531646,
506
+ author={Huang, Xiang and Peng, Hao and Zou, Dongcheng and Liu, Zhiwei and Li, Jianxin and Liu, Kay and Wu, Jia and Su, Jianlin and Yu, Philip S.},
507
+ journal={IEEE/ACM Transactions on Audio, Speech, and Language Processing},
508
+ title={CoSENT: Consistent Sentence Embedding via Similarity Ranking},
509
+ year={2024},
510
+ doi={10.1109/TASLP.2024.3402087}
511
+ }
512
+ ```
513
+
514
+ <!--
515
+ ## Glossary
516
+
517
+ *Clearly define terms in order to be accessible across audiences.*
518
+ -->
519
+
520
+ <!--
521
+ ## Model Card Authors
522
+
523
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
524
+ -->
525
+
526
+ <!--
527
+ ## Model Card Contact
528
+
529
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
530
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
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
+ "transformers_version": "4.56.2",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 250037
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.1.1",
5
+ "transformers": "4.56.2",
6
+ "pytorch": "2.8.0+cu126"
7
+ },
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11c9183ed003a224fd99cd9eb0eee0dfd08ddd8fa7969546085cf0457bb27e7b
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": 256,
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:2b95ee17661f8dfbbceaba374f6d277a6b5d8e1898c070a16331622024f58c67
3
+ size 17083053
tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "model_max_length": 512,
51
+ "pad_token": "<pad>",
52
+ "sep_token": "</s>",
53
+ "sp_model_kwargs": {},
54
+ "tokenizer_class": "XLMRobertaTokenizer",
55
+ "unk_token": "<unk>"
56
+ }