yahyaabd commited on
Commit
09d13eb
·
verified ·
1 Parent(s): a5a5f1d

Add new SentenceTransformer model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1024,
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
+ }
2_Dense/config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"in_features": 1024, "out_features": 256, "bias": true, "activation_function": "torch.nn.modules.activation.Tanh"}
2_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d09ad0eb39408096d3a5bc3c721a78a6a4407a9c1fd6bd3d89eef0ba4a299a8a
3
+ size 1049760
README.md ADDED
@@ -0,0 +1,528 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:967831
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: denaya/indoSBERT-large
10
+ widget:
11
+ - source_sentence: Penghasilan freelancer per provinsi, beda umur 2016
12
+ sentences:
13
+ - Rata-rata Pendapatan Bersih Pekerja Bebas Menurut Provinsi dan Kelompok Umur (ribu
14
+ rupiah), 2016
15
+ - Konkordansi Klasifikasi Tabel Inter Regional Input-Output Indonesia, 2016 (52
16
+ Industri - 17 Lapangan Usaha)
17
+ - Rata-rata Konsumsi dan Pengeluaran Perkapita Seminggu Menurut Komoditi Makanan
18
+ dan Golongan Pengeluaran per Kapita Seminggu di Provinsi Maluku, 2018-2023
19
+ - source_sentence: Tren angka partisipasi sekolah di Indonesia (7-23 tahun) berdasarkan
20
+ gender dan kelompok umur, 2015-2023
21
+ sentences:
22
+ - Jumlah Sekolah, Guru, dan Murid Sekolah Dasar (SD) di Bawah Kementerian Pendidikan
23
+ dan Kebudayaan Menurut Provinsi Tahun Ajaran 2011/2012-2015/2016
24
+ - Rata-rata Harian Konsumsi Protein Per Kapita dan Konsumsi Kalori Per Kapita Tahun
25
+ 1990 - 2023
26
+ - Persentase Penduduk Usia 7-23 Tahun Menurut Jenis Kelamin, Kelompok Umur Sekolah,
27
+ dan Partisipasi Sekolah, 2015-2023
28
+ - source_sentence: Sumber penerangan rumah tangga per provinsi Indonesia 2018
29
+ sentences:
30
+ - Nutrisi
31
+ - Rata-rata Pendapatan Bersih Berusaha Sendiri Menurut Provinsi dan Lapangan Pekerjaan
32
+ Utama (ribu rupiah), 2016
33
+ - Persentase Rumah Tangga Menurut Provinsi dan Sumber Penerangan, 2015-2021
34
+ - source_sentence: Rumah tangga dengan lampu hemat energi per provinsi, 2014 vs 2021
35
+ (urban vs rural)
36
+ sentences:
37
+ - Persentase Rumah Tangga yang Menggunakan Lampu Hemat Energi Menurut Provinsi dan
38
+ Daerah Tempat Tinggal, 2014, 2021
39
+ - Luas Daerah Pengaliran dan Debit dari Beberapa Sungai yang Daerah Pengalirannya
40
+ Lebih dari 100 km2, 2015
41
+ - Perolehan Suara dan Kursi Dewan Perwakilan Rakyat (DPR) Menurut Partai Politik
42
+ Hasil Pemilu Tahun 2009 dan 2014
43
+ - source_sentence: 'Upah bulanan rata-rata: Hubungan pendidikan tertinggi dan sektor
44
+ pekerjaan utama, data 2021'
45
+ sentences:
46
+ - IHK dan Rata-rata Upah per Bulan Buruh Peternakan dan Perikanan di Bawah Mandor
47
+ (Supervisor), 2007-2014 (2007=100)
48
+ - Rata-rata Upah/Gaji Bersih Sebulan Buruh/Karyawan Pegawai Menurut Pendidikan Tertinggi
49
+ dan Jenis Pekerjaan Utama, 2021
50
+ - Rata-rata Upah/Gaji Bersih sebulan Buruh/Karyawan Pegawai Menurut Pendidikan Tertinggi
51
+ dan Lapangan Pekerjaan Utama, 2021
52
+ datasets:
53
+ - yahyaabd/statictable-triplets-all
54
+ pipeline_tag: sentence-similarity
55
+ library_name: sentence-transformers
56
+ metrics:
57
+ - cosine_accuracy@1
58
+ - cosine_accuracy@5
59
+ - cosine_accuracy@10
60
+ - cosine_precision@1
61
+ - cosine_precision@5
62
+ - cosine_precision@10
63
+ - cosine_recall@1
64
+ - cosine_recall@5
65
+ - cosine_recall@10
66
+ - cosine_ndcg@1
67
+ - cosine_ndcg@5
68
+ - cosine_ndcg@10
69
+ - cosine_mrr@1
70
+ - cosine_mrr@5
71
+ - cosine_mrr@10
72
+ - cosine_map@1
73
+ - cosine_map@5
74
+ - cosine_map@10
75
+ model-index:
76
+ - name: SentenceTransformer based on denaya/indoSBERT-large
77
+ results:
78
+ - task:
79
+ type: information-retrieval
80
+ name: Information Retrieval
81
+ dataset:
82
+ name: bps statictable ir
83
+ type: bps-statictable-ir
84
+ metrics:
85
+ - type: cosine_accuracy@1
86
+ value: 0.9218241042345277
87
+ name: Cosine Accuracy@1
88
+ - type: cosine_accuracy@5
89
+ value: 0.990228013029316
90
+ name: Cosine Accuracy@5
91
+ - type: cosine_accuracy@10
92
+ value: 0.996742671009772
93
+ name: Cosine Accuracy@10
94
+ - type: cosine_precision@1
95
+ value: 0.9218241042345277
96
+ name: Cosine Precision@1
97
+ - type: cosine_precision@5
98
+ value: 0.2247557003257329
99
+ name: Cosine Precision@5
100
+ - type: cosine_precision@10
101
+ value: 0.13159609120521173
102
+ name: Cosine Precision@10
103
+ - type: cosine_recall@1
104
+ value: 0.7225077889088528
105
+ name: Cosine Recall@1
106
+ - type: cosine_recall@5
107
+ value: 0.793020064240505
108
+ name: Cosine Recall@5
109
+ - type: cosine_recall@10
110
+ value: 0.8181542032723246
111
+ name: Cosine Recall@10
112
+ - type: cosine_ndcg@1
113
+ value: 0.9218241042345277
114
+ name: Cosine Ndcg@1
115
+ - type: cosine_ndcg@5
116
+ value: 0.8340748596494166
117
+ name: Cosine Ndcg@5
118
+ - type: cosine_ndcg@10
119
+ value: 0.8332473439965864
120
+ name: Cosine Ndcg@10
121
+ - type: cosine_mrr@1
122
+ value: 0.9218241042345277
123
+ name: Cosine Mrr@1
124
+ - type: cosine_mrr@5
125
+ value: 0.9522258414766559
126
+ name: Cosine Mrr@5
127
+ - type: cosine_mrr@10
128
+ value: 0.9532340623545834
129
+ name: Cosine Mrr@10
130
+ - type: cosine_map@1
131
+ value: 0.9218241042345277
132
+ name: Cosine Map@1
133
+ - type: cosine_map@5
134
+ value: 0.7919598262757872
135
+ name: Cosine Map@5
136
+ - type: cosine_map@10
137
+ value: 0.7847729133274736
138
+ name: Cosine Map@10
139
+ ---
140
+
141
+ # SentenceTransformer based on denaya/indoSBERT-large
142
+
143
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [denaya/indoSBERT-large](https://huggingface.co/denaya/indoSBERT-large) on the [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all) dataset. It maps sentences & paragraphs to a 256-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:** [denaya/indoSBERT-large](https://huggingface.co/denaya/indoSBERT-large) <!-- at revision 5c64d43f07f7054dfbf33d226b3066414b6ebc4a -->
150
+ - **Maximum Sequence Length:** 256 tokens
151
+ - **Output Dimensionality:** 256 dimensions
152
+ - **Similarity Function:** Cosine Similarity
153
+ - **Training Dataset:**
154
+ - [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all)
155
+ <!-- - **Language:** Unknown -->
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': 256, 'do_lower_case': False}) with Transformer model: BertModel
169
+ (1): Pooling({'word_embedding_dimension': 1024, '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
+ (2): Dense({'in_features': 1024, 'out_features': 256, 'bias': True, 'activation_function': 'torch.nn.modules.activation.Tanh'})
171
+ )
172
+ ```
173
+
174
+ ## Usage
175
+
176
+ ### Direct Usage (Sentence Transformers)
177
+
178
+ First install the Sentence Transformers library:
179
+
180
+ ```bash
181
+ pip install -U sentence-transformers
182
+ ```
183
+
184
+ Then you can load this model and run inference.
185
+ ```python
186
+ from sentence_transformers import SentenceTransformer
187
+
188
+ # Download from the 🤗 Hub
189
+ model = SentenceTransformer("yahyaabd/indoSBERT-Large-mnrl-2")
190
+ # Run inference
191
+ sentences = [
192
+ 'Upah bulanan rata-rata: Hubungan pendidikan tertinggi dan sektor pekerjaan utama, data 2021',
193
+ 'Rata-rata Upah/Gaji Bersih sebulan Buruh/Karyawan Pegawai Menurut Pendidikan Tertinggi dan Lapangan Pekerjaan Utama, 2021',
194
+ 'Rata-rata Upah/Gaji Bersih Sebulan Buruh/Karyawan Pegawai Menurut Pendidikan Tertinggi dan Jenis Pekerjaan Utama, 2021',
195
+ ]
196
+ embeddings = model.encode(sentences)
197
+ print(embeddings.shape)
198
+ # [3, 256]
199
+
200
+ # Get the similarity scores for the embeddings
201
+ similarities = model.similarity(embeddings, embeddings)
202
+ print(similarities.shape)
203
+ # [3, 3]
204
+ ```
205
+
206
+ <!--
207
+ ### Direct Usage (Transformers)
208
+
209
+ <details><summary>Click to see the direct usage in Transformers</summary>
210
+
211
+ </details>
212
+ -->
213
+
214
+ <!--
215
+ ### Downstream Usage (Sentence Transformers)
216
+
217
+ You can finetune this model on your own dataset.
218
+
219
+ <details><summary>Click to expand</summary>
220
+
221
+ </details>
222
+ -->
223
+
224
+ <!--
225
+ ### Out-of-Scope Use
226
+
227
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
228
+ -->
229
+
230
+ ## Evaluation
231
+
232
+ ### Metrics
233
+
234
+ #### Information Retrieval
235
+
236
+ * Dataset: `bps-statictable-ir`
237
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
238
+
239
+ | Metric | Value |
240
+ |:--------------------|:-----------|
241
+ | cosine_accuracy@1 | 0.9218 |
242
+ | cosine_accuracy@5 | 0.9902 |
243
+ | cosine_accuracy@10 | 0.9967 |
244
+ | cosine_precision@1 | 0.9218 |
245
+ | cosine_precision@5 | 0.2248 |
246
+ | cosine_precision@10 | 0.1316 |
247
+ | cosine_recall@1 | 0.7225 |
248
+ | cosine_recall@5 | 0.793 |
249
+ | cosine_recall@10 | 0.8182 |
250
+ | cosine_ndcg@1 | 0.9218 |
251
+ | cosine_ndcg@5 | 0.8341 |
252
+ | **cosine_ndcg@10** | **0.8332** |
253
+ | cosine_mrr@1 | 0.9218 |
254
+ | cosine_mrr@5 | 0.9522 |
255
+ | cosine_mrr@10 | 0.9532 |
256
+ | cosine_map@1 | 0.9218 |
257
+ | cosine_map@5 | 0.792 |
258
+ | cosine_map@10 | 0.7848 |
259
+
260
+ <!--
261
+ ## Bias, Risks and Limitations
262
+
263
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
264
+ -->
265
+
266
+ <!--
267
+ ### Recommendations
268
+
269
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
270
+ -->
271
+
272
+ ## Training Details
273
+
274
+ ### Training Dataset
275
+
276
+ #### statictable-triplets-all
277
+
278
+ * Dataset: [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all) at [24979b4](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all/tree/24979b4f0d8269377aca975e20d52e69c3b5a030)
279
+ * Size: 967,831 training samples
280
+ * Columns: <code>query</code>, <code>pos</code>, and <code>neg</code>
281
+ * Approximate statistics based on the first 1000 samples:
282
+ | | query | pos | neg |
283
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
284
+ | type | string | string | string |
285
+ | details | <ul><li>min: 3 tokens</li><li>mean: 16.97 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 20.79 tokens</li><li>max: 48 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 20.94 tokens</li><li>max: 48 tokens</li></ul> |
286
+ * Samples:
287
+ | query | pos | neg |
288
+ |:----------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------|
289
+ | <code>Data input-output antar daerah, 34 provinsi: Transaksi domestik (52 industri, harga produsen, 2016)</code> | <code>Tabel Inter Regional Input-Output Indonesia Transaksi Domestik Atas Dasar Harga Produsen Menurut 34 Provinsi dan 52 Industri, 2016 (Juta Rupiah)</code> | <code>Penduduk Berumur 15 Tahun Ke Atas yang Bekerja Selama Seminggu yang Lalu Menurut Golongan Umur dan Jumlah Jam Kerja Seluruhnya, 2008 - 2024</code> |
290
+ | <code>Data total penghasilan berbagai golongan rumah tangga setelah dipotong pajak, tahun 2000 (dalam miliar rupiah)</code> | <code>Jumlah Pendapatan Setelah Pajak Menurut Golongan Rumah Tangga (miliar rupiah), 2000, 2005, dan 2008</code> | <code>Institusi Korporasi Non Finansial Neraca Institusi Terintegrasi ( triliun rupiah), 2016 2022</code> |
291
+ | <code>Rumah tangga dengan area resapan, data per provinsi, 2014</code> | <code>Persentase Rumah Tangga Menurut Provinsi dan Keberadaan Area Resapan Air, 2013-2014</code> | <code>Nilai Produksi dan Biaya Produksi per Musim Tanam per Hektar Budidaya Tanaman Padi Sawah, Padi Ladang, Jagung, dan Kedelai, 2017</code> |
292
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
293
+ ```json
294
+ {
295
+ "scale": 20.0,
296
+ "similarity_fct": "cos_sim"
297
+ }
298
+ ```
299
+
300
+ ### Evaluation Dataset
301
+
302
+ #### statictable-triplets-all
303
+
304
+ * Dataset: [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all) at [24979b4](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all/tree/24979b4f0d8269377aca975e20d52e69c3b5a030)
305
+ * Size: 967,831 evaluation samples
306
+ * Columns: <code>query</code>, <code>pos</code>, and <code>neg</code>
307
+ * Approximate statistics based on the first 1000 samples:
308
+ | | query | pos | neg |
309
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
310
+ | type | string | string | string |
311
+ | details | <ul><li>min: 3 tokens</li><li>mean: 16.69 tokens</li><li>max: 32 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 20.85 tokens</li><li>max: 48 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 20.9 tokens</li><li>max: 48 tokens</li></ul> |
312
+ * Samples:
313
+ | query | pos | neg |
314
+ |:---------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
315
+ | <code>Kredit UMKM bank umum (miliar rupiah), 2012-2016</code> | <code>Posisi Kredit Usaha Mikro, Kecil, dan Menengah (UMKM) 1 pada Bank Umum (miliar rupiah), 2012-2016</code> | <code>Jumlah Penghuni Lapas per Kanwil</code> |
316
+ | <code>Infant Mortality Rate di Indonesia per provinsi, 1971</code> | <code>Angka Kematian Bayi/AKB (Infant Mortality Rate/IMR) Menurut Provinsi, 1971-2020</code> | <code>Jumlah Sekolah, Guru, dan Murid Sekolah Menengah Kejuruan (SMK) di Bawah Kementrian Pendidikan dan Kebudayaan Menurut Provinsi tahun ajaran 2011/2012-2015/2016</code> |
317
+ | <code>Partisipasi sekolah anak dan remaja: Data persentase usia 7-24 tahun per gender dan kelompok umur, 2021</code> | <code>Persentase Penduduk Usia 7-24 Tahun Menurut Jenis Kelamin, Kelompok Umur, dan Partisipasi Sekolah, 2002-2023</code> | <code>Tabel Input-Output Indonesia Transaksi Total Atas Dasar Harga Pembeli (17 Produk), 2016 (Juta Rupiah)</code> |
318
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
319
+ ```json
320
+ {
321
+ "scale": 20.0,
322
+ "similarity_fct": "cos_sim"
323
+ }
324
+ ```
325
+
326
+ ### Training Hyperparameters
327
+ #### Non-Default Hyperparameters
328
+
329
+ - `eval_strategy`: steps
330
+ - `per_device_train_batch_size`: 64
331
+ - `per_device_eval_batch_size`: 64
332
+ - `num_train_epochs`: 1
333
+ - `warmup_ratio`: 0.1
334
+ - `fp16`: True
335
+ - `load_best_model_at_end`: True
336
+ - `eval_on_start`: True
337
+ - `batch_sampler`: no_duplicates
338
+
339
+ #### All Hyperparameters
340
+ <details><summary>Click to expand</summary>
341
+
342
+ - `overwrite_output_dir`: False
343
+ - `do_predict`: False
344
+ - `eval_strategy`: steps
345
+ - `prediction_loss_only`: True
346
+ - `per_device_train_batch_size`: 64
347
+ - `per_device_eval_batch_size`: 64
348
+ - `per_gpu_train_batch_size`: None
349
+ - `per_gpu_eval_batch_size`: None
350
+ - `gradient_accumulation_steps`: 1
351
+ - `eval_accumulation_steps`: None
352
+ - `torch_empty_cache_steps`: None
353
+ - `learning_rate`: 5e-05
354
+ - `weight_decay`: 0.0
355
+ - `adam_beta1`: 0.9
356
+ - `adam_beta2`: 0.999
357
+ - `adam_epsilon`: 1e-08
358
+ - `max_grad_norm`: 1.0
359
+ - `num_train_epochs`: 1
360
+ - `max_steps`: -1
361
+ - `lr_scheduler_type`: linear
362
+ - `lr_scheduler_kwargs`: {}
363
+ - `warmup_ratio`: 0.1
364
+ - `warmup_steps`: 0
365
+ - `log_level`: passive
366
+ - `log_level_replica`: warning
367
+ - `log_on_each_node`: True
368
+ - `logging_nan_inf_filter`: True
369
+ - `save_safetensors`: True
370
+ - `save_on_each_node`: False
371
+ - `save_only_model`: False
372
+ - `restore_callback_states_from_checkpoint`: False
373
+ - `no_cuda`: False
374
+ - `use_cpu`: False
375
+ - `use_mps_device`: False
376
+ - `seed`: 42
377
+ - `data_seed`: None
378
+ - `jit_mode_eval`: False
379
+ - `use_ipex`: False
380
+ - `bf16`: False
381
+ - `fp16`: True
382
+ - `fp16_opt_level`: O1
383
+ - `half_precision_backend`: auto
384
+ - `bf16_full_eval`: False
385
+ - `fp16_full_eval`: False
386
+ - `tf32`: None
387
+ - `local_rank`: 0
388
+ - `ddp_backend`: None
389
+ - `tpu_num_cores`: None
390
+ - `tpu_metrics_debug`: False
391
+ - `debug`: []
392
+ - `dataloader_drop_last`: False
393
+ - `dataloader_num_workers`: 0
394
+ - `dataloader_prefetch_factor`: None
395
+ - `past_index`: -1
396
+ - `disable_tqdm`: False
397
+ - `remove_unused_columns`: True
398
+ - `label_names`: None
399
+ - `load_best_model_at_end`: True
400
+ - `ignore_data_skip`: False
401
+ - `fsdp`: []
402
+ - `fsdp_min_num_params`: 0
403
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
404
+ - `fsdp_transformer_layer_cls_to_wrap`: None
405
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
406
+ - `deepspeed`: None
407
+ - `label_smoothing_factor`: 0.0
408
+ - `optim`: adamw_torch
409
+ - `optim_args`: None
410
+ - `adafactor`: False
411
+ - `group_by_length`: False
412
+ - `length_column_name`: length
413
+ - `ddp_find_unused_parameters`: None
414
+ - `ddp_bucket_cap_mb`: None
415
+ - `ddp_broadcast_buffers`: False
416
+ - `dataloader_pin_memory`: True
417
+ - `dataloader_persistent_workers`: False
418
+ - `skip_memory_metrics`: True
419
+ - `use_legacy_prediction_loop`: False
420
+ - `push_to_hub`: False
421
+ - `resume_from_checkpoint`: None
422
+ - `hub_model_id`: None
423
+ - `hub_strategy`: every_save
424
+ - `hub_private_repo`: None
425
+ - `hub_always_push`: False
426
+ - `gradient_checkpointing`: False
427
+ - `gradient_checkpointing_kwargs`: None
428
+ - `include_inputs_for_metrics`: False
429
+ - `include_for_metrics`: []
430
+ - `eval_do_concat_batches`: True
431
+ - `fp16_backend`: auto
432
+ - `push_to_hub_model_id`: None
433
+ - `push_to_hub_organization`: None
434
+ - `mp_parameters`:
435
+ - `auto_find_batch_size`: False
436
+ - `full_determinism`: False
437
+ - `torchdynamo`: None
438
+ - `ray_scope`: last
439
+ - `ddp_timeout`: 1800
440
+ - `torch_compile`: False
441
+ - `torch_compile_backend`: None
442
+ - `torch_compile_mode`: None
443
+ - `dispatch_batches`: None
444
+ - `split_batches`: None
445
+ - `include_tokens_per_second`: False
446
+ - `include_num_input_tokens_seen`: False
447
+ - `neftune_noise_alpha`: None
448
+ - `optim_target_modules`: None
449
+ - `batch_eval_metrics`: False
450
+ - `eval_on_start`: True
451
+ - `use_liger_kernel`: False
452
+ - `eval_use_gather_object`: False
453
+ - `average_tokens_across_devices`: False
454
+ - `prompts`: None
455
+ - `batch_sampler`: no_duplicates
456
+ - `multi_dataset_batch_sampler`: proportional
457
+
458
+ </details>
459
+
460
+ ### Training Logs
461
+ | Epoch | Step | Training Loss | Validation Loss | bps-statictable-ir_cosine_ndcg@10 |
462
+ |:----------:|:-------:|:-------------:|:---------------:|:---------------------------------:|
463
+ | 0 | 0 | - | 0.7678 | 0.7378 |
464
+ | 0.1391 | 100 | 0.2164 | 0.0292 | 0.8324 |
465
+ | 0.2782 | 200 | 0.032 | 0.0143 | 0.8383 |
466
+ | 0.4172 | 300 | 0.0221 | 0.0077 | 0.8392 |
467
+ | 0.5563 | 400 | 0.0088 | 0.0055 | 0.8391 |
468
+ | 0.6954 | 500 | 0.0058 | 0.0033 | 0.8301 |
469
+ | **0.8345** | **600** | **0.0039** | **0.0016** | **0.8331** |
470
+ | 0.9736 | 700 | 0.0027 | 0.0019 | 0.8332 |
471
+
472
+ * The bold row denotes the saved checkpoint.
473
+
474
+ ### Framework Versions
475
+ - Python: 3.11.11
476
+ - Sentence Transformers: 3.4.1
477
+ - Transformers: 4.48.3
478
+ - PyTorch: 2.6.0+cu124
479
+ - Accelerate: 1.3.0
480
+ - Datasets: 3.4.1
481
+ - Tokenizers: 0.21.1
482
+
483
+ ## Citation
484
+
485
+ ### BibTeX
486
+
487
+ #### Sentence Transformers
488
+ ```bibtex
489
+ @inproceedings{reimers-2019-sentence-bert,
490
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
491
+ author = "Reimers, Nils and Gurevych, Iryna",
492
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
493
+ month = "11",
494
+ year = "2019",
495
+ publisher = "Association for Computational Linguistics",
496
+ url = "https://arxiv.org/abs/1908.10084",
497
+ }
498
+ ```
499
+
500
+ #### MultipleNegativesRankingLoss
501
+ ```bibtex
502
+ @misc{henderson2017efficient,
503
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
504
+ 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},
505
+ year={2017},
506
+ eprint={1705.00652},
507
+ archivePrefix={arXiv},
508
+ primaryClass={cs.CL}
509
+ }
510
+ ```
511
+
512
+ <!--
513
+ ## Glossary
514
+
515
+ *Clearly define terms in order to be accessible across audiences.*
516
+ -->
517
+
518
+ <!--
519
+ ## Model Card Authors
520
+
521
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
522
+ -->
523
+
524
+ <!--
525
+ ## Model Card Contact
526
+
527
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
528
+ -->
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "denaya/indoSBERT-Large",
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": 1024,
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": 4096,
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": 16,
33
+ "num_hidden_layers": 24,
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.48.3",
44
+ "type_vocab_size": 2,
45
+ "use_cache": true,
46
+ "vocab_size": 30522
47
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.48.3",
5
+ "pytorch": "2.6.0+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:ae3a612903a4ced4f726f973c287fad78a93fa81e201a57ff1423b3e3d15ce7a
3
+ size 1340612432
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_Dense",
18
+ "type": "sentence_transformers.models.Dense"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[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
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 256,
51
+ "model_max_length": 256,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff