farhana1996 commited on
Commit
f900ed4
·
verified ·
1 Parent(s): 3531087

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": true,
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,570 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:800000
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: shihab17/bangla-sentence-transformer
10
+ widget:
11
+ - source_sentence: প্রায় পৃষ্ঠার এ গুরুত্বপূর্ণ বইটিকে পৃষ্ঠায় সংক্ষিপ্ত আকারে বাংলা
12
+ রূপ দিয়েছেন অধ্যাপক ড মোহাম্মদ মাসুম।
13
+ sentences:
14
+ - প্রায় পৃষ্ঠার এ গুরুত্বপূর্ণ বইটিকে পৃষ্ঠায় সংক্ষিপ্ত আকারে বাংলা রূপ দিয়েছেন
15
+ অধ্যাপক ড মোহাম্মদ মাসুম।
16
+ - পুষ্টিকর এই সালাদটি কাজের ফাঁকেও খেয়ে নেওয়া যাবে।
17
+ - সালের মধ্যে রাজধানীতে পাঁচটি মেট্রোরেল লাইনের কাজ শেষ হবে।বুধবার দিয়াবাড়িতে
18
+ মেট্রোরেলের ওভারহেড ক্যাটেনারি সিস্টেম ও রেললাইন স্থাপন কাজের উদ্বোধন অনুষ্ঠানে
19
+ তিনি এসব কথা বলেন।ওবায়দুল কাদের বলেন, শিগগির এমআরটি লাইন ও এর কাজ শুরু হবে।
20
+ - source_sentence: সহিংস শ্বেতাঙ্গ জাতীয়তাবাদের হুমকির বিরুদ্ধে আমাদের সম্মিলিত প্রতিরোধ
21
+ দরকার বলেও তিনি জানান।
22
+ sentences:
23
+ - সহিংস শ্বেতাঙ্গ জাতীয়তাবাদের হুমকির বিরুদ্ধে আমাদের সম্মিলিত প্রতিরোধ দরকার বলেও
24
+ তিনি জানান।
25
+ - বাঙালি যে চিন্তার বহু ক্ষেত্রে গেছে, বহু বিষয়ে ভেবেছে তার লক্ষণ বাংলা ভাষায়
26
+ নেই।
27
+ - টাইম সিডিউল নবায়নের জন্য বারবার চিঠি দেয়া হলেও টালবাহানা করছেন বিআইডব্লিউটিএর
28
+ ট্রাফিক পোর্ট কর্তৃপক্ষ।
29
+ - source_sentence: একজন তরুণ তিনি।
30
+ sentences:
31
+ - একজন তরুণ তিনি।
32
+ - প্রথম দর্শনার্থীরা কার্নিভালের রোলার কোস্টার, স্কাই ড্রপ, পাইরেট শিপ, ফোর শিপ,
33
+ ম্যাজিক উইন্ডমিল, ফ্লাইং ডিসকো ও টাওয়ার চ্যালেঞ্জার রাইড উপভোগ করেন।
34
+ - বছর এতিমের ভাগ এতিমকে দিতে পারেনি।
35
+ - source_sentence: তার মত সংগ্রাম করেছে বাংলাদেশের বেশিরভাগ ব্যাটসম্যানই।
36
+ sentences:
37
+ - তবে সরাসরি বাবার বিরুদ্ধে যেতে পারেননি।
38
+ - তার মত সংগ্রাম করেছে বাংলাদেশের বেশিরভাগ ব্যাটসম্যানই।
39
+ - এ বছর চীনা প্রেসিডেন্ট শি জিনপিং মস্কো সফর করেছেন এবং রুশ প্রেসিডেন্ট ভ াদিমির
40
+ পুতিনের সঙ্গে সম্পর্ক জোরদারে নানা বিষয়ে আলোচনা করেছেন।
41
+ - source_sentence: কারণ এ ব্যাংকগুলোর নিয়ন্ত্রণ অর্থ মন্ত্রণালয়ের ব্যাংক ও আর্থিক
42
+ প্রতিষ্ঠানের হাতে।
43
+ sentences:
44
+ - বক্তারা এ সময় অবিলম্বে দোষীদের শাস্তির আওতায় না আনলে সারা দেশের আলেম উলামা ও
45
+ মাদরাসার শিক্ষক শিক্ষার্থীরা রাজপথে নামতে বাধ্য হবে বলে হুশিয়ারি উচ্চারণ করেন।
46
+ - তিনি আরও বলেন, আপনাদের সবাইকে আমি আমার পাশে চাই, সামনে চাই।
47
+ - কারণ এ ব্যাং��গুলোর নিয়ন্ত্রণ অর্থ মন্ত্রণালয়ের ব্যাংক ও আর্থিক প্রতিষ্ঠানের
48
+ হাতে।
49
+ pipeline_tag: sentence-similarity
50
+ library_name: sentence-transformers
51
+ ---
52
+
53
+ # SentenceTransformer based on shihab17/bangla-sentence-transformer
54
+
55
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [shihab17/bangla-sentence-transformer](https://huggingface.co/shihab17/bangla-sentence-transformer). It maps sentences & paragraphs to a 1536-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
56
+
57
+ ## Model Details
58
+
59
+ ### Model Description
60
+ - **Model Type:** Sentence Transformer
61
+ - **Base model:** [shihab17/bangla-sentence-transformer](https://huggingface.co/shihab17/bangla-sentence-transformer) <!-- at revision ab250a2c767638562cd3caa8c0017b106a481755 -->
62
+ - **Maximum Sequence Length:** 128 tokens
63
+ - **Output Dimensionality:** 1536 dimensions
64
+ - **Similarity Function:** Cosine Similarity
65
+ <!-- - **Training Dataset:** Unknown -->
66
+ <!-- - **Language:** Unknown -->
67
+ <!-- - **License:** Unknown -->
68
+
69
+ ### Model Sources
70
+
71
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
72
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
73
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
74
+
75
+ ### Full Model Architecture
76
+
77
+ ```
78
+ SentenceTransformer(
79
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
80
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': True, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
81
+ )
82
+ ```
83
+
84
+ ## Usage
85
+
86
+ ### Direct Usage (Sentence Transformers)
87
+
88
+ First install the Sentence Transformers library:
89
+
90
+ ```bash
91
+ pip install -U sentence-transformers
92
+ ```
93
+
94
+ Then you can load this model and run inference.
95
+ ```python
96
+ from sentence_transformers import SentenceTransformer
97
+
98
+ # Download from the 🤗 Hub
99
+ model = SentenceTransformer("farhana1996/unsupervised-simcse-bangla-sbert-800k")
100
+ # Run inference
101
+ sentences = [
102
+ 'কারণ এ ব্যাংকগুলোর নিয়ন্ত্রণ অর্থ মন্ত্রণালয়ের ব্যাংক ও আর্থিক প্রতিষ্ঠানের হাতে।',
103
+ 'কারণ এ ব্যাংকগুলোর নিয়ন্ত্রণ অর্থ মন্ত্রণালয়ের ব্যাংক ও আর্থিক প্রতিষ্ঠানের হাতে।',
104
+ 'বক্তারা এ সময় অবিলম্বে দোষীদের শাস্তির আওতায় না আনলে সারা দেশের আলেম উলামা ও মাদরাসার শিক্ষক শিক্ষার্থীরা রাজপথে নামতে বাধ্য হবে বলে হুশিয়ারি উচ্চারণ করেন।',
105
+ ]
106
+ embeddings = model.encode(sentences)
107
+ print(embeddings.shape)
108
+ # [3, 1536]
109
+
110
+ # Get the similarity scores for the embeddings
111
+ similarities = model.similarity(embeddings, embeddings)
112
+ print(similarities.shape)
113
+ # [3, 3]
114
+ ```
115
+
116
+ <!--
117
+ ### Direct Usage (Transformers)
118
+
119
+ <details><summary>Click to see the direct usage in Transformers</summary>
120
+
121
+ </details>
122
+ -->
123
+
124
+ <!--
125
+ ### Downstream Usage (Sentence Transformers)
126
+
127
+ You can finetune this model on your own dataset.
128
+
129
+ <details><summary>Click to expand</summary>
130
+
131
+ </details>
132
+ -->
133
+
134
+ <!--
135
+ ### Out-of-Scope Use
136
+
137
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
138
+ -->
139
+
140
+ <!--
141
+ ## Bias, Risks and Limitations
142
+
143
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
144
+ -->
145
+
146
+ <!--
147
+ ### Recommendations
148
+
149
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
150
+ -->
151
+
152
+ ## Training Details
153
+
154
+ ### Training Dataset
155
+
156
+ #### Unnamed Dataset
157
+
158
+ * Size: 800,000 training samples
159
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
160
+ * Approximate statistics based on the first 1000 samples:
161
+ | | sentence_0 | sentence_1 |
162
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
163
+ | type | string | string |
164
+ | details | <ul><li>min: 6 tokens</li><li>mean: 29.09 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 29.09 tokens</li><li>max: 128 tokens</li></ul> |
165
+ * Samples:
166
+ | sentence_0 | sentence_1 |
167
+ |:-----------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------|
168
+ | <code>এরই মধ্যে এ বিষয়ে পরীক্ষা নিরীক্ষা শুরু করেছে বিশ্ববিদ্যালয় কর্তৃপক্ষ।</code> | <code>এরই মধ্যে এ বিষয়ে পরীক্ষা নিরীক্ষা শুরু করেছে বিশ্ববিদ্যালয় কর্তৃপক্ষ।</code> |
169
+ | <code>এরপর থেকেই যেন দেশের বিজ্ঞাপনে ভারতীয় শিল্পীদের নিয়ে আসার পরিমাণ বেড়ে গেছে।</code> | <code>এরপর থেকেই যেন দেশের বিজ্ঞাপনে ভারতীয় শিল্পীদের নিয়ে আসার পরিমাণ বেড়ে গেছে।</code> |
170
+ | <code>ইন্টারন্যাশনাল ইউনিভার্সিটি অব বিজনেস এগ্রিকালচার অ্যান্ড টেকনোলজির আইইউবিএটি গ্রীষ্ম সেমিস্টারের নতুন শিক্ষার্থীদের পরিচিতি সেশন শেষ হয়েছে।</code> | <code>ইন্টারন্যাশনাল ইউনিভার্সিটি অব বিজনেস এগ্রিকালচার অ্যান্ড টেকনোলজির আইইউবিএটি গ্রীষ্ম সেমিস্টারের নতুন শিক্ষার্থীদের পরিচিতি সেশন শেষ হয়েছে।</code> |
171
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
172
+ ```json
173
+ {
174
+ "scale": 20.0,
175
+ "similarity_fct": "cos_sim"
176
+ }
177
+ ```
178
+
179
+ ### Training Hyperparameters
180
+ #### Non-Default Hyperparameters
181
+
182
+ - `per_device_train_batch_size`: 16
183
+ - `per_device_eval_batch_size`: 16
184
+ - `num_train_epochs`: 2
185
+ - `fp16`: True
186
+ - `multi_dataset_batch_sampler`: round_robin
187
+
188
+ #### All Hyperparameters
189
+ <details><summary>Click to expand</summary>
190
+
191
+ - `overwrite_output_dir`: False
192
+ - `do_predict`: False
193
+ - `eval_strategy`: no
194
+ - `prediction_loss_only`: True
195
+ - `per_device_train_batch_size`: 16
196
+ - `per_device_eval_batch_size`: 16
197
+ - `per_gpu_train_batch_size`: None
198
+ - `per_gpu_eval_batch_size`: None
199
+ - `gradient_accumulation_steps`: 1
200
+ - `eval_accumulation_steps`: None
201
+ - `torch_empty_cache_steps`: None
202
+ - `learning_rate`: 5e-05
203
+ - `weight_decay`: 0.0
204
+ - `adam_beta1`: 0.9
205
+ - `adam_beta2`: 0.999
206
+ - `adam_epsilon`: 1e-08
207
+ - `max_grad_norm`: 1.0
208
+ - `num_train_epochs`: 2
209
+ - `max_steps`: -1
210
+ - `lr_scheduler_type`: linear
211
+ - `lr_scheduler_kwargs`: {}
212
+ - `warmup_ratio`: 0.0
213
+ - `warmup_steps`: 0
214
+ - `log_level`: passive
215
+ - `log_level_replica`: warning
216
+ - `log_on_each_node`: True
217
+ - `logging_nan_inf_filter`: True
218
+ - `save_safetensors`: True
219
+ - `save_on_each_node`: False
220
+ - `save_only_model`: False
221
+ - `restore_callback_states_from_checkpoint`: False
222
+ - `no_cuda`: False
223
+ - `use_cpu`: False
224
+ - `use_mps_device`: False
225
+ - `seed`: 42
226
+ - `data_seed`: None
227
+ - `jit_mode_eval`: False
228
+ - `use_ipex`: False
229
+ - `bf16`: False
230
+ - `fp16`: True
231
+ - `fp16_opt_level`: O1
232
+ - `half_precision_backend`: auto
233
+ - `bf16_full_eval`: False
234
+ - `fp16_full_eval`: False
235
+ - `tf32`: None
236
+ - `local_rank`: 0
237
+ - `ddp_backend`: None
238
+ - `tpu_num_cores`: None
239
+ - `tpu_metrics_debug`: False
240
+ - `debug`: []
241
+ - `dataloader_drop_last`: False
242
+ - `dataloader_num_workers`: 0
243
+ - `dataloader_prefetch_factor`: None
244
+ - `past_index`: -1
245
+ - `disable_tqdm`: False
246
+ - `remove_unused_columns`: True
247
+ - `label_names`: None
248
+ - `load_best_model_at_end`: False
249
+ - `ignore_data_skip`: False
250
+ - `fsdp`: []
251
+ - `fsdp_min_num_params`: 0
252
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
253
+ - `tp_size`: 0
254
+ - `fsdp_transformer_layer_cls_to_wrap`: None
255
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
256
+ - `deepspeed`: None
257
+ - `label_smoothing_factor`: 0.0
258
+ - `optim`: adamw_torch
259
+ - `optim_args`: None
260
+ - `adafactor`: False
261
+ - `group_by_length`: False
262
+ - `length_column_name`: length
263
+ - `ddp_find_unused_parameters`: None
264
+ - `ddp_bucket_cap_mb`: None
265
+ - `ddp_broadcast_buffers`: False
266
+ - `dataloader_pin_memory`: True
267
+ - `dataloader_persistent_workers`: False
268
+ - `skip_memory_metrics`: True
269
+ - `use_legacy_prediction_loop`: False
270
+ - `push_to_hub`: False
271
+ - `resume_from_checkpoint`: None
272
+ - `hub_model_id`: None
273
+ - `hub_strategy`: every_save
274
+ - `hub_private_repo`: None
275
+ - `hub_always_push`: False
276
+ - `gradient_checkpointing`: False
277
+ - `gradient_checkpointing_kwargs`: None
278
+ - `include_inputs_for_metrics`: False
279
+ - `include_for_metrics`: []
280
+ - `eval_do_concat_batches`: True
281
+ - `fp16_backend`: auto
282
+ - `push_to_hub_model_id`: None
283
+ - `push_to_hub_organization`: None
284
+ - `mp_parameters`:
285
+ - `auto_find_batch_size`: False
286
+ - `full_determinism`: False
287
+ - `torchdynamo`: None
288
+ - `ray_scope`: last
289
+ - `ddp_timeout`: 1800
290
+ - `torch_compile`: False
291
+ - `torch_compile_backend`: None
292
+ - `torch_compile_mode`: None
293
+ - `include_tokens_per_second`: False
294
+ - `include_num_input_tokens_seen`: False
295
+ - `neftune_noise_alpha`: None
296
+ - `optim_target_modules`: None
297
+ - `batch_eval_metrics`: False
298
+ - `eval_on_start`: False
299
+ - `use_liger_kernel`: False
300
+ - `eval_use_gather_object`: False
301
+ - `average_tokens_across_devices`: False
302
+ - `prompts`: None
303
+ - `batch_sampler`: batch_sampler
304
+ - `multi_dataset_batch_sampler`: round_robin
305
+
306
+ </details>
307
+
308
+ ### Training Logs
309
+ <details><summary>Click to expand</summary>
310
+
311
+ | Epoch | Step | Training Loss |
312
+ |:------:|:------:|:-------------:|
313
+ | 0.01 | 500 | 0.0128 |
314
+ | 0.02 | 1000 | 0.0006 |
315
+ | 0.03 | 1500 | 0.0003 |
316
+ | 0.04 | 2000 | 0.0002 |
317
+ | 0.05 | 2500 | 0.0002 |
318
+ | 0.06 | 3000 | 0.0001 |
319
+ | 0.07 | 3500 | 0.0001 |
320
+ | 0.08 | 4000 | 0.0002 |
321
+ | 0.09 | 4500 | 0.0001 |
322
+ | 0.1 | 5000 | 0.0001 |
323
+ | 0.11 | 5500 | 0.0001 |
324
+ | 0.12 | 6000 | 0.0 |
325
+ | 0.13 | 6500 | 0.0001 |
326
+ | 0.14 | 7000 | 0.0001 |
327
+ | 0.15 | 7500 | 0.0001 |
328
+ | 0.16 | 8000 | 0.0 |
329
+ | 0.17 | 8500 | 0.0 |
330
+ | 0.18 | 9000 | 0.0 |
331
+ | 0.19 | 9500 | 0.0 |
332
+ | 0.2 | 10000 | 0.0 |
333
+ | 0.21 | 10500 | 0.0001 |
334
+ | 0.22 | 11000 | 0.0001 |
335
+ | 0.23 | 11500 | 0.0001 |
336
+ | 0.24 | 12000 | 0.0 |
337
+ | 0.25 | 12500 | 0.0002 |
338
+ | 0.26 | 13000 | 0.0 |
339
+ | 0.27 | 13500 | 0.0 |
340
+ | 0.28 | 14000 | 0.0 |
341
+ | 0.29 | 14500 | 0.0 |
342
+ | 0.3 | 15000 | 0.0002 |
343
+ | 0.31 | 15500 | 0.0 |
344
+ | 0.32 | 16000 | 0.0 |
345
+ | 0.33 | 16500 | 0.0 |
346
+ | 0.34 | 17000 | 0.0 |
347
+ | 0.35 | 17500 | 0.0 |
348
+ | 0.36 | 18000 | 0.0 |
349
+ | 0.37 | 18500 | 0.0 |
350
+ | 0.38 | 19000 | 0.0 |
351
+ | 0.39 | 19500 | 0.0 |
352
+ | 0.4 | 20000 | 0.0 |
353
+ | 0.41 | 20500 | 0.0 |
354
+ | 0.42 | 21000 | 0.0 |
355
+ | 0.43 | 21500 | 0.0 |
356
+ | 0.44 | 22000 | 0.0 |
357
+ | 0.45 | 22500 | 0.0 |
358
+ | 0.46 | 23000 | 0.0 |
359
+ | 0.47 | 23500 | 0.0 |
360
+ | 0.48 | 24000 | 0.0 |
361
+ | 0.49 | 24500 | 0.0 |
362
+ | 0.5 | 25000 | 0.0 |
363
+ | 0.51 | 25500 | 0.0 |
364
+ | 0.52 | 26000 | 0.0 |
365
+ | 0.53 | 26500 | 0.0 |
366
+ | 0.54 | 27000 | 0.0 |
367
+ | 0.55 | 27500 | 0.0 |
368
+ | 0.56 | 28000 | 0.0 |
369
+ | 0.57 | 28500 | 0.0 |
370
+ | 0.58 | 29000 | 0.0 |
371
+ | 0.59 | 29500 | 0.0 |
372
+ | 0.6 | 30000 | 0.0 |
373
+ | 0.61 | 30500 | 0.0 |
374
+ | 0.62 | 31000 | 0.0 |
375
+ | 0.63 | 31500 | 0.0 |
376
+ | 0.64 | 32000 | 0.0 |
377
+ | 0.65 | 32500 | 0.0 |
378
+ | 0.66 | 33000 | 0.0 |
379
+ | 0.67 | 33500 | 0.0 |
380
+ | 0.68 | 34000 | 0.0 |
381
+ | 0.69 | 34500 | 0.0 |
382
+ | 0.7 | 35000 | 0.0 |
383
+ | 0.71 | 35500 | 0.0 |
384
+ | 0.72 | 36000 | 0.0 |
385
+ | 0.73 | 36500 | 0.0 |
386
+ | 0.74 | 37000 | 0.0 |
387
+ | 0.75 | 37500 | 0.0 |
388
+ | 0.76 | 38000 | 0.0 |
389
+ | 0.77 | 38500 | 0.0 |
390
+ | 0.78 | 39000 | 0.0 |
391
+ | 0.79 | 39500 | 0.0 |
392
+ | 0.8 | 40000 | 0.0 |
393
+ | 0.81 | 40500 | 0.0 |
394
+ | 0.82 | 41000 | 0.0 |
395
+ | 0.83 | 41500 | 0.0 |
396
+ | 0.84 | 42000 | 0.0 |
397
+ | 0.85 | 42500 | 0.0 |
398
+ | 0.86 | 43000 | 0.0 |
399
+ | 0.87 | 43500 | 0.0 |
400
+ | 0.88 | 44000 | 0.0 |
401
+ | 0.89 | 44500 | 0.0 |
402
+ | 0.9 | 45000 | 0.0 |
403
+ | 0.91 | 45500 | 0.0 |
404
+ | 0.92 | 46000 | 0.0 |
405
+ | 0.93 | 46500 | 0.0 |
406
+ | 0.94 | 47000 | 0.0 |
407
+ | 0.95 | 47500 | 0.0 |
408
+ | 0.96 | 48000 | 0.0 |
409
+ | 0.97 | 48500 | 0.0 |
410
+ | 0.98 | 49000 | 0.0 |
411
+ | 0.99 | 49500 | 0.0 |
412
+ | 1.0 | 50000 | 0.0 |
413
+ | 1.01 | 50500 | 0.0 |
414
+ | 1.02 | 51000 | 0.0 |
415
+ | 1.03 | 51500 | 0.0 |
416
+ | 1.04 | 52000 | 0.0 |
417
+ | 1.05 | 52500 | 0.0 |
418
+ | 1.06 | 53000 | 0.0 |
419
+ | 1.07 | 53500 | 0.0 |
420
+ | 1.08 | 54000 | 0.0 |
421
+ | 1.09 | 54500 | 0.0 |
422
+ | 1.1 | 55000 | 0.0 |
423
+ | 1.11 | 55500 | 0.0 |
424
+ | 1.12 | 56000 | 0.0 |
425
+ | 1.13 | 56500 | 0.0 |
426
+ | 1.1400 | 57000 | 0.0 |
427
+ | 1.15 | 57500 | 0.0 |
428
+ | 1.16 | 58000 | 0.0 |
429
+ | 1.17 | 58500 | 0.0 |
430
+ | 1.18 | 59000 | 0.0 |
431
+ | 1.19 | 59500 | 0.0 |
432
+ | 1.2 | 60000 | 0.0 |
433
+ | 1.21 | 60500 | 0.0 |
434
+ | 1.22 | 61000 | 0.0 |
435
+ | 1.23 | 61500 | 0.0 |
436
+ | 1.24 | 62000 | 0.0 |
437
+ | 1.25 | 62500 | 0.0 |
438
+ | 1.26 | 63000 | 0.0 |
439
+ | 1.27 | 63500 | 0.0 |
440
+ | 1.28 | 64000 | 0.0 |
441
+ | 1.29 | 64500 | 0.0 |
442
+ | 1.3 | 65000 | 0.0 |
443
+ | 1.31 | 65500 | 0.0 |
444
+ | 1.32 | 66000 | 0.0 |
445
+ | 1.33 | 66500 | 0.0 |
446
+ | 1.34 | 67000 | 0.0 |
447
+ | 1.35 | 67500 | 0.0 |
448
+ | 1.3600 | 68000 | 0.0 |
449
+ | 1.37 | 68500 | 0.0 |
450
+ | 1.38 | 69000 | 0.0 |
451
+ | 1.3900 | 69500 | 0.0 |
452
+ | 1.4 | 70000 | 0.0 |
453
+ | 1.41 | 70500 | 0.0 |
454
+ | 1.42 | 71000 | 0.0 |
455
+ | 1.43 | 71500 | 0.0 |
456
+ | 1.44 | 72000 | 0.0 |
457
+ | 1.45 | 72500 | 0.0 |
458
+ | 1.46 | 73000 | 0.0 |
459
+ | 1.47 | 73500 | 0.0 |
460
+ | 1.48 | 74000 | 0.0 |
461
+ | 1.49 | 74500 | 0.0 |
462
+ | 1.5 | 75000 | 0.0 |
463
+ | 1.51 | 75500 | 0.0 |
464
+ | 1.52 | 76000 | 0.0 |
465
+ | 1.53 | 76500 | 0.0 |
466
+ | 1.54 | 77000 | 0.0 |
467
+ | 1.55 | 77500 | 0.0 |
468
+ | 1.56 | 78000 | 0.0 |
469
+ | 1.5700 | 78500 | 0.0 |
470
+ | 1.58 | 79000 | 0.0 |
471
+ | 1.5900 | 79500 | 0.0 |
472
+ | 1.6 | 80000 | 0.0 |
473
+ | 1.6100 | 80500 | 0.0 |
474
+ | 1.62 | 81000 | 0.0 |
475
+ | 1.63 | 81500 | 0.0 |
476
+ | 1.6400 | 82000 | 0.0 |
477
+ | 1.65 | 82500 | 0.0 |
478
+ | 1.6600 | 83000 | 0.0 |
479
+ | 1.67 | 83500 | 0.0 |
480
+ | 1.6800 | 84000 | 0.0 |
481
+ | 1.69 | 84500 | 0.0 |
482
+ | 1.7 | 85000 | 0.0001 |
483
+ | 1.71 | 85500 | 0.0 |
484
+ | 1.72 | 86000 | 0.0 |
485
+ | 1.73 | 86500 | 0.0 |
486
+ | 1.74 | 87000 | 0.0 |
487
+ | 1.75 | 87500 | 0.0 |
488
+ | 1.76 | 88000 | 0.0 |
489
+ | 1.77 | 88500 | 0.0 |
490
+ | 1.78 | 89000 | 0.0 |
491
+ | 1.79 | 89500 | 0.0002 |
492
+ | 1.8 | 90000 | 0.0 |
493
+ | 1.81 | 90500 | 0.0 |
494
+ | 1.8200 | 91000 | 0.0 |
495
+ | 1.83 | 91500 | 0.0 |
496
+ | 1.8400 | 92000 | 0.0 |
497
+ | 1.85 | 92500 | 0.0 |
498
+ | 1.8600 | 93000 | 0.0 |
499
+ | 1.87 | 93500 | 0.0 |
500
+ | 1.88 | 94000 | 0.0 |
501
+ | 1.8900 | 94500 | 0.0 |
502
+ | 1.9 | 95000 | 0.0 |
503
+ | 1.9100 | 95500 | 0.0 |
504
+ | 1.92 | 96000 | 0.0 |
505
+ | 1.9300 | 96500 | 0.0 |
506
+ | 1.94 | 97000 | 0.0 |
507
+ | 1.95 | 97500 | 0.0 |
508
+ | 1.96 | 98000 | 0.0 |
509
+ | 1.97 | 98500 | 0.0 |
510
+ | 1.98 | 99000 | 0.0 |
511
+ | 1.99 | 99500 | 0.0 |
512
+ | 2.0 | 100000 | 0.0 |
513
+
514
+ </details>
515
+
516
+ ### Framework Versions
517
+ - Python: 3.11.11
518
+ - Sentence Transformers: 3.4.1
519
+ - Transformers: 4.51.1
520
+ - PyTorch: 2.5.1+cu124
521
+ - Accelerate: 1.3.0
522
+ - Datasets: 3.5.0
523
+ - Tokenizers: 0.21.0
524
+
525
+ ## Citation
526
+
527
+ ### BibTeX
528
+
529
+ #### Sentence Transformers
530
+ ```bibtex
531
+ @inproceedings{reimers-2019-sentence-bert,
532
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
533
+ author = "Reimers, Nils and Gurevych, Iryna",
534
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
535
+ month = "11",
536
+ year = "2019",
537
+ publisher = "Association for Computational Linguistics",
538
+ url = "https://arxiv.org/abs/1908.10084",
539
+ }
540
+ ```
541
+
542
+ #### MultipleNegativesRankingLoss
543
+ ```bibtex
544
+ @misc{henderson2017efficient,
545
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
546
+ 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},
547
+ year={2017},
548
+ eprint={1705.00652},
549
+ archivePrefix={arXiv},
550
+ primaryClass={cs.CL}
551
+ }
552
+ ```
553
+
554
+ <!--
555
+ ## Glossary
556
+
557
+ *Clearly define terms in order to be accessible across audiences.*
558
+ -->
559
+
560
+ <!--
561
+ ## Model Card Authors
562
+
563
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
564
+ -->
565
+
566
+ <!--
567
+ ## Model Card Contact
568
+
569
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
570
+ -->
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "XLMRobertaModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.3,
6
+ "bos_token_id": 0,
7
+ "classifier_dropout": null,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.3,
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": "xlm-roberta",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "output_hidden_states": true,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.51.1",
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.4.1",
4
+ "transformers": "4.51.1",
5
+ "pytorch": "2.5.1+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85d27027829d28955c55c4e99c12d098e0c4249332c67e9966c0db32506d9af7
3
+ size 1112197096
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": 128,
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:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719
3
+ size 17082987
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "max_length": 128,
51
+ "model_max_length": 128,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "<pad>",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "</s>",
57
+ "stride": 0,
58
+ "tokenizer_class": "XLMRobertaTokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "<unk>"
62
+ }