seregadgl commited on
Commit
34d7252
·
verified ·
1 Parent(s): e8a13fc

Add new SentenceTransformer model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
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,507 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:111476
8
+ - loss:CosineSimilarityLoss
9
+ base_model: sergeyzh/LaBSE-ru-sts
10
+ widget:
11
+ - source_sentence: 'трюковый самокат plank 180 белый '
12
+ sentences:
13
+ - смарт-телевизор 75 sony kd-75x950h
14
+ - самокат для трюков плэнк 1.80 м белый
15
+ - xiaomi mi 11 8gb 128gb
16
+ - source_sentence: 'вейп vaporesso xros '
17
+ sentences:
18
+ - садовая ограда классика 4 2 м белый
19
+ - кухонные весы
20
+ - электронная сигарета voopoo drag
21
+ - source_sentence: серьги l atelier precieux 1628710
22
+ sentences:
23
+ - фильтр hepa для пылесоса варис st400
24
+ - потолочная люстра майтон nostalgia ceiling chandelier mod048pl-06g
25
+ - серьги atelier de bijoux 1628712
26
+ - source_sentence: 'мобильный геймпад триггерами x2 '
27
+ sentences:
28
+ - электроскутер nitro pro milano 750w led
29
+ - наушники без проводов мейзу ep52 lite
30
+ - геймпад с функцией триггеров x2
31
+ - source_sentence: комод 7 рисунком машинки 4 ящика
32
+ sentences:
33
+ - удлинитель far f 505 d lara выключателем 2 0м
34
+ - беззеркальный фотоаппарат nikon z50 kit 16-50mm ilce-7cl красный
35
+ - комод 8 с изображением супергероев 6 ящиков
36
+ datasets:
37
+ - seregadgl/data_cross_gpt_139k
38
+ pipeline_tag: sentence-similarity
39
+ library_name: sentence-transformers
40
+ metrics:
41
+ - cosine_accuracy
42
+ - cosine_accuracy_threshold
43
+ - cosine_f1
44
+ - cosine_f1_threshold
45
+ - cosine_precision
46
+ - cosine_recall
47
+ - cosine_ap
48
+ - cosine_mcc
49
+ model-index:
50
+ - name: SentenceTransformer based on sergeyzh/LaBSE-ru-sts
51
+ results:
52
+ - task:
53
+ type: binary-classification
54
+ name: Binary Classification
55
+ dataset:
56
+ name: eval
57
+ type: eval
58
+ metrics:
59
+ - type: cosine_accuracy
60
+ value: 0.9722640832436311
61
+ name: Cosine Accuracy
62
+ - type: cosine_accuracy_threshold
63
+ value: 0.630459189414978
64
+ name: Cosine Accuracy Threshold
65
+ - type: cosine_f1
66
+ value: 0.9724366041896361
67
+ name: Cosine F1
68
+ - type: cosine_f1_threshold
69
+ value: 0.5821653008460999
70
+ name: Cosine F1 Threshold
71
+ - type: cosine_precision
72
+ value: 0.9647847565278758
73
+ name: Cosine Precision
74
+ - type: cosine_recall
75
+ value: 0.9802107980210798
76
+ name: Cosine Recall
77
+ - type: cosine_ap
78
+ value: 0.9945729266353226
79
+ name: Cosine Ap
80
+ - type: cosine_mcc
81
+ value: 0.9445047865635516
82
+ name: Cosine Mcc
83
+ ---
84
+
85
+ # SentenceTransformer based on sergeyzh/LaBSE-ru-sts
86
+
87
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sergeyzh/LaBSE-ru-sts](https://huggingface.co/sergeyzh/LaBSE-ru-sts) on the [data_cross_gpt_139k](https://huggingface.co/datasets/seregadgl/data_cross_gpt_139k) dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
88
+
89
+ ## Model Details
90
+
91
+ ### Model Description
92
+ - **Model Type:** Sentence Transformer
93
+ - **Base model:** [sergeyzh/LaBSE-ru-sts](https://huggingface.co/sergeyzh/LaBSE-ru-sts) <!-- at revision 00c333ce29c9ad739f48baca9a578cd1e85094d4 -->
94
+ - **Maximum Sequence Length:** 512 tokens
95
+ - **Output Dimensionality:** 768 dimensions
96
+ - **Similarity Function:** Cosine Similarity
97
+ - **Training Dataset:**
98
+ - [data_cross_gpt_139k](https://huggingface.co/datasets/seregadgl/data_cross_gpt_139k)
99
+ <!-- - **Language:** Unknown -->
100
+ <!-- - **License:** Unknown -->
101
+
102
+ ### Model Sources
103
+
104
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
105
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
106
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
107
+
108
+ ### Full Model Architecture
109
+
110
+ ```
111
+ SentenceTransformer(
112
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
113
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
114
+ (2): Normalize()
115
+ )
116
+ ```
117
+
118
+ ## Usage
119
+
120
+ ### Direct Usage (Sentence Transformers)
121
+
122
+ First install the Sentence Transformers library:
123
+
124
+ ```bash
125
+ pip install -U sentence-transformers
126
+ ```
127
+
128
+ Then you can load this model and run inference.
129
+ ```python
130
+ from sentence_transformers import SentenceTransformer
131
+
132
+ # Download from the 🤗 Hub
133
+ model = SentenceTransformer("seregadgl/sts_v11")
134
+ # Run inference
135
+ sentences = [
136
+ 'комод 7 рисунком машинки 4 ящика',
137
+ 'комод 8 с изображением супергероев 6 ящиков',
138
+ 'беззеркальный фотоаппарат nikon z50 kit 16-50mm ilce-7cl красный',
139
+ ]
140
+ embeddings = model.encode(sentences)
141
+ print(embeddings.shape)
142
+ # [3, 768]
143
+
144
+ # Get the similarity scores for the embeddings
145
+ similarities = model.similarity(embeddings, embeddings)
146
+ print(similarities.shape)
147
+ # [3, 3]
148
+ ```
149
+
150
+ <!--
151
+ ### Direct Usage (Transformers)
152
+
153
+ <details><summary>Click to see the direct usage in Transformers</summary>
154
+
155
+ </details>
156
+ -->
157
+
158
+ <!--
159
+ ### Downstream Usage (Sentence Transformers)
160
+
161
+ You can finetune this model on your own dataset.
162
+
163
+ <details><summary>Click to expand</summary>
164
+
165
+ </details>
166
+ -->
167
+
168
+ <!--
169
+ ### Out-of-Scope Use
170
+
171
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
172
+ -->
173
+
174
+ ## Evaluation
175
+
176
+ ### Metrics
177
+
178
+ #### Binary Classification
179
+
180
+ * Dataset: `eval`
181
+ * Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
182
+
183
+ | Metric | Value |
184
+ |:--------------------------|:-----------|
185
+ | cosine_accuracy | 0.9723 |
186
+ | cosine_accuracy_threshold | 0.6305 |
187
+ | cosine_f1 | 0.9724 |
188
+ | cosine_f1_threshold | 0.5822 |
189
+ | cosine_precision | 0.9648 |
190
+ | cosine_recall | 0.9802 |
191
+ | **cosine_ap** | **0.9946** |
192
+ | cosine_mcc | 0.9445 |
193
+
194
+ <!--
195
+ ## Bias, Risks and Limitations
196
+
197
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
198
+ -->
199
+
200
+ <!--
201
+ ### Recommendations
202
+
203
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
204
+ -->
205
+
206
+ ## Training Details
207
+
208
+ ### Training Dataset
209
+
210
+ #### data_cross_gpt_139k
211
+
212
+ * Dataset: [data_cross_gpt_139k](https://huggingface.co/datasets/seregadgl/data_cross_gpt_139k) at [9e1f5ca](https://huggingface.co/datasets/seregadgl/data_cross_gpt_139k/tree/9e1f5ca30088e6f61ca5b9a742b38ef2c4fc7f3e)
213
+ * Size: 111,476 training samples
214
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>label</code>
215
+ * Approximate statistics based on the first 1000 samples:
216
+ | | sentence1 | sentence2 | label |
217
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
218
+ | type | string | string | float |
219
+ | details | <ul><li>min: 3 tokens</li><li>mean: 14.84 tokens</li><li>max: 45 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 15.64 tokens</li><li>max: 55 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.47</li><li>max: 1.0</li></ul> |
220
+ * Samples:
221
+ | sentence1 | sentence2 | label |
222
+ |:-------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:-----------------|
223
+ | <code>нож кухонный 21см синий</code> | <code>кухонный нож 22см зелёный</code> | <code>0.0</code> |
224
+ | <code>блок питания универсальный для мерцающих флэш гирлянд rich led бахрома занавес нить белый</code> | <code>адаптер питания для мигающих led гирлянд "luminous decor" бахрома занавес нить зелёный</code> | <code>0.0</code> |
225
+ | <code>защитная пленка для apple iphone 6 прозрачная </code> | <code>protective film for apple iphone 6 transparent</code> | <code>1.0</code> |
226
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
227
+ ```json
228
+ {
229
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
230
+ }
231
+ ```
232
+
233
+ ### Evaluation Dataset
234
+
235
+ #### data_cross_gpt_139k
236
+
237
+ * Dataset: [data_cross_gpt_139k](https://huggingface.co/datasets/seregadgl/data_cross_gpt_139k) at [9e1f5ca](https://huggingface.co/datasets/seregadgl/data_cross_gpt_139k/tree/9e1f5ca30088e6f61ca5b9a742b38ef2c4fc7f3e)
238
+ * Size: 27,870 evaluation samples
239
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>label</code>
240
+ * Approximate statistics based on the first 1000 samples:
241
+ | | sentence1 | sentence2 | label |
242
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
243
+ | type | string | string | float |
244
+ | details | <ul><li>min: 3 tokens</li><li>mean: 15.05 tokens</li><li>max: 58 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 15.57 tokens</li><li>max: 53 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.48</li><li>max: 1.0</li></ul> |
245
+ * Samples:
246
+ | sentence1 | sentence2 | label |
247
+ |:---------------------------------------------------------------------------------|:------------------------------------------------------------------------|:-----------------|
248
+ | <code>сумка дорожная складная полет оранжевая bradex td 0599 </code> | <code>сумка для путешествий складная брадекс orange</code> | <code>1.0</code> |
249
+ | <code>наушники sennheiser hd 450bt белый </code> | <code>наушники сенхайзер hd 450bt white</code> | <code>1.0</code> |
250
+ | <code>перчатки stg al-05-1871 синие серые черные зеленыеполноразмерные xl</code> | <code>перчатки stg al-05-1871 blue gray black green full size xl</code> | <code>1.0</code> |
251
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
252
+ ```json
253
+ {
254
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
255
+ }
256
+ ```
257
+
258
+ ### Training Hyperparameters
259
+ #### Non-Default Hyperparameters
260
+
261
+ - `eval_strategy`: steps
262
+ - `per_device_train_batch_size`: 32
263
+ - `per_device_eval_batch_size`: 32
264
+ - `learning_rate`: 4.7459131195420915e-05
265
+ - `weight_decay`: 0.03196240090522689
266
+ - `num_train_epochs`: 2
267
+ - `warmup_ratio`: 0.014344463935915175
268
+ - `fp16`: True
269
+
270
+ #### All Hyperparameters
271
+ <details><summary>Click to expand</summary>
272
+
273
+ - `overwrite_output_dir`: False
274
+ - `do_predict`: False
275
+ - `eval_strategy`: steps
276
+ - `prediction_loss_only`: True
277
+ - `per_device_train_batch_size`: 32
278
+ - `per_device_eval_batch_size`: 32
279
+ - `per_gpu_train_batch_size`: None
280
+ - `per_gpu_eval_batch_size`: None
281
+ - `gradient_accumulation_steps`: 1
282
+ - `eval_accumulation_steps`: None
283
+ - `torch_empty_cache_steps`: None
284
+ - `learning_rate`: 4.7459131195420915e-05
285
+ - `weight_decay`: 0.03196240090522689
286
+ - `adam_beta1`: 0.9
287
+ - `adam_beta2`: 0.999
288
+ - `adam_epsilon`: 1e-08
289
+ - `max_grad_norm`: 1.0
290
+ - `num_train_epochs`: 2
291
+ - `max_steps`: -1
292
+ - `lr_scheduler_type`: linear
293
+ - `lr_scheduler_kwargs`: {}
294
+ - `warmup_ratio`: 0.014344463935915175
295
+ - `warmup_steps`: 0
296
+ - `log_level`: passive
297
+ - `log_level_replica`: warning
298
+ - `log_on_each_node`: True
299
+ - `logging_nan_inf_filter`: True
300
+ - `save_safetensors`: True
301
+ - `save_on_each_node`: False
302
+ - `save_only_model`: False
303
+ - `restore_callback_states_from_checkpoint`: False
304
+ - `no_cuda`: False
305
+ - `use_cpu`: False
306
+ - `use_mps_device`: False
307
+ - `seed`: 42
308
+ - `data_seed`: None
309
+ - `jit_mode_eval`: False
310
+ - `use_ipex`: False
311
+ - `bf16`: False
312
+ - `fp16`: True
313
+ - `fp16_opt_level`: O1
314
+ - `half_precision_backend`: auto
315
+ - `bf16_full_eval`: False
316
+ - `fp16_full_eval`: False
317
+ - `tf32`: None
318
+ - `local_rank`: 0
319
+ - `ddp_backend`: None
320
+ - `tpu_num_cores`: None
321
+ - `tpu_metrics_debug`: False
322
+ - `debug`: []
323
+ - `dataloader_drop_last`: False
324
+ - `dataloader_num_workers`: 0
325
+ - `dataloader_prefetch_factor`: None
326
+ - `past_index`: -1
327
+ - `disable_tqdm`: False
328
+ - `remove_unused_columns`: True
329
+ - `label_names`: None
330
+ - `load_best_model_at_end`: False
331
+ - `ignore_data_skip`: False
332
+ - `fsdp`: []
333
+ - `fsdp_min_num_params`: 0
334
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
335
+ - `tp_size`: 0
336
+ - `fsdp_transformer_layer_cls_to_wrap`: None
337
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
338
+ - `deepspeed`: None
339
+ - `label_smoothing_factor`: 0.0
340
+ - `optim`: adamw_torch
341
+ - `optim_args`: None
342
+ - `adafactor`: False
343
+ - `group_by_length`: False
344
+ - `length_column_name`: length
345
+ - `ddp_find_unused_parameters`: None
346
+ - `ddp_bucket_cap_mb`: None
347
+ - `ddp_broadcast_buffers`: False
348
+ - `dataloader_pin_memory`: True
349
+ - `dataloader_persistent_workers`: False
350
+ - `skip_memory_metrics`: True
351
+ - `use_legacy_prediction_loop`: False
352
+ - `push_to_hub`: False
353
+ - `resume_from_checkpoint`: None
354
+ - `hub_model_id`: None
355
+ - `hub_strategy`: every_save
356
+ - `hub_private_repo`: None
357
+ - `hub_always_push`: False
358
+ - `gradient_checkpointing`: False
359
+ - `gradient_checkpointing_kwargs`: None
360
+ - `include_inputs_for_metrics`: False
361
+ - `include_for_metrics`: []
362
+ - `eval_do_concat_batches`: True
363
+ - `fp16_backend`: auto
364
+ - `push_to_hub_model_id`: None
365
+ - `push_to_hub_organization`: None
366
+ - `mp_parameters`:
367
+ - `auto_find_batch_size`: False
368
+ - `full_determinism`: False
369
+ - `torchdynamo`: None
370
+ - `ray_scope`: last
371
+ - `ddp_timeout`: 1800
372
+ - `torch_compile`: False
373
+ - `torch_compile_backend`: None
374
+ - `torch_compile_mode`: None
375
+ - `include_tokens_per_second`: False
376
+ - `include_num_input_tokens_seen`: False
377
+ - `neftune_noise_alpha`: None
378
+ - `optim_target_modules`: None
379
+ - `batch_eval_metrics`: False
380
+ - `eval_on_start`: False
381
+ - `use_liger_kernel`: False
382
+ - `eval_use_gather_object`: False
383
+ - `average_tokens_across_devices`: False
384
+ - `prompts`: None
385
+ - `batch_sampler`: batch_sampler
386
+ - `multi_dataset_batch_sampler`: proportional
387
+
388
+ </details>
389
+
390
+ ### Training Logs
391
+ | Epoch | Step | Training Loss | Validation Loss | eval_cosine_ap |
392
+ |:------:|:----:|:-------------:|:---------------:|:--------------:|
393
+ | 0.0287 | 100 | 0.189 | - | - |
394
+ | 0.0574 | 200 | 0.0695 | - | - |
395
+ | 0.0861 | 300 | 0.067 | - | - |
396
+ | 0.1148 | 400 | 0.0643 | - | - |
397
+ | 0.1435 | 500 | 0.0594 | 0.0549 | 0.9862 |
398
+ | 0.1722 | 600 | 0.0565 | - | - |
399
+ | 0.2009 | 700 | 0.0535 | - | - |
400
+ | 0.2296 | 800 | 0.0506 | - | - |
401
+ | 0.2583 | 900 | 0.0549 | - | - |
402
+ | 0.2870 | 1000 | 0.0535 | 0.0451 | 0.9888 |
403
+ | 0.3157 | 1100 | 0.0492 | - | - |
404
+ | 0.3444 | 1200 | 0.0499 | - | - |
405
+ | 0.3731 | 1300 | 0.0486 | - | - |
406
+ | 0.4018 | 1400 | 0.0458 | - | - |
407
+ | 0.4305 | 1500 | 0.0458 | 0.0419 | 0.9877 |
408
+ | 0.4592 | 1600 | 0.0502 | - | - |
409
+ | 0.4879 | 1700 | 0.045 | - | - |
410
+ | 0.5166 | 1800 | 0.0435 | - | - |
411
+ | 0.5454 | 1900 | 0.0426 | - | - |
412
+ | 0.5741 | 2000 | 0.0422 | 0.0386 | 0.9906 |
413
+ | 0.6028 | 2100 | 0.0436 | - | - |
414
+ | 0.6315 | 2200 | 0.043 | - | - |
415
+ | 0.6602 | 2300 | 0.0432 | - | - |
416
+ | 0.6889 | 2400 | 0.0397 | - | - |
417
+ | 0.7176 | 2500 | 0.0394 | 0.0357 | 0.9903 |
418
+ | 0.7463 | 2600 | 0.039 | - | - |
419
+ | 0.7750 | 2700 | 0.0398 | - | - |
420
+ | 0.8037 | 2800 | 0.0394 | - | - |
421
+ | 0.8324 | 2900 | 0.0426 | - | - |
422
+ | 0.8611 | 3000 | 0.0345 | 0.0341 | 0.9921 |
423
+ | 0.8898 | 3100 | 0.0361 | - | - |
424
+ | 0.9185 | 3200 | 0.0365 | - | - |
425
+ | 0.9472 | 3300 | 0.0401 | - | - |
426
+ | 0.9759 | 3400 | 0.0391 | - | - |
427
+ | 1.0046 | 3500 | 0.0342 | 0.0310 | 0.9928 |
428
+ | 1.0333 | 3600 | 0.0267 | - | - |
429
+ | 1.0620 | 3700 | 0.0264 | - | - |
430
+ | 1.0907 | 3800 | 0.0263 | - | - |
431
+ | 1.1194 | 3900 | 0.0248 | - | - |
432
+ | 1.1481 | 4000 | 0.0282 | 0.0301 | 0.9928 |
433
+ | 1.1768 | 4100 | 0.0279 | - | - |
434
+ | 1.2055 | 4200 | 0.0258 | - | - |
435
+ | 1.2342 | 4300 | 0.0248 | - | - |
436
+ | 1.2629 | 4400 | 0.0289 | - | - |
437
+ | 1.2916 | 4500 | 0.0261 | 0.0291 | 0.9935 |
438
+ | 1.3203 | 4600 | 0.0262 | - | - |
439
+ | 1.3490 | 4700 | 0.0276 | - | - |
440
+ | 1.3777 | 4800 | 0.0256 | - | - |
441
+ | 1.4064 | 4900 | 0.0272 | - | - |
442
+ | 1.4351 | 5000 | 0.0283 | 0.0284 | 0.9939 |
443
+ | 1.4638 | 5100 | 0.0254 | - | - |
444
+ | 1.4925 | 5200 | 0.0252 | - | - |
445
+ | 1.5212 | 5300 | 0.0234 | - | - |
446
+ | 1.5499 | 5400 | 0.0228 | - | - |
447
+ | 1.5786 | 5500 | 0.0248 | 0.0277 | 0.9941 |
448
+ | 1.6073 | 5600 | 0.024 | - | - |
449
+ | 1.6361 | 5700 | 0.0225 | - | - |
450
+ | 1.6648 | 5800 | 0.0234 | - | - |
451
+ | 1.6935 | 5900 | 0.0226 | - | - |
452
+ | 1.7222 | 6000 | 0.0248 | 0.0265 | 0.9942 |
453
+ | 1.7509 | 6100 | 0.0247 | - | - |
454
+ | 1.7796 | 6200 | 0.0219 | - | - |
455
+ | 1.8083 | 6300 | 0.026 | - | - |
456
+ | 1.8370 | 6400 | 0.0209 | - | - |
457
+ | 1.8657 | 6500 | 0.0252 | 0.0262 | 0.9945 |
458
+ | 1.8944 | 6600 | 0.0218 | - | - |
459
+ | 1.9231 | 6700 | 0.0223 | - | - |
460
+ | 1.9518 | 6800 | 0.0228 | - | - |
461
+ | 1.9805 | 6900 | 0.0242 | - | - |
462
+ | 2.0 | 6968 | - | 0.0257 | 0.9946 |
463
+
464
+
465
+ ### Framework Versions
466
+ - Python: 3.11.11
467
+ - Sentence Transformers: 4.1.0
468
+ - Transformers: 4.51.3
469
+ - PyTorch: 2.6.0+cu124
470
+ - Accelerate: 1.5.2
471
+ - Datasets: 3.6.0
472
+ - Tokenizers: 0.21.1
473
+
474
+ ## Citation
475
+
476
+ ### BibTeX
477
+
478
+ #### Sentence Transformers
479
+ ```bibtex
480
+ @inproceedings{reimers-2019-sentence-bert,
481
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
482
+ author = "Reimers, Nils and Gurevych, Iryna",
483
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
484
+ month = "11",
485
+ year = "2019",
486
+ publisher = "Association for Computational Linguistics",
487
+ url = "https://arxiv.org/abs/1908.10084",
488
+ }
489
+ ```
490
+
491
+ <!--
492
+ ## Glossary
493
+
494
+ *Clearly define terms in order to be accessible across audiences.*
495
+ -->
496
+
497
+ <!--
498
+ ## Model Card Authors
499
+
500
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
501
+ -->
502
+
503
+ <!--
504
+ ## Model Card Contact
505
+
506
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
507
+ -->
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "directionality": "bidi",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "pooler_fc_size": 768,
21
+ "pooler_num_attention_heads": 12,
22
+ "pooler_num_fc_layers": 3,
23
+ "pooler_size_per_head": 128,
24
+ "pooler_type": "first_token_transform",
25
+ "position_embedding_type": "absolute",
26
+ "torch_dtype": "float32",
27
+ "transformers_version": "4.51.3",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 55083
31
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "4.1.0",
4
+ "transformers": "4.51.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2637b47b58bbabb731a78ac67800dc83f3b31d681fd10490d8e3ae3d08ad7d91
3
+ size 513402728
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
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 512,
51
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff