LeoChiuu commited on
Commit
30aab9b
·
verified ·
1 Parent(s): dd549ad

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,586 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: colorfulscoop/sbert-base-ja
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ metrics:
7
+ - cosine_accuracy
8
+ - cosine_accuracy_threshold
9
+ - cosine_f1
10
+ - cosine_f1_threshold
11
+ - cosine_precision
12
+ - cosine_recall
13
+ - cosine_ap
14
+ - dot_accuracy
15
+ - dot_accuracy_threshold
16
+ - dot_f1
17
+ - dot_f1_threshold
18
+ - dot_precision
19
+ - dot_recall
20
+ - dot_ap
21
+ - manhattan_accuracy
22
+ - manhattan_accuracy_threshold
23
+ - manhattan_f1
24
+ - manhattan_f1_threshold
25
+ - manhattan_precision
26
+ - manhattan_recall
27
+ - manhattan_ap
28
+ - euclidean_accuracy
29
+ - euclidean_accuracy_threshold
30
+ - euclidean_f1
31
+ - euclidean_f1_threshold
32
+ - euclidean_precision
33
+ - euclidean_recall
34
+ - euclidean_ap
35
+ - max_accuracy
36
+ - max_accuracy_threshold
37
+ - max_f1
38
+ - max_f1_threshold
39
+ - max_precision
40
+ - max_recall
41
+ - max_ap
42
+ pipeline_tag: sentence-similarity
43
+ tags:
44
+ - sentence-transformers
45
+ - sentence-similarity
46
+ - feature-extraction
47
+ - generated_from_trainer
48
+ - dataset_size:171
49
+ - loss:MultipleNegativesRankingLoss
50
+ widget:
51
+ - source_sentence: ナイトスタンドにある?
52
+ sentences:
53
+ - なんで話せるの?
54
+ - やっぱり、タイマツがいい
55
+ - スカーフはナイトスタンドにある?
56
+ - source_sentence: 夕飯が辛かったから
57
+ sentences:
58
+ - 夕飯に辛いスープを飲んだから
59
+ - 村人について教えて
60
+ - 昨日なに作ったの?
61
+ - source_sentence: じぶん
62
+ sentences:
63
+ - 窓が開いていたから
64
+ - 自分がやった
65
+ - タイマツ要らない
66
+ - source_sentence: 夜ごはんの時
67
+ sentences:
68
+ - キャンドルがいいな
69
+ - 晩ご飯のとき
70
+ - 赤い染みが皿にあった
71
+ - source_sentence: あなた
72
+ sentences:
73
+ - 賢者の木について教えて
74
+ - どっちも欲しくない
75
+ - 長老
76
+ model-index:
77
+ - name: SentenceTransformer based on colorfulscoop/sbert-base-ja
78
+ results:
79
+ - task:
80
+ type: binary-classification
81
+ name: Binary Classification
82
+ dataset:
83
+ name: custom arc semantics data
84
+ type: custom-arc-semantics-data
85
+ metrics:
86
+ - type: cosine_accuracy
87
+ value: 0.991304347826087
88
+ name: Cosine Accuracy
89
+ - type: cosine_accuracy_threshold
90
+ value: 0.4585869610309601
91
+ name: Cosine Accuracy Threshold
92
+ - type: cosine_f1
93
+ value: 0.9956331877729258
94
+ name: Cosine F1
95
+ - type: cosine_f1_threshold
96
+ value: 0.4585869610309601
97
+ name: Cosine F1 Threshold
98
+ - type: cosine_precision
99
+ value: 1.0
100
+ name: Cosine Precision
101
+ - type: cosine_recall
102
+ value: 0.991304347826087
103
+ name: Cosine Recall
104
+ - type: cosine_ap
105
+ value: 1.0
106
+ name: Cosine Ap
107
+ - type: dot_accuracy
108
+ value: 0.991304347826087
109
+ name: Dot Accuracy
110
+ - type: dot_accuracy_threshold
111
+ value: 261.3491516113281
112
+ name: Dot Accuracy Threshold
113
+ - type: dot_f1
114
+ value: 0.9956331877729258
115
+ name: Dot F1
116
+ - type: dot_f1_threshold
117
+ value: 261.3491516113281
118
+ name: Dot F1 Threshold
119
+ - type: dot_precision
120
+ value: 1.0
121
+ name: Dot Precision
122
+ - type: dot_recall
123
+ value: 0.991304347826087
124
+ name: Dot Recall
125
+ - type: dot_ap
126
+ value: 1.0
127
+ name: Dot Ap
128
+ - type: manhattan_accuracy
129
+ value: 0.991304347826087
130
+ name: Manhattan Accuracy
131
+ - type: manhattan_accuracy_threshold
132
+ value: 539.4738159179688
133
+ name: Manhattan Accuracy Threshold
134
+ - type: manhattan_f1
135
+ value: 0.9956331877729258
136
+ name: Manhattan F1
137
+ - type: manhattan_f1_threshold
138
+ value: 539.4738159179688
139
+ name: Manhattan F1 Threshold
140
+ - type: manhattan_precision
141
+ value: 1.0
142
+ name: Manhattan Precision
143
+ - type: manhattan_recall
144
+ value: 0.991304347826087
145
+ name: Manhattan Recall
146
+ - type: manhattan_ap
147
+ value: 1.0
148
+ name: Manhattan Ap
149
+ - type: euclidean_accuracy
150
+ value: 0.991304347826087
151
+ name: Euclidean Accuracy
152
+ - type: euclidean_accuracy_threshold
153
+ value: 24.85671043395996
154
+ name: Euclidean Accuracy Threshold
155
+ - type: euclidean_f1
156
+ value: 0.9956331877729258
157
+ name: Euclidean F1
158
+ - type: euclidean_f1_threshold
159
+ value: 24.85671043395996
160
+ name: Euclidean F1 Threshold
161
+ - type: euclidean_precision
162
+ value: 1.0
163
+ name: Euclidean Precision
164
+ - type: euclidean_recall
165
+ value: 0.991304347826087
166
+ name: Euclidean Recall
167
+ - type: euclidean_ap
168
+ value: 1.0
169
+ name: Euclidean Ap
170
+ - type: max_accuracy
171
+ value: 0.991304347826087
172
+ name: Max Accuracy
173
+ - type: max_accuracy_threshold
174
+ value: 539.4738159179688
175
+ name: Max Accuracy Threshold
176
+ - type: max_f1
177
+ value: 0.9956331877729258
178
+ name: Max F1
179
+ - type: max_f1_threshold
180
+ value: 539.4738159179688
181
+ name: Max F1 Threshold
182
+ - type: max_precision
183
+ value: 1.0
184
+ name: Max Precision
185
+ - type: max_recall
186
+ value: 0.991304347826087
187
+ name: Max Recall
188
+ - type: max_ap
189
+ value: 1.0
190
+ name: Max Ap
191
+ ---
192
+
193
+ # SentenceTransformer based on colorfulscoop/sbert-base-ja
194
+
195
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [colorfulscoop/sbert-base-ja](https://huggingface.co/colorfulscoop/sbert-base-ja). 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.
196
+
197
+ ## Model Details
198
+
199
+ ### Model Description
200
+ - **Model Type:** Sentence Transformer
201
+ - **Base model:** [colorfulscoop/sbert-base-ja](https://huggingface.co/colorfulscoop/sbert-base-ja) <!-- at revision ecb8a98cd5176719ff7ab0d770a27420118732cf -->
202
+ - **Maximum Sequence Length:** 512 tokens
203
+ - **Output Dimensionality:** 768 tokens
204
+ - **Similarity Function:** Cosine Similarity
205
+ <!-- - **Training Dataset:** Unknown -->
206
+ <!-- - **Language:** Unknown -->
207
+ <!-- - **License:** Unknown -->
208
+
209
+ ### Model Sources
210
+
211
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
212
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
213
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
214
+
215
+ ### Full Model Architecture
216
+
217
+ ```
218
+ SentenceTransformer(
219
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
220
+ (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})
221
+ )
222
+ ```
223
+
224
+ ## Usage
225
+
226
+ ### Direct Usage (Sentence Transformers)
227
+
228
+ First install the Sentence Transformers library:
229
+
230
+ ```bash
231
+ pip install -U sentence-transformers
232
+ ```
233
+
234
+ Then you can load this model and run inference.
235
+ ```python
236
+ from sentence_transformers import SentenceTransformer
237
+
238
+ # Download from the 🤗 Hub
239
+ model = SentenceTransformer("LeoChiuu/sbert-base-ja-arc-temp")
240
+ # Run inference
241
+ sentences = [
242
+ 'あなた',
243
+ '長老',
244
+ '賢者の木について教えて',
245
+ ]
246
+ embeddings = model.encode(sentences)
247
+ print(embeddings.shape)
248
+ # [3, 768]
249
+
250
+ # Get the similarity scores for the embeddings
251
+ similarities = model.similarity(embeddings, embeddings)
252
+ print(similarities.shape)
253
+ # [3, 3]
254
+ ```
255
+
256
+ <!--
257
+ ### Direct Usage (Transformers)
258
+
259
+ <details><summary>Click to see the direct usage in Transformers</summary>
260
+
261
+ </details>
262
+ -->
263
+
264
+ <!--
265
+ ### Downstream Usage (Sentence Transformers)
266
+
267
+ You can finetune this model on your own dataset.
268
+
269
+ <details><summary>Click to expand</summary>
270
+
271
+ </details>
272
+ -->
273
+
274
+ <!--
275
+ ### Out-of-Scope Use
276
+
277
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
278
+ -->
279
+
280
+ ## Evaluation
281
+
282
+ ### Metrics
283
+
284
+ #### Binary Classification
285
+ * Dataset: `custom-arc-semantics-data`
286
+ * Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
287
+
288
+ | Metric | Value |
289
+ |:-----------------------------|:---------|
290
+ | cosine_accuracy | 0.9913 |
291
+ | cosine_accuracy_threshold | 0.4586 |
292
+ | cosine_f1 | 0.9956 |
293
+ | cosine_f1_threshold | 0.4586 |
294
+ | cosine_precision | 1.0 |
295
+ | cosine_recall | 0.9913 |
296
+ | cosine_ap | 1.0 |
297
+ | dot_accuracy | 0.9913 |
298
+ | dot_accuracy_threshold | 261.3492 |
299
+ | dot_f1 | 0.9956 |
300
+ | dot_f1_threshold | 261.3492 |
301
+ | dot_precision | 1.0 |
302
+ | dot_recall | 0.9913 |
303
+ | dot_ap | 1.0 |
304
+ | manhattan_accuracy | 0.9913 |
305
+ | manhattan_accuracy_threshold | 539.4738 |
306
+ | manhattan_f1 | 0.9956 |
307
+ | manhattan_f1_threshold | 539.4738 |
308
+ | manhattan_precision | 1.0 |
309
+ | manhattan_recall | 0.9913 |
310
+ | manhattan_ap | 1.0 |
311
+ | euclidean_accuracy | 0.9913 |
312
+ | euclidean_accuracy_threshold | 24.8567 |
313
+ | euclidean_f1 | 0.9956 |
314
+ | euclidean_f1_threshold | 24.8567 |
315
+ | euclidean_precision | 1.0 |
316
+ | euclidean_recall | 0.9913 |
317
+ | euclidean_ap | 1.0 |
318
+ | max_accuracy | 0.9913 |
319
+ | max_accuracy_threshold | 539.4738 |
320
+ | max_f1 | 0.9956 |
321
+ | max_f1_threshold | 539.4738 |
322
+ | max_precision | 1.0 |
323
+ | max_recall | 0.9913 |
324
+ | **max_ap** | **1.0** |
325
+
326
+ <!--
327
+ ## Bias, Risks and Limitations
328
+
329
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
330
+ -->
331
+
332
+ <!--
333
+ ### Recommendations
334
+
335
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
336
+ -->
337
+
338
+ ## Training Details
339
+
340
+ ### Training Dataset
341
+
342
+ #### Unnamed Dataset
343
+
344
+
345
+ * Size: 171 training samples
346
+ * Columns: <code>text1</code>, <code>text2</code>, and <code>label</code>
347
+ * Approximate statistics based on the first 1000 samples:
348
+ | | text1 | text2 | label |
349
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:-----------------------------|
350
+ | type | string | string | int |
351
+ | details | <ul><li>min: 4 tokens</li><li>mean: 8.22 tokens</li><li>max: 15 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.67 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>1: 100.00%</li></ul> |
352
+ * Samples:
353
+ | text1 | text2 | label |
354
+ |:----------------------------|:------------------------|:---------------|
355
+ | <code>キャンドルを用意して</code> | <code>ロウソク</code> | <code>1</code> |
356
+ | <code>なんで話せるの?</code> | <code>なんでしゃべれるの?</code> | <code>1</code> |
357
+ | <code>それは物の見た目を変える魔法</code> | <code>物の見た目を変える</code> | <code>1</code> |
358
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
359
+ ```json
360
+ {
361
+ "scale": 20.0,
362
+ "similarity_fct": "cos_sim"
363
+ }
364
+ ```
365
+
366
+ ### Evaluation Dataset
367
+
368
+ #### Unnamed Dataset
369
+
370
+
371
+ * Size: 115 evaluation samples
372
+ * Columns: <code>text1</code>, <code>text2</code>, and <code>label</code>
373
+ * Approximate statistics based on the first 1000 samples:
374
+ | | text1 | text2 | label |
375
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:-----------------------------|
376
+ | type | string | string | int |
377
+ | details | <ul><li>min: 4 tokens</li><li>mean: 8.39 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.45 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>1: 100.00%</li></ul> |
378
+ * Samples:
379
+ | text1 | text2 | label |
380
+ |:-------------------------|:----------------------------|:---------------|
381
+ | <code>あの木の上の布はなに?</code> | <code>あの木の上にあるやつはなに?</code> | <code>1</code> |
382
+ | <code>物の姿を変えられる人</code> | <code>物の形を変えられる人</code> | <code>1</code> |
383
+ | <code>夕飯の時</code> | <code>夜ご飯を作る前</code> | <code>1</code> |
384
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
385
+ ```json
386
+ {
387
+ "scale": 20.0,
388
+ "similarity_fct": "cos_sim"
389
+ }
390
+ ```
391
+
392
+ ### Training Hyperparameters
393
+ #### Non-Default Hyperparameters
394
+
395
+ - `eval_strategy`: epoch
396
+ - `per_device_train_batch_size`: 64
397
+ - `per_device_eval_batch_size`: 64
398
+ - `learning_rate`: 1e-05
399
+ - `num_train_epochs`: 8
400
+ - `warmup_ratio`: 0.1
401
+ - `fp16`: True
402
+ - `batch_sampler`: no_duplicates
403
+
404
+ #### All Hyperparameters
405
+ <details><summary>Click to expand</summary>
406
+
407
+ - `overwrite_output_dir`: False
408
+ - `do_predict`: False
409
+ - `eval_strategy`: epoch
410
+ - `prediction_loss_only`: True
411
+ - `per_device_train_batch_size`: 64
412
+ - `per_device_eval_batch_size`: 64
413
+ - `per_gpu_train_batch_size`: None
414
+ - `per_gpu_eval_batch_size`: None
415
+ - `gradient_accumulation_steps`: 1
416
+ - `eval_accumulation_steps`: None
417
+ - `torch_empty_cache_steps`: None
418
+ - `learning_rate`: 1e-05
419
+ - `weight_decay`: 0.0
420
+ - `adam_beta1`: 0.9
421
+ - `adam_beta2`: 0.999
422
+ - `adam_epsilon`: 1e-08
423
+ - `max_grad_norm`: 1.0
424
+ - `num_train_epochs`: 8
425
+ - `max_steps`: -1
426
+ - `lr_scheduler_type`: linear
427
+ - `lr_scheduler_kwargs`: {}
428
+ - `warmup_ratio`: 0.1
429
+ - `warmup_steps`: 0
430
+ - `log_level`: passive
431
+ - `log_level_replica`: warning
432
+ - `log_on_each_node`: True
433
+ - `logging_nan_inf_filter`: True
434
+ - `save_safetensors`: True
435
+ - `save_on_each_node`: False
436
+ - `save_only_model`: False
437
+ - `restore_callback_states_from_checkpoint`: False
438
+ - `no_cuda`: False
439
+ - `use_cpu`: False
440
+ - `use_mps_device`: False
441
+ - `seed`: 42
442
+ - `data_seed`: None
443
+ - `jit_mode_eval`: False
444
+ - `use_ipex`: False
445
+ - `bf16`: False
446
+ - `fp16`: True
447
+ - `fp16_opt_level`: O1
448
+ - `half_precision_backend`: auto
449
+ - `bf16_full_eval`: False
450
+ - `fp16_full_eval`: False
451
+ - `tf32`: None
452
+ - `local_rank`: 0
453
+ - `ddp_backend`: None
454
+ - `tpu_num_cores`: None
455
+ - `tpu_metrics_debug`: False
456
+ - `debug`: []
457
+ - `dataloader_drop_last`: False
458
+ - `dataloader_num_workers`: 0
459
+ - `dataloader_prefetch_factor`: None
460
+ - `past_index`: -1
461
+ - `disable_tqdm`: False
462
+ - `remove_unused_columns`: True
463
+ - `label_names`: None
464
+ - `load_best_model_at_end`: False
465
+ - `ignore_data_skip`: False
466
+ - `fsdp`: []
467
+ - `fsdp_min_num_params`: 0
468
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
469
+ - `fsdp_transformer_layer_cls_to_wrap`: None
470
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
471
+ - `deepspeed`: None
472
+ - `label_smoothing_factor`: 0.0
473
+ - `optim`: adamw_torch
474
+ - `optim_args`: None
475
+ - `adafactor`: False
476
+ - `group_by_length`: False
477
+ - `length_column_name`: length
478
+ - `ddp_find_unused_parameters`: None
479
+ - `ddp_bucket_cap_mb`: None
480
+ - `ddp_broadcast_buffers`: False
481
+ - `dataloader_pin_memory`: True
482
+ - `dataloader_persistent_workers`: False
483
+ - `skip_memory_metrics`: True
484
+ - `use_legacy_prediction_loop`: False
485
+ - `push_to_hub`: False
486
+ - `resume_from_checkpoint`: None
487
+ - `hub_model_id`: None
488
+ - `hub_strategy`: every_save
489
+ - `hub_private_repo`: False
490
+ - `hub_always_push`: False
491
+ - `gradient_checkpointing`: False
492
+ - `gradient_checkpointing_kwargs`: None
493
+ - `include_inputs_for_metrics`: False
494
+ - `eval_do_concat_batches`: True
495
+ - `fp16_backend`: auto
496
+ - `push_to_hub_model_id`: None
497
+ - `push_to_hub_organization`: None
498
+ - `mp_parameters`:
499
+ - `auto_find_batch_size`: False
500
+ - `full_determinism`: False
501
+ - `torchdynamo`: None
502
+ - `ray_scope`: last
503
+ - `ddp_timeout`: 1800
504
+ - `torch_compile`: False
505
+ - `torch_compile_backend`: None
506
+ - `torch_compile_mode`: None
507
+ - `dispatch_batches`: None
508
+ - `split_batches`: None
509
+ - `include_tokens_per_second`: False
510
+ - `include_num_input_tokens_seen`: False
511
+ - `neftune_noise_alpha`: None
512
+ - `optim_target_modules`: None
513
+ - `batch_eval_metrics`: False
514
+ - `eval_on_start`: False
515
+ - `eval_use_gather_object`: False
516
+ - `batch_sampler`: no_duplicates
517
+ - `multi_dataset_batch_sampler`: proportional
518
+
519
+ </details>
520
+
521
+ ### Training Logs
522
+ | Epoch | Step | Training Loss | loss | custom-arc-semantics-data_max_ap |
523
+ |:------:|:----:|:-------------:|:------:|:--------------------------------:|
524
+ | None | 0 | - | - | 1.0 |
525
+ | 1.6667 | 5 | 1.5178 | 1.3713 | 1.0 |
526
+ | 2.6667 | 10 | 1.1621 | 1.2290 | 1.0 |
527
+ | 3.6667 | 15 | 0.9569 | 1.1709 | 1.0 |
528
+ | 4.6667 | 20 | 0.8482 | 1.1466 | 1.0 |
529
+ | 5.3333 | 24 | 1.0222 | 1.1407 | 1.0 |
530
+
531
+
532
+ ### Framework Versions
533
+ - Python: 3.10.14
534
+ - Sentence Transformers: 3.0.1
535
+ - Transformers: 4.44.2
536
+ - PyTorch: 2.4.1+cu121
537
+ - Accelerate: 0.34.0
538
+ - Datasets: 2.20.0
539
+ - Tokenizers: 0.19.1
540
+
541
+ ## Citation
542
+
543
+ ### BibTeX
544
+
545
+ #### Sentence Transformers
546
+ ```bibtex
547
+ @inproceedings{reimers-2019-sentence-bert,
548
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
549
+ author = "Reimers, Nils and Gurevych, Iryna",
550
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
551
+ month = "11",
552
+ year = "2019",
553
+ publisher = "Association for Computational Linguistics",
554
+ url = "https://arxiv.org/abs/1908.10084",
555
+ }
556
+ ```
557
+
558
+ #### MultipleNegativesRankingLoss
559
+ ```bibtex
560
+ @misc{henderson2017efficient,
561
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
562
+ 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},
563
+ year={2017},
564
+ eprint={1705.00652},
565
+ archivePrefix={arXiv},
566
+ primaryClass={cs.CL}
567
+ }
568
+ ```
569
+
570
+ <!--
571
+ ## Glossary
572
+
573
+ *Clearly define terms in order to be accessible across audiences.*
574
+ -->
575
+
576
+ <!--
577
+ ## Model Card Authors
578
+
579
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
580
+ -->
581
+
582
+ <!--
583
+ ## Model Card Contact
584
+
585
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
586
+ -->
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[PAD]": 32000
3
+ }
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "colorfulscoop/sbert-base-ja",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 2,
8
+ "classifier_dropout": null,
9
+ "cls_token_id": 2,
10
+ "eos_token_id": 3,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "layer_norm_eps": 1e-12,
18
+ "mask_token_id": 4,
19
+ "max_position_embeddings": 512,
20
+ "model_type": "bert",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 12,
23
+ "pad_token_id": 0,
24
+ "position_embedding_type": "absolute",
25
+ "sep_token_id": 3,
26
+ "tokenizer_class": "DebertaV2Tokenizer",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.44.2",
29
+ "type_vocab_size": 2,
30
+ "unk_token_id": 1,
31
+ "use_cache": true,
32
+ "vocab_size": 32000
33
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.44.2",
5
+ "pytorch": "2.4.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:2e62106c8de641b6ecb2493392908707d4e7e1fb2b7f70de3f4e5b723c3e8117
3
+ size 442491744
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "<pad>",
7
+ "sep_token": "[SEP]",
8
+ "unk_token": {
9
+ "content": "<unk>",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6467857b4b0c77ded9bac7ad2fb5c16eb64e17e417ce46624dacac2bbb404fc
3
+ size 802713
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": true,
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": false
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": false
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": false
42
+ },
43
+ "32000": {
44
+ "content": "[PAD]",
45
+ "lstrip": false,
46
+ "normalized": true,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": false
50
+ }
51
+ },
52
+ "bos_token": "[CLS]",
53
+ "clean_up_tokenization_spaces": true,
54
+ "cls_token": "[CLS]",
55
+ "do_lower_case": false,
56
+ "eos_token": "[SEP]",
57
+ "mask_token": "[MASK]",
58
+ "model_max_length": 512,
59
+ "pad_token": "<pad>",
60
+ "sep_token": "[SEP]",
61
+ "sp_model_kwargs": {},
62
+ "split_by_punct": false,
63
+ "tokenizer_class": "DebertaV2Tokenizer",
64
+ "unk_token": "<unk>"
65
+ }