LeoChiuu commited on
Commit
25712f0
1 Parent(s): 10ebaae

Add new SentenceTransformer model.

Browse files
README.md CHANGED
@@ -1,201 +1,550 @@
1
  ---
2
  base_model: colorfulscoop/sbert-base-ja
3
- language: ja
4
- license: cc-by-sa-4.0
5
- model_name: LeoChiuu/sbert-base-ja-arc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  ---
7
 
8
- # Model Card for LeoChiuu/sbert-base-ja-arc
9
-
10
- <!-- Provide a quick summary of what the model is/does. -->
11
-
12
 
 
13
 
14
  ## Model Details
15
 
16
  ### Model Description
 
 
 
 
 
 
 
 
 
17
 
18
- <!-- Provide a longer summary of what this model is. -->
19
-
20
- Generates similarity embeddings
21
-
22
- - **Developed by:** [More Information Needed]
23
- - **Funded by [optional]:** [More Information Needed]
24
- - **Shared by [optional]:** [More Information Needed]
25
- - **Model type:** [More Information Needed]
26
- - **Language(s) (NLP):** ja
27
- - **License:** cc-by-sa-4.0
28
- - **Finetuned from model [optional]:** colorfulscoop/sbert-base-ja
29
-
30
- ### Model Sources [optional]
31
-
32
- <!-- Provide the basic links for the model. -->
33
-
34
- - **Repository:** [More Information Needed]
35
- - **Paper [optional]:** [More Information Needed]
36
- - **Demo [optional]:** [More Information Needed]
37
-
38
- ## Uses
39
-
40
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
41
 
42
- ### Direct Use
 
 
43
 
44
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
45
 
46
- [More Information Needed]
 
 
 
 
 
47
 
48
- ### Downstream Use [optional]
49
 
50
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
51
 
52
- [More Information Needed]
53
 
54
- ### Out-of-Scope Use
55
-
56
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
57
-
58
- [More Information Needed]
59
 
60
- ## Bias, Risks, and Limitations
 
 
61
 
62
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
 
 
 
 
 
 
 
 
 
 
63
 
64
- [More Information Needed]
65
-
66
- ### Recommendations
 
 
67
 
68
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
 
69
 
70
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
71
 
72
- ## How to Get Started with the Model
73
-
74
- Use the code below to get started with the model.
75
-
76
- [More Information Needed]
77
-
78
- ## Training Details
79
 
80
- ### Training Data
 
81
 
82
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
83
 
84
- [More Information Needed]
85
 
86
- ### Training Procedure
 
87
 
88
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
89
-
90
- #### Preprocessing [optional]
91
-
92
- [More Information Needed]
93
-
94
-
95
- #### Training Hyperparameters
96
-
97
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
98
-
99
- #### Speeds, Sizes, Times [optional]
100
-
101
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
102
 
103
- [More Information Needed]
 
104
 
105
  ## Evaluation
106
 
107
- <!-- This section describes the evaluation protocols and provides the results. -->
108
-
109
- ### Testing Data, Factors & Metrics
110
-
111
- #### Testing Data
112
-
113
- <!-- This should link to a Dataset Card if possible. -->
114
-
115
- [More Information Needed]
116
-
117
- #### Factors
118
-
119
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
120
-
121
- [More Information Needed]
122
-
123
- #### Metrics
124
-
125
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
126
-
127
- [More Information Needed]
128
-
129
- ### Results
130
-
131
- [More Information Needed]
132
-
133
- #### Summary
134
-
135
-
136
-
137
- ## Model Examination [optional]
138
-
139
- <!-- Relevant interpretability work for the model goes here -->
140
-
141
- [More Information Needed]
142
-
143
- ## Environmental Impact
144
-
145
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
146
-
147
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
148
-
149
- - **Hardware Type:** [More Information Needed]
150
- - **Hours used:** [More Information Needed]
151
- - **Cloud Provider:** [More Information Needed]
152
- - **Compute Region:** [More Information Needed]
153
- - **Carbon Emitted:** [More Information Needed]
154
-
155
- ## Technical Specifications [optional]
156
-
157
- ### Model Architecture and Objective
158
-
159
- [More Information Needed]
160
-
161
- ### Compute Infrastructure
162
-
163
- [More Information Needed]
164
-
165
- #### Hardware
166
-
167
- [More Information Needed]
168
-
169
- #### Software
170
-
171
- [More Information Needed]
172
-
173
- ## Citation [optional]
174
-
175
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
176
-
177
- **BibTeX:**
178
-
179
- [More Information Needed]
180
-
181
- **APA:**
182
-
183
- [More Information Needed]
184
-
185
- ## Glossary [optional]
186
-
187
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
188
-
189
- [More Information Needed]
190
-
191
- ## More Information [optional]
192
-
193
- [More Information Needed]
194
 
195
- ## Model Card Authors [optional]
 
196
 
197
- [More Information Needed]
198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  ## Model Card Contact
200
 
201
- [More Information Needed]
 
 
1
  ---
2
  base_model: colorfulscoop/sbert-base-ja
3
+ library_name: sentence-transformers
4
+ metrics:
5
+ - cosine_accuracy
6
+ - cosine_accuracy_threshold
7
+ - cosine_f1
8
+ - cosine_f1_threshold
9
+ - cosine_precision
10
+ - cosine_recall
11
+ - cosine_ap
12
+ - dot_accuracy
13
+ - dot_accuracy_threshold
14
+ - dot_f1
15
+ - dot_f1_threshold
16
+ - dot_precision
17
+ - dot_recall
18
+ - dot_ap
19
+ - manhattan_accuracy
20
+ - manhattan_accuracy_threshold
21
+ - manhattan_f1
22
+ - manhattan_f1_threshold
23
+ - manhattan_precision
24
+ - manhattan_recall
25
+ - manhattan_ap
26
+ - euclidean_accuracy
27
+ - euclidean_accuracy_threshold
28
+ - euclidean_f1
29
+ - euclidean_f1_threshold
30
+ - euclidean_precision
31
+ - euclidean_recall
32
+ - euclidean_ap
33
+ - max_accuracy
34
+ - max_accuracy_threshold
35
+ - max_f1
36
+ - max_f1_threshold
37
+ - max_precision
38
+ - max_recall
39
+ - max_ap
40
+ pipeline_tag: sentence-similarity
41
+ tags:
42
+ - sentence-transformers
43
+ - sentence-similarity
44
+ - feature-extraction
45
+ - generated_from_trainer
46
+ - dataset_size:53
47
+ - loss:OnlineContrastiveLoss
48
+ widget:
49
+ - source_sentence: 黒い タイル の 本当に すてきな カウンター の 前 と 後ろ で 働く 人々 。
50
+ sentences:
51
+ - 男性 は バレエ に 参加 して い ます 。
52
+ - 岩 の 上 に 座って いる 二 人
53
+ - 人々 は 宝石 店 で 働いて い ます 。
54
+ - source_sentence: 少年 は 木 の 切り株 に 座って い ます 。
55
+ sentences:
56
+ - ストリート ワーカー は 保護 具 を 着用 して い ませ ん 。
57
+ - 芝生 の エリア で 数 匹 の 犬 が 交流 し ます 。
58
+ - 木 を 切り 倒した 後 、 木 の 切り株 に 座って いる 少年 。
59
+ - source_sentence: 岩 の 多い 景色 を 見て 二 人
60
+ sentences:
61
+ - 何 か を 見て いる 二 人 が い ます 。
62
+ - 誰 か が 肖像 画 を 描いて い ます 。
63
+ - バイカー は 足 を 使って 自転車 を さらに 進め ます 。
64
+ model-index:
65
+ - name: SentenceTransformer based on colorfulscoop/sbert-base-ja
66
+ results:
67
+ - task:
68
+ type: binary-classification
69
+ name: Binary Classification
70
+ dataset:
71
+ name: custom arc semantics data jp
72
+ type: custom-arc-semantics-data-jp
73
+ metrics:
74
+ - type: cosine_accuracy
75
+ value: 0.6363636363636364
76
+ name: Cosine Accuracy
77
+ - type: cosine_accuracy_threshold
78
+ value: 0.7425280809402466
79
+ name: Cosine Accuracy Threshold
80
+ - type: cosine_f1
81
+ value: 0.7777777777777777
82
+ name: Cosine F1
83
+ - type: cosine_f1_threshold
84
+ value: 0.7425280809402466
85
+ name: Cosine F1 Threshold
86
+ - type: cosine_precision
87
+ value: 0.7
88
+ name: Cosine Precision
89
+ - type: cosine_recall
90
+ value: 0.875
91
+ name: Cosine Recall
92
+ - type: cosine_ap
93
+ value: 0.7176948051948052
94
+ name: Cosine Ap
95
+ - type: dot_accuracy
96
+ value: 0.6363636363636364
97
+ name: Dot Accuracy
98
+ - type: dot_accuracy_threshold
99
+ value: 424.6038818359375
100
+ name: Dot Accuracy Threshold
101
+ - type: dot_f1
102
+ value: 0.7777777777777777
103
+ name: Dot F1
104
+ - type: dot_f1_threshold
105
+ value: 424.6038818359375
106
+ name: Dot F1 Threshold
107
+ - type: dot_precision
108
+ value: 0.7
109
+ name: Dot Precision
110
+ - type: dot_recall
111
+ value: 0.875
112
+ name: Dot Recall
113
+ - type: dot_ap
114
+ value: 0.713379329004329
115
+ name: Dot Ap
116
+ - type: manhattan_accuracy
117
+ value: 0.6363636363636364
118
+ name: Manhattan Accuracy
119
+ - type: manhattan_accuracy_threshold
120
+ value: 372.014404296875
121
+ name: Manhattan Accuracy Threshold
122
+ - type: manhattan_f1
123
+ value: 0.7777777777777777
124
+ name: Manhattan F1
125
+ - type: manhattan_f1_threshold
126
+ value: 372.014404296875
127
+ name: Manhattan F1 Threshold
128
+ - type: manhattan_precision
129
+ value: 0.7
130
+ name: Manhattan Precision
131
+ - type: manhattan_recall
132
+ value: 0.875
133
+ name: Manhattan Recall
134
+ - type: manhattan_ap
135
+ value: 0.7176948051948052
136
+ name: Manhattan Ap
137
+ - type: euclidean_accuracy
138
+ value: 0.6363636363636364
139
+ name: Euclidean Accuracy
140
+ - type: euclidean_accuracy_threshold
141
+ value: 17.132034301757812
142
+ name: Euclidean Accuracy Threshold
143
+ - type: euclidean_f1
144
+ value: 0.7777777777777777
145
+ name: Euclidean F1
146
+ - type: euclidean_f1_threshold
147
+ value: 17.132034301757812
148
+ name: Euclidean F1 Threshold
149
+ - type: euclidean_precision
150
+ value: 0.7
151
+ name: Euclidean Precision
152
+ - type: euclidean_recall
153
+ value: 0.875
154
+ name: Euclidean Recall
155
+ - type: euclidean_ap
156
+ value: 0.7176948051948052
157
+ name: Euclidean Ap
158
+ - type: max_accuracy
159
+ value: 0.6363636363636364
160
+ name: Max Accuracy
161
+ - type: max_accuracy_threshold
162
+ value: 424.6038818359375
163
+ name: Max Accuracy Threshold
164
+ - type: max_f1
165
+ value: 0.7777777777777777
166
+ name: Max F1
167
+ - type: max_f1_threshold
168
+ value: 424.6038818359375
169
+ name: Max F1 Threshold
170
+ - type: max_precision
171
+ value: 0.7
172
+ name: Max Precision
173
+ - type: max_recall
174
+ value: 0.875
175
+ name: Max Recall
176
+ - type: max_ap
177
+ value: 0.7176948051948052
178
+ name: Max Ap
179
  ---
180
 
181
+ # SentenceTransformer based on colorfulscoop/sbert-base-ja
 
 
 
182
 
183
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [colorfulscoop/sbert-base-ja](https://huggingface.co/colorfulscoop/sbert-base-ja) on the csv 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.
184
 
185
  ## Model Details
186
 
187
  ### Model Description
188
+ - **Model Type:** Sentence Transformer
189
+ - **Base model:** [colorfulscoop/sbert-base-ja](https://huggingface.co/colorfulscoop/sbert-base-ja) <!-- at revision ecb8a98cd5176719ff7ab0d770a27420118732cf -->
190
+ - **Maximum Sequence Length:** 512 tokens
191
+ - **Output Dimensionality:** 768 tokens
192
+ - **Similarity Function:** Cosine Similarity
193
+ - **Training Dataset:**
194
+ - csv
195
+ <!-- - **Language:** Unknown -->
196
+ <!-- - **License:** Unknown -->
197
 
198
+ ### Model Sources
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
 
200
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
201
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
202
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
203
 
204
+ ### Full Model Architecture
205
 
206
+ ```
207
+ SentenceTransformer(
208
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
209
+ (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})
210
+ )
211
+ ```
212
 
213
+ ## Usage
214
 
215
+ ### Direct Usage (Sentence Transformers)
216
 
217
+ First install the Sentence Transformers library:
218
 
219
+ ```bash
220
+ pip install -U sentence-transformers
221
+ ```
 
 
222
 
223
+ Then you can load this model and run inference.
224
+ ```python
225
+ from sentence_transformers import SentenceTransformer
226
 
227
+ # Download from the 🤗 Hub
228
+ model = SentenceTransformer("sentence_transformers_model_id")
229
+ # Run inference
230
+ sentences = [
231
+ '岩 の 多い 景色 を 見て 二 人',
232
+ '何 か を 見て いる 二 人 が い ます 。',
233
+ '誰 か が 肖像 画 を 描いて い ます 。',
234
+ ]
235
+ embeddings = model.encode(sentences)
236
+ print(embeddings.shape)
237
+ # [3, 768]
238
 
239
+ # Get the similarity scores for the embeddings
240
+ similarities = model.similarity(embeddings, embeddings)
241
+ print(similarities.shape)
242
+ # [3, 3]
243
+ ```
244
 
245
+ <!--
246
+ ### Direct Usage (Transformers)
247
 
248
+ <details><summary>Click to see the direct usage in Transformers</summary>
249
 
250
+ </details>
251
+ -->
 
 
 
 
 
252
 
253
+ <!--
254
+ ### Downstream Usage (Sentence Transformers)
255
 
256
+ You can finetune this model on your own dataset.
257
 
258
+ <details><summary>Click to expand</summary>
259
 
260
+ </details>
261
+ -->
262
 
263
+ <!--
264
+ ### Out-of-Scope Use
 
 
 
 
 
 
 
 
 
 
 
 
265
 
266
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
267
+ -->
268
 
269
  ## Evaluation
270
 
271
+ ### Metrics
272
+
273
+ #### Binary Classification
274
+ * Dataset: `custom-arc-semantics-data-jp`
275
+ * Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
276
+
277
+ | Metric | Value |
278
+ |:-----------------------------|:-----------|
279
+ | cosine_accuracy | 0.6364 |
280
+ | cosine_accuracy_threshold | 0.7425 |
281
+ | cosine_f1 | 0.7778 |
282
+ | cosine_f1_threshold | 0.7425 |
283
+ | cosine_precision | 0.7 |
284
+ | cosine_recall | 0.875 |
285
+ | cosine_ap | 0.7177 |
286
+ | dot_accuracy | 0.6364 |
287
+ | dot_accuracy_threshold | 424.6039 |
288
+ | dot_f1 | 0.7778 |
289
+ | dot_f1_threshold | 424.6039 |
290
+ | dot_precision | 0.7 |
291
+ | dot_recall | 0.875 |
292
+ | dot_ap | 0.7134 |
293
+ | manhattan_accuracy | 0.6364 |
294
+ | manhattan_accuracy_threshold | 372.0144 |
295
+ | manhattan_f1 | 0.7778 |
296
+ | manhattan_f1_threshold | 372.0144 |
297
+ | manhattan_precision | 0.7 |
298
+ | manhattan_recall | 0.875 |
299
+ | manhattan_ap | 0.7177 |
300
+ | euclidean_accuracy | 0.6364 |
301
+ | euclidean_accuracy_threshold | 17.132 |
302
+ | euclidean_f1 | 0.7778 |
303
+ | euclidean_f1_threshold | 17.132 |
304
+ | euclidean_precision | 0.7 |
305
+ | euclidean_recall | 0.875 |
306
+ | euclidean_ap | 0.7177 |
307
+ | max_accuracy | 0.6364 |
308
+ | max_accuracy_threshold | 424.6039 |
309
+ | max_f1 | 0.7778 |
310
+ | max_f1_threshold | 424.6039 |
311
+ | max_precision | 0.7 |
312
+ | max_recall | 0.875 |
313
+ | **max_ap** | **0.7177** |
314
+
315
+ <!--
316
+ ## Bias, Risks and Limitations
317
+
318
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
319
+ -->
320
+
321
+ <!--
322
+ ### Recommendations
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
 
324
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
325
+ -->
326
 
327
+ ## Training Details
328
 
329
+ ### Training Dataset
330
+
331
+ #### csv
332
+
333
+ * Dataset: csv
334
+ * Size: 53 training samples
335
+ * Columns: <code>text1</code>, <code>text2</code>, and <code>label</code>
336
+ * Approximate statistics based on the first 53 samples:
337
+ | | text1 | text2 | label |
338
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:------------------------------------------------|
339
+ | type | string | string | int |
340
+ | details | <ul><li>min: 14 tokens</li><li>mean: 35.36 tokens</li><li>max: 79 tokens</li></ul> | <ul><li>min: 11 tokens</li><li>mean: 21.33 tokens</li><li>max: 38 tokens</li></ul> | <ul><li>0: ~38.10%</li><li>1: ~61.90%</li></ul> |
341
+ * Samples:
342
+ | text1 | text2 | label |
343
+ |:---------------------------------------------------------------------------------------|:----------------------------------------------------------|:---------------|
344
+ | <code>薄紫 色 の ドレス と 明るい ホット ピンク の 靴 を 着た 女性 が 、 水 と コーヒー を 飲んで テーブル に 座って い ます 。</code> | <code>ブラインド デート の 女性 が 座って 、 デート が 現れる の を 待ち ます 。</code> | <code>1</code> |
345
+ | <code>トラック を 自転車 で 走る 人々 の グループ 。</code> | <code>自転車 の 挑戦 に 勝とう と する 人々 の グループ 。</code> | <code>1</code> |
346
+ | <code>野球 の 試合 中 に 基地 を 走る 野球 選手 の シャープリー 。</code> | <code>Sharp ley は ゲーム で プレイ して い ます 。</code> | <code>0</code> |
347
+ * Loss: [<code>OnlineContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#onlinecontrastiveloss)
348
+
349
+ ### Evaluation Dataset
350
+
351
+ #### csv
352
+
353
+ * Dataset: csv
354
+ * Size: 53 evaluation samples
355
+ * Columns: <code>text1</code>, <code>text2</code>, and <code>label</code>
356
+ * Approximate statistics based on the first 53 samples:
357
+ | | text1 | text2 | label |
358
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:------------------------------------------------|
359
+ | type | string | string | int |
360
+ | details | <ul><li>min: 19 tokens</li><li>mean: 39.64 tokens</li><li>max: 84 tokens</li></ul> | <ul><li>min: 19 tokens</li><li>mean: 25.27 tokens</li><li>max: 38 tokens</li></ul> | <ul><li>0: ~27.27%</li><li>1: ~72.73%</li></ul> |
361
+ * Samples:
362
+ | text1 | text2 | label |
363
+ |:----------------------------------------------------------------------------------------------------------|:------------------------------------------------|:---------------|
364
+ | <code>岩 の 多い 景色 を 見て 二 人</code> | <code>何 か を 見て いる 二 人 が い ます 。</code> | <code>0</code> |
365
+ | <code>白い ヘルメット と オレンジ色 の シャツ 、 ジーンズ 、 白い トラック と オレンジ色 の パイロン の 前 に 反射 ジャケット を 着た 金髪 の ストリート ワーカー 。</code> | <code>ストリート ワーカー は 保護 具 を 着用 して い ませ ん 。</code> | <code>1</code> |
366
+ | <code>白い 帽子 を かぶった 女性 が 、 鮮やかな 色 の 岩 の 風景 を 描いて い ます 。 岩 層 自体 が 背景 に 見え ます 。</code> | <code>誰 か が 肖像 画 を 描いて い ます 。</code> | <code>1</code> |
367
+ * Loss: [<code>OnlineContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#onlinecontrastiveloss)
368
+
369
+ ### Training Hyperparameters
370
+ #### Non-Default Hyperparameters
371
+
372
+ - `eval_strategy`: epoch
373
+ - `learning_rate`: 2e-05
374
+ - `num_train_epochs`: 7
375
+ - `warmup_ratio`: 0.4
376
+ - `fp16`: True
377
+ - `batch_sampler`: no_duplicates
378
+
379
+ #### All Hyperparameters
380
+ <details><summary>Click to expand</summary>
381
+
382
+ - `overwrite_output_dir`: False
383
+ - `do_predict`: False
384
+ - `eval_strategy`: epoch
385
+ - `prediction_loss_only`: True
386
+ - `per_device_train_batch_size`: 8
387
+ - `per_device_eval_batch_size`: 8
388
+ - `per_gpu_train_batch_size`: None
389
+ - `per_gpu_eval_batch_size`: None
390
+ - `gradient_accumulation_steps`: 1
391
+ - `eval_accumulation_steps`: None
392
+ - `torch_empty_cache_steps`: None
393
+ - `learning_rate`: 2e-05
394
+ - `weight_decay`: 0.0
395
+ - `adam_beta1`: 0.9
396
+ - `adam_beta2`: 0.999
397
+ - `adam_epsilon`: 1e-08
398
+ - `max_grad_norm`: 1.0
399
+ - `num_train_epochs`: 7
400
+ - `max_steps`: -1
401
+ - `lr_scheduler_type`: linear
402
+ - `lr_scheduler_kwargs`: {}
403
+ - `warmup_ratio`: 0.4
404
+ - `warmup_steps`: 0
405
+ - `log_level`: passive
406
+ - `log_level_replica`: warning
407
+ - `log_on_each_node`: True
408
+ - `logging_nan_inf_filter`: True
409
+ - `save_safetensors`: True
410
+ - `save_on_each_node`: False
411
+ - `save_only_model`: False
412
+ - `restore_callback_states_from_checkpoint`: False
413
+ - `no_cuda`: False
414
+ - `use_cpu`: False
415
+ - `use_mps_device`: False
416
+ - `seed`: 42
417
+ - `data_seed`: None
418
+ - `jit_mode_eval`: False
419
+ - `use_ipex`: False
420
+ - `bf16`: False
421
+ - `fp16`: True
422
+ - `fp16_opt_level`: O1
423
+ - `half_precision_backend`: auto
424
+ - `bf16_full_eval`: False
425
+ - `fp16_full_eval`: False
426
+ - `tf32`: None
427
+ - `local_rank`: 0
428
+ - `ddp_backend`: None
429
+ - `tpu_num_cores`: None
430
+ - `tpu_metrics_debug`: False
431
+ - `debug`: []
432
+ - `dataloader_drop_last`: False
433
+ - `dataloader_num_workers`: 0
434
+ - `dataloader_prefetch_factor`: None
435
+ - `past_index`: -1
436
+ - `disable_tqdm`: False
437
+ - `remove_unused_columns`: True
438
+ - `label_names`: None
439
+ - `load_best_model_at_end`: False
440
+ - `ignore_data_skip`: False
441
+ - `fsdp`: []
442
+ - `fsdp_min_num_params`: 0
443
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
444
+ - `fsdp_transformer_layer_cls_to_wrap`: None
445
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
446
+ - `deepspeed`: None
447
+ - `label_smoothing_factor`: 0.0
448
+ - `optim`: adamw_torch
449
+ - `optim_args`: None
450
+ - `adafactor`: False
451
+ - `group_by_length`: False
452
+ - `length_column_name`: length
453
+ - `ddp_find_unused_parameters`: None
454
+ - `ddp_bucket_cap_mb`: None
455
+ - `ddp_broadcast_buffers`: False
456
+ - `dataloader_pin_memory`: True
457
+ - `dataloader_persistent_workers`: False
458
+ - `skip_memory_metrics`: True
459
+ - `use_legacy_prediction_loop`: False
460
+ - `push_to_hub`: False
461
+ - `resume_from_checkpoint`: None
462
+ - `hub_model_id`: None
463
+ - `hub_strategy`: every_save
464
+ - `hub_private_repo`: False
465
+ - `hub_always_push`: False
466
+ - `gradient_checkpointing`: False
467
+ - `gradient_checkpointing_kwargs`: None
468
+ - `include_inputs_for_metrics`: False
469
+ - `eval_do_concat_batches`: True
470
+ - `fp16_backend`: auto
471
+ - `push_to_hub_model_id`: None
472
+ - `push_to_hub_organization`: None
473
+ - `mp_parameters`:
474
+ - `auto_find_batch_size`: False
475
+ - `full_determinism`: False
476
+ - `torchdynamo`: None
477
+ - `ray_scope`: last
478
+ - `ddp_timeout`: 1800
479
+ - `torch_compile`: False
480
+ - `torch_compile_backend`: None
481
+ - `torch_compile_mode`: None
482
+ - `dispatch_batches`: None
483
+ - `split_batches`: None
484
+ - `include_tokens_per_second`: False
485
+ - `include_num_input_tokens_seen`: False
486
+ - `neftune_noise_alpha`: None
487
+ - `optim_target_modules`: None
488
+ - `batch_eval_metrics`: False
489
+ - `eval_on_start`: False
490
+ - `eval_use_gather_object`: False
491
+ - `batch_sampler`: no_duplicates
492
+ - `multi_dataset_batch_sampler`: proportional
493
+
494
+ </details>
495
+
496
+ ### Training Logs
497
+ | Epoch | Step | Training Loss | loss | custom-arc-semantics-data-jp_max_ap |
498
+ |:-----:|:----:|:-------------:|:------:|:-----------------------------------:|
499
+ | 1.0 | 6 | 0.6894 | 0.8876 | 0.7238 |
500
+ | 2.0 | 12 | 0.5533 | 0.7950 | 0.7238 |
501
+ | 3.0 | 18 | 0.3983 | 0.6202 | 0.6946 |
502
+ | 4.0 | 24 | 0.2696 | 0.4843 | 0.7134 |
503
+ | 5.0 | 30 | 0.1559 | 0.4199 | 0.7177 |
504
+ | 6.0 | 36 | 0.1435 | 0.3991 | 0.7177 |
505
+ | 7.0 | 42 | 0.0888 | 0.3926 | 0.7177 |
506
+
507
+
508
+ ### Framework Versions
509
+ - Python: 3.10.14
510
+ - Sentence Transformers: 3.1.0
511
+ - Transformers: 4.44.2
512
+ - PyTorch: 2.4.1+cu121
513
+ - Accelerate: 0.34.2
514
+ - Datasets: 2.20.0
515
+ - Tokenizers: 0.19.1
516
+
517
+ ## Citation
518
+
519
+ ### BibTeX
520
+
521
+ #### Sentence Transformers
522
+ ```bibtex
523
+ @inproceedings{reimers-2019-sentence-bert,
524
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
525
+ author = "Reimers, Nils and Gurevych, Iryna",
526
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
527
+ month = "11",
528
+ year = "2019",
529
+ publisher = "Association for Computational Linguistics",
530
+ url = "https://arxiv.org/abs/1908.10084",
531
+ }
532
+ ```
533
+
534
+ <!--
535
+ ## Glossary
536
+
537
+ *Clearly define terms in order to be accessible across audiences.*
538
+ -->
539
+
540
+ <!--
541
+ ## Model Card Authors
542
+
543
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
544
+ -->
545
+
546
+ <!--
547
  ## Model Card Contact
548
 
549
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
550
+ -->
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:925cef2b5db42995ce727a61bd785daccaabb17b2320b97655d5df0387e5b875
3
  size 442491744
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:467b3f5baf1acf36ff93be92d0381ae666c36a16a619be3d23e54522d0b3952d
3
  size 442491744
runs/Sep17_17-50-11_default/events.out.tfevents.1726595412.default.1512.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcc37e8d4b09cf27ab16315e2e339d47f91dcfec3b3d034e8f8e04ad250bd4a0
3
+ size 29287