cassador commited on
Commit
50213b1
1 Parent(s): 2ce2d28

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,530 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: indobenchmark/indobert-base-p2
3
+ datasets:
4
+ - afaji/indonli
5
+ language:
6
+ - id
7
+ library_name: sentence-transformers
8
+ metrics:
9
+ - pearson_cosine
10
+ - spearman_cosine
11
+ - pearson_manhattan
12
+ - spearman_manhattan
13
+ - pearson_euclidean
14
+ - spearman_euclidean
15
+ - pearson_dot
16
+ - spearman_dot
17
+ - pearson_max
18
+ - spearman_max
19
+ pipeline_tag: sentence-similarity
20
+ tags:
21
+ - sentence-transformers
22
+ - sentence-similarity
23
+ - feature-extraction
24
+ - generated_from_trainer
25
+ - dataset_size:6915
26
+ - loss:SoftmaxLoss
27
+ widget:
28
+ - source_sentence: Pesta Olahraga Asia Tenggara atau Southeast Asian Games, biasa
29
+ disingkat SEA Games, adalah ajang olahraga yang diadakan setiap dua tahun dan
30
+ melibatkan 11 negara Asia Tenggara.
31
+ sentences:
32
+ - Sekarang tahun 2017.
33
+ - Warna kulit tidak mempengaruhi waktu berjemur yang baik untuk mengatifkan pro-vitamin
34
+ D3.
35
+ - Pesta Olahraga Asia Tenggara diadakan setiap tahun.
36
+ - source_sentence: Menjalani aktivitas Ramadhan di tengah wabah Corona tentunya tidak
37
+ mudah.
38
+ sentences:
39
+ - Tidak ada observasi yang pernah dilansir oleh Business Insider.
40
+ - Wabah Corona membuat aktivitas Ramadhan tidak mudah dijalani.
41
+ - Piala Sudirman pertama digelar pada tahun 1989.
42
+ - source_sentence: Dalam bidang politik, partai ini memperjuangkan agar kekuasaan
43
+ sepenuhnya berada di tangan rakyat.
44
+ sentences:
45
+ - Galileo tidak berhasil mengetes hasil dari Hukum Inert.
46
+ - Kudeta 14 Februari 1946 gagal merebut kekuasaan Belanda.
47
+ - Partai ini berusaha agar kekuasaan sepenuhnya berada di tangan rakyat.
48
+ - source_sentence: Keluarga mendiang Prince menuduh layanan musik streaming Tidal
49
+ memasukkan karya milik sang penyanyi legendaris tanpa izin .
50
+ sentences:
51
+ - Rosier adalah pelayan setia Lord Voldemort.
52
+ - Bangunan ini digunakan untuk penjualan.
53
+ - Keluarga mendiang Prince sudah memberi izin kepada TImbal untuk menggunakan lagu
54
+ milik Prince.
55
+ - source_sentence: Tujuan dari acara dengar pendapat CRTC adalah untuk mengumpulkan
56
+ respons dari pada pemangku kepentingan industri ini dan dari masyarakat umum.
57
+ sentences:
58
+ - Pembuat Rooms hanya bisa membuat meeting yang terbuka.
59
+ - Masyarakat umum dilibatkan untuk memberikan respon dalam acara dengar pendapat
60
+ CRTC.
61
+ - Eminem dirasa tidak akan memulai kembali kariernya tahun ini.
62
+ model-index:
63
+ - name: SentenceTransformer based on indobenchmark/indobert-base-p2
64
+ results:
65
+ - task:
66
+ type: semantic-similarity
67
+ name: Semantic Similarity
68
+ dataset:
69
+ name: sts dev
70
+ type: sts-dev
71
+ metrics:
72
+ - type: pearson_cosine
73
+ value: 0.596170613538296
74
+ name: Pearson Cosine
75
+ - type: spearman_cosine
76
+ value: 0.5861883707539226
77
+ name: Spearman Cosine
78
+ - type: pearson_manhattan
79
+ value: 0.5845731839861422
80
+ name: Pearson Manhattan
81
+ - type: spearman_manhattan
82
+ value: 0.5782563614870986
83
+ name: Spearman Manhattan
84
+ - type: pearson_euclidean
85
+ value: 0.5900038609486801
86
+ name: Pearson Euclidean
87
+ - type: spearman_euclidean
88
+ value: 0.5795936352515776
89
+ name: Spearman Euclidean
90
+ - type: pearson_dot
91
+ value: 0.5995818925993402
92
+ name: Pearson Dot
93
+ - type: spearman_dot
94
+ value: 0.5930379614276564
95
+ name: Spearman Dot
96
+ - type: pearson_max
97
+ value: 0.5995818925993402
98
+ name: Pearson Max
99
+ - type: spearman_max
100
+ value: 0.5930379614276564
101
+ name: Spearman Max
102
+ - task:
103
+ type: semantic-similarity
104
+ name: Semantic Similarity
105
+ dataset:
106
+ name: sts test
107
+ type: sts-test
108
+ metrics:
109
+ - type: pearson_cosine
110
+ value: 0.32544389544371366
111
+ name: Pearson Cosine
112
+ - type: spearman_cosine
113
+ value: 0.29994363722612716
114
+ name: Spearman Cosine
115
+ - type: pearson_manhattan
116
+ value: 0.2875495017479062
117
+ name: Pearson Manhattan
118
+ - type: spearman_manhattan
119
+ value: 0.2810442265188576
120
+ name: Spearman Manhattan
121
+ - type: pearson_euclidean
122
+ value: 0.29788552102363436
123
+ name: Pearson Euclidean
124
+ - type: spearman_euclidean
125
+ value: 0.28248957351462056
126
+ name: Spearman Euclidean
127
+ - type: pearson_dot
128
+ value: 0.34645175745533086
129
+ name: Pearson Dot
130
+ - type: spearman_dot
131
+ value: 0.3331449893649715
132
+ name: Spearman Dot
133
+ - type: pearson_max
134
+ value: 0.34645175745533086
135
+ name: Pearson Max
136
+ - type: spearman_max
137
+ value: 0.3331449893649715
138
+ name: Spearman Max
139
+ ---
140
+
141
+ # SentenceTransformer based on indobenchmark/indobert-base-p2
142
+
143
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [indobenchmark/indobert-base-p2](https://huggingface.co/indobenchmark/indobert-base-p2) on the [afaji/indonli](https://huggingface.co/datasets/afaji/indonli) 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.
144
+
145
+ ## Model Details
146
+
147
+ ### Model Description
148
+ - **Model Type:** Sentence Transformer
149
+ - **Base model:** [indobenchmark/indobert-base-p2](https://huggingface.co/indobenchmark/indobert-base-p2) <!-- at revision 94b4e0a82081fa57f227fcc2024d1ea89b57ac1f -->
150
+ - **Maximum Sequence Length:** 512 tokens
151
+ - **Output Dimensionality:** 768 tokens
152
+ - **Similarity Function:** Cosine Similarity
153
+ - **Training Dataset:**
154
+ - [afaji/indonli](https://huggingface.co/datasets/afaji/indonli)
155
+ - **Language:** id
156
+ <!-- - **License:** Unknown -->
157
+
158
+ ### Model Sources
159
+
160
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
161
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
162
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
163
+
164
+ ### Full Model Architecture
165
+
166
+ ```
167
+ SentenceTransformer(
168
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
169
+ (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})
170
+ )
171
+ ```
172
+
173
+ ## Usage
174
+
175
+ ### Direct Usage (Sentence Transformers)
176
+
177
+ First install the Sentence Transformers library:
178
+
179
+ ```bash
180
+ pip install -U sentence-transformers
181
+ ```
182
+
183
+ Then you can load this model and run inference.
184
+ ```python
185
+ from sentence_transformers import SentenceTransformer
186
+
187
+ # Download from the 🤗 Hub
188
+ model = SentenceTransformer("cassador/4bs8lr2")
189
+ # Run inference
190
+ sentences = [
191
+ 'Tujuan dari acara dengar pendapat CRTC adalah untuk mengumpulkan respons dari pada pemangku kepentingan industri ini dan dari masyarakat umum.',
192
+ 'Masyarakat umum dilibatkan untuk memberikan respon dalam acara dengar pendapat CRTC.',
193
+ 'Pembuat Rooms hanya bisa membuat meeting yang terbuka.',
194
+ ]
195
+ embeddings = model.encode(sentences)
196
+ print(embeddings.shape)
197
+ # [3, 768]
198
+
199
+ # Get the similarity scores for the embeddings
200
+ similarities = model.similarity(embeddings, embeddings)
201
+ print(similarities.shape)
202
+ # [3, 3]
203
+ ```
204
+
205
+ <!--
206
+ ### Direct Usage (Transformers)
207
+
208
+ <details><summary>Click to see the direct usage in Transformers</summary>
209
+
210
+ </details>
211
+ -->
212
+
213
+ <!--
214
+ ### Downstream Usage (Sentence Transformers)
215
+
216
+ You can finetune this model on your own dataset.
217
+
218
+ <details><summary>Click to expand</summary>
219
+
220
+ </details>
221
+ -->
222
+
223
+ <!--
224
+ ### Out-of-Scope Use
225
+
226
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
227
+ -->
228
+
229
+ ## Evaluation
230
+
231
+ ### Metrics
232
+
233
+ #### Semantic Similarity
234
+ * Dataset: `sts-dev`
235
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
236
+
237
+ | Metric | Value |
238
+ |:--------------------|:-----------|
239
+ | pearson_cosine | 0.5962 |
240
+ | **spearman_cosine** | **0.5862** |
241
+ | pearson_manhattan | 0.5846 |
242
+ | spearman_manhattan | 0.5783 |
243
+ | pearson_euclidean | 0.59 |
244
+ | spearman_euclidean | 0.5796 |
245
+ | pearson_dot | 0.5996 |
246
+ | spearman_dot | 0.593 |
247
+ | pearson_max | 0.5996 |
248
+ | spearman_max | 0.593 |
249
+
250
+ #### Semantic Similarity
251
+ * Dataset: `sts-test`
252
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
253
+
254
+ | Metric | Value |
255
+ |:--------------------|:-----------|
256
+ | pearson_cosine | 0.3254 |
257
+ | **spearman_cosine** | **0.2999** |
258
+ | pearson_manhattan | 0.2875 |
259
+ | spearman_manhattan | 0.281 |
260
+ | pearson_euclidean | 0.2979 |
261
+ | spearman_euclidean | 0.2825 |
262
+ | pearson_dot | 0.3465 |
263
+ | spearman_dot | 0.3331 |
264
+ | pearson_max | 0.3465 |
265
+ | spearman_max | 0.3331 |
266
+
267
+ <!--
268
+ ## Bias, Risks and Limitations
269
+
270
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
271
+ -->
272
+
273
+ <!--
274
+ ### Recommendations
275
+
276
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
277
+ -->
278
+
279
+ ## Training Details
280
+
281
+ ### Training Dataset
282
+
283
+ #### afaji/indonli
284
+
285
+ * Dataset: [afaji/indonli](https://huggingface.co/datasets/afaji/indonli)
286
+ * Size: 6,915 training samples
287
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
288
+ * Approximate statistics based on the first 1000 samples:
289
+ | | premise | hypothesis | label |
290
+ |:--------|:------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:------------------------------------------------|
291
+ | type | string | string | int |
292
+ | details | <ul><li>min: 12 tokens</li><li>mean: 29.26 tokens</li><li>max: 135 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 12.13 tokens</li><li>max: 36 tokens</li></ul> | <ul><li>0: ~51.00%</li><li>1: ~49.00%</li></ul> |
293
+ * Samples:
294
+ | premise | hypothesis | label |
295
+ |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------|:---------------|
296
+ | <code>Presiden Joko Widodo (Jokowi) menyampaikan prediksi bahwa wabah virus Corona (COVID-19) di Indonesia akan selesai akhir tahun ini.</code> | <code>Prediksi akhir wabah tidak disampaikan Jokowi.</code> | <code>0</code> |
297
+ | <code>Meski biasanya hanya digunakan di fasilitas kesehatan, saat ini masker dan sarung tangan sekali pakai banyak dipakai di tingkat rumah tangga.</code> | <code>Masker sekali pakai banyak dipakai di tingkat rumah tangga.</code> | <code>1</code> |
298
+ | <code>Seperti namanya, paket internet sahur Telkomsel ini ditujukan bagi pengguna yang menginginkan kuota ekstra, untuk menemani momen sahur sepanjang bulan puasa.</code> | <code>Paket internet sahur tidak ditujukan untuk saat sahur.</code> | <code>0</code> |
299
+ * Loss: [<code>SoftmaxLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#softmaxloss)
300
+
301
+ ### Evaluation Dataset
302
+
303
+ #### afaji/indonli
304
+
305
+ * Dataset: [afaji/indonli](https://huggingface.co/datasets/afaji/indonli)
306
+ * Size: 1,556 evaluation samples
307
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
308
+ * Approximate statistics based on the first 1000 samples:
309
+ | | premise | hypothesis | label |
310
+ |:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:------------------------------------------------|
311
+ | type | string | string | int |
312
+ | details | <ul><li>min: 9 tokens</li><li>mean: 28.07 tokens</li><li>max: 179 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 12.15 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>0: ~47.90%</li><li>1: ~52.10%</li></ul> |
313
+ * Samples:
314
+ | premise | hypothesis | label |
315
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------|:---------------|
316
+ | <code>Manuskrip tersebut berisi tiga catatan yang menceritakan bagaimana peristiwa jatuhnya meteorit serta laporan kematian akibat kejadian tersebut seperti dilansir dari Science Alert, Sabtu (25/4/2020).</code> | <code>Manuskrip tersebut tidak mencatat laporan kematian.</code> | <code>0</code> |
317
+ | <code>Dilansir dari Business Insider, menurut observasi dari Mauna Loa Observatory di Hawaii pada karbon dioksida (CO2) di level mencapai 410 ppm tidak langsung memberikan efek pada pernapasan, karena tubuh manusia juga masih membutuhkan CO2 dalam kadar tertentu.</code> | <code>Tidak ada observasi yang pernah dilansir oleh Business Insider.</code> | <code>0</code> |
318
+ | <code>Seorang wanita asal New York mengaku sangat benci air putih.</code> | <code>Tidak ada orang dari New York yang membenci air putih.</code> | <code>0</code> |
319
+ * Loss: [<code>SoftmaxLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#softmaxloss)
320
+
321
+ ### Training Hyperparameters
322
+ #### Non-Default Hyperparameters
323
+
324
+ - `eval_strategy`: epoch
325
+ - `learning_rate`: 2e-05
326
+ - `num_train_epochs`: 4
327
+ - `warmup_ratio`: 0.1
328
+ - `fp16`: True
329
+
330
+ #### All Hyperparameters
331
+ <details><summary>Click to expand</summary>
332
+
333
+ - `overwrite_output_dir`: False
334
+ - `do_predict`: False
335
+ - `eval_strategy`: epoch
336
+ - `prediction_loss_only`: True
337
+ - `per_device_train_batch_size`: 8
338
+ - `per_device_eval_batch_size`: 8
339
+ - `per_gpu_train_batch_size`: None
340
+ - `per_gpu_eval_batch_size`: None
341
+ - `gradient_accumulation_steps`: 1
342
+ - `eval_accumulation_steps`: None
343
+ - `learning_rate`: 2e-05
344
+ - `weight_decay`: 0.0
345
+ - `adam_beta1`: 0.9
346
+ - `adam_beta2`: 0.999
347
+ - `adam_epsilon`: 1e-08
348
+ - `max_grad_norm`: 1.0
349
+ - `num_train_epochs`: 4
350
+ - `max_steps`: -1
351
+ - `lr_scheduler_type`: linear
352
+ - `lr_scheduler_kwargs`: {}
353
+ - `warmup_ratio`: 0.1
354
+ - `warmup_steps`: 0
355
+ - `log_level`: passive
356
+ - `log_level_replica`: warning
357
+ - `log_on_each_node`: True
358
+ - `logging_nan_inf_filter`: True
359
+ - `save_safetensors`: True
360
+ - `save_on_each_node`: False
361
+ - `save_only_model`: False
362
+ - `restore_callback_states_from_checkpoint`: False
363
+ - `no_cuda`: False
364
+ - `use_cpu`: False
365
+ - `use_mps_device`: False
366
+ - `seed`: 42
367
+ - `data_seed`: None
368
+ - `jit_mode_eval`: False
369
+ - `use_ipex`: False
370
+ - `bf16`: False
371
+ - `fp16`: True
372
+ - `fp16_opt_level`: O1
373
+ - `half_precision_backend`: auto
374
+ - `bf16_full_eval`: False
375
+ - `fp16_full_eval`: False
376
+ - `tf32`: None
377
+ - `local_rank`: 0
378
+ - `ddp_backend`: None
379
+ - `tpu_num_cores`: None
380
+ - `tpu_metrics_debug`: False
381
+ - `debug`: []
382
+ - `dataloader_drop_last`: False
383
+ - `dataloader_num_workers`: 0
384
+ - `dataloader_prefetch_factor`: None
385
+ - `past_index`: -1
386
+ - `disable_tqdm`: False
387
+ - `remove_unused_columns`: True
388
+ - `label_names`: None
389
+ - `load_best_model_at_end`: False
390
+ - `ignore_data_skip`: False
391
+ - `fsdp`: []
392
+ - `fsdp_min_num_params`: 0
393
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
394
+ - `fsdp_transformer_layer_cls_to_wrap`: None
395
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
396
+ - `deepspeed`: None
397
+ - `label_smoothing_factor`: 0.0
398
+ - `optim`: adamw_torch
399
+ - `optim_args`: None
400
+ - `adafactor`: False
401
+ - `group_by_length`: False
402
+ - `length_column_name`: length
403
+ - `ddp_find_unused_parameters`: None
404
+ - `ddp_bucket_cap_mb`: None
405
+ - `ddp_broadcast_buffers`: False
406
+ - `dataloader_pin_memory`: True
407
+ - `dataloader_persistent_workers`: False
408
+ - `skip_memory_metrics`: True
409
+ - `use_legacy_prediction_loop`: False
410
+ - `push_to_hub`: False
411
+ - `resume_from_checkpoint`: None
412
+ - `hub_model_id`: None
413
+ - `hub_strategy`: every_save
414
+ - `hub_private_repo`: False
415
+ - `hub_always_push`: False
416
+ - `gradient_checkpointing`: False
417
+ - `gradient_checkpointing_kwargs`: None
418
+ - `include_inputs_for_metrics`: False
419
+ - `eval_do_concat_batches`: True
420
+ - `fp16_backend`: auto
421
+ - `push_to_hub_model_id`: None
422
+ - `push_to_hub_organization`: None
423
+ - `mp_parameters`:
424
+ - `auto_find_batch_size`: False
425
+ - `full_determinism`: False
426
+ - `torchdynamo`: None
427
+ - `ray_scope`: last
428
+ - `ddp_timeout`: 1800
429
+ - `torch_compile`: False
430
+ - `torch_compile_backend`: None
431
+ - `torch_compile_mode`: None
432
+ - `dispatch_batches`: None
433
+ - `split_batches`: None
434
+ - `include_tokens_per_second`: False
435
+ - `include_num_input_tokens_seen`: False
436
+ - `neftune_noise_alpha`: None
437
+ - `optim_target_modules`: None
438
+ - `batch_eval_metrics`: False
439
+ - `batch_sampler`: batch_sampler
440
+ - `multi_dataset_batch_sampler`: proportional
441
+
442
+ </details>
443
+
444
+ ### Training Logs
445
+ | Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
446
+ |:------:|:----:|:-------------:|:------:|:-----------------------:|:------------------------:|
447
+ | 0 | 0 | - | - | 0.1277 | - |
448
+ | 0.1156 | 100 | 0.6805 | - | - | - |
449
+ | 0.2312 | 200 | 0.5137 | - | - | - |
450
+ | 0.3468 | 300 | 0.5108 | - | - | - |
451
+ | 0.4624 | 400 | 0.5113 | - | - | - |
452
+ | 0.5780 | 500 | 0.5102 | - | - | - |
453
+ | 0.6936 | 600 | 0.5212 | - | - | - |
454
+ | 0.8092 | 700 | 0.5035 | - | - | - |
455
+ | 0.9249 | 800 | 0.472 | - | - | - |
456
+ | 1.0 | 865 | - | 0.4468 | 0.5249 | - |
457
+ | 1.0405 | 900 | 0.4193 | - | - | - |
458
+ | 1.1561 | 1000 | 0.3509 | - | - | - |
459
+ | 1.2717 | 1100 | 0.3709 | - | - | - |
460
+ | 1.3873 | 1200 | 0.3538 | - | - | - |
461
+ | 1.5029 | 1300 | 0.3619 | - | - | - |
462
+ | 1.6185 | 1400 | 0.388 | - | - | - |
463
+ | 1.7341 | 1500 | 0.3657 | - | - | - |
464
+ | 1.8497 | 1600 | 0.3577 | - | - | - |
465
+ | 1.9653 | 1700 | 0.4149 | - | - | - |
466
+ | 2.0 | 1730 | - | 0.4535 | 0.5503 | - |
467
+ | 2.0809 | 1800 | 0.3037 | - | - | - |
468
+ | 2.1965 | 1900 | 0.2213 | - | - | - |
469
+ | 2.3121 | 2000 | 0.2531 | - | - | - |
470
+ | 2.4277 | 2100 | 0.2281 | - | - | - |
471
+ | 2.5434 | 2200 | 0.2684 | - | - | - |
472
+ | 2.6590 | 2300 | 0.2154 | - | - | - |
473
+ | 2.7746 | 2400 | 0.2556 | - | - | - |
474
+ | 2.8902 | 2500 | 0.2515 | - | - | - |
475
+ | 3.0 | 2595 | - | 0.6295 | 0.5799 | - |
476
+ | 3.0058 | 2600 | 0.2158 | - | - | - |
477
+ | 3.1214 | 2700 | 0.1445 | - | - | - |
478
+ | 3.2370 | 2800 | 0.1191 | - | - | - |
479
+ | 3.3526 | 2900 | 0.1514 | - | - | - |
480
+ | 3.4682 | 3000 | 0.1223 | - | - | - |
481
+ | 3.5838 | 3100 | 0.1581 | - | - | - |
482
+ | 3.6994 | 3200 | 0.112 | - | - | - |
483
+ | 3.8150 | 3300 | 0.1396 | - | - | - |
484
+ | 3.9306 | 3400 | 0.1568 | - | - | - |
485
+ | 4.0 | 3460 | - | 0.8635 | 0.5862 | 0.2999 |
486
+
487
+
488
+ ### Framework Versions
489
+ - Python: 3.10.12
490
+ - Sentence Transformers: 3.0.1
491
+ - Transformers: 4.41.2
492
+ - PyTorch: 2.3.0+cu121
493
+ - Accelerate: 0.31.0
494
+ - Datasets: 2.20.0
495
+ - Tokenizers: 0.19.1
496
+
497
+ ## Citation
498
+
499
+ ### BibTeX
500
+
501
+ #### Sentence Transformers and SoftmaxLoss
502
+ ```bibtex
503
+ @inproceedings{reimers-2019-sentence-bert,
504
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
505
+ author = "Reimers, Nils and Gurevych, Iryna",
506
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
507
+ month = "11",
508
+ year = "2019",
509
+ publisher = "Association for Computational Linguistics",
510
+ url = "https://arxiv.org/abs/1908.10084",
511
+ }
512
+ ```
513
+
514
+ <!--
515
+ ## Glossary
516
+
517
+ *Clearly define terms in order to be accessible across audiences.*
518
+ -->
519
+
520
+ <!--
521
+ ## Model Card Authors
522
+
523
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
524
+ -->
525
+
526
+ <!--
527
+ ## Model Card Contact
528
+
529
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
530
+ -->
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "indobenchmark/indobert-base-p2",
3
+ "_num_labels": 5,
4
+ "architectures": [
5
+ "BertModel"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2",
17
+ "3": "LABEL_3",
18
+ "4": "LABEL_4"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "LABEL_0": 0,
24
+ "LABEL_1": 1,
25
+ "LABEL_2": 2,
26
+ "LABEL_3": 3,
27
+ "LABEL_4": 4
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "output_past": true,
35
+ "pad_token_id": 0,
36
+ "pooler_fc_size": 768,
37
+ "pooler_num_attention_heads": 12,
38
+ "pooler_num_fc_layers": 3,
39
+ "pooler_size_per_head": 128,
40
+ "pooler_type": "first_token_transform",
41
+ "position_embedding_type": "absolute",
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.41.2",
44
+ "type_vocab_size": 2,
45
+ "use_cache": true,
46
+ "vocab_size": 50000
47
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.3.0+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:4638cea9bbe29611a099ea6888e5761bbef20115ddac50e578c74eafda34c41a
3
+ size 497787752
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,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff