amorfati commited on
Commit
4535781
1 Parent(s): 37c0fa5

Add new SentenceTransformer model.

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
37
+ unigram.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,483 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ pipeline_tag: sentence-similarity
7
+ tags:
8
+ - sentence-transformers
9
+ - sentence-similarity
10
+ - feature-extraction
11
+ - generated_from_trainer
12
+ - dataset_size:13500
13
+ - loss:ContrastiveLoss
14
+ widget:
15
+ - source_sentence: ' Shaniwar Upay: शनि के प्रकोप से आ चुके हैं तंग, तो आज से शुरू
16
+ कर लें ये काम, जल्द मेहरबान होंगे न्याय के देवता '
17
+ sentences:
18
+ - 'T20 World Cup: किस देश ने जीती है सबसे ज्यादा टी20 वर्ल्ड कप की ट्रॉफी? ये रही
19
+ अभी तक के विजेताओं की पूरी लिस्ट'
20
+ - 'Shaniwar Upay: शनि के प्रकोप से आ चुके हैं तंग, तो आज से शुरू कर लें ये काम,
21
+ जल्द मेहरबान होंगे न्याय के देवता'
22
+ - 'Bank Jobs: इंडियन बैंक में निकली बंपर वैकेंसी के लिए जारी है आवेदन प्रक्रिया,
23
+ इस आधार पर किया जाएगा सिलेक्शन'
24
+ - source_sentence: ' Humidity: मुश्किल नहीं चिपचिपी गर्मी को हराना! एक्सपर्ट से जानें
25
+ क्या खाएं और क्या नहीं '
26
+ sentences:
27
+ - 'Ajmer Dargah News: ''सर तन से जुदा'' के नारे वाला अजमेर दरगाह का खादिम कोर्ट
28
+ से हुआ बरी, अदालत को नहीं मिले पर्याप्त सबूत!'
29
+ - एंड्रॉयड स्मार्टफोन पर कैसे बदलें WhatsApp की रिंगटोन, आज ही जान लीजिए इसका प्रोसेस
30
+ - 'Humidity: मुश्किल नहीं चिपचिपी गर्मी को हराना! एक्सपर्ट से जानें क्या खाएं और
31
+ क्या नहीं'
32
+ - source_sentence: ' नौकरी नहीं मिली तो मजबूरी में शुरू की खेती, टमाटर ने इस शख्स
33
+ को बना दिया करोड़पति '
34
+ sentences:
35
+ - Heart Attack से बचने का उपाय, रोज गिनती से चढ़ें इतनी सीढ़ियां, दिल की नसें होने
36
+ लगेगी मजबूत
37
+ - 10-10 रुपए के लिए तरसा, फुटपाथ पर सोया, इस सुपरस्टार ने किए छोटे-छोटे काम, अब
38
+ करोड़ों का मालिक
39
+ - 'T20 World Cup 2024: अफगानिस्तान की उम्मीदें चकनाचूर, पहली बार साउथ अफ्रीका T20
40
+ वर्ल्ड कप फाइनल में पहुंचा'
41
+ - source_sentence: ' Shubman Gill : ''उसे कप्तानी करना नहीं आता...'', शुभमन गिल को
42
+ लेकर भारतीय दिग्गज का शॉकिंग स्टेटमेंट '
43
+ sentences:
44
+ - 'China’s New Radar: महाशक्तिशाली रडार, हाइपरसोनिक मिसाइलों को भी कर लेगा ट्रैक,
45
+ चीनी वैज्ञानिकों की बड़ी कामयाबी'
46
+ - 'Shubman Gill : ''उसे कप्तानी करना नहीं आता...'', शुभमन गिल को लेकर भारतीय दिग्गज
47
+ का शॉकिंग स्टेटमेंट'
48
+ - MCC ने जारी किया NEET MDS 2024 राउंड 1 सीट अलॉटमेंट रिजल्ट; जानें कैसे करें चेक
49
+ - source_sentence: ' ''सर पर लाल टोपी रूसी...'' 70 साल पुराने दोस्त से मुलाकात, मोदी-पुतिन
50
+ की बातों से क्या है उम्मीदें, चीन की बढ़ी धड़कन! '
51
+ sentences:
52
+ - मेष-कर्क समेत 4 राशि वाले आज रहें सावधान, वरना होगा नुकसान, पढ़ें राशिफल
53
+ - 'T20 WC 2024 Semi Final Scenario: टीम इंडिया का बदला पूरा, लेकिन रोहित एंड कंपनी
54
+ ने कर दी बड़ी मिस्टेक, ऑस्ट्रेलिया के पास मौका'
55
+ - 5 साल बाद एक बार फिर रूस जा सकता हैं पीएम मोदी, पुतिन के करीबी ने किया खुलासा
56
+ ---
57
+
58
+ # SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
59
+
60
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
61
+
62
+ ## Model Details
63
+
64
+ ### Model Description
65
+ - **Model Type:** Sentence Transformer
66
+ - **Base model:** [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) <!-- at revision bf3bf13ab40c3157080a7ab344c831b9ad18b5eb -->
67
+ - **Maximum Sequence Length:** 128 tokens
68
+ - **Output Dimensionality:** 384 tokens
69
+ - **Similarity Function:** Cosine Similarity
70
+ <!-- - **Training Dataset:** Unknown -->
71
+ <!-- - **Language:** Unknown -->
72
+ <!-- - **License:** Unknown -->
73
+
74
+ ### Model Sources
75
+
76
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
77
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
78
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
79
+
80
+ ### Full Model Architecture
81
+
82
+ ```
83
+ SentenceTransformer(
84
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
85
+ (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
86
+ )
87
+ ```
88
+
89
+ ## Usage
90
+
91
+ ### Direct Usage (Sentence Transformers)
92
+
93
+ First install the Sentence Transformers library:
94
+
95
+ ```bash
96
+ pip install -U sentence-transformers
97
+ ```
98
+
99
+ Then you can load this model and run inference.
100
+ ```python
101
+ from sentence_transformers import SentenceTransformer
102
+
103
+ # Download from the 🤗 Hub
104
+ model = SentenceTransformer("amorfati/custom-hindi-emb-model-contrastive-large")
105
+ # Run inference
106
+ sentences = [
107
+ " 'सर पर लाल टोपी रूसी...' 70 साल पुराने दोस्त से मुलाकात, मोदी-पुतिन की बातों से क्या है उम्मीदें, चीन\xa0की\xa0बढ़ी\xa0धड़कन! ",
108
+ '5 साल बाद एक बार फिर रूस जा सकता हैं पीएम मोदी, पुतिन के करीबी ने किया खुलासा',
109
+ 'T20 WC 2024 Semi Final Scenario: टीम इंडिया का बदला पूरा, लेकिन रोहित एंड कंपनी ने कर दी बड़ी मिस्टेक, ऑस्ट्रेलिया के पास मौका',
110
+ ]
111
+ embeddings = model.encode(sentences)
112
+ print(embeddings.shape)
113
+ # [3, 384]
114
+
115
+ # Get the similarity scores for the embeddings
116
+ similarities = model.similarity(embeddings, embeddings)
117
+ print(similarities.shape)
118
+ # [3, 3]
119
+ ```
120
+
121
+ <!--
122
+ ### Direct Usage (Transformers)
123
+
124
+ <details><summary>Click to see the direct usage in Transformers</summary>
125
+
126
+ </details>
127
+ -->
128
+
129
+ <!--
130
+ ### Downstream Usage (Sentence Transformers)
131
+
132
+ You can finetune this model on your own dataset.
133
+
134
+ <details><summary>Click to expand</summary>
135
+
136
+ </details>
137
+ -->
138
+
139
+ <!--
140
+ ### Out-of-Scope Use
141
+
142
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
143
+ -->
144
+
145
+ <!--
146
+ ## Bias, Risks and Limitations
147
+
148
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
149
+ -->
150
+
151
+ <!--
152
+ ### Recommendations
153
+
154
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
155
+ -->
156
+
157
+ ## Training Details
158
+
159
+ ### Training Dataset
160
+
161
+ #### Unnamed Dataset
162
+
163
+
164
+ * Size: 13,500 training samples
165
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
166
+ * Approximate statistics based on the first 1000 samples:
167
+ | | premise | hypothesis | label |
168
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------|
169
+ | type | string | string | int |
170
+ | details | <ul><li>min: 12 tokens</li><li>mean: 31.76 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>min: 12 tokens</li><li>mean: 31.33 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>0: 100.00%</li></ul> |
171
+ * Samples:
172
+ | premise | hypothesis | label |
173
+ |:-------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------|:---------------|
174
+ | <code> Live: ओएसिस स्कूल के प्रिंसिपल और वाइस प्रिंसिपल गिरफ्तार, नीट पेपर लीक मामले में सीबीआई का एक्शन </code> | <code> शादी में क्या रखा है! विवाह के बंधन में बंधने से अब क्यों कतराने लगी हैं लड़कियां? ये हैं 5 कारण </code> | <code>0</code> |
175
+ | <code> SSC Exam Preparation: एसएससी की तैयारी करने के लिए IIT कानपुर ने लॉन्च किया 'SATHEE SSC' प्लेटफॉर्म </code> | <code> Brain Health: बच्चों के दिमाग को नुकसान पहुंचा रहा शोर, लेटेस्ट स्टडी का चौंकाने वाला दावा </code> | <code>0</code> |
176
+ | <code> IND vs SL: वनडे में संगाकारा के महारिकॉर्ड पर बड़ा खतरा, विराट कोहली इसे ध्वस्त कर रच देंगे इतिहास </code> | <code> Chandrashekhar: 'कहने आए हैं, सुनना पड़ेगा सबको', जानिए कौन है ये निर्दलीय उम्मीदवार जो संसद में गरज रहा? </code> | <code>0</code> |
177
+ * Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
178
+ ```json
179
+ {
180
+ "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
181
+ "margin": 0.5,
182
+ "size_average": true
183
+ }
184
+ ```
185
+
186
+ ### Evaluation Dataset
187
+
188
+ #### Unnamed Dataset
189
+
190
+
191
+ * Size: 1,500 evaluation samples
192
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
193
+ * Approximate statistics based on the first 1000 samples:
194
+ | | premise | hypothesis | label |
195
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------|
196
+ | type | string | string | int |
197
+ | details | <ul><li>min: 15 tokens</li><li>mean: 31.8 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>min: 15 tokens</li><li>mean: 31.86 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>1: 100.00%</li></ul> |
198
+ * Samples:
199
+ | premise | hypothesis | label |
200
+ |:-----------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
201
+ | <code> T20 WC 2024 Semi Final Scenario: टीम इंडिया का बदला पूरा, लेकिन रोहित एंड कंपनी ने कर दी बड़ी मिस्टेक, ऑस्ट्रेलिया के पास मौका </code> | <code>T20 WC 2024 Semi Final Scenario: टीम इंडिया का बदला पूरा, लेकिन रोहित एंड कंपनी ने कर दी बड़ी मिस्टेक, ऑस्ट्रेलिया के पास मौका</code> | <code>1</code> |
202
+ | <code> Food Poisoning: जान्हवी कपूर को हुआ फूड पॉइजनिंग, 5 घरेलू उपायों से जल्द पाएं राहत </code> | <code>Food Poisoning: जान्हवी कपूर को हुआ फूड पॉइजनिंग, 5 घरेलू उपायों से जल्द पाएं राहत</code> | <code>1</code> |
203
+ | <code> चाय बेचने वाले के बेटे ने बिना कोचिंग पहली बार में क्रैक किया UPSC, बने IAS ऑफिसर </code> | <code>चाय बेचने वाले के बेटे ने बिना कोचिंग पहली बार में क्रैक किया UPSC, बने IAS ऑफिसर</code> | <code>1</code> |
204
+ * Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
205
+ ```json
206
+ {
207
+ "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
208
+ "margin": 0.5,
209
+ "size_average": true
210
+ }
211
+ ```
212
+
213
+ ### Training Hyperparameters
214
+ #### Non-Default Hyperparameters
215
+
216
+ - `eval_strategy`: steps
217
+ - `per_device_train_batch_size`: 16
218
+ - `per_device_eval_batch_size`: 16
219
+ - `learning_rate`: 2e-05
220
+ - `num_train_epochs`: 10
221
+ - `warmup_ratio`: 0.1
222
+
223
+ #### All Hyperparameters
224
+ <details><summary>Click to expand</summary>
225
+
226
+ - `overwrite_output_dir`: False
227
+ - `do_predict`: False
228
+ - `eval_strategy`: steps
229
+ - `prediction_loss_only`: True
230
+ - `per_device_train_batch_size`: 16
231
+ - `per_device_eval_batch_size`: 16
232
+ - `per_gpu_train_batch_size`: None
233
+ - `per_gpu_eval_batch_size`: None
234
+ - `gradient_accumulation_steps`: 1
235
+ - `eval_accumulation_steps`: None
236
+ - `learning_rate`: 2e-05
237
+ - `weight_decay`: 0.0
238
+ - `adam_beta1`: 0.9
239
+ - `adam_beta2`: 0.999
240
+ - `adam_epsilon`: 1e-08
241
+ - `max_grad_norm`: 1.0
242
+ - `num_train_epochs`: 10
243
+ - `max_steps`: -1
244
+ - `lr_scheduler_type`: linear
245
+ - `lr_scheduler_kwargs`: {}
246
+ - `warmup_ratio`: 0.1
247
+ - `warmup_steps`: 0
248
+ - `log_level`: passive
249
+ - `log_level_replica`: warning
250
+ - `log_on_each_node`: True
251
+ - `logging_nan_inf_filter`: True
252
+ - `save_safetensors`: True
253
+ - `save_on_each_node`: False
254
+ - `save_only_model`: False
255
+ - `restore_callback_states_from_checkpoint`: False
256
+ - `no_cuda`: False
257
+ - `use_cpu`: False
258
+ - `use_mps_device`: False
259
+ - `seed`: 42
260
+ - `data_seed`: None
261
+ - `jit_mode_eval`: False
262
+ - `use_ipex`: False
263
+ - `bf16`: False
264
+ - `fp16`: False
265
+ - `fp16_opt_level`: O1
266
+ - `half_precision_backend`: auto
267
+ - `bf16_full_eval`: False
268
+ - `fp16_full_eval`: False
269
+ - `tf32`: None
270
+ - `local_rank`: 0
271
+ - `ddp_backend`: None
272
+ - `tpu_num_cores`: None
273
+ - `tpu_metrics_debug`: False
274
+ - `debug`: []
275
+ - `dataloader_drop_last`: False
276
+ - `dataloader_num_workers`: 0
277
+ - `dataloader_prefetch_factor`: None
278
+ - `past_index`: -1
279
+ - `disable_tqdm`: False
280
+ - `remove_unused_columns`: True
281
+ - `label_names`: None
282
+ - `load_best_model_at_end`: False
283
+ - `ignore_data_skip`: False
284
+ - `fsdp`: []
285
+ - `fsdp_min_num_params`: 0
286
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
287
+ - `fsdp_transformer_layer_cls_to_wrap`: None
288
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
289
+ - `deepspeed`: None
290
+ - `label_smoothing_factor`: 0.0
291
+ - `optim`: adamw_torch
292
+ - `optim_args`: None
293
+ - `adafactor`: False
294
+ - `group_by_length`: False
295
+ - `length_column_name`: length
296
+ - `ddp_find_unused_parameters`: None
297
+ - `ddp_bucket_cap_mb`: None
298
+ - `ddp_broadcast_buffers`: False
299
+ - `dataloader_pin_memory`: True
300
+ - `dataloader_persistent_workers`: False
301
+ - `skip_memory_metrics`: True
302
+ - `use_legacy_prediction_loop`: False
303
+ - `push_to_hub`: False
304
+ - `resume_from_checkpoint`: None
305
+ - `hub_model_id`: None
306
+ - `hub_strategy`: every_save
307
+ - `hub_private_repo`: False
308
+ - `hub_always_push`: False
309
+ - `gradient_checkpointing`: False
310
+ - `gradient_checkpointing_kwargs`: None
311
+ - `include_inputs_for_metrics`: False
312
+ - `eval_do_concat_batches`: True
313
+ - `fp16_backend`: auto
314
+ - `push_to_hub_model_id`: None
315
+ - `push_to_hub_organization`: None
316
+ - `mp_parameters`:
317
+ - `auto_find_batch_size`: False
318
+ - `full_determinism`: False
319
+ - `torchdynamo`: None
320
+ - `ray_scope`: last
321
+ - `ddp_timeout`: 1800
322
+ - `torch_compile`: False
323
+ - `torch_compile_backend`: None
324
+ - `torch_compile_mode`: None
325
+ - `dispatch_batches`: None
326
+ - `split_batches`: None
327
+ - `include_tokens_per_second`: False
328
+ - `include_num_input_tokens_seen`: False
329
+ - `neftune_noise_alpha`: None
330
+ - `optim_target_modules`: None
331
+ - `batch_eval_metrics`: False
332
+ - `eval_on_start`: False
333
+ - `batch_sampler`: batch_sampler
334
+ - `multi_dataset_batch_sampler`: proportional
335
+
336
+ </details>
337
+
338
+ ### Training Logs
339
+ | Epoch | Step | Training Loss | loss |
340
+ |:------:|:----:|:-------------:|:------:|
341
+ | 0.1185 | 100 | 0.0016 | 0.0044 |
342
+ | 0.2370 | 200 | 0.0016 | 0.0034 |
343
+ | 0.3555 | 300 | 0.0014 | 0.0031 |
344
+ | 0.4739 | 400 | 0.0011 | 0.0031 |
345
+ | 0.5924 | 500 | 0.0012 | 0.0027 |
346
+ | 0.7109 | 600 | 0.0011 | 0.0026 |
347
+ | 0.8294 | 700 | 0.001 | 0.0024 |
348
+ | 0.9479 | 800 | 0.001 | 0.0031 |
349
+ | 1.0664 | 900 | 0.0007 | 0.0023 |
350
+ | 1.1848 | 1000 | 0.0006 | 0.0019 |
351
+ | 1.3033 | 1100 | 0.0006 | 0.0017 |
352
+ | 1.4218 | 1200 | 0.0007 | 0.0018 |
353
+ | 1.5403 | 1300 | 0.0005 | 0.0019 |
354
+ | 1.6588 | 1400 | 0.0006 | 0.0019 |
355
+ | 1.7773 | 1500 | 0.0006 | 0.0018 |
356
+ | 1.8957 | 1600 | 0.0005 | 0.0018 |
357
+ | 2.0142 | 1700 | 0.0006 | 0.0020 |
358
+ | 2.1327 | 1800 | 0.0002 | 0.0017 |
359
+ | 2.2512 | 1900 | 0.0005 | 0.0017 |
360
+ | 2.3697 | 2000 | 0.0002 | 0.0016 |
361
+ | 2.4882 | 2100 | 0.0002 | 0.0018 |
362
+ | 2.6066 | 2200 | 0.0002 | 0.0017 |
363
+ | 2.7251 | 2300 | 0.0002 | 0.0019 |
364
+ | 2.8436 | 2400 | 0.0002 | 0.0016 |
365
+ | 2.9621 | 2500 | 0.0002 | 0.0017 |
366
+ | 3.0806 | 2600 | 0.0003 | 0.0015 |
367
+ | 3.1991 | 2700 | 0.0002 | 0.0014 |
368
+ | 3.3175 | 2800 | 0.0001 | 0.0013 |
369
+ | 3.4360 | 2900 | 0.0001 | 0.0016 |
370
+ | 3.5545 | 3000 | 0.0002 | 0.0015 |
371
+ | 3.6730 | 3100 | 0.0002 | 0.0013 |
372
+ | 3.7915 | 3200 | 0.0002 | 0.0016 |
373
+ | 3.9100 | 3300 | 0.0001 | 0.0014 |
374
+ | 4.0284 | 3400 | 0.0002 | 0.0014 |
375
+ | 4.1469 | 3500 | 0.0001 | 0.0014 |
376
+ | 4.2654 | 3600 | 0.0001 | 0.0015 |
377
+ | 4.3839 | 3700 | 0.0002 | 0.0015 |
378
+ | 4.5024 | 3800 | 0.0001 | 0.0014 |
379
+ | 4.6209 | 3900 | 0.0002 | 0.0014 |
380
+ | 4.7393 | 4000 | 0.0002 | 0.0015 |
381
+ | 4.8578 | 4100 | 0.0001 | 0.0015 |
382
+ | 4.9763 | 4200 | 0.0001 | 0.0017 |
383
+ | 5.0948 | 4300 | 0.0001 | 0.0014 |
384
+ | 5.2133 | 4400 | 0.0001 | 0.0015 |
385
+ | 5.3318 | 4500 | 0.0001 | 0.0014 |
386
+ | 5.4502 | 4600 | 0.0001 | 0.0014 |
387
+ | 5.5687 | 4700 | 0.0001 | 0.0014 |
388
+ | 5.6872 | 4800 | 0.0002 | 0.0013 |
389
+ | 5.8057 | 4900 | 0.0001 | 0.0015 |
390
+ | 5.9242 | 5000 | 0.0001 | 0.0015 |
391
+ | 6.0427 | 5100 | 0.0001 | 0.0014 |
392
+ | 6.1611 | 5200 | 0.0001 | 0.0013 |
393
+ | 6.2796 | 5300 | 0.0001 | 0.0013 |
394
+ | 6.3981 | 5400 | 0.0001 | 0.0014 |
395
+ | 6.5166 | 5500 | 0.0001 | 0.0014 |
396
+ | 6.6351 | 5600 | 0.0001 | 0.0013 |
397
+ | 6.7536 | 5700 | 0.0002 | 0.0015 |
398
+ | 6.8720 | 5800 | 0.0001 | 0.0014 |
399
+ | 6.9905 | 5900 | 0.0 | 0.0015 |
400
+ | 7.1090 | 6000 | 0.0001 | 0.0014 |
401
+ | 7.2275 | 6100 | 0.0001 | 0.0014 |
402
+ | 7.3460 | 6200 | 0.0 | 0.0014 |
403
+ | 7.4645 | 6300 | 0.0001 | 0.0014 |
404
+ | 7.5829 | 6400 | 0.0001 | 0.0013 |
405
+ | 7.7014 | 6500 | 0.0001 | 0.0014 |
406
+ | 7.8199 | 6600 | 0.0001 | 0.0015 |
407
+ | 7.9384 | 6700 | 0.0001 | 0.0014 |
408
+ | 8.0569 | 6800 | 0.0 | 0.0014 |
409
+ | 8.1754 | 6900 | 0.0001 | 0.0013 |
410
+ | 8.2938 | 7000 | 0.0 | 0.0014 |
411
+ | 8.4123 | 7100 | 0.0 | 0.0013 |
412
+ | 8.5308 | 7200 | 0.0 | 0.0014 |
413
+ | 8.6493 | 7300 | 0.0 | 0.0014 |
414
+ | 8.7678 | 7400 | 0.0002 | 0.0014 |
415
+ | 8.8863 | 7500 | 0.0001 | 0.0014 |
416
+ | 9.0047 | 7600 | 0.0 | 0.0014 |
417
+ | 9.1232 | 7700 | 0.0001 | 0.0013 |
418
+ | 9.2417 | 7800 | 0.0001 | 0.0013 |
419
+ | 9.3602 | 7900 | 0.0 | 0.0014 |
420
+ | 9.4787 | 8000 | 0.0 | 0.0013 |
421
+ | 9.5972 | 8100 | 0.0 | 0.0013 |
422
+ | 9.7156 | 8200 | 0.0001 | 0.0013 |
423
+ | 9.8341 | 8300 | 0.0 | 0.0013 |
424
+ | 9.9526 | 8400 | 0.0 | 0.0013 |
425
+
426
+
427
+ ### Framework Versions
428
+ - Python: 3.10.12
429
+ - Sentence Transformers: 3.0.1
430
+ - Transformers: 4.42.4
431
+ - PyTorch: 2.3.1+cu121
432
+ - Accelerate: 0.32.1
433
+ - Datasets: 2.20.0
434
+ - Tokenizers: 0.19.1
435
+
436
+ ## Citation
437
+
438
+ ### BibTeX
439
+
440
+ #### Sentence Transformers
441
+ ```bibtex
442
+ @inproceedings{reimers-2019-sentence-bert,
443
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
444
+ author = "Reimers, Nils and Gurevych, Iryna",
445
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
446
+ month = "11",
447
+ year = "2019",
448
+ publisher = "Association for Computational Linguistics",
449
+ url = "https://arxiv.org/abs/1908.10084",
450
+ }
451
+ ```
452
+
453
+ #### ContrastiveLoss
454
+ ```bibtex
455
+ @inproceedings{hadsell2006dimensionality,
456
+ author={Hadsell, R. and Chopra, S. and LeCun, Y.},
457
+ booktitle={2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06)},
458
+ title={Dimensionality Reduction by Learning an Invariant Mapping},
459
+ year={2006},
460
+ volume={2},
461
+ number={},
462
+ pages={1735-1742},
463
+ doi={10.1109/CVPR.2006.100}
464
+ }
465
+ ```
466
+
467
+ <!--
468
+ ## Glossary
469
+
470
+ *Clearly define terms in order to be accessible across audiences.*
471
+ -->
472
+
473
+ <!--
474
+ ## Model Card Authors
475
+
476
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
477
+ -->
478
+
479
+ <!--
480
+ ## Model Card Contact
481
+
482
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
483
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.42.4",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 250037
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.42.4",
5
+ "pytorch": "2.3.1+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:009401fcc79d849d342b574d64b2bc5dbbacfc2dc5d52dbfa9dbfe0899fe8ab7
3
+ size 470637416
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
+ }
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,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "do_lower_case": true,
48
+ "eos_token": "</s>",
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
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "<unk>"
64
+ }
unigram.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
3
+ size 14763260