codersan commited on
Commit
0795ea4
·
verified ·
1 Parent(s): e50c7db

Add new SentenceTransformer model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 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,497 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:142964
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: intfloat/multilingual-e5-base
10
+ widget:
11
+ - source_sentence: نمونه هایی از تئوری های توطئه ها که به نظر می رسد درست است؟
12
+ sentences:
13
+ - آیا نظریه های توطئه ای وجود دارد که احتمالاً صادق است؟نظریه های توطئه ای که معلوم
14
+ شد درست است؟
15
+ - بازیگران پانتومیم در حال اجرا بر روی صحنه هستند.
16
+ - چرا میل الکترون فلورین کمتر از کلر است ، در حالی که فلورین الکترونگاتیو ترین عنصر
17
+ است؟
18
+ - source_sentence: بهترین و بدون درد برای کشتن خودم چیست؟
19
+ sentences:
20
+ - بهترین استراتژی ها برای آماده سازی برای GMAT چیست؟
21
+ - آیا ارزش دارد دو سال برای NIT کاهش یابد؟
22
+ - بدون درد ترین روش برای خودکشی چیست؟
23
+ - source_sentence: چه کاری باید انجام دهم در حالی که B-Tech را در مهندسی مکانیک برای
24
+ چشم انداز بهتر شغلی دنبال می کنم؟
25
+ sentences:
26
+ - چگونه می توانیم مشاوره کسب و کار را شروع کنیم؟
27
+ - فرصت های شغلی در شرکت ها پس از M.Tech در مهندسی هوافضا با B.Tech در مهندسی مکانیک
28
+ چیست؟
29
+ - آیا روانپزشکی یک شبه علوم است؟
30
+ - source_sentence: چرا گربه ها وقتی خیار را در مقابل آن قرار می دهید می ترسند؟
31
+ sentences:
32
+ - چرا گربه ها از خیار ترسیده اند؟
33
+ - هک در زندگی روزمره چیست؟
34
+ - چگونه می توانم به سرعت وزن خود را افزایش دهم؟
35
+ - source_sentence: مرزهای صفحه چیست؟برخی از انواع چیست؟
36
+ sentences:
37
+ - مرزهای صفحه چیست؟
38
+ - اتانول چند ایزومر دارد؟
39
+ - چه سؤالاتی در مورد Quora پرسیده نشده است؟
40
+ pipeline_tag: sentence-similarity
41
+ library_name: sentence-transformers
42
+ ---
43
+
44
+ # SentenceTransformer based on intfloat/multilingual-e5-base
45
+
46
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base). 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.
47
+
48
+ ## Model Details
49
+
50
+ ### Model Description
51
+ - **Model Type:** Sentence Transformer
52
+ - **Base model:** [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) <!-- at revision 835193815a3936a24a0ee7dc9e3d48c1fbb19c55 -->
53
+ - **Maximum Sequence Length:** 512 tokens
54
+ - **Output Dimensionality:** 768 dimensions
55
+ - **Similarity Function:** Cosine Similarity
56
+ <!-- - **Training Dataset:** Unknown -->
57
+ <!-- - **Language:** Unknown -->
58
+ <!-- - **License:** Unknown -->
59
+
60
+ ### Model Sources
61
+
62
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
63
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
64
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
65
+
66
+ ### Full Model Architecture
67
+
68
+ ```
69
+ SentenceTransformer(
70
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
71
+ (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})
72
+ (2): Normalize()
73
+ )
74
+ ```
75
+
76
+ ## Usage
77
+
78
+ ### Direct Usage (Sentence Transformers)
79
+
80
+ First install the Sentence Transformers library:
81
+
82
+ ```bash
83
+ pip install -U sentence-transformers
84
+ ```
85
+
86
+ Then you can load this model and run inference.
87
+ ```python
88
+ from sentence_transformers import SentenceTransformer
89
+
90
+ # Download from the 🤗 Hub
91
+ model = SentenceTransformer("codersan/newfa_e5base2")
92
+ # Run inference
93
+ sentences = [
94
+ 'مرزهای صفحه چیست؟برخی از انواع چیست؟',
95
+ 'مرزهای صفحه چیست؟',
96
+ 'اتانول چند ایزومر دارد؟',
97
+ ]
98
+ embeddings = model.encode(sentences)
99
+ print(embeddings.shape)
100
+ # [3, 768]
101
+
102
+ # Get the similarity scores for the embeddings
103
+ similarities = model.similarity(embeddings, embeddings)
104
+ print(similarities.shape)
105
+ # [3, 3]
106
+ ```
107
+
108
+ <!--
109
+ ### Direct Usage (Transformers)
110
+
111
+ <details><summary>Click to see the direct usage in Transformers</summary>
112
+
113
+ </details>
114
+ -->
115
+
116
+ <!--
117
+ ### Downstream Usage (Sentence Transformers)
118
+
119
+ You can finetune this model on your own dataset.
120
+
121
+ <details><summary>Click to expand</summary>
122
+
123
+ </details>
124
+ -->
125
+
126
+ <!--
127
+ ### Out-of-Scope Use
128
+
129
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
130
+ -->
131
+
132
+ <!--
133
+ ## Bias, Risks and Limitations
134
+
135
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
136
+ -->
137
+
138
+ <!--
139
+ ### Recommendations
140
+
141
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
142
+ -->
143
+
144
+ ## Training Details
145
+
146
+ ### Training Dataset
147
+
148
+ #### Unnamed Dataset
149
+
150
+
151
+ * Size: 142,964 training samples
152
+ * Columns: <code>anchor</code> and <code>positive</code>
153
+ * Approximate statistics based on the first 1000 samples:
154
+ | | anchor | positive |
155
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
156
+ | type | string | string |
157
+ | details | <ul><li>min: 6 tokens</li><li>mean: 16.39 tokens</li><li>max: 90 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.68 tokens</li><li>max: 57 tokens</li></ul> |
158
+ * Samples:
159
+ | anchor | positive |
160
+ |:-----------------------------------------------------------------------------|:-------------------------------------------------------------------|
161
+ | <code>گاو یونجه می خورد</code> | <code>گاو در حال چریدن است</code> |
162
+ | <code>ماشینی به شکلی خطرناک از روی دختری می‌پرد.</code> | <code>دختر با بی‌احتیاطی روی ماشین می‌پرد.</code> |
163
+ | <code>چگونه می توانم کارتهای هدیه iTunes رایگان را در هند دریافت کنم؟</code> | <code>چگونه می توانم کارتهای هدیه iTunes رایگان دریافت کنم؟</code> |
164
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
165
+ ```json
166
+ {
167
+ "scale": 20.0,
168
+ "similarity_fct": "cos_sim"
169
+ }
170
+ ```
171
+
172
+ ### Training Hyperparameters
173
+ #### Non-Default Hyperparameters
174
+
175
+ - `per_device_train_batch_size`: 32
176
+ - `learning_rate`: 2e-05
177
+ - `weight_decay`: 0.01
178
+ - `batch_sampler`: no_duplicates
179
+
180
+ #### All Hyperparameters
181
+ <details><summary>Click to expand</summary>
182
+
183
+ - `overwrite_output_dir`: False
184
+ - `do_predict`: False
185
+ - `eval_strategy`: no
186
+ - `prediction_loss_only`: True
187
+ - `per_device_train_batch_size`: 32
188
+ - `per_device_eval_batch_size`: 8
189
+ - `per_gpu_train_batch_size`: None
190
+ - `per_gpu_eval_batch_size`: None
191
+ - `gradient_accumulation_steps`: 1
192
+ - `eval_accumulation_steps`: None
193
+ - `torch_empty_cache_steps`: None
194
+ - `learning_rate`: 2e-05
195
+ - `weight_decay`: 0.01
196
+ - `adam_beta1`: 0.9
197
+ - `adam_beta2`: 0.999
198
+ - `adam_epsilon`: 1e-08
199
+ - `max_grad_norm`: 1.0
200
+ - `num_train_epochs`: 3
201
+ - `max_steps`: -1
202
+ - `lr_scheduler_type`: linear
203
+ - `lr_scheduler_kwargs`: {}
204
+ - `warmup_ratio`: 0.0
205
+ - `warmup_steps`: 0
206
+ - `log_level`: passive
207
+ - `log_level_replica`: warning
208
+ - `log_on_each_node`: True
209
+ - `logging_nan_inf_filter`: True
210
+ - `save_safetensors`: True
211
+ - `save_on_each_node`: False
212
+ - `save_only_model`: False
213
+ - `restore_callback_states_from_checkpoint`: False
214
+ - `no_cuda`: False
215
+ - `use_cpu`: False
216
+ - `use_mps_device`: False
217
+ - `seed`: 42
218
+ - `data_seed`: None
219
+ - `jit_mode_eval`: False
220
+ - `use_ipex`: False
221
+ - `bf16`: False
222
+ - `fp16`: False
223
+ - `fp16_opt_level`: O1
224
+ - `half_precision_backend`: auto
225
+ - `bf16_full_eval`: False
226
+ - `fp16_full_eval`: False
227
+ - `tf32`: None
228
+ - `local_rank`: 0
229
+ - `ddp_backend`: None
230
+ - `tpu_num_cores`: None
231
+ - `tpu_metrics_debug`: False
232
+ - `debug`: []
233
+ - `dataloader_drop_last`: False
234
+ - `dataloader_num_workers`: 0
235
+ - `dataloader_prefetch_factor`: None
236
+ - `past_index`: -1
237
+ - `disable_tqdm`: False
238
+ - `remove_unused_columns`: True
239
+ - `label_names`: None
240
+ - `load_best_model_at_end`: False
241
+ - `ignore_data_skip`: False
242
+ - `fsdp`: []
243
+ - `fsdp_min_num_params`: 0
244
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
245
+ - `fsdp_transformer_layer_cls_to_wrap`: None
246
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
247
+ - `deepspeed`: None
248
+ - `label_smoothing_factor`: 0.0
249
+ - `optim`: adamw_torch
250
+ - `optim_args`: None
251
+ - `adafactor`: False
252
+ - `group_by_length`: False
253
+ - `length_column_name`: length
254
+ - `ddp_find_unused_parameters`: None
255
+ - `ddp_bucket_cap_mb`: None
256
+ - `ddp_broadcast_buffers`: False
257
+ - `dataloader_pin_memory`: True
258
+ - `dataloader_persistent_workers`: False
259
+ - `skip_memory_metrics`: True
260
+ - `use_legacy_prediction_loop`: False
261
+ - `push_to_hub`: False
262
+ - `resume_from_checkpoint`: None
263
+ - `hub_model_id`: None
264
+ - `hub_strategy`: every_save
265
+ - `hub_private_repo`: None
266
+ - `hub_always_push`: False
267
+ - `gradient_checkpointing`: False
268
+ - `gradient_checkpointing_kwargs`: None
269
+ - `include_inputs_for_metrics`: False
270
+ - `include_for_metrics`: []
271
+ - `eval_do_concat_batches`: True
272
+ - `fp16_backend`: auto
273
+ - `push_to_hub_model_id`: None
274
+ - `push_to_hub_organization`: None
275
+ - `mp_parameters`:
276
+ - `auto_find_batch_size`: False
277
+ - `full_determinism`: False
278
+ - `torchdynamo`: None
279
+ - `ray_scope`: last
280
+ - `ddp_timeout`: 1800
281
+ - `torch_compile`: False
282
+ - `torch_compile_backend`: None
283
+ - `torch_compile_mode`: None
284
+ - `dispatch_batches`: None
285
+ - `split_batches`: None
286
+ - `include_tokens_per_second`: False
287
+ - `include_num_input_tokens_seen`: False
288
+ - `neftune_noise_alpha`: None
289
+ - `optim_target_modules`: None
290
+ - `batch_eval_metrics`: False
291
+ - `eval_on_start`: False
292
+ - `use_liger_kernel`: False
293
+ - `eval_use_gather_object`: False
294
+ - `average_tokens_across_devices`: False
295
+ - `prompts`: None
296
+ - `batch_sampler`: no_duplicates
297
+ - `multi_dataset_batch_sampler`: proportional
298
+
299
+ </details>
300
+
301
+ ### Training Logs
302
+ <details><summary>Click to expand</summary>
303
+
304
+ | Epoch | Step | Training Loss |
305
+ |:------:|:-----:|:-------------:|
306
+ | 0.0224 | 100 | 0.0821 |
307
+ | 0.0448 | 200 | 0.0455 |
308
+ | 0.0671 | 300 | 0.0408 |
309
+ | 0.0895 | 400 | 0.0461 |
310
+ | 0.1119 | 500 | 0.0418 |
311
+ | 0.1343 | 600 | 0.0449 |
312
+ | 0.1567 | 700 | 0.0314 |
313
+ | 0.1791 | 800 | 0.0252 |
314
+ | 0.2014 | 900 | 0.0254 |
315
+ | 0.2238 | 1000 | 0.0341 |
316
+ | 0.2462 | 1100 | 0.0239 |
317
+ | 0.2686 | 1200 | 0.0308 |
318
+ | 0.2910 | 1300 | 0.0415 |
319
+ | 0.3133 | 1400 | 0.0386 |
320
+ | 0.3357 | 1500 | 0.027 |
321
+ | 0.3581 | 1600 | 0.0369 |
322
+ | 0.3805 | 1700 | 0.0346 |
323
+ | 0.4029 | 1800 | 0.0301 |
324
+ | 0.4252 | 1900 | 0.03 |
325
+ | 0.4476 | 2000 | 0.0179 |
326
+ | 0.4700 | 2100 | 0.035 |
327
+ | 0.4924 | 2200 | 0.0327 |
328
+ | 0.5148 | 2300 | 0.033 |
329
+ | 0.5372 | 2400 | 0.0272 |
330
+ | 0.5595 | 2500 | 0.0318 |
331
+ | 0.5819 | 2600 | 0.025 |
332
+ | 0.6043 | 2700 | 0.023 |
333
+ | 0.6267 | 2800 | 0.0294 |
334
+ | 0.6491 | 2900 | 0.0337 |
335
+ | 0.6714 | 3000 | 0.0274 |
336
+ | 0.6938 | 3100 | 0.0223 |
337
+ | 0.7162 | 3200 | 0.0384 |
338
+ | 0.7386 | 3300 | 0.0217 |
339
+ | 0.7610 | 3400 | 0.032 |
340
+ | 0.7833 | 3500 | 0.0309 |
341
+ | 0.8057 | 3600 | 0.024 |
342
+ | 0.8281 | 3700 | 0.0273 |
343
+ | 0.8505 | 3800 | 0.0245 |
344
+ | 0.8729 | 3900 | 0.0268 |
345
+ | 0.8953 | 4000 | 0.0322 |
346
+ | 0.9176 | 4100 | 0.0271 |
347
+ | 0.9400 | 4200 | 0.0316 |
348
+ | 0.9624 | 4300 | 0.0179 |
349
+ | 0.9848 | 4400 | 0.0294 |
350
+ | 1.0072 | 4500 | 0.0283 |
351
+ | 1.0295 | 4600 | 0.0171 |
352
+ | 1.0519 | 4700 | 0.017 |
353
+ | 1.0743 | 4800 | 0.0197 |
354
+ | 1.0967 | 4900 | 0.0215 |
355
+ | 1.1191 | 5000 | 0.02 |
356
+ | 1.1415 | 5100 | 0.0144 |
357
+ | 1.1638 | 5200 | 0.015 |
358
+ | 1.1862 | 5300 | 0.0084 |
359
+ | 1.2086 | 5400 | 0.0115 |
360
+ | 1.2310 | 5500 | 0.0143 |
361
+ | 1.2534 | 5600 | 0.0129 |
362
+ | 1.2757 | 5700 | 0.0165 |
363
+ | 1.2981 | 5800 | 0.0168 |
364
+ | 1.3205 | 5900 | 0.0233 |
365
+ | 1.3429 | 6000 | 0.0156 |
366
+ | 1.3653 | 6100 | 0.0207 |
367
+ | 1.3876 | 6200 | 0.0149 |
368
+ | 1.4100 | 6300 | 0.0134 |
369
+ | 1.4324 | 6400 | 0.0108 |
370
+ | 1.4548 | 6500 | 0.0118 |
371
+ | 1.4772 | 6600 | 0.0173 |
372
+ | 1.4996 | 6700 | 0.0171 |
373
+ | 1.5219 | 6800 | 0.0168 |
374
+ | 1.5443 | 6900 | 0.0144 |
375
+ | 1.5667 | 7000 | 0.0111 |
376
+ | 1.5891 | 7100 | 0.0117 |
377
+ | 1.6115 | 7200 | 0.0122 |
378
+ | 1.6338 | 7300 | 0.0143 |
379
+ | 1.6562 | 7400 | 0.0151 |
380
+ | 1.6786 | 7500 | 0.0152 |
381
+ | 1.7010 | 7600 | 0.012 |
382
+ | 1.7234 | 7700 | 0.0177 |
383
+ | 1.7457 | 7800 | 0.0172 |
384
+ | 1.7681 | 7900 | 0.016 |
385
+ | 1.7905 | 8000 | 0.0141 |
386
+ | 1.8129 | 8100 | 0.0112 |
387
+ | 1.8353 | 8200 | 0.011 |
388
+ | 1.8577 | 8300 | 0.0132 |
389
+ | 1.8800 | 8400 | 0.0127 |
390
+ | 1.9024 | 8500 | 0.0188 |
391
+ | 1.9248 | 8600 | 0.0196 |
392
+ | 1.9472 | 8700 | 0.0106 |
393
+ | 1.9696 | 8800 | 0.0108 |
394
+ | 1.9919 | 8900 | 0.0172 |
395
+ | 2.0143 | 9000 | 0.0116 |
396
+ | 2.0367 | 9100 | 0.0089 |
397
+ | 2.0591 | 9200 | 0.0096 |
398
+ | 2.0815 | 9300 | 0.0142 |
399
+ | 2.1038 | 9400 | 0.0112 |
400
+ | 2.1262 | 9500 | 0.0103 |
401
+ | 2.1486 | 9600 | 0.0077 |
402
+ | 2.1710 | 9700 | 0.0082 |
403
+ | 2.1934 | 9800 | 0.0066 |
404
+ | 2.2158 | 9900 | 0.0106 |
405
+ | 2.2381 | 10000 | 0.0072 |
406
+ | 2.2605 | 10100 | 0.0085 |
407
+ | 2.2829 | 10200 | 0.0085 |
408
+ | 2.3053 | 10300 | 0.015 |
409
+ | 2.3277 | 10400 | 0.0113 |
410
+ | 2.3500 | 10500 | 0.0118 |
411
+ | 2.3724 | 10600 | 0.0123 |
412
+ | 2.3948 | 10700 | 0.0071 |
413
+ | 2.4172 | 10800 | 0.0087 |
414
+ | 2.4396 | 10900 | 0.0056 |
415
+ | 2.4620 | 11000 | 0.0091 |
416
+ | 2.4843 | 11100 | 0.0116 |
417
+ | 2.5067 | 11200 | 0.0123 |
418
+ | 2.5291 | 11300 | 0.0108 |
419
+ | 2.5515 | 11400 | 0.0078 |
420
+ | 2.5739 | 11500 | 0.0072 |
421
+ | 2.5962 | 11600 | 0.0084 |
422
+ | 2.6186 | 11700 | 0.0066 |
423
+ | 2.6410 | 11800 | 0.0115 |
424
+ | 2.6634 | 11900 | 0.0088 |
425
+ | 2.6858 | 12000 | 0.008 |
426
+ | 2.7081 | 12100 | 0.0095 |
427
+ | 2.7305 | 12200 | 0.0108 |
428
+ | 2.7529 | 12300 | 0.0113 |
429
+ | 2.7753 | 12400 | 0.0086 |
430
+ | 2.7977 | 12500 | 0.0096 |
431
+ | 2.8201 | 12600 | 0.0093 |
432
+ | 2.8424 | 12700 | 0.0076 |
433
+ | 2.8648 | 12800 | 0.006 |
434
+ | 2.8872 | 12900 | 0.0124 |
435
+ | 2.9096 | 13000 | 0.0131 |
436
+ | 2.9320 | 13100 | 0.0103 |
437
+ | 2.9543 | 13200 | 0.0063 |
438
+ | 2.9767 | 13300 | 0.0067 |
439
+ | 2.9991 | 13400 | 0.0117 |
440
+
441
+ </details>
442
+
443
+ ### Framework Versions
444
+ - Python: 3.10.12
445
+ - Sentence Transformers: 3.3.1
446
+ - Transformers: 4.47.0
447
+ - PyTorch: 2.5.1+cu121
448
+ - Accelerate: 1.2.1
449
+ - Datasets: 4.0.0
450
+ - Tokenizers: 0.21.0
451
+
452
+ ## Citation
453
+
454
+ ### BibTeX
455
+
456
+ #### Sentence Transformers
457
+ ```bibtex
458
+ @inproceedings{reimers-2019-sentence-bert,
459
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
460
+ author = "Reimers, Nils and Gurevych, Iryna",
461
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
462
+ month = "11",
463
+ year = "2019",
464
+ publisher = "Association for Computational Linguistics",
465
+ url = "https://arxiv.org/abs/1908.10084",
466
+ }
467
+ ```
468
+
469
+ #### MultipleNegativesRankingLoss
470
+ ```bibtex
471
+ @misc{henderson2017efficient,
472
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
473
+ 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},
474
+ year={2017},
475
+ eprint={1705.00652},
476
+ archivePrefix={arXiv},
477
+ primaryClass={cs.CL}
478
+ }
479
+ ```
480
+
481
+ <!--
482
+ ## Glossary
483
+
484
+ *Clearly define terms in order to be accessible across audiences.*
485
+ -->
486
+
487
+ <!--
488
+ ## Model Card Authors
489
+
490
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
491
+ -->
492
+
493
+ <!--
494
+ ## Model Card Contact
495
+
496
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
497
+ -->
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "intfloat/multilingual-e5-base",
3
+ "architectures": [
4
+ "XLMRobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "xlm-roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.47.0",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 250002
28
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.3.1",
4
+ "transformers": "4.47.0",
5
+ "pytorch": "2.5.1+cu121"
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:136352b345acefda7c5dbd03eb3276bbd2bf6370515644bdb89cbbc1784a3c7b
3
+ size 1112197096
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
+ }
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": 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": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883b037111086fd4dfebbbc9b7cee11e1517b5e0c0514879478661440f137085
3
+ size 17082987
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "model_max_length": 512,
51
+ "pad_token": "<pad>",
52
+ "sep_token": "</s>",
53
+ "tokenizer_class": "XLMRobertaTokenizer",
54
+ "unk_token": "<unk>"
55
+ }