mertcobanov commited on
Commit
ee99c05
1 Parent(s): 2e47e9d

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,446 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - generated_from_trainer
10
+ - dataset_size:13842
11
+ - loss:MultipleNegativesRankingLoss
12
+ base_model: microsoft/mpnet-base
13
+ widget:
14
+ - source_sentence: Bir köpek sahibi, evcil hayvanıyla birlikte koşuyor ve evcil hayvan
15
+ bir parkurda engellerden kaçınıyor.
16
+ sentences:
17
+ - Bazı bitkilerin önünde mavi bir kano.
18
+ - Bir adam köpeğinin yanında koşuyor.
19
+ - Adam bir kediyle birlikte.
20
+ - source_sentence: Parlamenter bölümünün patronunun ev hizmetiyle bağlantılı bir politikacı,
21
+ 0-609-3459812 numaralı cep telefonuna sahip ve mizah anlayışının olmamasıyla tanınıyor,
22
+ 'Hayran' adlı birinden gelen 'En iyi kürek dilekleri' mesajını pek iyi karşılamadı.
23
+ sentences:
24
+ - Doktor Perennial, kötü niyetli çavuş uyandığında ayakta duruyordu.
25
+ - Politikacı, patronunun ev hizmetini aradığında, bir 'hayran'dan gelen bir mesaja
26
+ pek hoş karşılamadı.
27
+ - Mesajı aldığı için o kadar minnettardı ki, gönderen kişiye bir demet çiçek gönderdi.
28
+ - source_sentence: Bankanın kasalarında.
29
+ sentences:
30
+ - Ayakta duran bir insan
31
+ - Banka kasasında.
32
+ - Bankadaki kasa.
33
+ - source_sentence: Bir grup Asyalı erkek, birlikte bir yemek yedikten sonra büyük
34
+ bir masanın etrafında poz veriyor.
35
+ sentences:
36
+ - Bir grup Asyalı erkek birlikte bir yemek yedi.
37
+ - Pazarlar, kaplıcalar ve kayak pistleri burada bulunan diğer cazibe merkezlerinden
38
+ bazılarını oluşturuyor.
39
+ - Bir grup Asyalı erkek futbol oynuyor.
40
+ - source_sentence: Böyle şeyler görmek ve eğer yapabileceğiniz en küçük bir şey varsa,
41
+ bu yardımcı olur.
42
+ sentences:
43
+ - Böyle bir şeyi gözlemlemek ve yapıp yapamayacağınızı bilmek için.
44
+ - Adamın gömleği, kot pantolonundan farklı bir renkte.
45
+ - Böyle bir şeyi görmek kötü, eğer yapabiliyorsanız buna hiç katkıda bulunmayın.
46
+ datasets:
47
+ - mertcobanov/all-nli-triplets-turkish
48
+ pipeline_tag: sentence-similarity
49
+ library_name: sentence-transformers
50
+ metrics:
51
+ - cosine_accuracy
52
+ model-index:
53
+ - name: MPNet base trained on AllNLI-turkish triplets
54
+ results:
55
+ - task:
56
+ type: triplet
57
+ name: Triplet
58
+ dataset:
59
+ name: all nli dev turkish
60
+ type: all-nli-dev-turkish
61
+ metrics:
62
+ - type: cosine_accuracy
63
+ value: 0.7454434993924666
64
+ name: Cosine Accuracy
65
+ - task:
66
+ type: triplet
67
+ name: Triplet
68
+ dataset:
69
+ name: all nli test turkish
70
+ type: all-nli-test-turkish
71
+ metrics:
72
+ - type: cosine_accuracy
73
+ value: 0.7524587683461946
74
+ name: Cosine Accuracy
75
+ ---
76
+
77
+ # MPNet base trained on AllNLI-turkish triplets
78
+
79
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) on the [all-nli-triplets-turkish](https://huggingface.co/datasets/mertcobanov/all-nli-triplets-turkish) 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.
80
+
81
+ ## Model Details
82
+
83
+ ### Model Description
84
+ - **Model Type:** Sentence Transformer
85
+ - **Base model:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) <!-- at revision 6996ce1e91bd2a9c7d7f61daec37463394f73f09 -->
86
+ - **Maximum Sequence Length:** 512 tokens
87
+ - **Output Dimensionality:** 768 dimensions
88
+ - **Similarity Function:** Cosine Similarity
89
+ - **Training Dataset:**
90
+ - [all-nli-triplets-turkish](https://huggingface.co/datasets/mertcobanov/all-nli-triplets-turkish)
91
+ - **Language:** en
92
+ - **License:** apache-2.0
93
+
94
+ ### Model Sources
95
+
96
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
97
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
98
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
99
+
100
+ ### Full Model Architecture
101
+
102
+ ```
103
+ SentenceTransformer(
104
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
105
+ (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})
106
+ )
107
+ ```
108
+
109
+ ## Usage
110
+
111
+ ### Direct Usage (Sentence Transformers)
112
+
113
+ First install the Sentence Transformers library:
114
+
115
+ ```bash
116
+ pip install -U sentence-transformers
117
+ ```
118
+
119
+ Then you can load this model and run inference.
120
+ ```python
121
+ from sentence_transformers import SentenceTransformer
122
+
123
+ # Download from the 🤗 Hub
124
+ model = SentenceTransformer("mertcobanov/mpnet-base-all-nli-triplet-turkish-v2")
125
+ # Run inference
126
+ sentences = [
127
+ 'Böyle şeyler görmek ve eğer yapabileceğiniz en küçük bir şey varsa, bu yardımcı olur.',
128
+ 'Böyle bir şeyi gözlemlemek ve yapıp yapamayacağınızı bilmek için.',
129
+ 'Böyle bir şeyi görmek kötü, eğer yapabiliyorsanız buna hiç katkıda bulunmayın.',
130
+ ]
131
+ embeddings = model.encode(sentences)
132
+ print(embeddings.shape)
133
+ # [3, 768]
134
+
135
+ # Get the similarity scores for the embeddings
136
+ similarities = model.similarity(embeddings, embeddings)
137
+ print(similarities.shape)
138
+ # [3, 3]
139
+ ```
140
+
141
+ <!--
142
+ ### Direct Usage (Transformers)
143
+
144
+ <details><summary>Click to see the direct usage in Transformers</summary>
145
+
146
+ </details>
147
+ -->
148
+
149
+ <!--
150
+ ### Downstream Usage (Sentence Transformers)
151
+
152
+ You can finetune this model on your own dataset.
153
+
154
+ <details><summary>Click to expand</summary>
155
+
156
+ </details>
157
+ -->
158
+
159
+ <!--
160
+ ### Out-of-Scope Use
161
+
162
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
163
+ -->
164
+
165
+ ## Evaluation
166
+
167
+ ### Metrics
168
+
169
+ #### Triplet
170
+
171
+ * Datasets: `all-nli-dev-turkish` and `all-nli-test-turkish`
172
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
173
+
174
+ | Metric | all-nli-dev-turkish | all-nli-test-turkish |
175
+ |:--------------------|:--------------------|:---------------------|
176
+ | **cosine_accuracy** | **0.7454** | **0.7525** |
177
+
178
+ <!--
179
+ ## Bias, Risks and Limitations
180
+
181
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
182
+ -->
183
+
184
+ <!--
185
+ ### Recommendations
186
+
187
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
188
+ -->
189
+
190
+ ## Training Details
191
+
192
+ ### Training Dataset
193
+
194
+ #### all-nli-triplets-turkish
195
+
196
+ * Dataset: [all-nli-triplets-turkish](https://huggingface.co/datasets/mertcobanov/all-nli-triplets-turkish) at [bff203b](https://huggingface.co/datasets/mertcobanov/all-nli-triplets-turkish/tree/bff203b01bbf5b818f7ad85be0adbe8d64eba9ee)
197
+ * Size: 13,842 training samples
198
+ * Columns: <code>anchor_translated</code>, <code>positive_translated</code>, and <code>negative_translated</code>
199
+ * Approximate statistics based on the first 1000 samples:
200
+ | | anchor_translated | positive_translated | negative_translated |
201
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
202
+ | type | string | string | string |
203
+ | details | <ul><li>min: 8 tokens</li><li>mean: 13.42 tokens</li><li>max: 95 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 31.64 tokens</li><li>max: 93 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 32.03 tokens</li><li>max: 89 tokens</li></ul> |
204
+ * Samples:
205
+ | anchor_translated | positive_translated | negative_translated |
206
+ |:-----------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
207
+ | <code>Asyalı okul çocukları birbirlerinin omuzlarında oturuyor.</code> | <code>Okul çocukları bir arada</code> | <code>Asyalı fabrika işçileri oturuyor.</code> |
208
+ | <code>İnsanlar dışarıda.</code> | <code>Arka planda resmi kıyafetler giymiş bir grup insan var ve beyaz gömlekli, haki pantolonlu bir adam toprak yoldan yeşil çimenlere atlıyor.</code> | <code>Bir odada üç kişiyle birlikte büyük bir kamera tutan bir adam.</code> |
209
+ | <code>Bir adam dışarıda.</code> | <code>Adam yarış sırasında yan sepetten bir su birikintisine düşer.</code> | <code>Beyaz bir sarık sarmış gömleksiz bir adam bir ağaç gövdesine tırmanıyor.</code> |
210
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
211
+ ```json
212
+ {
213
+ "scale": 20.0,
214
+ "similarity_fct": "cos_sim"
215
+ }
216
+ ```
217
+
218
+ ### Evaluation Dataset
219
+
220
+ #### all-nli-triplets-turkish
221
+
222
+ * Dataset: [all-nli-triplets-turkish](https://huggingface.co/datasets/mertcobanov/all-nli-triplets-turkish) at [bff203b](https://huggingface.co/datasets/mertcobanov/all-nli-triplets-turkish/tree/bff203b01bbf5b818f7ad85be0adbe8d64eba9ee)
223
+ * Size: 6,584 evaluation samples
224
+ * Columns: <code>anchor_translated</code>, <code>positive_translated</code>, and <code>negative_translated</code>
225
+ * Approximate statistics based on the first 1000 samples:
226
+ | | anchor_translated | positive_translated | negative_translated |
227
+ |:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
228
+ | type | string | string | string |
229
+ | details | <ul><li>min: 5 tokens</li><li>mean: 42.62 tokens</li><li>max: 192 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 22.58 tokens</li><li>max: 77 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 22.07 tokens</li><li>max: 65 tokens</li></ul> |
230
+ * Samples:
231
+ | anchor_translated | positive_translated | negative_translated |
232
+ |:--------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------|
233
+ | <code>Ayrıca, bu özel tüketim vergileri, diğer vergiler gibi, hükümetin ödeme zorunluluğunu sağlama yetkisini kullanarak belirlenir.</code> | <code>Hükümetin ödeme zorlaması, özel tüketim vergilerinin nasıl hesaplandığını belirler.</code> | <code>Özel tüketim vergileri genel kuralın bir istisnasıdır ve aslında GSYİH payına dayalı olarak belirlenir.</code> |
234
+ | <code>Gri bir sweatshirt giymiş bir sanatçı, canlı renklerde bir kasaba tablosu üzerinde çalışıyor.</code> | <code>Bir ressam gri giysiler içinde bir kasabanın resmini yapıyor.</code> | <code>Bir kişi bir beyzbol sopası tutuyor ve gelen bir atış için planda bekliyor.</code> |
235
+ | <code>İmkansız.</code> | <code>Yapılamaz.</code> | <code>Tamamen mümkün.</code> |
236
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
237
+ ```json
238
+ {
239
+ "scale": 20.0,
240
+ "similarity_fct": "cos_sim"
241
+ }
242
+ ```
243
+
244
+ ### Training Hyperparameters
245
+ #### Non-Default Hyperparameters
246
+
247
+ - `eval_strategy`: steps
248
+ - `per_device_train_batch_size`: 16
249
+ - `per_device_eval_batch_size`: 16
250
+ - `learning_rate`: 2e-05
251
+ - `num_train_epochs`: 1
252
+ - `warmup_ratio`: 0.1
253
+ - `fp16`: True
254
+ - `batch_sampler`: no_duplicates
255
+
256
+ #### All Hyperparameters
257
+ <details><summary>Click to expand</summary>
258
+
259
+ - `overwrite_output_dir`: False
260
+ - `do_predict`: False
261
+ - `eval_strategy`: steps
262
+ - `prediction_loss_only`: True
263
+ - `per_device_train_batch_size`: 16
264
+ - `per_device_eval_batch_size`: 16
265
+ - `per_gpu_train_batch_size`: None
266
+ - `per_gpu_eval_batch_size`: None
267
+ - `gradient_accumulation_steps`: 1
268
+ - `eval_accumulation_steps`: None
269
+ - `torch_empty_cache_steps`: None
270
+ - `learning_rate`: 2e-05
271
+ - `weight_decay`: 0.0
272
+ - `adam_beta1`: 0.9
273
+ - `adam_beta2`: 0.999
274
+ - `adam_epsilon`: 1e-08
275
+ - `max_grad_norm`: 1.0
276
+ - `num_train_epochs`: 1
277
+ - `max_steps`: -1
278
+ - `lr_scheduler_type`: linear
279
+ - `lr_scheduler_kwargs`: {}
280
+ - `warmup_ratio`: 0.1
281
+ - `warmup_steps`: 0
282
+ - `log_level`: passive
283
+ - `log_level_replica`: warning
284
+ - `log_on_each_node`: True
285
+ - `logging_nan_inf_filter`: True
286
+ - `save_safetensors`: True
287
+ - `save_on_each_node`: False
288
+ - `save_only_model`: False
289
+ - `restore_callback_states_from_checkpoint`: False
290
+ - `no_cuda`: False
291
+ - `use_cpu`: False
292
+ - `use_mps_device`: False
293
+ - `seed`: 42
294
+ - `data_seed`: None
295
+ - `jit_mode_eval`: False
296
+ - `use_ipex`: False
297
+ - `bf16`: False
298
+ - `fp16`: True
299
+ - `fp16_opt_level`: O1
300
+ - `half_precision_backend`: auto
301
+ - `bf16_full_eval`: False
302
+ - `fp16_full_eval`: False
303
+ - `tf32`: None
304
+ - `local_rank`: 0
305
+ - `ddp_backend`: None
306
+ - `tpu_num_cores`: None
307
+ - `tpu_metrics_debug`: False
308
+ - `debug`: []
309
+ - `dataloader_drop_last`: False
310
+ - `dataloader_num_workers`: 0
311
+ - `dataloader_prefetch_factor`: None
312
+ - `past_index`: -1
313
+ - `disable_tqdm`: False
314
+ - `remove_unused_columns`: True
315
+ - `label_names`: None
316
+ - `load_best_model_at_end`: False
317
+ - `ignore_data_skip`: False
318
+ - `fsdp`: []
319
+ - `fsdp_min_num_params`: 0
320
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
321
+ - `fsdp_transformer_layer_cls_to_wrap`: None
322
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
323
+ - `deepspeed`: None
324
+ - `label_smoothing_factor`: 0.0
325
+ - `optim`: adamw_torch
326
+ - `optim_args`: None
327
+ - `adafactor`: False
328
+ - `group_by_length`: False
329
+ - `length_column_name`: length
330
+ - `ddp_find_unused_parameters`: None
331
+ - `ddp_bucket_cap_mb`: None
332
+ - `ddp_broadcast_buffers`: False
333
+ - `dataloader_pin_memory`: True
334
+ - `dataloader_persistent_workers`: False
335
+ - `skip_memory_metrics`: True
336
+ - `use_legacy_prediction_loop`: False
337
+ - `push_to_hub`: False
338
+ - `resume_from_checkpoint`: None
339
+ - `hub_model_id`: None
340
+ - `hub_strategy`: every_save
341
+ - `hub_private_repo`: False
342
+ - `hub_always_push`: False
343
+ - `gradient_checkpointing`: False
344
+ - `gradient_checkpointing_kwargs`: None
345
+ - `include_inputs_for_metrics`: False
346
+ - `include_for_metrics`: []
347
+ - `eval_do_concat_batches`: True
348
+ - `fp16_backend`: auto
349
+ - `push_to_hub_model_id`: None
350
+ - `push_to_hub_organization`: None
351
+ - `mp_parameters`:
352
+ - `auto_find_batch_size`: False
353
+ - `full_determinism`: False
354
+ - `torchdynamo`: None
355
+ - `ray_scope`: last
356
+ - `ddp_timeout`: 1800
357
+ - `torch_compile`: False
358
+ - `torch_compile_backend`: None
359
+ - `torch_compile_mode`: None
360
+ - `dispatch_batches`: None
361
+ - `split_batches`: None
362
+ - `include_tokens_per_second`: False
363
+ - `include_num_input_tokens_seen`: False
364
+ - `neftune_noise_alpha`: None
365
+ - `optim_target_modules`: None
366
+ - `batch_eval_metrics`: False
367
+ - `eval_on_start`: False
368
+ - `use_liger_kernel`: False
369
+ - `eval_use_gather_object`: False
370
+ - `average_tokens_across_devices`: False
371
+ - `prompts`: None
372
+ - `batch_sampler`: no_duplicates
373
+ - `multi_dataset_batch_sampler`: proportional
374
+
375
+ </details>
376
+
377
+ ### Training Logs
378
+ | Epoch | Step | Training Loss | Validation Loss | all-nli-dev-turkish_cosine_accuracy | all-nli-test-turkish_cosine_accuracy |
379
+ |:------:|:----:|:-------------:|:---------------:|:-----------------------------------:|:------------------------------------:|
380
+ | 0 | 0 | - | - | 0.6092 | - |
381
+ | 0.1155 | 100 | 2.7414 | 1.6615 | 0.7429 | - |
382
+ | 0.2309 | 200 | 1.64 | 1.4650 | 0.7483 | - |
383
+ | 0.3464 | 300 | 1.2391 | 1.4068 | 0.7561 | - |
384
+ | 0.4619 | 400 | 1.1146 | 1.4367 | 0.7549 | - |
385
+ | 0.5774 | 500 | 1.0341 | 1.4887 | 0.7486 | - |
386
+ | 0.6928 | 600 | 0.7568 | 1.4568 | 0.7535 | - |
387
+ | 0.8083 | 700 | 0.7216 | 1.5680 | 0.7451 | - |
388
+ | 0.9238 | 800 | 0.5919 | 1.5492 | 0.7454 | - |
389
+ | 1.0 | 866 | - | - | - | 0.7525 |
390
+
391
+
392
+ ### Framework Versions
393
+ - Python: 3.10.14
394
+ - Sentence Transformers: 3.3.1
395
+ - Transformers: 4.46.3
396
+ - PyTorch: 2.3.0
397
+ - Accelerate: 1.1.1
398
+ - Datasets: 3.1.0
399
+ - Tokenizers: 0.20.3
400
+
401
+ ## Citation
402
+
403
+ ### BibTeX
404
+
405
+ #### Sentence Transformers
406
+ ```bibtex
407
+ @inproceedings{reimers-2019-sentence-bert,
408
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
409
+ author = "Reimers, Nils and Gurevych, Iryna",
410
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
411
+ month = "11",
412
+ year = "2019",
413
+ publisher = "Association for Computational Linguistics",
414
+ url = "https://arxiv.org/abs/1908.10084",
415
+ }
416
+ ```
417
+
418
+ #### MultipleNegativesRankingLoss
419
+ ```bibtex
420
+ @misc{henderson2017efficient,
421
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
422
+ 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},
423
+ year={2017},
424
+ eprint={1705.00652},
425
+ archivePrefix={arXiv},
426
+ primaryClass={cs.CL}
427
+ }
428
+ ```
429
+
430
+ <!--
431
+ ## Glossary
432
+
433
+ *Clearly define terms in order to be accessible across audiences.*
434
+ -->
435
+
436
+ <!--
437
+ ## Model Card Authors
438
+
439
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
440
+ -->
441
+
442
+ <!--
443
+ ## Model Card Contact
444
+
445
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
446
+ -->
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.46.3",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.3.1",
4
+ "transformers": "4.46.3",
5
+ "pytorch": "2.3.0"
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:1ccb5effaa9935df6192812390f43c083bd67fd75c3797efc1334c74ebe7537b
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": false,
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