GozdeA commited on
Commit
0f28b6a
·
verified ·
1 Parent(s): cb8dbd1

v4 two-pass masked kNN

Browse files
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,608 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:11600
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: What are the serving today for Djokovic?
13
+ sentences:
14
+ - serving for Djokovic?
15
+ - last for Djokovic?
16
+ - What is the serving today for Djokovic?
17
+ - source_sentence: What is Alcaraz’s total games won?
18
+ sentences:
19
+ - how many winners?
20
+ - What about Sinner's winning?
21
+ - slam for Djokovic?
22
+ - source_sentence: What's the total time on court for both players?
23
+ sentences:
24
+ - form shift?
25
+ - What about Djokovic's odds?
26
+ - Show me how old
27
+ - source_sentence: Did Nardi beat the US Open at any point?
28
+ sentences:
29
+ - faults for Djokovic?
30
+ - What is the how many winners for Djokovic?
31
+ - Show me how many titles
32
+ - source_sentence: Show me previous game result
33
+ sentences:
34
+ - How is the tactical battle between the player and Amanda Anismova playing out?
35
+ - Show me how many winners
36
+ - what venue
37
+ pipeline_tag: sentence-similarity
38
+ library_name: sentence-transformers
39
+ ---
40
+
41
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
42
+
43
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). 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.
44
+
45
+ ## Model Details
46
+
47
+ ### Model Description
48
+ - **Model Type:** Sentence Transformer
49
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
50
+ - **Maximum Sequence Length:** 256 tokens
51
+ - **Output Dimensionality:** 384 dimensions
52
+ - **Similarity Function:** Cosine Similarity
53
+ <!-- - **Training Dataset:** Unknown -->
54
+ <!-- - **Language:** Unknown -->
55
+ <!-- - **License:** Unknown -->
56
+
57
+ ### Model Sources
58
+
59
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
60
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
61
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
62
+
63
+ ### Full Model Architecture
64
+
65
+ ```
66
+ SentenceTransformer(
67
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
68
+ (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})
69
+ (2): Normalize()
70
+ )
71
+ ```
72
+
73
+ ## Usage
74
+
75
+ ### Direct Usage (Sentence Transformers)
76
+
77
+ First install the Sentence Transformers library:
78
+
79
+ ```bash
80
+ pip install -U sentence-transformers
81
+ ```
82
+
83
+ Then you can load this model and run inference.
84
+ ```python
85
+ from sentence_transformers import SentenceTransformer
86
+
87
+ # Download from the 🤗 Hub
88
+ model = SentenceTransformer("GozdeA/tennis-multi-return-v4")
89
+ # Run inference
90
+ sentences = [
91
+ 'Show me previous game result',
92
+ 'what venue',
93
+ 'How is the tactical battle between the player and Amanda Anismova playing out?',
94
+ ]
95
+ embeddings = model.encode(sentences)
96
+ print(embeddings.shape)
97
+ # [3, 384]
98
+
99
+ # Get the similarity scores for the embeddings
100
+ similarities = model.similarity(embeddings, embeddings)
101
+ print(similarities)
102
+ # tensor([[ 1.0000, 0.6952, -0.0128],
103
+ # [ 0.6952, 1.0000, 0.0505],
104
+ # [-0.0128, 0.0505, 1.0000]])
105
+ ```
106
+
107
+ <!--
108
+ ### Direct Usage (Transformers)
109
+
110
+ <details><summary>Click to see the direct usage in Transformers</summary>
111
+
112
+ </details>
113
+ -->
114
+
115
+ <!--
116
+ ### Downstream Usage (Sentence Transformers)
117
+
118
+ You can finetune this model on your own dataset.
119
+
120
+ <details><summary>Click to expand</summary>
121
+
122
+ </details>
123
+ -->
124
+
125
+ <!--
126
+ ### Out-of-Scope Use
127
+
128
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
129
+ -->
130
+
131
+ <!--
132
+ ## Bias, Risks and Limitations
133
+
134
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
135
+ -->
136
+
137
+ <!--
138
+ ### Recommendations
139
+
140
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
141
+ -->
142
+
143
+ ## Training Details
144
+
145
+ ### Training Dataset
146
+
147
+ #### Unnamed Dataset
148
+
149
+ * Size: 11,600 training samples
150
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
151
+ * Approximate statistics based on the first 1000 samples:
152
+ | | anchor | positive | negative |
153
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
154
+ | type | string | string | string |
155
+ | details | <ul><li>min: 4 tokens</li><li>mean: 10.75 tokens</li><li>max: 26 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.66 tokens</li><li>max: 23 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 10.45 tokens</li><li>max: 23 tokens</li></ul> |
156
+ * Samples:
157
+ | anchor | positive | negative |
158
+ |:---------------------------------------------------|:--------------------------------------------------|:-----------------------------------------------------------------------------|
159
+ | <code>What is the this season for Djokovic?</code> | <code>What's the this season for Djokovic?</code> | <code>What is the attacking this set for Djokovic?</code> |
160
+ | <code>who is projected?</code> | <code>momentum shift?</code> | <code>How does she's path to this round compare to Amanda Anismova's?</code> |
161
+ | <code>What's the sets won for Sinner?</code> | <code>Show me how many winners</code> | <code>What's the last year for Djokovic?</code> |
162
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
163
+ ```json
164
+ {
165
+ "scale": 20.0,
166
+ "similarity_fct": "cos_sim"
167
+ }
168
+ ```
169
+
170
+ ### Evaluation Dataset
171
+
172
+ #### Unnamed Dataset
173
+
174
+ * Size: 2,900 evaluation samples
175
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
176
+ * Approximate statistics based on the first 1000 samples:
177
+ | | anchor | positive | negative |
178
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
179
+ | type | string | string | string |
180
+ | details | <ul><li>min: 4 tokens</li><li>mean: 10.63 tokens</li><li>max: 28 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.64 tokens</li><li>max: 26 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 10.24 tokens</li><li>max: 24 tokens</li></ul> |
181
+ * Samples:
182
+ | anchor | positive | negative |
183
+ |:-------------------------------------------------------|:-------------------------------------------------------|:------------------------------------------------------|
184
+ | <code>What about Djokovic's games?</code> | <code>What's the how many winners for Djokovic?</code> | <code>ranking for the player?</code> |
185
+ | <code>What is the next match for Djokovic?</code> | <code>What are the next match for Djokovic?</code> | <code>What is the pre match for Djokovic?</code> |
186
+ | <code>What are the gaining momentum for Sinner?</code> | <code>What is the gaining momentum for Sinner?</code> | <code>What are the gaining control for Sinner?</code> |
187
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
188
+ ```json
189
+ {
190
+ "scale": 20.0,
191
+ "similarity_fct": "cos_sim"
192
+ }
193
+ ```
194
+
195
+ ### Training Hyperparameters
196
+ #### Non-Default Hyperparameters
197
+
198
+ - `per_device_train_batch_size`: 16
199
+ - `learning_rate`: 2e-05
200
+ - `num_train_epochs`: 15
201
+ - `warmup_ratio`: 0.1
202
+ - `fp16`: True
203
+
204
+ #### All Hyperparameters
205
+ <details><summary>Click to expand</summary>
206
+
207
+ - `overwrite_output_dir`: False
208
+ - `do_predict`: False
209
+ - `eval_strategy`: no
210
+ - `prediction_loss_only`: True
211
+ - `per_device_train_batch_size`: 16
212
+ - `per_device_eval_batch_size`: 8
213
+ - `per_gpu_train_batch_size`: None
214
+ - `per_gpu_eval_batch_size`: None
215
+ - `gradient_accumulation_steps`: 1
216
+ - `eval_accumulation_steps`: None
217
+ - `torch_empty_cache_steps`: None
218
+ - `learning_rate`: 2e-05
219
+ - `weight_decay`: 0.0
220
+ - `adam_beta1`: 0.9
221
+ - `adam_beta2`: 0.999
222
+ - `adam_epsilon`: 1e-08
223
+ - `max_grad_norm`: 1.0
224
+ - `num_train_epochs`: 15
225
+ - `max_steps`: -1
226
+ - `lr_scheduler_type`: linear
227
+ - `lr_scheduler_kwargs`: None
228
+ - `warmup_ratio`: 0.1
229
+ - `warmup_steps`: 0
230
+ - `log_level`: passive
231
+ - `log_level_replica`: warning
232
+ - `log_on_each_node`: True
233
+ - `logging_nan_inf_filter`: True
234
+ - `save_safetensors`: True
235
+ - `save_on_each_node`: False
236
+ - `save_only_model`: False
237
+ - `restore_callback_states_from_checkpoint`: False
238
+ - `no_cuda`: False
239
+ - `use_cpu`: False
240
+ - `use_mps_device`: False
241
+ - `seed`: 42
242
+ - `data_seed`: None
243
+ - `jit_mode_eval`: False
244
+ - `bf16`: False
245
+ - `fp16`: True
246
+ - `fp16_opt_level`: O1
247
+ - `half_precision_backend`: auto
248
+ - `bf16_full_eval`: False
249
+ - `fp16_full_eval`: False
250
+ - `tf32`: None
251
+ - `local_rank`: 0
252
+ - `ddp_backend`: None
253
+ - `tpu_num_cores`: None
254
+ - `tpu_metrics_debug`: False
255
+ - `debug`: []
256
+ - `dataloader_drop_last`: False
257
+ - `dataloader_num_workers`: 0
258
+ - `dataloader_prefetch_factor`: None
259
+ - `past_index`: -1
260
+ - `disable_tqdm`: False
261
+ - `remove_unused_columns`: True
262
+ - `label_names`: None
263
+ - `load_best_model_at_end`: False
264
+ - `ignore_data_skip`: False
265
+ - `fsdp`: []
266
+ - `fsdp_min_num_params`: 0
267
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
268
+ - `fsdp_transformer_layer_cls_to_wrap`: None
269
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
270
+ - `parallelism_config`: None
271
+ - `deepspeed`: None
272
+ - `label_smoothing_factor`: 0.0
273
+ - `optim`: adamw_torch_fused
274
+ - `optim_args`: None
275
+ - `adafactor`: False
276
+ - `group_by_length`: False
277
+ - `length_column_name`: length
278
+ - `project`: huggingface
279
+ - `trackio_space_id`: trackio
280
+ - `ddp_find_unused_parameters`: None
281
+ - `ddp_bucket_cap_mb`: None
282
+ - `ddp_broadcast_buffers`: False
283
+ - `dataloader_pin_memory`: True
284
+ - `dataloader_persistent_workers`: False
285
+ - `skip_memory_metrics`: True
286
+ - `use_legacy_prediction_loop`: False
287
+ - `push_to_hub`: False
288
+ - `resume_from_checkpoint`: None
289
+ - `hub_model_id`: None
290
+ - `hub_strategy`: every_save
291
+ - `hub_private_repo`: None
292
+ - `hub_always_push`: False
293
+ - `hub_revision`: None
294
+ - `gradient_checkpointing`: False
295
+ - `gradient_checkpointing_kwargs`: None
296
+ - `include_inputs_for_metrics`: False
297
+ - `include_for_metrics`: []
298
+ - `eval_do_concat_batches`: True
299
+ - `fp16_backend`: auto
300
+ - `push_to_hub_model_id`: None
301
+ - `push_to_hub_organization`: None
302
+ - `mp_parameters`:
303
+ - `auto_find_batch_size`: False
304
+ - `full_determinism`: False
305
+ - `torchdynamo`: None
306
+ - `ray_scope`: last
307
+ - `ddp_timeout`: 1800
308
+ - `torch_compile`: False
309
+ - `torch_compile_backend`: None
310
+ - `torch_compile_mode`: None
311
+ - `include_tokens_per_second`: False
312
+ - `include_num_input_tokens_seen`: no
313
+ - `neftune_noise_alpha`: None
314
+ - `optim_target_modules`: None
315
+ - `batch_eval_metrics`: False
316
+ - `eval_on_start`: False
317
+ - `use_liger_kernel`: False
318
+ - `liger_kernel_config`: None
319
+ - `eval_use_gather_object`: False
320
+ - `average_tokens_across_devices`: True
321
+ - `prompts`: None
322
+ - `batch_sampler`: batch_sampler
323
+ - `multi_dataset_batch_sampler`: proportional
324
+ - `router_mapping`: {}
325
+ - `learning_rate_mapping`: {}
326
+
327
+ </details>
328
+
329
+ ### Training Logs
330
+ <details><summary>Click to expand</summary>
331
+
332
+ | Epoch | Step | Training Loss |
333
+ |:-------:|:-----:|:-------------:|
334
+ | 0.0690 | 50 | 5.1095 |
335
+ | 0.1379 | 100 | 3.9909 |
336
+ | 0.2069 | 150 | 3.1963 |
337
+ | 0.2759 | 200 | 2.3301 |
338
+ | 0.3448 | 250 | 1.9904 |
339
+ | 0.4138 | 300 | 1.6705 |
340
+ | 0.4828 | 350 | 1.5659 |
341
+ | 0.5517 | 400 | 1.5497 |
342
+ | 0.6207 | 450 | 1.3563 |
343
+ | 0.6897 | 500 | 1.2982 |
344
+ | 0.7586 | 550 | 1.2509 |
345
+ | 0.8276 | 600 | 1.1737 |
346
+ | 0.8966 | 650 | 1.1486 |
347
+ | 0.9655 | 700 | 1.192 |
348
+ | 1.0345 | 750 | 0.9715 |
349
+ | 1.1034 | 800 | 1.0054 |
350
+ | 1.1724 | 850 | 1.0102 |
351
+ | 1.2414 | 900 | 0.9393 |
352
+ | 1.3103 | 950 | 0.9119 |
353
+ | 1.3793 | 1000 | 0.8589 |
354
+ | 1.4483 | 1050 | 0.9049 |
355
+ | 1.5172 | 1100 | 0.8774 |
356
+ | 1.5862 | 1150 | 0.8488 |
357
+ | 1.6552 | 1200 | 0.8382 |
358
+ | 1.7241 | 1250 | 0.7437 |
359
+ | 1.7931 | 1300 | 0.8023 |
360
+ | 1.8621 | 1350 | 0.7775 |
361
+ | 1.9310 | 1400 | 0.7756 |
362
+ | 2.0 | 1450 | 0.7273 |
363
+ | 2.0690 | 1500 | 0.6275 |
364
+ | 2.1379 | 1550 | 0.7331 |
365
+ | 2.2069 | 1600 | 0.629 |
366
+ | 2.2759 | 1650 | 0.7127 |
367
+ | 2.3448 | 1700 | 0.6503 |
368
+ | 2.4138 | 1750 | 0.7082 |
369
+ | 2.4828 | 1800 | 0.6939 |
370
+ | 2.5517 | 1850 | 0.6993 |
371
+ | 2.6207 | 1900 | 0.7067 |
372
+ | 2.6897 | 1950 | 0.6622 |
373
+ | 2.7586 | 2000 | 0.6499 |
374
+ | 2.8276 | 2050 | 0.6923 |
375
+ | 2.8966 | 2100 | 0.6208 |
376
+ | 2.9655 | 2150 | 0.5925 |
377
+ | 3.0345 | 2200 | 0.6697 |
378
+ | 3.1034 | 2250 | 0.6458 |
379
+ | 3.1724 | 2300 | 0.5709 |
380
+ | 3.2414 | 2350 | 0.5987 |
381
+ | 3.3103 | 2400 | 0.6252 |
382
+ | 3.3793 | 2450 | 0.6377 |
383
+ | 3.4483 | 2500 | 0.5739 |
384
+ | 3.5172 | 2550 | 0.6281 |
385
+ | 3.5862 | 2600 | 0.6186 |
386
+ | 3.6552 | 2650 | 0.5828 |
387
+ | 3.7241 | 2700 | 0.678 |
388
+ | 3.7931 | 2750 | 0.6257 |
389
+ | 3.8621 | 2800 | 0.5704 |
390
+ | 3.9310 | 2850 | 0.6151 |
391
+ | 4.0 | 2900 | 0.5898 |
392
+ | 4.0690 | 2950 | 0.5277 |
393
+ | 4.1379 | 3000 | 0.6128 |
394
+ | 4.2069 | 3050 | 0.6306 |
395
+ | 4.2759 | 3100 | 0.5739 |
396
+ | 4.3448 | 3150 | 0.5396 |
397
+ | 4.4138 | 3200 | 0.617 |
398
+ | 4.4828 | 3250 | 0.5119 |
399
+ | 4.5517 | 3300 | 0.6136 |
400
+ | 4.6207 | 3350 | 0.6303 |
401
+ | 4.6897 | 3400 | 0.6138 |
402
+ | 4.7586 | 3450 | 0.6214 |
403
+ | 4.8276 | 3500 | 0.5686 |
404
+ | 4.8966 | 3550 | 0.5901 |
405
+ | 4.9655 | 3600 | 0.6913 |
406
+ | 5.0345 | 3650 | 0.5706 |
407
+ | 5.1034 | 3700 | 0.6082 |
408
+ | 5.1724 | 3750 | 0.4755 |
409
+ | 5.2414 | 3800 | 0.5777 |
410
+ | 5.3103 | 3850 | 0.5515 |
411
+ | 5.3793 | 3900 | 0.5271 |
412
+ | 5.4483 | 3950 | 0.5816 |
413
+ | 5.5172 | 4000 | 0.5787 |
414
+ | 5.5862 | 4050 | 0.568 |
415
+ | 5.6552 | 4100 | 0.5593 |
416
+ | 5.7241 | 4150 | 0.542 |
417
+ | 5.7931 | 4200 | 0.5873 |
418
+ | 5.8621 | 4250 | 0.5647 |
419
+ | 5.9310 | 4300 | 0.6369 |
420
+ | 6.0 | 4350 | 0.5775 |
421
+ | 6.0690 | 4400 | 0.5324 |
422
+ | 6.1379 | 4450 | 0.5463 |
423
+ | 6.2069 | 4500 | 0.5234 |
424
+ | 6.2759 | 4550 | 0.4921 |
425
+ | 6.3448 | 4600 | 0.5716 |
426
+ | 6.4138 | 4650 | 0.6321 |
427
+ | 6.4828 | 4700 | 0.4881 |
428
+ | 6.5517 | 4750 | 0.5717 |
429
+ | 6.6207 | 4800 | 0.5922 |
430
+ | 6.6897 | 4850 | 0.5289 |
431
+ | 6.7586 | 4900 | 0.5182 |
432
+ | 6.8276 | 4950 | 0.5096 |
433
+ | 6.8966 | 5000 | 0.6062 |
434
+ | 6.9655 | 5050 | 0.6014 |
435
+ | 7.0345 | 5100 | 0.5033 |
436
+ | 7.1034 | 5150 | 0.4994 |
437
+ | 7.1724 | 5200 | 0.5842 |
438
+ | 7.2414 | 5250 | 0.5317 |
439
+ | 7.3103 | 5300 | 0.5112 |
440
+ | 7.3793 | 5350 | 0.5188 |
441
+ | 7.4483 | 5400 | 0.6174 |
442
+ | 7.5172 | 5450 | 0.484 |
443
+ | 7.5862 | 5500 | 0.5571 |
444
+ | 7.6552 | 5550 | 0.5043 |
445
+ | 7.7241 | 5600 | 0.5341 |
446
+ | 7.7931 | 5650 | 0.5225 |
447
+ | 7.8621 | 5700 | 0.5618 |
448
+ | 7.9310 | 5750 | 0.5537 |
449
+ | 8.0 | 5800 | 0.5811 |
450
+ | 8.0690 | 5850 | 0.5311 |
451
+ | 8.1379 | 5900 | 0.5585 |
452
+ | 8.2069 | 5950 | 0.5564 |
453
+ | 8.2759 | 6000 | 0.5469 |
454
+ | 8.3448 | 6050 | 0.5726 |
455
+ | 8.4138 | 6100 | 0.5329 |
456
+ | 8.4828 | 6150 | 0.55 |
457
+ | 8.5517 | 6200 | 0.5365 |
458
+ | 8.6207 | 6250 | 0.5847 |
459
+ | 8.6897 | 6300 | 0.5204 |
460
+ | 8.7586 | 6350 | 0.5112 |
461
+ | 8.8276 | 6400 | 0.5468 |
462
+ | 8.8966 | 6450 | 0.4871 |
463
+ | 8.9655 | 6500 | 0.5449 |
464
+ | 9.0345 | 6550 | 0.5237 |
465
+ | 9.1034 | 6600 | 0.5232 |
466
+ | 9.1724 | 6650 | 0.5075 |
467
+ | 9.2414 | 6700 | 0.5078 |
468
+ | 9.3103 | 6750 | 0.5366 |
469
+ | 9.3793 | 6800 | 0.5636 |
470
+ | 9.4483 | 6850 | 0.4743 |
471
+ | 9.5172 | 6900 | 0.4776 |
472
+ | 9.5862 | 6950 | 0.5571 |
473
+ | 9.6552 | 7000 | 0.56 |
474
+ | 9.7241 | 7050 | 0.5054 |
475
+ | 9.7931 | 7100 | 0.5431 |
476
+ | 9.8621 | 7150 | 0.5358 |
477
+ | 9.9310 | 7200 | 0.5395 |
478
+ | 10.0 | 7250 | 0.5394 |
479
+ | 10.0690 | 7300 | 0.57 |
480
+ | 10.1379 | 7350 | 0.4883 |
481
+ | 10.2069 | 7400 | 0.4884 |
482
+ | 10.2759 | 7450 | 0.4587 |
483
+ | 10.3448 | 7500 | 0.5076 |
484
+ | 10.4138 | 7550 | 0.5108 |
485
+ | 10.4828 | 7600 | 0.565 |
486
+ | 10.5517 | 7650 | 0.503 |
487
+ | 10.6207 | 7700 | 0.5645 |
488
+ | 10.6897 | 7750 | 0.509 |
489
+ | 10.7586 | 7800 | 0.4993 |
490
+ | 10.8276 | 7850 | 0.5464 |
491
+ | 10.8966 | 7900 | 0.5293 |
492
+ | 10.9655 | 7950 | 0.5384 |
493
+ | 11.0345 | 8000 | 0.5245 |
494
+ | 11.1034 | 8050 | 0.4647 |
495
+ | 11.1724 | 8100 | 0.4983 |
496
+ | 11.2414 | 8150 | 0.5168 |
497
+ | 11.3103 | 8200 | 0.5455 |
498
+ | 11.3793 | 8250 | 0.5069 |
499
+ | 11.4483 | 8300 | 0.5523 |
500
+ | 11.5172 | 8350 | 0.4875 |
501
+ | 11.5862 | 8400 | 0.4947 |
502
+ | 11.6552 | 8450 | 0.5022 |
503
+ | 11.7241 | 8500 | 0.5096 |
504
+ | 11.7931 | 8550 | 0.5768 |
505
+ | 11.8621 | 8600 | 0.5187 |
506
+ | 11.9310 | 8650 | 0.4883 |
507
+ | 12.0 | 8700 | 0.5039 |
508
+ | 12.0690 | 8750 | 0.527 |
509
+ | 12.1379 | 8800 | 0.5382 |
510
+ | 12.2069 | 8850 | 0.4912 |
511
+ | 12.2759 | 8900 | 0.5144 |
512
+ | 12.3448 | 8950 | 0.532 |
513
+ | 12.4138 | 9000 | 0.5233 |
514
+ | 12.4828 | 9050 | 0.4169 |
515
+ | 12.5517 | 9100 | 0.5278 |
516
+ | 12.6207 | 9150 | 0.5028 |
517
+ | 12.6897 | 9200 | 0.5227 |
518
+ | 12.7586 | 9250 | 0.4812 |
519
+ | 12.8276 | 9300 | 0.5299 |
520
+ | 12.8966 | 9350 | 0.5383 |
521
+ | 12.9655 | 9400 | 0.5245 |
522
+ | 13.0345 | 9450 | 0.5045 |
523
+ | 13.1034 | 9500 | 0.5619 |
524
+ | 13.1724 | 9550 | 0.4969 |
525
+ | 13.2414 | 9600 | 0.508 |
526
+ | 13.3103 | 9650 | 0.5095 |
527
+ | 13.3793 | 9700 | 0.5095 |
528
+ | 13.4483 | 9750 | 0.4886 |
529
+ | 13.5172 | 9800 | 0.5074 |
530
+ | 13.5862 | 9850 | 0.4761 |
531
+ | 13.6552 | 9900 | 0.4805 |
532
+ | 13.7241 | 9950 | 0.4559 |
533
+ | 13.7931 | 10000 | 0.5212 |
534
+ | 13.8621 | 10050 | 0.506 |
535
+ | 13.9310 | 10100 | 0.5086 |
536
+ | 14.0 | 10150 | 0.5232 |
537
+ | 14.0690 | 10200 | 0.5156 |
538
+ | 14.1379 | 10250 | 0.495 |
539
+ | 14.2069 | 10300 | 0.5226 |
540
+ | 14.2759 | 10350 | 0.4842 |
541
+ | 14.3448 | 10400 | 0.4514 |
542
+ | 14.4138 | 10450 | 0.4902 |
543
+ | 14.4828 | 10500 | 0.5068 |
544
+ | 14.5517 | 10550 | 0.5784 |
545
+ | 14.6207 | 10600 | 0.5646 |
546
+ | 14.6897 | 10650 | 0.4994 |
547
+ | 14.7586 | 10700 | 0.552 |
548
+ | 14.8276 | 10750 | 0.5216 |
549
+ | 14.8966 | 10800 | 0.5506 |
550
+ | 14.9655 | 10850 | 0.4286 |
551
+
552
+ </details>
553
+
554
+ ### Framework Versions
555
+ - Python: 3.12.12
556
+ - Sentence Transformers: 5.0.0
557
+ - Transformers: 4.57.6
558
+ - PyTorch: 2.10.0+cu128
559
+ - Accelerate: 1.13.0
560
+ - Datasets: 4.0.0
561
+ - Tokenizers: 0.22.2
562
+
563
+ ## Citation
564
+
565
+ ### BibTeX
566
+
567
+ #### Sentence Transformers
568
+ ```bibtex
569
+ @inproceedings{reimers-2019-sentence-bert,
570
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
571
+ author = "Reimers, Nils and Gurevych, Iryna",
572
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
573
+ month = "11",
574
+ year = "2019",
575
+ publisher = "Association for Computational Linguistics",
576
+ url = "https://arxiv.org/abs/1908.10084",
577
+ }
578
+ ```
579
+
580
+ #### MultipleNegativesRankingLoss
581
+ ```bibtex
582
+ @misc{henderson2017efficient,
583
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
584
+ 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},
585
+ year={2017},
586
+ eprint={1705.00652},
587
+ archivePrefix={arXiv},
588
+ primaryClass={cs.CL}
589
+ }
590
+ ```
591
+
592
+ <!--
593
+ ## Glossary
594
+
595
+ *Clearly define terms in order to be accessible across audiences.*
596
+ -->
597
+
598
+ <!--
599
+ ## Model Card Authors
600
+
601
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
602
+ -->
603
+
604
+ <!--
605
+ ## Model Card Contact
606
+
607
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
608
+ -->
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
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "transformers_version": "4.57.6",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.0.0",
4
+ "transformers": "4.57.6",
5
+ "pytorch": "2.10.0+cu128"
6
+ },
7
+ "model_type": "SentenceTransformer",
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:c9de14d88a88d33416cc45cd99cf263e917d3587407b92dbbee20036a61bc465
3
+ size 90864192
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
+ }
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
+ "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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 128,
51
+ "model_max_length": 256,
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