dtm-hoinv commited on
Commit
7f7d88c
·
verified ·
1 Parent(s): bbc5c10

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": true,
4
+ "pooling_mode_mean_tokens": false,
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,538 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:9054
8
+ - loss:BatchAllTripletLoss
9
+ base_model: cl-nagoya/sup-simcse-ja-base
10
+ widget:
11
+ - source_sentence: 科目:ユニット及びその他。名称:⑮傍聴席椅子#人掛け。
12
+ sentences:
13
+ - 科目:ユニット及びその他。名称:#階副議長室ロールスクリーン。
14
+ - 科目:ユニット及びその他。名称:控室B#-#、B#-#カウンター。
15
+ - 科目:ユニット及びその他。名称:記載カウンターサイン。
16
+ - source_sentence: 科目:コンクリート。名称:多目的ホール機械式移動座席基礎コンクリート。
17
+ sentences:
18
+ - 科目:ユニット及びその他。名称:床アスファルト舗装。
19
+ - 科目:タイル。名称:立上りタイルA。
20
+ - 科目:タイル。名称:段床磁器質タイル。
21
+ - source_sentence: 科目:タイル。名称:ドライエリア床タイル張り。
22
+ sentences:
23
+ - 科目:ユニット及びその他。名称:カーテンボックスD。
24
+ - 科目:ユニット及びその他。名称:総合案内カウンター。
25
+ - 科目:ユニット及びその他。名称:天井カーテンレール。
26
+ - source_sentence: 科目:タイル。名称:屋外階段踊場タイル張り。
27
+ sentences:
28
+ - 科目:ユニット及びその他。名称:執務室#-#規格品カウンター。
29
+ - 科目:ユニット及びその他。名称:受付ロビーカウンター。
30
+ - 科目:ユニット及びその他。名称:Sc-#踊場階数表示サイン。
31
+ - source_sentence: 科目:タイル。名称:床磁器質タイル。
32
+ sentences:
33
+ - 科目:ユニット及びその他。名称:#救助袋サイン(ガラス面)。
34
+ - 科目:ユニット及びその他。名称:La-#開閉注意サイン。
35
+ - 科目:ユニット及びその他。名称:案内スタンドサイン。
36
+ pipeline_tag: sentence-similarity
37
+ library_name: sentence-transformers
38
+ ---
39
+
40
+ # SentenceTransformer based on cl-nagoya/sup-simcse-ja-base
41
+
42
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [cl-nagoya/sup-simcse-ja-base](https://huggingface.co/cl-nagoya/sup-simcse-ja-base). 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.
43
+
44
+ ## Model Details
45
+
46
+ ### Model Description
47
+ - **Model Type:** Sentence Transformer
48
+ - **Base model:** [cl-nagoya/sup-simcse-ja-base](https://huggingface.co/cl-nagoya/sup-simcse-ja-base) <!-- at revision d7315d93baf2c20fffa2b6845330049963509f79 -->
49
+ - **Maximum Sequence Length:** 512 tokens
50
+ - **Output Dimensionality:** 768 dimensions
51
+ - **Similarity Function:** Cosine Similarity
52
+ <!-- - **Training Dataset:** Unknown -->
53
+ <!-- - **Language:** Unknown -->
54
+ <!-- - **License:** Unknown -->
55
+
56
+ ### Model Sources
57
+
58
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
59
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
60
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
61
+
62
+ ### Full Model Architecture
63
+
64
+ ```
65
+ SentenceTransformer(
66
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
67
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
68
+ )
69
+ ```
70
+
71
+ ## Usage
72
+
73
+ ### Direct Usage (Sentence Transformers)
74
+
75
+ First install the Sentence Transformers library:
76
+
77
+ ```bash
78
+ pip install -U sentence-transformers
79
+ ```
80
+
81
+ Then you can load this model and run inference.
82
+ ```python
83
+ from sentence_transformers import SentenceTransformer
84
+
85
+ # Download from the 🤗 Hub
86
+ model = SentenceTransformer("Detomo/cl-nagoya-sup-simcse-ja-for-standard-name-v0_9_6")
87
+ # Run inference
88
+ sentences = [
89
+ '科目:タイル。名称:床磁器質タイル。',
90
+ '科目:ユニット及びその他。名称:#救助袋サイン(ガラス面)。',
91
+ '科目:ユニット及びその他。名称:案内スタンドサイン。',
92
+ ]
93
+ embeddings = model.encode(sentences)
94
+ print(embeddings.shape)
95
+ # [3, 768]
96
+
97
+ # Get the similarity scores for the embeddings
98
+ similarities = model.similarity(embeddings, embeddings)
99
+ print(similarities.shape)
100
+ # [3, 3]
101
+ ```
102
+
103
+ <!--
104
+ ### Direct Usage (Transformers)
105
+
106
+ <details><summary>Click to see the direct usage in Transformers</summary>
107
+
108
+ </details>
109
+ -->
110
+
111
+ <!--
112
+ ### Downstream Usage (Sentence Transformers)
113
+
114
+ You can finetune this model on your own dataset.
115
+
116
+ <details><summary>Click to expand</summary>
117
+
118
+ </details>
119
+ -->
120
+
121
+ <!--
122
+ ### Out-of-Scope Use
123
+
124
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
125
+ -->
126
+
127
+ <!--
128
+ ## Bias, Risks and Limitations
129
+
130
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
131
+ -->
132
+
133
+ <!--
134
+ ### Recommendations
135
+
136
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
137
+ -->
138
+
139
+ ## Training Details
140
+
141
+ ### Training Dataset
142
+
143
+ #### Unnamed Dataset
144
+
145
+ * Size: 9,054 training samples
146
+ * Columns: <code>sentence</code> and <code>label</code>
147
+ * Approximate statistics based on the first 1000 samples:
148
+ | | sentence | label |
149
+ |:--------|:-----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
150
+ | type | string | int |
151
+ | details | <ul><li>min: 11 tokens</li><li>mean: 17.79 tokens</li><li>max: 32 tokens</li></ul> | <ul><li>0: ~0.20%</li><li>1: ~0.30%</li><li>2: ~0.30%</li><li>3: ~0.30%</li><li>4: ~0.20%</li><li>5: ~0.20%</li><li>6: ~0.20%</li><li>7: ~0.20%</li><li>8: ~0.20%</li><li>9: ~0.20%</li><li>10: ~0.30%</li><li>11: ~0.20%</li><li>12: ~0.20%</li><li>13: ~0.20%</li><li>14: ~0.20%</li><li>15: ~0.20%</li><li>16: ~0.20%</li><li>17: ~0.40%</li><li>18: ~0.20%</li><li>19: ~0.20%</li><li>20: ~0.20%</li><li>21: ~0.20%</li><li>22: ~0.20%</li><li>23: ~0.20%</li><li>24: ~0.20%</li><li>25: ~0.20%</li><li>26: ~0.20%</li><li>27: ~0.20%</li><li>28: ~0.20%</li><li>29: ~0.20%</li><li>30: ~0.20%</li><li>31: ~0.20%</li><li>32: ~0.20%</li><li>33: ~0.20%</li><li>34: ~0.20%</li><li>35: ~0.20%</li><li>36: ~0.20%</li><li>37: ~0.20%</li><li>38: ~0.20%</li><li>39: ~0.20%</li><li>40: ~0.20%</li><li>41: ~0.20%</li><li>42: ~0.20%</li><li>43: ~0.60%</li><li>44: ~0.70%</li><li>45: ~0.20%</li><li>46: ~0.20%</li><li>47: ~0.20%</li><li>48: ~0.20%</li><li>49: ~0.20%</li><li>50: ~0.30%</li><li>51: ~0.20%</li><li>52: ~0.20%</li><li>53: ~0.20%</li><li>54: ~0.20%</li><li>55: ~0.30%</li><li>56: ~0.40%</li><li>57: ~0.30%</li><li>58: ~0.20%</li><li>59: ~0.20%</li><li>60: ~0.20%</li><li>61: ~0.20%</li><li>62: ~0.20%</li><li>63: ~0.30%</li><li>64: ~0.20%</li><li>65: ~0.20%</li><li>66: ~0.20%</li><li>67: ~0.20%</li><li>68: ~0.40%</li><li>69: ~0.40%</li><li>70: ~0.20%</li><li>71: ~0.60%</li><li>72: ~0.20%</li><li>73: ~0.20%</li><li>74: ~0.20%</li><li>75: ~0.20%</li><li>76: ~0.20%</li><li>77: ~0.30%</li><li>78: ~0.20%</li><li>79: ~0.40%</li><li>80: ~0.20%</li><li>81: ~0.20%</li><li>82: ~0.50%</li><li>83: ~0.30%</li><li>84: ~0.60%</li><li>85: ~0.20%</li><li>86: ~0.30%</li><li>87: ~0.20%</li><li>88: ~0.20%</li><li>89: ~0.20%</li><li>90: ~0.20%</li><li>91: ~1.10%</li><li>92: ~1.70%</li><li>93: ~2.20%</li><li>94: ~0.50%</li><li>95: ~0.20%</li><li>96: ~0.20%</li><li>97: ~1.50%</li><li>98: ~0.20%</li><li>99: ~0.20%</li><li>100: ~0.20%</li><li>101: ~0.20%</li><li>102: ~0.30%</li><li>103: ~1.70%</li><li>104: ~0.20%</li><li>105: ~0.20%</li><li>106: ~0.40%</li><li>107: ~0.40%</li><li>108: ~0.20%</li><li>109: ~0.20%</li><li>110: ~0.20%</li><li>111: ~1.10%</li><li>112: ~0.20%</li><li>113: ~0.50%</li><li>114: ~0.50%</li><li>115: ~0.20%</li><li>116: ~0.20%</li><li>117: ~0.20%</li><li>118: ~0.20%</li><li>119: ~0.50%</li><li>120: ~0.20%</li><li>121: ~0.20%</li><li>122: ~0.20%</li><li>123: ~0.20%</li><li>124: ~0.20%</li><li>125: ~0.20%</li><li>126: ~0.30%</li><li>127: ~0.20%</li><li>128: ~0.20%</li><li>129: ~0.20%</li><li>130: ~0.50%</li><li>131: ~0.20%</li><li>132: ~0.20%</li><li>133: ~0.20%</li><li>134: ~0.20%</li><li>135: ~0.20%</li><li>136: ~0.20%</li><li>137: ~0.20%</li><li>138: ~0.20%</li><li>139: ~0.20%</li><li>140: ~0.20%</li><li>141: ~1.80%</li><li>142: ~0.20%</li><li>143: ~0.20%</li><li>144: ~1.70%</li><li>145: ~0.30%</li><li>146: ~0.30%</li><li>147: ~0.50%</li><li>148: ~0.50%</li><li>149: ~0.50%</li><li>150: ~0.20%</li><li>151: ~0.20%</li><li>152: ~0.20%</li><li>153: ~0.20%</li><li>154: ~0.20%</li><li>155: ~0.20%</li><li>156: ~0.20%</li><li>157: ~0.20%</li><li>158: ~0.60%</li><li>159: ~0.20%</li><li>160: ~0.20%</li><li>161: ~0.20%</li><li>162: ~0.20%</li><li>163: ~0.20%</li><li>164: ~0.50%</li><li>165: ~0.20%</li><li>166: ~0.20%</li><li>167: ~0.20%</li><li>168: ~0.20%</li><li>169: ~0.20%</li><li>170: ~0.30%</li><li>171: ~0.30%</li><li>172: ~0.20%</li><li>173: ~0.20%</li><li>174: ~0.20%</li><li>175: ~0.20%</li><li>176: ~0.20%</li><li>177: ~0.60%</li><li>178: ~0.20%</li><li>179: ~0.20%</li><li>180: ~0.20%</li><li>181: ~0.20%</li><li>182: ~0.20%</li><li>183: ~0.40%</li><li>184: ~0.20%</li><li>185: ~0.20%</li><li>186: ~0.30%</li><li>187: ~0.20%</li><li>188: ~0.90%</li><li>189: ~0.30%</li><li>190: ~0.30%</li><li>191: ~0.20%</li><li>192: ~0.30%</li><li>193: ~0.20%</li><li>194: ~0.80%</li><li>195: ~0.20%</li><li>196: ~0.20%</li><li>197: ~0.30%</li><li>198: ~0.20%</li><li>199: ~0.20%</li><li>200: ~0.20%</li><li>201: ~0.20%</li><li>202: ~0.20%</li><li>203: ~1.20%</li><li>204: ~0.40%</li><li>205: ~0.20%</li><li>206: ~0.20%</li><li>207: ~0.20%</li><li>208: ~0.20%</li><li>209: ~1.00%</li><li>210: ~0.20%</li><li>211: ~0.30%</li><li>212: ~0.20%</li><li>213: ~1.10%</li><li>214: ~0.30%</li><li>215: ~0.20%</li><li>216: ~0.20%</li><li>217: ~0.20%</li><li>218: ~0.20%</li><li>219: ~0.20%</li><li>220: ~0.20%</li><li>221: ~0.20%</li><li>222: ~0.30%</li><li>223: ~0.20%</li><li>224: ~0.90%</li><li>225: ~4.70%</li><li>226: ~0.20%</li><li>227: ~0.20%</li><li>228: ~0.20%</li><li>229: ~0.70%</li><li>230: ~0.20%</li><li>231: ~0.80%</li><li>232: ~0.20%</li><li>233: ~0.40%</li><li>234: ~0.30%</li><li>235: ~0.40%</li><li>236: ~0.20%</li><li>237: ~0.30%</li><li>238: ~0.50%</li><li>239: ~0.30%</li><li>240: ~0.20%</li><li>241: ~0.20%</li><li>242: ~0.30%</li><li>243: ~0.30%</li><li>244: ~0.30%</li><li>245: ~0.60%</li><li>246: ~0.20%</li><li>247: ~0.20%</li><li>248: ~0.20%</li><li>249: ~0.30%</li><li>250: ~0.30%</li><li>251: ~1.90%</li><li>252: ~0.20%</li><li>253: ~0.20%</li><li>254: ~0.20%</li><li>255: ~0.20%</li><li>256: ~0.20%</li><li>257: ~0.50%</li><li>258: ~0.20%</li><li>259: ~0.30%</li><li>260: ~0.20%</li><li>261: ~0.20%</li><li>262: ~1.00%</li><li>263: ~0.20%</li><li>264: ~0.20%</li><li>265: ~0.20%</li><li>266: ~0.40%</li><li>267: ~0.20%</li><li>268: ~0.20%</li><li>269: ~0.20%</li><li>270: ~0.20%</li><li>271: ~0.20%</li><li>272: ~0.20%</li><li>273: ~0.20%</li><li>274: ~3.60%</li><li>275: ~0.20%</li><li>276: ~0.20%</li><li>277: ~0.40%</li><li>278: ~0.20%</li><li>279: ~0.20%</li><li>280: ~0.90%</li><li>281: ~0.40%</li><li>282: ~0.20%</li><li>283: ~2.30%</li><li>284: ~0.30%</li></ul> |
152
+ * Samples:
153
+ | sentence | label |
154
+ |:-----------------------------------------|:---------------|
155
+ | <code>科目:コンクリート。名称:免震基礎天端グラウト注入。</code> | <code>0</code> |
156
+ | <code>科目:コンクリート。名称:免震基礎天端グラウト注入。</code> | <code>0</code> |
157
+ | <code>科目:コンクリート。名称:コンクリートポンプ圧送。</code> | <code>1</code> |
158
+ * Loss: [<code>BatchAllTripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#batchalltripletloss)
159
+
160
+ ### Training Hyperparameters
161
+ #### Non-Default Hyperparameters
162
+
163
+ - `per_device_train_batch_size`: 512
164
+ - `per_device_eval_batch_size`: 512
165
+ - `learning_rate`: 1e-05
166
+ - `weight_decay`: 0.01
167
+ - `num_train_epochs`: 500
168
+ - `warmup_ratio`: 0.1
169
+ - `fp16`: True
170
+ - `batch_sampler`: group_by_label
171
+
172
+ #### All Hyperparameters
173
+ <details><summary>Click to expand</summary>
174
+
175
+ - `overwrite_output_dir`: False
176
+ - `do_predict`: False
177
+ - `eval_strategy`: no
178
+ - `prediction_loss_only`: True
179
+ - `per_device_train_batch_size`: 512
180
+ - `per_device_eval_batch_size`: 512
181
+ - `per_gpu_train_batch_size`: None
182
+ - `per_gpu_eval_batch_size`: None
183
+ - `gradient_accumulation_steps`: 1
184
+ - `eval_accumulation_steps`: None
185
+ - `torch_empty_cache_steps`: None
186
+ - `learning_rate`: 1e-05
187
+ - `weight_decay`: 0.01
188
+ - `adam_beta1`: 0.9
189
+ - `adam_beta2`: 0.999
190
+ - `adam_epsilon`: 1e-08
191
+ - `max_grad_norm`: 1.0
192
+ - `num_train_epochs`: 500
193
+ - `max_steps`: -1
194
+ - `lr_scheduler_type`: linear
195
+ - `lr_scheduler_kwargs`: {}
196
+ - `warmup_ratio`: 0.1
197
+ - `warmup_steps`: 0
198
+ - `log_level`: passive
199
+ - `log_level_replica`: warning
200
+ - `log_on_each_node`: True
201
+ - `logging_nan_inf_filter`: True
202
+ - `save_safetensors`: True
203
+ - `save_on_each_node`: False
204
+ - `save_only_model`: False
205
+ - `restore_callback_states_from_checkpoint`: False
206
+ - `no_cuda`: False
207
+ - `use_cpu`: False
208
+ - `use_mps_device`: False
209
+ - `seed`: 42
210
+ - `data_seed`: None
211
+ - `jit_mode_eval`: False
212
+ - `use_ipex`: False
213
+ - `bf16`: False
214
+ - `fp16`: True
215
+ - `fp16_opt_level`: O1
216
+ - `half_precision_backend`: auto
217
+ - `bf16_full_eval`: False
218
+ - `fp16_full_eval`: False
219
+ - `tf32`: None
220
+ - `local_rank`: 0
221
+ - `ddp_backend`: None
222
+ - `tpu_num_cores`: None
223
+ - `tpu_metrics_debug`: False
224
+ - `debug`: []
225
+ - `dataloader_drop_last`: False
226
+ - `dataloader_num_workers`: 0
227
+ - `dataloader_prefetch_factor`: None
228
+ - `past_index`: -1
229
+ - `disable_tqdm`: False
230
+ - `remove_unused_columns`: True
231
+ - `label_names`: None
232
+ - `load_best_model_at_end`: False
233
+ - `ignore_data_skip`: False
234
+ - `fsdp`: []
235
+ - `fsdp_min_num_params`: 0
236
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
237
+ - `fsdp_transformer_layer_cls_to_wrap`: None
238
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
239
+ - `deepspeed`: None
240
+ - `label_smoothing_factor`: 0.0
241
+ - `optim`: adamw_torch
242
+ - `optim_args`: None
243
+ - `adafactor`: False
244
+ - `group_by_length`: False
245
+ - `length_column_name`: length
246
+ - `ddp_find_unused_parameters`: None
247
+ - `ddp_bucket_cap_mb`: None
248
+ - `ddp_broadcast_buffers`: False
249
+ - `dataloader_pin_memory`: True
250
+ - `dataloader_persistent_workers`: False
251
+ - `skip_memory_metrics`: True
252
+ - `use_legacy_prediction_loop`: False
253
+ - `push_to_hub`: False
254
+ - `resume_from_checkpoint`: None
255
+ - `hub_model_id`: None
256
+ - `hub_strategy`: every_save
257
+ - `hub_private_repo`: None
258
+ - `hub_always_push`: False
259
+ - `gradient_checkpointing`: False
260
+ - `gradient_checkpointing_kwargs`: None
261
+ - `include_inputs_for_metrics`: False
262
+ - `include_for_metrics`: []
263
+ - `eval_do_concat_batches`: True
264
+ - `fp16_backend`: auto
265
+ - `push_to_hub_model_id`: None
266
+ - `push_to_hub_organization`: None
267
+ - `mp_parameters`:
268
+ - `auto_find_batch_size`: False
269
+ - `full_determinism`: False
270
+ - `torchdynamo`: None
271
+ - `ray_scope`: last
272
+ - `ddp_timeout`: 1800
273
+ - `torch_compile`: False
274
+ - `torch_compile_backend`: None
275
+ - `torch_compile_mode`: None
276
+ - `dispatch_batches`: None
277
+ - `split_batches`: None
278
+ - `include_tokens_per_second`: False
279
+ - `include_num_input_tokens_seen`: False
280
+ - `neftune_noise_alpha`: None
281
+ - `optim_target_modules`: None
282
+ - `batch_eval_metrics`: False
283
+ - `eval_on_start`: False
284
+ - `use_liger_kernel`: False
285
+ - `eval_use_gather_object`: False
286
+ - `average_tokens_across_devices`: False
287
+ - `prompts`: None
288
+ - `batch_sampler`: group_by_label
289
+ - `multi_dataset_batch_sampler`: proportional
290
+
291
+ </details>
292
+
293
+ ### Training Logs
294
+ <details><summary>Click to expand</summary>
295
+
296
+ | Epoch | Step | Training Loss |
297
+ |:--------:|:----:|:-------------:|
298
+ | 2.8889 | 50 | 0.7963 |
299
+ | 5.8333 | 100 | 0.7067 |
300
+ | 8.7778 | 150 | 0.6532 |
301
+ | 11.7222 | 200 | 0.6806 |
302
+ | 14.6667 | 250 | 0.652 |
303
+ | 17.6111 | 300 | 0.6508 |
304
+ | 20.5556 | 350 | 0.6566 |
305
+ | 23.5 | 400 | 0.6237 |
306
+ | 26.4444 | 450 | 0.6363 |
307
+ | 29.3889 | 500 | 0.6554 |
308
+ | 32.3333 | 550 | 0.6007 |
309
+ | 35.2778 | 600 | 0.6016 |
310
+ | 38.2222 | 650 | 0.5687 |
311
+ | 2.8889 | 50 | 0.5655 |
312
+ | 5.8333 | 100 | 0.6139 |
313
+ | 8.7778 | 150 | 0.514 |
314
+ | 11.7222 | 200 | 0.5867 |
315
+ | 14.6667 | 250 | 0.5699 |
316
+ | 17.6111 | 300 | 0.5472 |
317
+ | 20.5556 | 350 | 0.5793 |
318
+ | 23.5 | 400 | 0.5196 |
319
+ | 26.4444 | 450 | 0.5572 |
320
+ | 29.3889 | 500 | 0.5279 |
321
+ | 32.3333 | 550 | 0.5095 |
322
+ | 35.2778 | 600 | 0.4488 |
323
+ | 38.2222 | 650 | 0.4189 |
324
+ | 41.1667 | 700 | 0.5164 |
325
+ | 44.1111 | 750 | 0.591 |
326
+ | 47.0556 | 800 | 0.52 |
327
+ | 49.9444 | 850 | 0.5235 |
328
+ | 52.8889 | 900 | 0.5317 |
329
+ | 55.8333 | 950 | 0.5517 |
330
+ | 58.7778 | 1000 | 0.5618 |
331
+ | 61.7222 | 1050 | 0.5318 |
332
+ | 64.6667 | 1100 | 0.4685 |
333
+ | 67.6111 | 1150 | 0.4836 |
334
+ | 70.5556 | 1200 | 0.5426 |
335
+ | 73.5 | 1250 | 0.5356 |
336
+ | 76.4444 | 1300 | 0.4231 |
337
+ | 79.3889 | 1350 | 0.5104 |
338
+ | 82.3333 | 1400 | 0.4944 |
339
+ | 85.2778 | 1450 | 0.5301 |
340
+ | 88.2222 | 1500 | 0.4499 |
341
+ | 91.1667 | 1550 | 0.4745 |
342
+ | 94.1111 | 1600 | 0.4432 |
343
+ | 97.0556 | 1650 | 0.3892 |
344
+ | 99.9444 | 1700 | 0.4429 |
345
+ | 102.8889 | 1750 | 0.4973 |
346
+ | 105.8333 | 1800 | 0.5222 |
347
+ | 108.7778 | 1850 | 0.4502 |
348
+ | 111.7222 | 1900 | 0.4073 |
349
+ | 114.6667 | 1950 | 0.408 |
350
+ | 117.6111 | 2000 | 0.403 |
351
+ | 120.5556 | 2050 | 0.4122 |
352
+ | 123.5 | 2100 | 0.4357 |
353
+ | 126.4444 | 2150 | 0.4765 |
354
+ | 129.3889 | 2200 | 0.4069 |
355
+ | 132.3333 | 2250 | 0.388 |
356
+ | 135.2778 | 2300 | 0.341 |
357
+ | 138.2222 | 2350 | 0.333 |
358
+ | 141.1667 | 2400 | 0.4587 |
359
+ | 144.1111 | 2450 | 0.355 |
360
+ | 147.0556 | 2500 | 0.3552 |
361
+ | 149.9444 | 2550 | 0.3804 |
362
+ | 152.8889 | 2600 | 0.3692 |
363
+ | 155.8333 | 2650 | 0.3367 |
364
+ | 158.7778 | 2700 | 0.3662 |
365
+ | 161.7222 | 2750 | 0.3089 |
366
+ | 164.6667 | 2800 | 0.3016 |
367
+ | 167.6111 | 2850 | 0.3252 |
368
+ | 170.5556 | 2900 | 0.3409 |
369
+ | 173.5 | 2950 | 0.3128 |
370
+ | 176.4444 | 3000 | 0.3287 |
371
+ | 179.3889 | 3050 | 0.3148 |
372
+ | 182.3333 | 3100 | 0.3843 |
373
+ | 185.2778 | 3150 | 0.2281 |
374
+ | 188.2222 | 3200 | 0.2973 |
375
+ | 191.1667 | 3250 | 0.2891 |
376
+ | 194.1111 | 3300 | 0.3623 |
377
+ | 197.0556 | 3350 | 0.3626 |
378
+ | 199.9444 | 3400 | 0.2931 |
379
+ | 202.8889 | 3450 | 0.2755 |
380
+ | 205.8333 | 3500 | 0.2849 |
381
+ | 208.7778 | 3550 | 0.2608 |
382
+ | 211.7222 | 3600 | 0.3081 |
383
+ | 214.6667 | 3650 | 0.2724 |
384
+ | 217.6111 | 3700 | 0.2583 |
385
+ | 220.5556 | 3750 | 0.3132 |
386
+ | 223.5 | 3800 | 0.196 |
387
+ | 226.4444 | 3850 | 0.2554 |
388
+ | 229.3889 | 3900 | 0.2 |
389
+ | 232.3333 | 3950 | 0.2936 |
390
+ | 235.2778 | 4000 | 0.2326 |
391
+ | 238.2222 | 4050 | 0.2031 |
392
+ | 241.1667 | 4100 | 0.2492 |
393
+ | 244.1111 | 4150 | 0.2234 |
394
+ | 247.0556 | 4200 | 0.3034 |
395
+ | 249.9444 | 4250 | 0.2325 |
396
+ | 252.8889 | 4300 | 0.2453 |
397
+ | 255.8333 | 4350 | 0.2848 |
398
+ | 258.7778 | 4400 | 0.2447 |
399
+ | 261.7222 | 4450 | 0.2599 |
400
+ | 264.6667 | 4500 | 0.2073 |
401
+ | 267.6111 | 4550 | 0.2134 |
402
+ | 270.5556 | 4600 | 0.1886 |
403
+ | 273.5 | 4650 | 0.1229 |
404
+ | 276.4444 | 4700 | 0.2147 |
405
+ | 279.3889 | 4750 | 0.1993 |
406
+ | 282.3333 | 4800 | 0.1814 |
407
+ | 285.2778 | 4850 | 0.202 |
408
+ | 288.2222 | 4900 | 0.1947 |
409
+ | 291.1667 | 4950 | 0.14 |
410
+ | 294.1111 | 5000 | 0.2394 |
411
+ | 297.0556 | 5050 | 0.1798 |
412
+ | 299.9444 | 5100 | 0.1534 |
413
+ | 302.8889 | 5150 | 0.2622 |
414
+ | 305.8333 | 5200 | 0.1636 |
415
+ | 308.7778 | 5250 | 0.1966 |
416
+ | 311.7222 | 5300 | 0.1365 |
417
+ | 314.6667 | 5350 | 0.1501 |
418
+ | 317.6111 | 5400 | 0.1494 |
419
+ | 320.5556 | 5450 | 0.1341 |
420
+ | 323.5 | 5500 | 0.1791 |
421
+ | 326.4444 | 5550 | 0.1609 |
422
+ | 329.3889 | 5600 | 0.2268 |
423
+ | 332.3333 | 5650 | 0.2145 |
424
+ | 335.2778 | 5700 | 0.095 |
425
+ | 338.2222 | 5750 | 0.1161 |
426
+ | 341.1667 | 5800 | 0.1615 |
427
+ | 344.1111 | 5850 | 0.1261 |
428
+ | 347.0556 | 5900 | 0.2022 |
429
+ | 349.9444 | 5950 | 0.1503 |
430
+ | 352.8889 | 6000 | 0.1473 |
431
+ | 355.8333 | 6050 | 0.1703 |
432
+ | 358.7778 | 6100 | 0.1441 |
433
+ | 361.7222 | 6150 | 0.1439 |
434
+ | 364.6667 | 6200 | 0.1192 |
435
+ | 367.6111 | 6250 | 0.1312 |
436
+ | 370.5556 | 6300 | 0.0933 |
437
+ | 373.5 | 6350 | 0.1281 |
438
+ | 376.4444 | 6400 | 0.1516 |
439
+ | 379.3889 | 6450 | 0.1819 |
440
+ | 382.3333 | 6500 | 0.1877 |
441
+ | 385.2778 | 6550 | 0.1372 |
442
+ | 388.2222 | 6600 | 0.1551 |
443
+ | 391.1667 | 6650 | 0.1343 |
444
+ | 394.1111 | 6700 | 0.2394 |
445
+ | 397.0556 | 6750 | 0.1882 |
446
+ | 399.9444 | 6800 | 0.1786 |
447
+ | 402.8889 | 6850 | 0.125 |
448
+ | 405.8333 | 6900 | 0.1059 |
449
+ | 408.7778 | 6950 | 0.1414 |
450
+ | 411.7222 | 7000 | 0.0593 |
451
+ | 414.6667 | 7050 | 0.1037 |
452
+ | 417.6111 | 7100 | 0.098 |
453
+ | 420.5556 | 7150 | 0.1457 |
454
+ | 423.5 | 7200 | 0.1193 |
455
+ | 426.4444 | 7250 | 0.1061 |
456
+ | 429.3889 | 7300 | 0.1305 |
457
+ | 432.3333 | 7350 | 0.1416 |
458
+ | 435.2778 | 7400 | 0.1117 |
459
+ | 438.2222 | 7450 | 0.1003 |
460
+ | 441.1667 | 7500 | 0.1217 |
461
+ | 444.1111 | 7550 | 0.0872 |
462
+ | 447.0556 | 7600 | 0.1219 |
463
+ | 449.9444 | 7650 | 0.1061 |
464
+ | 452.8889 | 7700 | 0.1559 |
465
+ | 455.8333 | 7750 | 0.1599 |
466
+ | 458.7778 | 7800 | 0.1436 |
467
+ | 461.7222 | 7850 | 0.1207 |
468
+ | 464.6667 | 7900 | 0.1272 |
469
+ | 467.6111 | 7950 | 0.1048 |
470
+ | 470.5556 | 8000 | 0.1216 |
471
+ | 473.5 | 8050 | 0.133 |
472
+ | 476.4444 | 8100 | 0.0971 |
473
+ | 479.3889 | 8150 | 0.154 |
474
+ | 482.3333 | 8200 | 0.0697 |
475
+ | 485.2778 | 8250 | 0.136 |
476
+ | 488.2222 | 8300 | 0.1315 |
477
+ | 491.1667 | 8350 | 0.1103 |
478
+ | 494.1111 | 8400 | 0.1065 |
479
+ | 497.0556 | 8450 | 0.0784 |
480
+ | 499.9444 | 8500 | 0.134 |
481
+
482
+ </details>
483
+
484
+ ### Framework Versions
485
+ - Python: 3.11.11
486
+ - Sentence Transformers: 3.4.1
487
+ - Transformers: 4.49.0
488
+ - PyTorch: 2.6.0+cu124
489
+ - Accelerate: 1.5.2
490
+ - Datasets: 3.4.1
491
+ - Tokenizers: 0.21.1
492
+
493
+ ## Citation
494
+
495
+ ### BibTeX
496
+
497
+ #### Sentence Transformers
498
+ ```bibtex
499
+ @inproceedings{reimers-2019-sentence-bert,
500
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
501
+ author = "Reimers, Nils and Gurevych, Iryna",
502
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
503
+ month = "11",
504
+ year = "2019",
505
+ publisher = "Association for Computational Linguistics",
506
+ url = "https://arxiv.org/abs/1908.10084",
507
+ }
508
+ ```
509
+
510
+ #### BatchAllTripletLoss
511
+ ```bibtex
512
+ @misc{hermans2017defense,
513
+ title={In Defense of the Triplet Loss for Person Re-Identification},
514
+ author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
515
+ year={2017},
516
+ eprint={1703.07737},
517
+ archivePrefix={arXiv},
518
+ primaryClass={cs.CV}
519
+ }
520
+ ```
521
+
522
+ <!--
523
+ ## Glossary
524
+
525
+ *Clearly define terms in order to be accessible across audiences.*
526
+ -->
527
+
528
+ <!--
529
+ ## Model Card Authors
530
+
531
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
532
+ -->
533
+
534
+ <!--
535
+ ## Model Card Contact
536
+
537
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
538
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "cl-nagoya/sup-simcse-ja-base",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.49.0",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 32768
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.49.0",
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:8da06c1239f6071803b2640c30e7276904b2cfb917c33fbc22fdea6008e3c1f3
3
+ size 444851048
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_lower_case": false,
47
+ "do_subword_tokenize": true,
48
+ "do_word_tokenize": true,
49
+ "extra_special_tokens": {},
50
+ "jumanpp_kwargs": null,
51
+ "mask_token": "[MASK]",
52
+ "mecab_kwargs": {
53
+ "mecab_dic": "unidic_lite"
54
+ },
55
+ "model_max_length": 512,
56
+ "never_split": null,
57
+ "pad_token": "[PAD]",
58
+ "sep_token": "[SEP]",
59
+ "subword_tokenizer_type": "wordpiece",
60
+ "sudachi_kwargs": null,
61
+ "tokenizer_class": "BertJapaneseTokenizer",
62
+ "unk_token": "[UNK]",
63
+ "word_tokenizer_type": "mecab"
64
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff