huudan123 commited on
Commit
9310452
1 Parent(s): 4c768fc

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,523 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: huudan123/stage1
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ metrics:
7
+ - pearson_cosine
8
+ - spearman_cosine
9
+ - pearson_manhattan
10
+ - spearman_manhattan
11
+ - pearson_euclidean
12
+ - spearman_euclidean
13
+ - pearson_dot
14
+ - spearman_dot
15
+ - pearson_max
16
+ - spearman_max
17
+ pipeline_tag: sentence-similarity
18
+ tags:
19
+ - sentence-transformers
20
+ - sentence-similarity
21
+ - feature-extraction
22
+ - generated_from_trainer
23
+ - dataset_size:254546
24
+ - loss:MultipleNegativesRankingLoss
25
+ widget:
26
+ - source_sentence: em_gái grany người da trắng cô ấy muốn đi học
27
+ sentences:
28
+ - bà thường kể câu_chuyện về chị_gái bà người chồng quyết_định chuyển đến thành_phố
29
+ augusta chuyển sang màu trắng
30
+ - thêm thời_gian thông_thường thêm phát_triển kế_hoạch hành_động
31
+ - em_gái grany người da trắng
32
+ - source_sentence: hãy họ biết họ cố_gắng cản_trở_việc chèo thuyền chúng_tôi chúng_tôi
33
+ treo đầu_tiên doxy chiến_đấu nó
34
+ sentences:
35
+ - tôi biết mình hướng tới mục_đích báo_cáo một địa_chỉ ở washington
36
+ - chúng_ta cố_gắng chiến_đấu nó một_khi chúng_ta bắt_đầu_ra khơi
37
+ - cách nào biết liệu con thuyền đi thẳng
38
+ - source_sentence: louisa may alcot nathaniel hawthorne sống phố pinckney trong phố
39
+ beacon oliver wendel holmes gọi con đường đầy nắng nhà sử_học wiliam prescot
40
+ sentences:
41
+ - hawthorne sống phố pinckney trong 7 năm
42
+ - hawthorne sống phố pinckney
43
+ - dùng tất_cả hiệu_quả trong phòng_chống thói_quen xấu nó hiệu_quả trong điều_trị
44
+ nói_chung
45
+ - source_sentence: hình 6 hiển_thị chi_phí đơn_vị trung_bình tạo hàm chi_phí usps
46
+ sentences:
47
+ - chi_phí trung_bình usps thể_hiện trong hình 6
48
+ - chi_phí trung_bình usps thể_hiện trong hình 6 thấy tất_cả lợi_nhuận
49
+ - cấp đại_úy blod một khoản hoa_hồng một sai_lầm sai_lầm đấy tôi
50
+ - source_sentence: bạn tiếp_tục nhập thông_tin cơ_sở dữ_liệu
51
+ sentences:
52
+ - mặc_dù dứa hương_vị tuyệt_vời chi_phí vận_chuyển quá cao đưa chúng thị_trường
53
+ - bạn tiếp_tục bạn nhập mọi thứ
54
+ - bạn mọi thứ bạn bắt_đầu_từ
55
+ model-index:
56
+ - name: SentenceTransformer based on huudan123/stage1
57
+ results:
58
+ - task:
59
+ type: semantic-similarity
60
+ name: Semantic Similarity
61
+ dataset:
62
+ name: sts dev
63
+ type: sts-dev
64
+ metrics:
65
+ - type: pearson_cosine
66
+ value: 0.7132925999347621
67
+ name: Pearson Cosine
68
+ - type: spearman_cosine
69
+ value: 0.7139908860784119
70
+ name: Spearman Cosine
71
+ - type: pearson_manhattan
72
+ value: 0.6924068767142901
73
+ name: Pearson Manhattan
74
+ - type: spearman_manhattan
75
+ value: 0.6987187512790664
76
+ name: Spearman Manhattan
77
+ - type: pearson_euclidean
78
+ value: 0.6927853521211202
79
+ name: Pearson Euclidean
80
+ - type: spearman_euclidean
81
+ value: 0.6988256048265301
82
+ name: Spearman Euclidean
83
+ - type: pearson_dot
84
+ value: 0.6562289766339777
85
+ name: Pearson Dot
86
+ - type: spearman_dot
87
+ value: 0.6552808237632588
88
+ name: Spearman Dot
89
+ - type: pearson_max
90
+ value: 0.7132925999347621
91
+ name: Pearson Max
92
+ - type: spearman_max
93
+ value: 0.7139908860784119
94
+ name: Spearman Max
95
+ ---
96
+
97
+ # SentenceTransformer based on huudan123/stage1
98
+
99
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [huudan123/stage1](https://huggingface.co/huudan123/stage1). 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.
100
+
101
+ ## Model Details
102
+
103
+ ### Model Description
104
+ - **Model Type:** Sentence Transformer
105
+ - **Base model:** [huudan123/stage1](https://huggingface.co/huudan123/stage1) <!-- at revision 2af9d99bbe23c419d648a4eef0dd24d5b788921d -->
106
+ - **Maximum Sequence Length:** 512 tokens
107
+ - **Output Dimensionality:** 768 tokens
108
+ - **Similarity Function:** Cosine Similarity
109
+ <!-- - **Training Dataset:** Unknown -->
110
+ <!-- - **Language:** Unknown -->
111
+ <!-- - **License:** Unknown -->
112
+
113
+ ### Model Sources
114
+
115
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
116
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
117
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
118
+
119
+ ### Full Model Architecture
120
+
121
+ ```
122
+ SentenceTransformer(
123
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: RobertaModel
124
+ (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})
125
+ )
126
+ ```
127
+
128
+ ## Usage
129
+
130
+ ### Direct Usage (Sentence Transformers)
131
+
132
+ First install the Sentence Transformers library:
133
+
134
+ ```bash
135
+ pip install -U sentence-transformers
136
+ ```
137
+
138
+ Then you can load this model and run inference.
139
+ ```python
140
+ from sentence_transformers import SentenceTransformer
141
+
142
+ # Download from the 🤗 Hub
143
+ model = SentenceTransformer("huudan123/stage2")
144
+ # Run inference
145
+ sentences = [
146
+ 'bạn tiếp_tục nhập thông_tin cơ_sở dữ_liệu',
147
+ 'bạn mọi thứ bạn bắt_đầu_từ',
148
+ 'bạn tiếp_tục bạn nhập mọi thứ',
149
+ ]
150
+ embeddings = model.encode(sentences)
151
+ print(embeddings.shape)
152
+ # [3, 768]
153
+
154
+ # Get the similarity scores for the embeddings
155
+ similarities = model.similarity(embeddings, embeddings)
156
+ print(similarities.shape)
157
+ # [3, 3]
158
+ ```
159
+
160
+ <!--
161
+ ### Direct Usage (Transformers)
162
+
163
+ <details><summary>Click to see the direct usage in Transformers</summary>
164
+
165
+ </details>
166
+ -->
167
+
168
+ <!--
169
+ ### Downstream Usage (Sentence Transformers)
170
+
171
+ You can finetune this model on your own dataset.
172
+
173
+ <details><summary>Click to expand</summary>
174
+
175
+ </details>
176
+ -->
177
+
178
+ <!--
179
+ ### Out-of-Scope Use
180
+
181
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
182
+ -->
183
+
184
+ ## Evaluation
185
+
186
+ ### Metrics
187
+
188
+ #### Semantic Similarity
189
+ * Dataset: `sts-dev`
190
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
191
+
192
+ | Metric | Value |
193
+ |:--------------------|:----------|
194
+ | pearson_cosine | 0.7133 |
195
+ | **spearman_cosine** | **0.714** |
196
+ | pearson_manhattan | 0.6924 |
197
+ | spearman_manhattan | 0.6987 |
198
+ | pearson_euclidean | 0.6928 |
199
+ | spearman_euclidean | 0.6988 |
200
+ | pearson_dot | 0.6562 |
201
+ | spearman_dot | 0.6553 |
202
+ | pearson_max | 0.7133 |
203
+ | spearman_max | 0.714 |
204
+
205
+ <!--
206
+ ## Bias, Risks and Limitations
207
+
208
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
209
+ -->
210
+
211
+ <!--
212
+ ### Recommendations
213
+
214
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
215
+ -->
216
+
217
+ ## Training Details
218
+
219
+ ### Training Dataset
220
+
221
+ #### Unnamed Dataset
222
+
223
+
224
+ * Size: 254,546 training samples
225
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
226
+ * Approximate statistics based on the first 1000 samples:
227
+ | | anchor | positive | negative |
228
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
229
+ | type | string | string | string |
230
+ | details | <ul><li>min: 3 tokens</li><li>mean: 14.78 tokens</li><li>max: 110 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 14.78 tokens</li><li>max: 110 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 10.19 tokens</li><li>max: 29 tokens</li></ul> |
231
+ * Samples:
232
+ | anchor | positive | negative |
233
+ |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------|:-------------------------------------------------------|
234
+ | <code>conceptualy kem skiming hai kích_thước cơ_bản sản_phẩm địa_lý</code> | <code>sản_phẩm địa_lý làm kem skiming làm_việc</code> | <code>kem skiming hai tập_trung sản_phẩm địa_lý</code> |
235
+ | <code>sản_phẩm địa_lý làm kem skiming làm_việc</code> | <code>conceptualy kem skiming hai kích_thước cơ_bản sản_phẩm địa_lý</code> | <code>kem skiming hai tập_trung sản_phẩm địa_lý</code> |
236
+ | <code>bạn biết trong mùa giải tôi đoán ở mức_độ bạn bạn mất chúng đến mức_độ tiếp_theo họ quyết_định nhớ đội_ngũ cha_mẹ chiến_binh quyết_định gọi nhớ một người ba a một người đàn_ông đi đến thay_thế anh ta một người đàn_ông nào đi thay_thế anh ta</code> | <code>recals thực_hiện thứ sáu</code> | <code>anh mất mọi thứ ở mức_độ người dân nhớ</code> |
237
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
238
+ ```json
239
+ {
240
+ "scale": 20.0,
241
+ "similarity_fct": "cos_sim"
242
+ }
243
+ ```
244
+
245
+ ### Evaluation Dataset
246
+
247
+ #### Unnamed Dataset
248
+
249
+
250
+ * Size: 1,660 evaluation samples
251
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
252
+ * Approximate statistics based on the first 1000 samples:
253
+ | | anchor | positive | negative |
254
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
255
+ | type | string | string | string |
256
+ | details | <ul><li>min: 4 tokens</li><li>mean: 13.54 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 13.54 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 8.78 tokens</li><li>max: 22 tokens</li></ul> |
257
+ * Samples:
258
+ | anchor | positive | negative |
259
+ |:-------------------------------------------------------------------------------|:---------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
260
+ | <code>anh ấy nói mẹ con về nhà</code> | <code>xuống xe_buýt trường anh ấy gọi mẹ</code> | <code>anh nói mẹ anh về nhà</code> |
261
+ | <code>xuống xe_buýt trường anh ấy gọi mẹ</code> | <code>anh ấy nói mẹ con về nhà</code> | <code>anh nói mẹ anh về nhà</code> |
262
+ | <code>tôi biết mình hướng tới mục_đích báo_cáo một địa_chỉ ở washington</code> | <code>tôi bao_giờ đến washington tôi chỉ_định ở tôi lạc cố_gắng tìm</code> | <code>tôi hoàn_toàn chắc_chắn tôi làm tôi đi đến washington tôi giao báo_cáo</code> |
263
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
264
+ ```json
265
+ {
266
+ "scale": 20.0,
267
+ "similarity_fct": "cos_sim"
268
+ }
269
+ ```
270
+
271
+ ### Training Hyperparameters
272
+ #### Non-Default Hyperparameters
273
+
274
+ - `overwrite_output_dir`: True
275
+ - `eval_strategy`: epoch
276
+ - `per_device_train_batch_size`: 256
277
+ - `per_device_eval_batch_size`: 256
278
+ - `num_train_epochs`: 20
279
+ - `lr_scheduler_type`: cosine
280
+ - `warmup_ratio`: 0.05
281
+ - `fp16`: True
282
+ - `load_best_model_at_end`: True
283
+ - `gradient_checkpointing`: True
284
+
285
+ #### All Hyperparameters
286
+ <details><summary>Click to expand</summary>
287
+
288
+ - `overwrite_output_dir`: True
289
+ - `do_predict`: False
290
+ - `eval_strategy`: epoch
291
+ - `prediction_loss_only`: True
292
+ - `per_device_train_batch_size`: 256
293
+ - `per_device_eval_batch_size`: 256
294
+ - `per_gpu_train_batch_size`: None
295
+ - `per_gpu_eval_batch_size`: None
296
+ - `gradient_accumulation_steps`: 1
297
+ - `eval_accumulation_steps`: None
298
+ - `learning_rate`: 5e-05
299
+ - `weight_decay`: 0.0
300
+ - `adam_beta1`: 0.9
301
+ - `adam_beta2`: 0.999
302
+ - `adam_epsilon`: 1e-08
303
+ - `max_grad_norm`: 1.0
304
+ - `num_train_epochs`: 20
305
+ - `max_steps`: -1
306
+ - `lr_scheduler_type`: cosine
307
+ - `lr_scheduler_kwargs`: {}
308
+ - `warmup_ratio`: 0.05
309
+ - `warmup_steps`: 0
310
+ - `log_level`: passive
311
+ - `log_level_replica`: warning
312
+ - `log_on_each_node`: True
313
+ - `logging_nan_inf_filter`: True
314
+ - `save_safetensors`: True
315
+ - `save_on_each_node`: False
316
+ - `save_only_model`: False
317
+ - `restore_callback_states_from_checkpoint`: False
318
+ - `no_cuda`: False
319
+ - `use_cpu`: False
320
+ - `use_mps_device`: False
321
+ - `seed`: 42
322
+ - `data_seed`: None
323
+ - `jit_mode_eval`: False
324
+ - `use_ipex`: False
325
+ - `bf16`: False
326
+ - `fp16`: True
327
+ - `fp16_opt_level`: O1
328
+ - `half_precision_backend`: auto
329
+ - `bf16_full_eval`: False
330
+ - `fp16_full_eval`: False
331
+ - `tf32`: None
332
+ - `local_rank`: 0
333
+ - `ddp_backend`: None
334
+ - `tpu_num_cores`: None
335
+ - `tpu_metrics_debug`: False
336
+ - `debug`: []
337
+ - `dataloader_drop_last`: False
338
+ - `dataloader_num_workers`: 0
339
+ - `dataloader_prefetch_factor`: None
340
+ - `past_index`: -1
341
+ - `disable_tqdm`: False
342
+ - `remove_unused_columns`: True
343
+ - `label_names`: None
344
+ - `load_best_model_at_end`: True
345
+ - `ignore_data_skip`: False
346
+ - `fsdp`: []
347
+ - `fsdp_min_num_params`: 0
348
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
349
+ - `fsdp_transformer_layer_cls_to_wrap`: None
350
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
351
+ - `deepspeed`: None
352
+ - `label_smoothing_factor`: 0.0
353
+ - `optim`: adamw_torch
354
+ - `optim_args`: None
355
+ - `adafactor`: False
356
+ - `group_by_length`: False
357
+ - `length_column_name`: length
358
+ - `ddp_find_unused_parameters`: None
359
+ - `ddp_bucket_cap_mb`: None
360
+ - `ddp_broadcast_buffers`: False
361
+ - `dataloader_pin_memory`: True
362
+ - `dataloader_persistent_workers`: False
363
+ - `skip_memory_metrics`: True
364
+ - `use_legacy_prediction_loop`: False
365
+ - `push_to_hub`: False
366
+ - `resume_from_checkpoint`: None
367
+ - `hub_model_id`: None
368
+ - `hub_strategy`: every_save
369
+ - `hub_private_repo`: False
370
+ - `hub_always_push`: False
371
+ - `gradient_checkpointing`: True
372
+ - `gradient_checkpointing_kwargs`: None
373
+ - `include_inputs_for_metrics`: False
374
+ - `eval_do_concat_batches`: True
375
+ - `fp16_backend`: auto
376
+ - `push_to_hub_model_id`: None
377
+ - `push_to_hub_organization`: None
378
+ - `mp_parameters`:
379
+ - `auto_find_batch_size`: False
380
+ - `full_determinism`: False
381
+ - `torchdynamo`: None
382
+ - `ray_scope`: last
383
+ - `ddp_timeout`: 1800
384
+ - `torch_compile`: False
385
+ - `torch_compile_backend`: None
386
+ - `torch_compile_mode`: None
387
+ - `dispatch_batches`: None
388
+ - `split_batches`: None
389
+ - `include_tokens_per_second`: False
390
+ - `include_num_input_tokens_seen`: False
391
+ - `neftune_noise_alpha`: None
392
+ - `optim_target_modules`: None
393
+ - `batch_eval_metrics`: False
394
+ - `eval_on_start`: False
395
+ - `batch_sampler`: batch_sampler
396
+ - `multi_dataset_batch_sampler`: proportional
397
+
398
+ </details>
399
+
400
+ ### Training Logs
401
+ | Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine |
402
+ |:-------:|:-------:|:-------------:|:----------:|:-----------------------:|
403
+ | 0 | 0 | - | - | 0.5307 |
404
+ | 0.0503 | 50 | 9.1742 | - | - |
405
+ | 0.1005 | 100 | 5.9716 | - | - |
406
+ | 0.1508 | 150 | 4.6737 | - | - |
407
+ | 0.2010 | 200 | 3.2819 | - | - |
408
+ | 0.2513 | 250 | 2.8832 | - | - |
409
+ | 0.3015 | 300 | 2.7327 | - | - |
410
+ | 0.3518 | 350 | 2.6305 | - | - |
411
+ | 0.4020 | 400 | 2.6239 | - | - |
412
+ | 0.4523 | 450 | 2.5527 | - | - |
413
+ | 0.5025 | 500 | 2.5271 | - | - |
414
+ | 0.5528 | 550 | 2.4904 | - | - |
415
+ | 0.6030 | 600 | 2.4987 | - | - |
416
+ | 0.6533 | 650 | 2.4009 | - | - |
417
+ | 0.7035 | 700 | 2.3944 | - | - |
418
+ | 0.7538 | 750 | 2.5054 | - | - |
419
+ | 0.8040 | 800 | 2.3989 | - | - |
420
+ | 0.8543 | 850 | 2.4019 | - | - |
421
+ | 0.9045 | 900 | 2.3638 | - | - |
422
+ | 0.9548 | 950 | 2.3478 | - | - |
423
+ | **1.0** | **995** | **-** | **3.0169** | **0.7322** |
424
+ | 1.0050 | 1000 | 2.4424 | - | - |
425
+ | 1.0553 | 1050 | 2.2478 | - | - |
426
+ | 1.1055 | 1100 | 2.2448 | - | - |
427
+ | 1.1558 | 1150 | 2.205 | - | - |
428
+ | 1.2060 | 1200 | 2.1811 | - | - |
429
+ | 1.2563 | 1250 | 2.1794 | - | - |
430
+ | 1.3065 | 1300 | 2.1495 | - | - |
431
+ | 1.3568 | 1350 | 2.1548 | - | - |
432
+ | 1.4070 | 1400 | 2.1299 | - | - |
433
+ | 1.4573 | 1450 | 2.1335 | - | - |
434
+ | 1.5075 | 1500 | 2.1388 | - | - |
435
+ | 1.5578 | 1550 | 2.0999 | - | - |
436
+ | 1.6080 | 1600 | 2.0859 | - | - |
437
+ | 1.6583 | 1650 | 2.0959 | - | - |
438
+ | 1.7085 | 1700 | 2.0334 | - | - |
439
+ | 1.7588 | 1750 | 2.0647 | - | - |
440
+ | 1.8090 | 1800 | 2.0261 | - | - |
441
+ | 1.8593 | 1850 | 2.0133 | - | - |
442
+ | 1.9095 | 1900 | 2.0517 | - | - |
443
+ | 1.9598 | 1950 | 2.0152 | - | - |
444
+ | 2.0 | 1990 | - | 3.1210 | 0.7187 |
445
+ | 2.0101 | 2000 | 1.924 | - | - |
446
+ | 2.0603 | 2050 | 1.7472 | - | - |
447
+ | 2.1106 | 2100 | 1.7485 | - | - |
448
+ | 2.1608 | 2150 | 1.7536 | - | - |
449
+ | 2.2111 | 2200 | 1.751 | - | - |
450
+ | 2.2613 | 2250 | 1.7172 | - | - |
451
+ | 2.3116 | 2300 | 1.7269 | - | - |
452
+ | 2.3618 | 2350 | 1.7352 | - | - |
453
+ | 2.4121 | 2400 | 1.7019 | - | - |
454
+ | 2.4623 | 2450 | 1.7278 | - | - |
455
+ | 2.5126 | 2500 | 1.7046 | - | - |
456
+ | 2.5628 | 2550 | 1.6962 | - | - |
457
+ | 2.6131 | 2600 | 1.6881 | - | - |
458
+ | 2.6633 | 2650 | 1.6806 | - | - |
459
+ | 2.7136 | 2700 | 1.6614 | - | - |
460
+ | 2.7638 | 2750 | 1.6918 | - | - |
461
+ | 2.8141 | 2800 | 1.6794 | - | - |
462
+ | 2.8643 | 2850 | 1.6708 | - | - |
463
+ | 2.9146 | 2900 | 1.6531 | - | - |
464
+ | 2.9648 | 2950 | 1.6236 | - | - |
465
+ | 3.0 | 2985 | - | 3.2556 | 0.7140 |
466
+
467
+ * The bold row denotes the saved checkpoint.
468
+
469
+ ### Framework Versions
470
+ - Python: 3.10.12
471
+ - Sentence Transformers: 3.0.1
472
+ - Transformers: 4.42.4
473
+ - PyTorch: 2.3.1+cu121
474
+ - Accelerate: 0.32.1
475
+ - Datasets: 2.20.0
476
+ - Tokenizers: 0.19.1
477
+
478
+ ## Citation
479
+
480
+ ### BibTeX
481
+
482
+ #### Sentence Transformers
483
+ ```bibtex
484
+ @inproceedings{reimers-2019-sentence-bert,
485
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
486
+ author = "Reimers, Nils and Gurevych, Iryna",
487
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
488
+ month = "11",
489
+ year = "2019",
490
+ publisher = "Association for Computational Linguistics",
491
+ url = "https://arxiv.org/abs/1908.10084",
492
+ }
493
+ ```
494
+
495
+ #### MultipleNegativesRankingLoss
496
+ ```bibtex
497
+ @misc{henderson2017efficient,
498
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
499
+ 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},
500
+ year={2017},
501
+ eprint={1705.00652},
502
+ archivePrefix={arXiv},
503
+ primaryClass={cs.CL}
504
+ }
505
+ ```
506
+
507
+ <!--
508
+ ## Glossary
509
+
510
+ *Clearly define terms in order to be accessible across audiences.*
511
+ -->
512
+
513
+ <!--
514
+ ## Model Card Authors
515
+
516
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
517
+ -->
518
+
519
+ <!--
520
+ ## Model Card Contact
521
+
522
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
523
+ -->
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<mask>": 64000
3
+ }
bpe.codes ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./output/final_model",
3
+ "architectures": [
4
+ "RobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 258,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "tokenizer_class": "PhobertTokenizer",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.42.4",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 64001
28
+ }
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:a55ac6a99ec9219cba51bf6db6e38a7e2b9c226366c07e0adc0d4b1365ff8ba1
3
+ size 540015464
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,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": false,
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_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "64000": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "PhobertTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff