ayberkuckun commited on
Commit
470a353
1 Parent(s): 7ec3c75

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": 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,526 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ library_name: sentence-transformers
6
+ tags:
7
+ - sentence-transformers
8
+ - sentence-similarity
9
+ - feature-extraction
10
+ - dataset_size:100K<n<1M
11
+ - loss:MultipleNegativesRankingLoss
12
+ base_model: microsoft/mpnet-base
13
+ metrics:
14
+ - cosine_accuracy
15
+ - dot_accuracy
16
+ - manhattan_accuracy
17
+ - euclidean_accuracy
18
+ - max_accuracy
19
+ widget:
20
+ - source_sentence: The truth?
21
+ sentences:
22
+ - Is that true?
23
+ - Some kids are napping.
24
+ - A dog is taking a nap.
25
+ - source_sentence: Just a bike
26
+ sentences:
27
+ - A child is riding a bike.
28
+ - A man is wearing white.
29
+ - A man is sleeping.
30
+ - source_sentence: girl sleeps
31
+ sentences:
32
+ - A girl sleeps
33
+ - That doesn't seem fair.
34
+ - A man is running a race
35
+ - source_sentence: Double pig.
36
+ sentences:
37
+ - The pig tripled.
38
+ - I hated talking to you.
39
+ - a woman is sleeping
40
+ - source_sentence: a dog sleeps
41
+ sentences:
42
+ - a dog sleep under a tree.
43
+ - Tommy didn't know, who.
44
+ - A man is on a canoe.
45
+ pipeline_tag: sentence-similarity
46
+ model-index:
47
+ - name: MPNet base trained on AllNLI triplets
48
+ results:
49
+ - task:
50
+ type: triplet
51
+ name: Triplet
52
+ dataset:
53
+ name: all nli dev
54
+ type: all-nli-dev
55
+ metrics:
56
+ - type: cosine_accuracy
57
+ value: 0.917831105710814
58
+ name: Cosine Accuracy
59
+ - type: dot_accuracy
60
+ value: 0.07867557715674361
61
+ name: Dot Accuracy
62
+ - type: manhattan_accuracy
63
+ value: 0.9138821385176185
64
+ name: Manhattan Accuracy
65
+ - type: euclidean_accuracy
66
+ value: 0.9147934386391251
67
+ name: Euclidean Accuracy
68
+ - type: max_accuracy
69
+ value: 0.917831105710814
70
+ name: Max Accuracy
71
+ - task:
72
+ type: triplet
73
+ name: Triplet
74
+ dataset:
75
+ name: all nli test
76
+ type: all-nli-test
77
+ metrics:
78
+ - type: cosine_accuracy
79
+ value: 0.9276743834165532
80
+ name: Cosine Accuracy
81
+ - type: dot_accuracy
82
+ value: 0.06733242548040551
83
+ name: Dot Accuracy
84
+ - type: manhattan_accuracy
85
+ value: 0.9255560599182933
86
+ name: Manhattan Accuracy
87
+ - type: euclidean_accuracy
88
+ value: 0.9234377364200332
89
+ name: Euclidean Accuracy
90
+ - type: max_accuracy
91
+ value: 0.9276743834165532
92
+ name: Max Accuracy
93
+ ---
94
+
95
+ # MPNet base trained on AllNLI triplets
96
+
97
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) on the [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) 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.
98
+
99
+ ## Model Details
100
+
101
+ ### Model Description
102
+ - **Model Type:** Sentence Transformer
103
+ - **Base model:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) <!-- at revision 6996ce1e91bd2a9c7d7f61daec37463394f73f09 -->
104
+ - **Maximum Sequence Length:** 512 tokens
105
+ - **Output Dimensionality:** 768 tokens
106
+ - **Similarity Function:** Cosine Similarity
107
+ - **Training Dataset:**
108
+ - [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli)
109
+ - **Language:** en
110
+ - **License:** apache-2.0
111
+
112
+ ### Model Sources
113
+
114
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
115
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
116
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
117
+
118
+ ### Full Model Architecture
119
+
120
+ ```
121
+ SentenceTransformer(
122
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
123
+ (1): Pooling({'word_embedding_dimension': 768, '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})
124
+ )
125
+ ```
126
+
127
+ ## Usage
128
+
129
+ ### Direct Usage (Sentence Transformers)
130
+
131
+ First install the Sentence Transformers library:
132
+
133
+ ```bash
134
+ pip install -U sentence-transformers
135
+ ```
136
+
137
+ Then you can load this model and run inference.
138
+ ```python
139
+ from sentence_transformers import SentenceTransformer
140
+
141
+ # Download from the 🤗 Hub
142
+ model = SentenceTransformer("ayberkuckun/mpnet-base-all-nli-triplet")
143
+ # Run inference
144
+ sentences = [
145
+ 'a dog sleeps',
146
+ 'a dog sleep under a tree.',
147
+ "Tommy didn't know, who.",
148
+ ]
149
+ embeddings = model.encode(sentences)
150
+ print(embeddings.shape)
151
+ # [3, 768]
152
+
153
+ # Get the similarity scores for the embeddings
154
+ similarities = model.similarity(embeddings, embeddings)
155
+ print(similarities.shape)
156
+ # [3, 3]
157
+ ```
158
+
159
+ <!--
160
+ ### Direct Usage (Transformers)
161
+
162
+ <details><summary>Click to see the direct usage in Transformers</summary>
163
+
164
+ </details>
165
+ -->
166
+
167
+ <!--
168
+ ### Downstream Usage (Sentence Transformers)
169
+
170
+ You can finetune this model on your own dataset.
171
+
172
+ <details><summary>Click to expand</summary>
173
+
174
+ </details>
175
+ -->
176
+
177
+ <!--
178
+ ### Out-of-Scope Use
179
+
180
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
181
+ -->
182
+
183
+ ## Evaluation
184
+
185
+ ### Metrics
186
+
187
+ #### Triplet
188
+ * Dataset: `all-nli-dev`
189
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
190
+
191
+ | Metric | Value |
192
+ |:-------------------|:-----------|
193
+ | cosine_accuracy | 0.9178 |
194
+ | dot_accuracy | 0.0787 |
195
+ | manhattan_accuracy | 0.9139 |
196
+ | euclidean_accuracy | 0.9148 |
197
+ | **max_accuracy** | **0.9178** |
198
+
199
+ #### Triplet
200
+ * Dataset: `all-nli-test`
201
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
202
+
203
+ | Metric | Value |
204
+ |:-------------------|:-----------|
205
+ | cosine_accuracy | 0.9277 |
206
+ | dot_accuracy | 0.0673 |
207
+ | manhattan_accuracy | 0.9256 |
208
+ | euclidean_accuracy | 0.9234 |
209
+ | **max_accuracy** | **0.9277** |
210
+
211
+ <!--
212
+ ## Bias, Risks and Limitations
213
+
214
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
215
+ -->
216
+
217
+ <!--
218
+ ### Recommendations
219
+
220
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
221
+ -->
222
+
223
+ ## Training Details
224
+
225
+ ### Training Dataset
226
+
227
+ #### sentence-transformers/all-nli
228
+
229
+ * Dataset: [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
230
+ * Size: 100,000 training samples
231
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
232
+ * Approximate statistics based on the first 1000 samples:
233
+ | | anchor | positive | negative |
234
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
235
+ | type | string | string | string |
236
+ | details | <ul><li>min: 7 tokens</li><li>mean: 10.46 tokens</li><li>max: 46 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 12.81 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 13.4 tokens</li><li>max: 50 tokens</li></ul> |
237
+ * Samples:
238
+ | anchor | positive | negative |
239
+ |:---------------------------------------------------------------------------|:-------------------------------------------------|:-----------------------------------------------------------|
240
+ | <code>A person on a horse jumps over a broken down airplane.</code> | <code>A person is outdoors, on a horse.</code> | <code>A person is at a diner, ordering an omelette.</code> |
241
+ | <code>Children smiling and waving at camera</code> | <code>There are children present</code> | <code>The kids are frowning</code> |
242
+ | <code>A boy is jumping on skateboard in the middle of a red bridge.</code> | <code>The boy does a skateboarding trick.</code> | <code>The boy skates down the sidewalk.</code> |
243
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
244
+ ```json
245
+ {
246
+ "scale": 20.0,
247
+ "similarity_fct": "cos_sim"
248
+ }
249
+ ```
250
+
251
+ ### Evaluation Dataset
252
+
253
+ #### sentence-transformers/all-nli
254
+
255
+ * Dataset: [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
256
+ * Size: 6,584 evaluation samples
257
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
258
+ * Approximate statistics based on the first 1000 samples:
259
+ | | anchor | positive | negative |
260
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
261
+ | type | string | string | string |
262
+ | details | <ul><li>min: 6 tokens</li><li>mean: 17.95 tokens</li><li>max: 63 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 9.78 tokens</li><li>max: 29 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 10.35 tokens</li><li>max: 29 tokens</li></ul> |
263
+ * Samples:
264
+ | anchor | positive | negative |
265
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:--------------------------------------------------------|
266
+ | <code>Two women are embracing while holding to go packages.</code> | <code>Two woman are holding packages.</code> | <code>The men are fighting outside a deli.</code> |
267
+ | <code>Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.</code> | <code>Two kids in numbered jerseys wash their hands.</code> | <code>Two kids in jackets walk to school.</code> |
268
+ | <code>A man selling donuts to a customer during a world exhibition event held in the city of Angeles</code> | <code>A man selling donuts to a customer.</code> | <code>A woman drinks her coffee in a small cafe.</code> |
269
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
270
+ ```json
271
+ {
272
+ "scale": 20.0,
273
+ "similarity_fct": "cos_sim"
274
+ }
275
+ ```
276
+
277
+ ### Training Hyperparameters
278
+ #### Non-Default Hyperparameters
279
+
280
+ - `eval_strategy`: steps
281
+ - `per_device_train_batch_size`: 16
282
+ - `per_device_eval_batch_size`: 16
283
+ - `learning_rate`: 2e-05
284
+ - `num_train_epochs`: 1
285
+ - `warmup_ratio`: 0.1
286
+ - `fp16`: True
287
+ - `batch_sampler`: no_duplicates
288
+
289
+ #### All Hyperparameters
290
+ <details><summary>Click to expand</summary>
291
+
292
+ - `overwrite_output_dir`: False
293
+ - `do_predict`: False
294
+ - `eval_strategy`: steps
295
+ - `prediction_loss_only`: True
296
+ - `per_device_train_batch_size`: 16
297
+ - `per_device_eval_batch_size`: 16
298
+ - `per_gpu_train_batch_size`: None
299
+ - `per_gpu_eval_batch_size`: None
300
+ - `gradient_accumulation_steps`: 1
301
+ - `eval_accumulation_steps`: None
302
+ - `learning_rate`: 2e-05
303
+ - `weight_decay`: 0.0
304
+ - `adam_beta1`: 0.9
305
+ - `adam_beta2`: 0.999
306
+ - `adam_epsilon`: 1e-08
307
+ - `max_grad_norm`: 1.0
308
+ - `num_train_epochs`: 1
309
+ - `max_steps`: -1
310
+ - `lr_scheduler_type`: linear
311
+ - `lr_scheduler_kwargs`: {}
312
+ - `warmup_ratio`: 0.1
313
+ - `warmup_steps`: 0
314
+ - `log_level`: passive
315
+ - `log_level_replica`: warning
316
+ - `log_on_each_node`: True
317
+ - `logging_nan_inf_filter`: True
318
+ - `save_safetensors`: True
319
+ - `save_on_each_node`: False
320
+ - `save_only_model`: False
321
+ - `restore_callback_states_from_checkpoint`: False
322
+ - `no_cuda`: False
323
+ - `use_cpu`: False
324
+ - `use_mps_device`: False
325
+ - `seed`: 42
326
+ - `data_seed`: None
327
+ - `jit_mode_eval`: False
328
+ - `use_ipex`: False
329
+ - `bf16`: False
330
+ - `fp16`: True
331
+ - `fp16_opt_level`: O1
332
+ - `half_precision_backend`: auto
333
+ - `bf16_full_eval`: False
334
+ - `fp16_full_eval`: False
335
+ - `tf32`: None
336
+ - `local_rank`: 0
337
+ - `ddp_backend`: None
338
+ - `tpu_num_cores`: None
339
+ - `tpu_metrics_debug`: False
340
+ - `debug`: []
341
+ - `dataloader_drop_last`: False
342
+ - `dataloader_num_workers`: 0
343
+ - `dataloader_prefetch_factor`: None
344
+ - `past_index`: -1
345
+ - `disable_tqdm`: False
346
+ - `remove_unused_columns`: True
347
+ - `label_names`: None
348
+ - `load_best_model_at_end`: False
349
+ - `ignore_data_skip`: False
350
+ - `fsdp`: []
351
+ - `fsdp_min_num_params`: 0
352
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
353
+ - `fsdp_transformer_layer_cls_to_wrap`: None
354
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
355
+ - `deepspeed`: None
356
+ - `label_smoothing_factor`: 0.0
357
+ - `optim`: adamw_torch
358
+ - `optim_args`: None
359
+ - `adafactor`: False
360
+ - `group_by_length`: False
361
+ - `length_column_name`: length
362
+ - `ddp_find_unused_parameters`: None
363
+ - `ddp_bucket_cap_mb`: None
364
+ - `ddp_broadcast_buffers`: False
365
+ - `dataloader_pin_memory`: True
366
+ - `dataloader_persistent_workers`: False
367
+ - `skip_memory_metrics`: True
368
+ - `use_legacy_prediction_loop`: False
369
+ - `push_to_hub`: False
370
+ - `resume_from_checkpoint`: None
371
+ - `hub_model_id`: None
372
+ - `hub_strategy`: every_save
373
+ - `hub_private_repo`: False
374
+ - `hub_always_push`: False
375
+ - `gradient_checkpointing`: False
376
+ - `gradient_checkpointing_kwargs`: None
377
+ - `include_inputs_for_metrics`: False
378
+ - `eval_do_concat_batches`: True
379
+ - `fp16_backend`: auto
380
+ - `push_to_hub_model_id`: None
381
+ - `push_to_hub_organization`: None
382
+ - `mp_parameters`:
383
+ - `auto_find_batch_size`: False
384
+ - `full_determinism`: False
385
+ - `torchdynamo`: None
386
+ - `ray_scope`: last
387
+ - `ddp_timeout`: 1800
388
+ - `torch_compile`: False
389
+ - `torch_compile_backend`: None
390
+ - `torch_compile_mode`: None
391
+ - `dispatch_batches`: None
392
+ - `split_batches`: None
393
+ - `include_tokens_per_second`: False
394
+ - `include_num_input_tokens_seen`: False
395
+ - `neftune_noise_alpha`: None
396
+ - `optim_target_modules`: None
397
+ - `batch_eval_metrics`: False
398
+ - `batch_sampler`: no_duplicates
399
+ - `multi_dataset_batch_sampler`: proportional
400
+
401
+ </details>
402
+
403
+ ### Training Logs
404
+ | Epoch | Step | Training Loss | loss | all-nli-dev_max_accuracy | all-nli-test_max_accuracy |
405
+ |:-----:|:----:|:-------------:|:------:|:------------------------:|:-------------------------:|
406
+ | 0 | 0 | - | - | 0.6832 | - |
407
+ | 0.016 | 100 | 3.1461 | 1.6989 | 0.7708 | - |
408
+ | 0.032 | 200 | 1.3308 | 0.9213 | 0.8010 | - |
409
+ | 0.048 | 300 | 1.4333 | 0.8036 | 0.8117 | - |
410
+ | 0.064 | 400 | 0.8862 | 0.7591 | 0.8132 | - |
411
+ | 0.08 | 500 | 0.8292 | 0.8372 | 0.8045 | - |
412
+ | 0.096 | 600 | 1.0852 | 0.8512 | 0.8018 | - |
413
+ | 0.112 | 700 | 0.9157 | 0.8736 | 0.8118 | - |
414
+ | 0.128 | 800 | 1.0996 | 0.9799 | 0.7924 | - |
415
+ | 0.144 | 900 | 1.1212 | 0.9036 | 0.8171 | - |
416
+ | 0.16 | 1000 | 1.0296 | 0.8890 | 0.7922 | - |
417
+ | 0.176 | 1100 | 1.1005 | 1.0113 | 0.7922 | - |
418
+ | 0.192 | 1200 | 1.03 | 0.8993 | 0.8068 | - |
419
+ | 0.208 | 1300 | 0.824 | 0.8918 | 0.7966 | - |
420
+ | 0.224 | 1400 | 0.7829 | 0.8369 | 0.8070 | - |
421
+ | 0.24 | 1500 | 0.8878 | 0.7897 | 0.8098 | - |
422
+ | 0.256 | 1600 | 0.7346 | 0.8386 | 0.8127 | - |
423
+ | 0.272 | 1700 | 0.892 | 0.9013 | 0.8092 | - |
424
+ | 0.288 | 1800 | 0.8553 | 0.8347 | 0.8130 | - |
425
+ | 0.304 | 1900 | 0.8208 | 0.8359 | 0.8150 | - |
426
+ | 0.32 | 2000 | 0.737 | 0.7469 | 0.8636 | - |
427
+ | 0.336 | 2100 | 0.6301 | 0.7850 | 0.8442 | - |
428
+ | 0.352 | 2200 | 0.662 | 0.6924 | 0.8648 | - |
429
+ | 0.368 | 2300 | 0.8195 | 0.7686 | 0.8509 | - |
430
+ | 0.384 | 2400 | 0.7525 | 0.7049 | 0.8603 | - |
431
+ | 0.4 | 2500 | 0.6834 | 0.7109 | 0.8618 | - |
432
+ | 0.416 | 2600 | 0.5977 | 0.6715 | 0.8589 | - |
433
+ | 0.432 | 2700 | 0.8432 | 0.7482 | 0.8597 | - |
434
+ | 0.448 | 2800 | 0.8676 | 0.6765 | 0.8575 | - |
435
+ | 0.464 | 2900 | 0.8342 | 0.6336 | 0.8773 | - |
436
+ | 0.48 | 3000 | 0.7155 | 0.6320 | 0.8789 | - |
437
+ | 0.496 | 3100 | 0.762 | 0.6094 | 0.8697 | - |
438
+ | 0.512 | 3200 | 0.5909 | 0.5915 | 0.8748 | - |
439
+ | 0.528 | 3300 | 0.5679 | 0.5382 | 0.8881 | - |
440
+ | 0.544 | 3400 | 0.5163 | 0.5617 | 0.8891 | - |
441
+ | 0.56 | 3500 | 0.5164 | 0.5627 | 0.8960 | - |
442
+ | 0.576 | 3600 | 0.519 | 0.5236 | 0.8917 | - |
443
+ | 0.592 | 3700 | 0.5327 | 0.5305 | 0.8998 | - |
444
+ | 0.608 | 3800 | 0.4958 | 0.5071 | 0.8990 | - |
445
+ | 0.624 | 3900 | 0.503 | 0.5242 | 0.8919 | - |
446
+ | 0.64 | 4000 | 0.7307 | 0.5176 | 0.9033 | - |
447
+ | 0.656 | 4100 | 0.9127 | 0.5168 | 0.9039 | - |
448
+ | 0.672 | 4200 | 0.8677 | 0.4683 | 0.9102 | - |
449
+ | 0.688 | 4300 | 0.6641 | 0.4549 | 0.9083 | - |
450
+ | 0.704 | 4400 | 0.586 | 0.4447 | 0.9092 | - |
451
+ | 0.72 | 4500 | 0.5447 | 0.4516 | 0.9084 | - |
452
+ | 0.736 | 4600 | 0.5895 | 0.4432 | 0.9104 | - |
453
+ | 0.752 | 4700 | 0.643 | 0.4479 | 0.9089 | - |
454
+ | 0.768 | 4800 | 0.6011 | 0.4310 | 0.9110 | - |
455
+ | 0.784 | 4900 | 0.5494 | 0.4417 | 0.9048 | - |
456
+ | 0.8 | 5000 | 0.6382 | 0.4628 | 0.9102 | - |
457
+ | 0.816 | 5100 | 0.5265 | 0.4355 | 0.9137 | - |
458
+ | 0.832 | 5200 | 0.5791 | 0.4165 | 0.9111 | - |
459
+ | 0.848 | 5300 | 0.5133 | 0.4276 | 0.9137 | - |
460
+ | 0.864 | 5400 | 0.634 | 0.4434 | 0.9083 | - |
461
+ | 0.88 | 5500 | 0.5405 | 0.4266 | 0.9086 | - |
462
+ | 0.896 | 5600 | 0.5374 | 0.4239 | 0.9102 | - |
463
+ | 0.912 | 5700 | 0.5969 | 0.4134 | 0.9137 | - |
464
+ | 0.928 | 5800 | 0.5549 | 0.4029 | 0.9159 | - |
465
+ | 0.944 | 5900 | 0.6575 | 0.4032 | 0.9165 | - |
466
+ | 0.96 | 6000 | 0.756 | 0.4116 | 0.9172 | - |
467
+ | 0.976 | 6100 | 0.6343 | 0.4069 | 0.9177 | - |
468
+ | 0.992 | 6200 | 0.0003 | 0.4065 | 0.9178 | - |
469
+ | 1.0 | 6250 | - | - | - | 0.9277 |
470
+
471
+
472
+ ### Framework Versions
473
+ - Python: 3.11.7
474
+ - Sentence Transformers: 3.0.0
475
+ - Transformers: 4.41.2
476
+ - PyTorch: 2.1.2+cu121
477
+ - Accelerate: 0.30.1
478
+ - Datasets: 2.19.2
479
+ - Tokenizers: 0.19.1
480
+
481
+ ## Citation
482
+
483
+ ### BibTeX
484
+
485
+ #### Sentence Transformers
486
+ ```bibtex
487
+ @inproceedings{reimers-2019-sentence-bert,
488
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
489
+ author = "Reimers, Nils and Gurevych, Iryna",
490
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
491
+ month = "11",
492
+ year = "2019",
493
+ publisher = "Association for Computational Linguistics",
494
+ url = "https://arxiv.org/abs/1908.10084",
495
+ }
496
+ ```
497
+
498
+ #### MultipleNegativesRankingLoss
499
+ ```bibtex
500
+ @misc{henderson2017efficient,
501
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
502
+ 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},
503
+ year={2017},
504
+ eprint={1705.00652},
505
+ archivePrefix={arXiv},
506
+ primaryClass={cs.CL}
507
+ }
508
+ ```
509
+
510
+ <!--
511
+ ## Glossary
512
+
513
+ *Clearly define terms in order to be accessible across audiences.*
514
+ -->
515
+
516
+ <!--
517
+ ## Model Card Authors
518
+
519
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
520
+ -->
521
+
522
+ <!--
523
+ ## Model Card Contact
524
+
525
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
526
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/mpnet-base",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
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-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.41.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.0",
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:2e32afb79014ce6c7c6106bc981e8b4a8de7a833bd338af021b6b77af75b0a42
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ]
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,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": true,
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": true,
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": true,
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
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": "<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": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
36
+ "content": "[UNK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "30526": {
44
+ "content": "<mask>",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "bos_token": "<s>",
53
+ "clean_up_tokenization_spaces": true,
54
+ "cls_token": "<s>",
55
+ "do_lower_case": true,
56
+ "eos_token": "</s>",
57
+ "mask_token": "<mask>",
58
+ "model_max_length": 512,
59
+ "pad_token": "<pad>",
60
+ "sep_token": "</s>",
61
+ "strip_accents": null,
62
+ "tokenize_chinese_chars": true,
63
+ "tokenizer_class": "MPNetTokenizer",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff