luanafelbarros
commited on
Add new SentenceTransformer model
Browse files- 1_Pooling/config.json +10 -0
- README.md +680 -0
- config.json +31 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- vocab.txt +0 -0
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,680 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- sentence-transformers
|
4 |
+
- sentence-similarity
|
5 |
+
- feature-extraction
|
6 |
+
- generated_from_trainer
|
7 |
+
- dataset_size:234000
|
8 |
+
- loss:MSELoss
|
9 |
+
base_model: google-bert/bert-base-multilingual-cased
|
10 |
+
widget:
|
11 |
+
- source_sentence: who sings in spite of ourselves with john prine
|
12 |
+
sentences:
|
13 |
+
- es
|
14 |
+
- når ble michael jordan draftet til nba
|
15 |
+
- quien canta en spite of ourselves con john prine
|
16 |
+
- source_sentence: who wrote when you look me in the eyes
|
17 |
+
sentences:
|
18 |
+
- متى بدأت الفتاة الكشفية في بيع ملفات تعريف الارتباط
|
19 |
+
- A écrit when you look me in the eyes
|
20 |
+
- fr
|
21 |
+
- source_sentence: when was fathers day made a national holiday
|
22 |
+
sentences:
|
23 |
+
- wann wurde der Vatertag zum nationalen Feiertag
|
24 |
+
- de
|
25 |
+
- ' អ្នកណាច្រៀង i want to sing you a love song'
|
26 |
+
- source_sentence: what is the density of the continental crust
|
27 |
+
sentences:
|
28 |
+
- cuál es la densidad de la corteza continental
|
29 |
+
- wie zingt i want to sing you a love song
|
30 |
+
- es
|
31 |
+
- source_sentence: who wrote the song i shot the sheriff
|
32 |
+
sentences:
|
33 |
+
- Quel est l'âge légal pour consommer du vin au Canada?
|
34 |
+
- i shot the sheriff şarkısını kim besteledi
|
35 |
+
- tr
|
36 |
+
pipeline_tag: sentence-similarity
|
37 |
+
library_name: sentence-transformers
|
38 |
+
metrics:
|
39 |
+
- negative_mse
|
40 |
+
model-index:
|
41 |
+
- name: SentenceTransformer based on google-bert/bert-base-multilingual-cased
|
42 |
+
results:
|
43 |
+
- task:
|
44 |
+
type: knowledge-distillation
|
45 |
+
name: Knowledge Distillation
|
46 |
+
dataset:
|
47 |
+
name: MSE val en to ar
|
48 |
+
type: MSE-val-en-to-ar
|
49 |
+
metrics:
|
50 |
+
- type: negative_mse
|
51 |
+
value: -18.93259286880493
|
52 |
+
name: Negative Mse
|
53 |
+
- task:
|
54 |
+
type: knowledge-distillation
|
55 |
+
name: Knowledge Distillation
|
56 |
+
dataset:
|
57 |
+
name: MSE val en to da
|
58 |
+
type: MSE-val-en-to-da
|
59 |
+
metrics:
|
60 |
+
- type: negative_mse
|
61 |
+
value: -15.68576693534851
|
62 |
+
name: Negative Mse
|
63 |
+
- task:
|
64 |
+
type: knowledge-distillation
|
65 |
+
name: Knowledge Distillation
|
66 |
+
dataset:
|
67 |
+
name: MSE val en to de
|
68 |
+
type: MSE-val-en-to-de
|
69 |
+
metrics:
|
70 |
+
- type: negative_mse
|
71 |
+
value: -16.125640273094177
|
72 |
+
name: Negative Mse
|
73 |
+
- task:
|
74 |
+
type: knowledge-distillation
|
75 |
+
name: Knowledge Distillation
|
76 |
+
dataset:
|
77 |
+
name: MSE val en to en
|
78 |
+
type: MSE-val-en-to-en
|
79 |
+
metrics:
|
80 |
+
- type: negative_mse
|
81 |
+
value: -13.388358056545258
|
82 |
+
name: Negative Mse
|
83 |
+
- task:
|
84 |
+
type: knowledge-distillation
|
85 |
+
name: Knowledge Distillation
|
86 |
+
dataset:
|
87 |
+
name: MSE val en to es
|
88 |
+
type: MSE-val-en-to-es
|
89 |
+
metrics:
|
90 |
+
- type: negative_mse
|
91 |
+
value: -15.648126602172852
|
92 |
+
name: Negative Mse
|
93 |
+
- task:
|
94 |
+
type: knowledge-distillation
|
95 |
+
name: Knowledge Distillation
|
96 |
+
dataset:
|
97 |
+
name: MSE val en to fi
|
98 |
+
type: MSE-val-en-to-fi
|
99 |
+
metrics:
|
100 |
+
- type: negative_mse
|
101 |
+
value: -17.174141108989716
|
102 |
+
name: Negative Mse
|
103 |
+
- task:
|
104 |
+
type: knowledge-distillation
|
105 |
+
name: Knowledge Distillation
|
106 |
+
dataset:
|
107 |
+
name: MSE val en to fr
|
108 |
+
type: MSE-val-en-to-fr
|
109 |
+
metrics:
|
110 |
+
- type: negative_mse
|
111 |
+
value: -15.814268589019775
|
112 |
+
name: Negative Mse
|
113 |
+
- task:
|
114 |
+
type: knowledge-distillation
|
115 |
+
name: Knowledge Distillation
|
116 |
+
dataset:
|
117 |
+
name: MSE val en to he
|
118 |
+
type: MSE-val-en-to-he
|
119 |
+
metrics:
|
120 |
+
- type: negative_mse
|
121 |
+
value: -18.483880162239075
|
122 |
+
name: Negative Mse
|
123 |
+
- task:
|
124 |
+
type: knowledge-distillation
|
125 |
+
name: Knowledge Distillation
|
126 |
+
dataset:
|
127 |
+
name: MSE val en to hu
|
128 |
+
type: MSE-val-en-to-hu
|
129 |
+
metrics:
|
130 |
+
- type: negative_mse
|
131 |
+
value: -17.58536398410797
|
132 |
+
name: Negative Mse
|
133 |
+
- task:
|
134 |
+
type: knowledge-distillation
|
135 |
+
name: Knowledge Distillation
|
136 |
+
dataset:
|
137 |
+
name: MSE val en to it
|
138 |
+
type: MSE-val-en-to-it
|
139 |
+
metrics:
|
140 |
+
- type: negative_mse
|
141 |
+
value: -15.706634521484375
|
142 |
+
name: Negative Mse
|
143 |
+
- task:
|
144 |
+
type: knowledge-distillation
|
145 |
+
name: Knowledge Distillation
|
146 |
+
dataset:
|
147 |
+
name: MSE val en to ja
|
148 |
+
type: MSE-val-en-to-ja
|
149 |
+
metrics:
|
150 |
+
- type: negative_mse
|
151 |
+
value: -17.800691723823547
|
152 |
+
name: Negative Mse
|
153 |
+
- task:
|
154 |
+
type: knowledge-distillation
|
155 |
+
name: Knowledge Distillation
|
156 |
+
dataset:
|
157 |
+
name: MSE val en to ko
|
158 |
+
type: MSE-val-en-to-ko
|
159 |
+
metrics:
|
160 |
+
- type: negative_mse
|
161 |
+
value: -19.26662176847458
|
162 |
+
name: Negative Mse
|
163 |
+
- task:
|
164 |
+
type: knowledge-distillation
|
165 |
+
name: Knowledge Distillation
|
166 |
+
dataset:
|
167 |
+
name: MSE val en to km
|
168 |
+
type: MSE-val-en-to-km
|
169 |
+
metrics:
|
170 |
+
- type: negative_mse
|
171 |
+
value: -28.38749885559082
|
172 |
+
name: Negative Mse
|
173 |
+
- task:
|
174 |
+
type: knowledge-distillation
|
175 |
+
name: Knowledge Distillation
|
176 |
+
dataset:
|
177 |
+
name: MSE val en to ms
|
178 |
+
type: MSE-val-en-to-ms
|
179 |
+
metrics:
|
180 |
+
- type: negative_mse
|
181 |
+
value: -15.783128142356873
|
182 |
+
name: Negative Mse
|
183 |
+
- task:
|
184 |
+
type: knowledge-distillation
|
185 |
+
name: Knowledge Distillation
|
186 |
+
dataset:
|
187 |
+
name: MSE val en to nl
|
188 |
+
type: MSE-val-en-to-nl
|
189 |
+
metrics:
|
190 |
+
- type: negative_mse
|
191 |
+
value: -15.027229487895966
|
192 |
+
name: Negative Mse
|
193 |
+
- task:
|
194 |
+
type: knowledge-distillation
|
195 |
+
name: Knowledge Distillation
|
196 |
+
dataset:
|
197 |
+
name: MSE val en to no
|
198 |
+
type: MSE-val-en-to-no
|
199 |
+
metrics:
|
200 |
+
- type: negative_mse
|
201 |
+
value: -15.598368644714355
|
202 |
+
name: Negative Mse
|
203 |
+
- task:
|
204 |
+
type: knowledge-distillation
|
205 |
+
name: Knowledge Distillation
|
206 |
+
dataset:
|
207 |
+
name: MSE val en to pl
|
208 |
+
type: MSE-val-en-to-pl
|
209 |
+
metrics:
|
210 |
+
- type: negative_mse
|
211 |
+
value: -16.64138436317444
|
212 |
+
name: Negative Mse
|
213 |
+
- task:
|
214 |
+
type: knowledge-distillation
|
215 |
+
name: Knowledge Distillation
|
216 |
+
dataset:
|
217 |
+
name: MSE val en to pt
|
218 |
+
type: MSE-val-en-to-pt
|
219 |
+
metrics:
|
220 |
+
- type: negative_mse
|
221 |
+
value: -15.76906442642212
|
222 |
+
name: Negative Mse
|
223 |
+
- task:
|
224 |
+
type: knowledge-distillation
|
225 |
+
name: Knowledge Distillation
|
226 |
+
dataset:
|
227 |
+
name: MSE val en to ru
|
228 |
+
type: MSE-val-en-to-ru
|
229 |
+
metrics:
|
230 |
+
- type: negative_mse
|
231 |
+
value: -16.91163182258606
|
232 |
+
name: Negative Mse
|
233 |
+
- task:
|
234 |
+
type: knowledge-distillation
|
235 |
+
name: Knowledge Distillation
|
236 |
+
dataset:
|
237 |
+
name: MSE val en to sv
|
238 |
+
type: MSE-val-en-to-sv
|
239 |
+
metrics:
|
240 |
+
- type: negative_mse
|
241 |
+
value: -15.555775165557861
|
242 |
+
name: Negative Mse
|
243 |
+
- task:
|
244 |
+
type: knowledge-distillation
|
245 |
+
name: Knowledge Distillation
|
246 |
+
dataset:
|
247 |
+
name: MSE val en to th
|
248 |
+
type: MSE-val-en-to-th
|
249 |
+
metrics:
|
250 |
+
- type: negative_mse
|
251 |
+
value: -18.37025284767151
|
252 |
+
name: Negative Mse
|
253 |
+
- task:
|
254 |
+
type: knowledge-distillation
|
255 |
+
name: Knowledge Distillation
|
256 |
+
dataset:
|
257 |
+
name: MSE val en to tr
|
258 |
+
type: MSE-val-en-to-tr
|
259 |
+
metrics:
|
260 |
+
- type: negative_mse
|
261 |
+
value: -16.945864260196686
|
262 |
+
name: Negative Mse
|
263 |
+
- task:
|
264 |
+
type: knowledge-distillation
|
265 |
+
name: Knowledge Distillation
|
266 |
+
dataset:
|
267 |
+
name: MSE val en to vi
|
268 |
+
type: MSE-val-en-to-vi
|
269 |
+
metrics:
|
270 |
+
- type: negative_mse
|
271 |
+
value: -16.482776403427124
|
272 |
+
name: Negative Mse
|
273 |
+
- task:
|
274 |
+
type: knowledge-distillation
|
275 |
+
name: Knowledge Distillation
|
276 |
+
dataset:
|
277 |
+
name: MSE val en to zh cn
|
278 |
+
type: MSE-val-en-to-zh_cn
|
279 |
+
metrics:
|
280 |
+
- type: negative_mse
|
281 |
+
value: -16.996394097805023
|
282 |
+
name: Negative Mse
|
283 |
+
- task:
|
284 |
+
type: knowledge-distillation
|
285 |
+
name: Knowledge Distillation
|
286 |
+
dataset:
|
287 |
+
name: MSE val en to zh hk
|
288 |
+
type: MSE-val-en-to-zh_hk
|
289 |
+
metrics:
|
290 |
+
- type: negative_mse
|
291 |
+
value: -16.82070791721344
|
292 |
+
name: Negative Mse
|
293 |
+
- task:
|
294 |
+
type: knowledge-distillation
|
295 |
+
name: Knowledge Distillation
|
296 |
+
dataset:
|
297 |
+
name: MSE val en to zh tw
|
298 |
+
type: MSE-val-en-to-zh_tw
|
299 |
+
metrics:
|
300 |
+
- type: negative_mse
|
301 |
+
value: -17.381685972213745
|
302 |
+
name: Negative Mse
|
303 |
+
---
|
304 |
+
|
305 |
+
# SentenceTransformer based on google-bert/bert-base-multilingual-cased
|
306 |
+
|
307 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased). 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.
|
308 |
+
|
309 |
+
## Model Details
|
310 |
+
|
311 |
+
### Model Description
|
312 |
+
- **Model Type:** Sentence Transformer
|
313 |
+
- **Base model:** [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) <!-- at revision 3f076fdb1ab68d5b2880cb87a0886f315b8146f8 -->
|
314 |
+
- **Maximum Sequence Length:** 128 tokens
|
315 |
+
- **Output Dimensionality:** 768 dimensions
|
316 |
+
- **Similarity Function:** Cosine Similarity
|
317 |
+
<!-- - **Training Dataset:** Unknown -->
|
318 |
+
<!-- - **Language:** Unknown -->
|
319 |
+
<!-- - **License:** Unknown -->
|
320 |
+
|
321 |
+
### Model Sources
|
322 |
+
|
323 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
324 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
325 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
326 |
+
|
327 |
+
### Full Model Architecture
|
328 |
+
|
329 |
+
```
|
330 |
+
SentenceTransformer(
|
331 |
+
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
|
332 |
+
(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})
|
333 |
+
)
|
334 |
+
```
|
335 |
+
|
336 |
+
## Usage
|
337 |
+
|
338 |
+
### Direct Usage (Sentence Transformers)
|
339 |
+
|
340 |
+
First install the Sentence Transformers library:
|
341 |
+
|
342 |
+
```bash
|
343 |
+
pip install -U sentence-transformers
|
344 |
+
```
|
345 |
+
|
346 |
+
Then you can load this model and run inference.
|
347 |
+
```python
|
348 |
+
from sentence_transformers import SentenceTransformer
|
349 |
+
|
350 |
+
# Download from the 🤗 Hub
|
351 |
+
model = SentenceTransformer("luanafelbarros/bert-base-multilingual-cased-matryoshka-mkqa")
|
352 |
+
# Run inference
|
353 |
+
sentences = [
|
354 |
+
'who wrote the song i shot the sheriff',
|
355 |
+
'i shot the sheriff şarkısını kim besteledi',
|
356 |
+
'tr',
|
357 |
+
]
|
358 |
+
embeddings = model.encode(sentences)
|
359 |
+
print(embeddings.shape)
|
360 |
+
# [3, 768]
|
361 |
+
|
362 |
+
# Get the similarity scores for the embeddings
|
363 |
+
similarities = model.similarity(embeddings, embeddings)
|
364 |
+
print(similarities.shape)
|
365 |
+
# [3, 3]
|
366 |
+
```
|
367 |
+
|
368 |
+
<!--
|
369 |
+
### Direct Usage (Transformers)
|
370 |
+
|
371 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
372 |
+
|
373 |
+
</details>
|
374 |
+
-->
|
375 |
+
|
376 |
+
<!--
|
377 |
+
### Downstream Usage (Sentence Transformers)
|
378 |
+
|
379 |
+
You can finetune this model on your own dataset.
|
380 |
+
|
381 |
+
<details><summary>Click to expand</summary>
|
382 |
+
|
383 |
+
</details>
|
384 |
+
-->
|
385 |
+
|
386 |
+
<!--
|
387 |
+
### Out-of-Scope Use
|
388 |
+
|
389 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
390 |
+
-->
|
391 |
+
|
392 |
+
## Evaluation
|
393 |
+
|
394 |
+
### Metrics
|
395 |
+
|
396 |
+
#### Knowledge Distillation
|
397 |
+
|
398 |
+
* Datasets: `MSE-val-en-to-ar`, `MSE-val-en-to-da`, `MSE-val-en-to-de`, `MSE-val-en-to-en`, `MSE-val-en-to-es`, `MSE-val-en-to-fi`, `MSE-val-en-to-fr`, `MSE-val-en-to-he`, `MSE-val-en-to-hu`, `MSE-val-en-to-it`, `MSE-val-en-to-ja`, `MSE-val-en-to-ko`, `MSE-val-en-to-km`, `MSE-val-en-to-ms`, `MSE-val-en-to-nl`, `MSE-val-en-to-no`, `MSE-val-en-to-pl`, `MSE-val-en-to-pt`, `MSE-val-en-to-ru`, `MSE-val-en-to-sv`, `MSE-val-en-to-th`, `MSE-val-en-to-tr`, `MSE-val-en-to-vi`, `MSE-val-en-to-zh_cn`, `MSE-val-en-to-zh_hk` and `MSE-val-en-to-zh_tw`
|
399 |
+
* Evaluated with [<code>MSEEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.MSEEvaluator)
|
400 |
+
|
401 |
+
| Metric | MSE-val-en-to-ar | MSE-val-en-to-da | MSE-val-en-to-de | MSE-val-en-to-en | MSE-val-en-to-es | MSE-val-en-to-fi | MSE-val-en-to-fr | MSE-val-en-to-he | MSE-val-en-to-hu | MSE-val-en-to-it | MSE-val-en-to-ja | MSE-val-en-to-ko | MSE-val-en-to-km | MSE-val-en-to-ms | MSE-val-en-to-nl | MSE-val-en-to-no | MSE-val-en-to-pl | MSE-val-en-to-pt | MSE-val-en-to-ru | MSE-val-en-to-sv | MSE-val-en-to-th | MSE-val-en-to-tr | MSE-val-en-to-vi | MSE-val-en-to-zh_cn | MSE-val-en-to-zh_hk | MSE-val-en-to-zh_tw |
|
402 |
+
|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:-----------------|:--------------------|:--------------------|:--------------------|
|
403 |
+
| **negative_mse** | **-18.9326** | **-15.6858** | **-16.1256** | **-13.3884** | **-15.6481** | **-17.1741** | **-15.8143** | **-18.4839** | **-17.5854** | **-15.7066** | **-17.8007** | **-19.2666** | **-28.3875** | **-15.7831** | **-15.0272** | **-15.5984** | **-16.6414** | **-15.7691** | **-16.9116** | **-15.5558** | **-18.3703** | **-16.9459** | **-16.4828** | **-16.9964** | **-16.8207** | **-17.3817** |
|
404 |
+
|
405 |
+
<!--
|
406 |
+
## Bias, Risks and Limitations
|
407 |
+
|
408 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
409 |
+
-->
|
410 |
+
|
411 |
+
<!--
|
412 |
+
### Recommendations
|
413 |
+
|
414 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
415 |
+
-->
|
416 |
+
|
417 |
+
## Training Details
|
418 |
+
|
419 |
+
### Training Dataset
|
420 |
+
|
421 |
+
#### Unnamed Dataset
|
422 |
+
|
423 |
+
|
424 |
+
* Size: 234,000 training samples
|
425 |
+
* Columns: <code>english</code>, <code>non-english</code>, <code>target</code>, and <code>label</code>
|
426 |
+
* Approximate statistics based on the first 1000 samples:
|
427 |
+
| | english | non-english | target | label |
|
428 |
+
|:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:-------------------------------------|
|
429 |
+
| type | string | string | string | list |
|
430 |
+
| details | <ul><li>min: 10 tokens</li><li>mean: 12.34 tokens</li><li>max: 18 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 14.41 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.38 tokens</li><li>max: 7 tokens</li></ul> | <ul><li>size: 768 elements</li></ul> |
|
431 |
+
* Samples:
|
432 |
+
| english | non-english | target | label |
|
433 |
+
|:-------------------------------------------------|:--------------------------------------------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------|
|
434 |
+
| <code>who plays hope on days of our lives</code> | <code>من الذي يلعب الأمل في أيام حياتنا</code> | <code>ar</code> | <code>[0.2171212136745453, 0.5138550996780396, 0.5517176389694214, -1.0655105113983154, 1.5853567123413086, ...]</code> |
|
435 |
+
| <code>who plays hope on days of our lives</code> | <code>hvem spiller hope i Horton-sagaen</code> | <code>da</code> | <code>[0.2171212136745453, 0.5138550996780396, 0.5517176389694214, -1.0655105113983154, 1.5853567123413086, ...]</code> |
|
436 |
+
| <code>who plays hope on days of our lives</code> | <code>Wer spielt die Hope in Zeit der Sehnsucht?</code> | <code>de</code> | <code>[0.2171212136745453, 0.5138550996780396, 0.5517176389694214, -1.0655105113983154, 1.5853567123413086, ...]</code> |
|
437 |
+
* Loss: [<code>MSELoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#mseloss)
|
438 |
+
|
439 |
+
### Evaluation Dataset
|
440 |
+
|
441 |
+
#### Unnamed Dataset
|
442 |
+
|
443 |
+
|
444 |
+
* Size: 13,000 evaluation samples
|
445 |
+
* Columns: <code>english</code>, <code>non-english</code>, <code>target</code>, and <code>label</code>
|
446 |
+
* Approximate statistics based on the first 1000 samples:
|
447 |
+
| | english | non-english | target | label |
|
448 |
+
|:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:-------------------------------------|
|
449 |
+
| type | string | string | string | list |
|
450 |
+
| details | <ul><li>min: 10 tokens</li><li>mean: 12.44 tokens</li><li>max: 16 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 14.48 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.38 tokens</li><li>max: 7 tokens</li></ul> | <ul><li>size: 768 elements</li></ul> |
|
451 |
+
* Samples:
|
452 |
+
| english | non-english | target | label |
|
453 |
+
|:------------------------------------------------------------|:----------------------------------------------------------------|:----------------|:-----------------------------------------------------------------------------------------------------------------------------|
|
454 |
+
| <code>who played prudence on nanny and the professor</code> | <code>من لعب دور "prudence" فى "nanny and the professor"</code> | <code>ar</code> | <code>[-0.2837616801261902, -0.4943353235721588, 0.020107418298721313, 0.7796109318733215, -0.47365888953208923, ...]</code> |
|
455 |
+
| <code>who played prudence on nanny and the professor</code> | <code>hvem spiller prudence på nanny and the professor</code> | <code>da</code> | <code>[-0.2837616801261902, -0.4943353235721588, 0.020107418298721313, 0.7796109318733215, -0.47365888953208923, ...]</code> |
|
456 |
+
| <code>who played prudence on nanny and the professor</code> | <code>Wer spielte Prudence in Nanny and the Professor</code> | <code>de</code> | <code>[-0.2837616801261902, -0.4943353235721588, 0.020107418298721313, 0.7796109318733215, -0.47365888953208923, ...]</code> |
|
457 |
+
* Loss: [<code>MSELoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#mseloss)
|
458 |
+
|
459 |
+
### Training Hyperparameters
|
460 |
+
#### Non-Default Hyperparameters
|
461 |
+
|
462 |
+
- `eval_strategy`: steps
|
463 |
+
- `per_device_train_batch_size`: 64
|
464 |
+
- `per_device_eval_batch_size`: 64
|
465 |
+
- `learning_rate`: 1e-05
|
466 |
+
- `num_train_epochs`: 4
|
467 |
+
- `warmup_ratio`: 0.1
|
468 |
+
- `fp16`: True
|
469 |
+
|
470 |
+
#### All Hyperparameters
|
471 |
+
<details><summary>Click to expand</summary>
|
472 |
+
|
473 |
+
- `overwrite_output_dir`: False
|
474 |
+
- `do_predict`: False
|
475 |
+
- `eval_strategy`: steps
|
476 |
+
- `prediction_loss_only`: True
|
477 |
+
- `per_device_train_batch_size`: 64
|
478 |
+
- `per_device_eval_batch_size`: 64
|
479 |
+
- `per_gpu_train_batch_size`: None
|
480 |
+
- `per_gpu_eval_batch_size`: None
|
481 |
+
- `gradient_accumulation_steps`: 1
|
482 |
+
- `eval_accumulation_steps`: None
|
483 |
+
- `torch_empty_cache_steps`: None
|
484 |
+
- `learning_rate`: 1e-05
|
485 |
+
- `weight_decay`: 0.0
|
486 |
+
- `adam_beta1`: 0.9
|
487 |
+
- `adam_beta2`: 0.999
|
488 |
+
- `adam_epsilon`: 1e-08
|
489 |
+
- `max_grad_norm`: 1.0
|
490 |
+
- `num_train_epochs`: 4
|
491 |
+
- `max_steps`: -1
|
492 |
+
- `lr_scheduler_type`: linear
|
493 |
+
- `lr_scheduler_kwargs`: {}
|
494 |
+
- `warmup_ratio`: 0.1
|
495 |
+
- `warmup_steps`: 0
|
496 |
+
- `log_level`: passive
|
497 |
+
- `log_level_replica`: warning
|
498 |
+
- `log_on_each_node`: True
|
499 |
+
- `logging_nan_inf_filter`: True
|
500 |
+
- `save_safetensors`: True
|
501 |
+
- `save_on_each_node`: False
|
502 |
+
- `save_only_model`: False
|
503 |
+
- `restore_callback_states_from_checkpoint`: False
|
504 |
+
- `no_cuda`: False
|
505 |
+
- `use_cpu`: False
|
506 |
+
- `use_mps_device`: False
|
507 |
+
- `seed`: 42
|
508 |
+
- `data_seed`: None
|
509 |
+
- `jit_mode_eval`: False
|
510 |
+
- `use_ipex`: False
|
511 |
+
- `bf16`: False
|
512 |
+
- `fp16`: True
|
513 |
+
- `fp16_opt_level`: O1
|
514 |
+
- `half_precision_backend`: auto
|
515 |
+
- `bf16_full_eval`: False
|
516 |
+
- `fp16_full_eval`: False
|
517 |
+
- `tf32`: None
|
518 |
+
- `local_rank`: 0
|
519 |
+
- `ddp_backend`: None
|
520 |
+
- `tpu_num_cores`: None
|
521 |
+
- `tpu_metrics_debug`: False
|
522 |
+
- `debug`: []
|
523 |
+
- `dataloader_drop_last`: False
|
524 |
+
- `dataloader_num_workers`: 0
|
525 |
+
- `dataloader_prefetch_factor`: None
|
526 |
+
- `past_index`: -1
|
527 |
+
- `disable_tqdm`: False
|
528 |
+
- `remove_unused_columns`: True
|
529 |
+
- `label_names`: None
|
530 |
+
- `load_best_model_at_end`: False
|
531 |
+
- `ignore_data_skip`: False
|
532 |
+
- `fsdp`: []
|
533 |
+
- `fsdp_min_num_params`: 0
|
534 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
535 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
536 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
537 |
+
- `deepspeed`: None
|
538 |
+
- `label_smoothing_factor`: 0.0
|
539 |
+
- `optim`: adamw_torch
|
540 |
+
- `optim_args`: None
|
541 |
+
- `adafactor`: False
|
542 |
+
- `group_by_length`: False
|
543 |
+
- `length_column_name`: length
|
544 |
+
- `ddp_find_unused_parameters`: None
|
545 |
+
- `ddp_bucket_cap_mb`: None
|
546 |
+
- `ddp_broadcast_buffers`: False
|
547 |
+
- `dataloader_pin_memory`: True
|
548 |
+
- `dataloader_persistent_workers`: False
|
549 |
+
- `skip_memory_metrics`: True
|
550 |
+
- `use_legacy_prediction_loop`: False
|
551 |
+
- `push_to_hub`: False
|
552 |
+
- `resume_from_checkpoint`: None
|
553 |
+
- `hub_model_id`: None
|
554 |
+
- `hub_strategy`: every_save
|
555 |
+
- `hub_private_repo`: False
|
556 |
+
- `hub_always_push`: False
|
557 |
+
- `gradient_checkpointing`: False
|
558 |
+
- `gradient_checkpointing_kwargs`: None
|
559 |
+
- `include_inputs_for_metrics`: False
|
560 |
+
- `include_for_metrics`: []
|
561 |
+
- `eval_do_concat_batches`: True
|
562 |
+
- `fp16_backend`: auto
|
563 |
+
- `push_to_hub_model_id`: None
|
564 |
+
- `push_to_hub_organization`: None
|
565 |
+
- `mp_parameters`:
|
566 |
+
- `auto_find_batch_size`: False
|
567 |
+
- `full_determinism`: False
|
568 |
+
- `torchdynamo`: None
|
569 |
+
- `ray_scope`: last
|
570 |
+
- `ddp_timeout`: 1800
|
571 |
+
- `torch_compile`: False
|
572 |
+
- `torch_compile_backend`: None
|
573 |
+
- `torch_compile_mode`: None
|
574 |
+
- `dispatch_batches`: None
|
575 |
+
- `split_batches`: None
|
576 |
+
- `include_tokens_per_second`: False
|
577 |
+
- `include_num_input_tokens_seen`: False
|
578 |
+
- `neftune_noise_alpha`: None
|
579 |
+
- `optim_target_modules`: None
|
580 |
+
- `batch_eval_metrics`: False
|
581 |
+
- `eval_on_start`: False
|
582 |
+
- `use_liger_kernel`: False
|
583 |
+
- `eval_use_gather_object`: False
|
584 |
+
- `average_tokens_across_devices`: False
|
585 |
+
- `prompts`: None
|
586 |
+
- `batch_sampler`: batch_sampler
|
587 |
+
- `multi_dataset_batch_sampler`: proportional
|
588 |
+
|
589 |
+
</details>
|
590 |
+
|
591 |
+
### Training Logs
|
592 |
+
| Epoch | Step | Training Loss | Validation Loss | MSE-val-en-to-ar_negative_mse | MSE-val-en-to-da_negative_mse | MSE-val-en-to-de_negative_mse | MSE-val-en-to-en_negative_mse | MSE-val-en-to-es_negative_mse | MSE-val-en-to-fi_negative_mse | MSE-val-en-to-fr_negative_mse | MSE-val-en-to-he_negative_mse | MSE-val-en-to-hu_negative_mse | MSE-val-en-to-it_negative_mse | MSE-val-en-to-ja_negative_mse | MSE-val-en-to-ko_negative_mse | MSE-val-en-to-km_negative_mse | MSE-val-en-to-ms_negative_mse | MSE-val-en-to-nl_negative_mse | MSE-val-en-to-no_negative_mse | MSE-val-en-to-pl_negative_mse | MSE-val-en-to-pt_negative_mse | MSE-val-en-to-ru_negative_mse | MSE-val-en-to-sv_negative_mse | MSE-val-en-to-th_negative_mse | MSE-val-en-to-tr_negative_mse | MSE-val-en-to-vi_negative_mse | MSE-val-en-to-zh_cn_negative_mse | MSE-val-en-to-zh_hk_negative_mse | MSE-val-en-to-zh_tw_negative_mse |
|
593 |
+
|:------:|:-----:|:-------------:|:---------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:--------------------------------:|:--------------------------------:|:--------------------------------:|
|
594 |
+
| 0.1367 | 500 | 0.3783 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
595 |
+
| 0.2734 | 1000 | 0.3256 | 0.3071 | -30.0050 | -29.7152 | -29.7584 | -29.5204 | -29.6875 | -29.9032 | -29.6918 | -29.9795 | -29.9430 | -29.7142 | -29.8220 | -30.0745 | -32.1218 | -29.8042 | -29.7132 | -29.7625 | -29.7677 | -29.6658 | -29.8250 | -29.8242 | -30.1233 | -29.8640 | -29.7497 | -29.6833 | -29.7296 | -29.7063 |
|
596 |
+
| 0.4102 | 1500 | 0.3007 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
597 |
+
| 0.5469 | 2000 | 0.2795 | 0.2663 | -25.0193 | -23.8364 | -23.9924 | -22.8145 | -23.7158 | -24.4490 | -23.7719 | -24.6885 | -24.5973 | -23.7662 | -24.4998 | -25.3625 | -30.9153 | -24.0474 | -23.5674 | -23.7934 | -24.1332 | -23.6279 | -24.1308 | -23.8860 | -25.4166 | -24.4840 | -24.1931 | -24.0816 | -24.0634 | -24.2529 |
|
598 |
+
| 0.6836 | 2500 | 0.2659 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
599 |
+
| 0.8203 | 3000 | 0.2562 | 0.2487 | -22.9862 | -21.2544 | -21.4573 | -19.8714 | -21.1251 | -22.1884 | -21.1984 | -22.6963 | -22.3069 | -21.1959 | -22.3180 | -23.4410 | -30.2373 | -21.4324 | -20.8799 | -21.1834 | -21.7427 | -21.1291 | -21.7291 | -21.3003 | -23.2994 | -22.1537 | -21.7480 | -21.7521 | -21.6844 | -21.9702 |
|
600 |
+
| 0.9571 | 3500 | 0.2475 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
601 |
+
| 1.0938 | 4000 | 0.2411 | 0.2375 | -21.8220 | -19.6064 | -19.9128 | -17.9872 | -19.5372 | -20.7666 | -19.6563 | -21.4985 | -20.9295 | -19.6182 | -20.9963 | -22.2441 | -29.7291 | -19.8001 | -19.2003 | -19.5189 | -20.2697 | -19.5946 | -20.3160 | -19.6652 | -21.9553 | -20.6678 | -20.2305 | -20.3719 | -20.2700 | -20.6528 |
|
602 |
+
| 1.2305 | 4500 | 0.2351 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
603 |
+
| 1.3672 | 5000 | 0.23 | 0.2296 | -21.0058 | -18.4861 | -18.7926 | -16.6395 | -18.4034 | -19.7517 | -18.5299 | -20.6663 | -19.9769 | -18.4977 | -20.0496 | -21.4171 | -29.3272 | -18.6213 | -17.9746 | -18.3449 | -19.2392 | -18.4960 | -19.3377 | -18.5079 | -20.9805 | -19.5803 | -19.1385 | -19.4256 | -19.2708 | -19.7140 |
|
604 |
+
| 1.5040 | 5500 | 0.2257 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
605 |
+
| 1.6407 | 6000 | 0.2222 | 0.2245 | -20.4317 | -17.7592 | -18.1037 | -15.7487 | -17.6947 | -19.0287 | -17.8518 | -20.1401 | -19.3864 | -17.7539 | -19.4615 | -20.8562 | -29.1081 | -17.8707 | -17.1892 | -17.6230 | -18.5879 | -17.7857 | -18.7075 | -17.7347 | -20.2941 | -18.8814 | -18.4449 | -18.8036 | -18.6146 | -19.1169 |
|
606 |
+
| 1.7774 | 6500 | 0.2186 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
607 |
+
| 1.9141 | 7000 | 0.2158 | 0.2199 | -19.9961 | -17.0956 | -17.4488 | -14.9930 | -17.0238 | -18.4442 | -17.1720 | -19.6005 | -18.7765 | -17.1020 | -18.8972 | -20.3720 | -28.8656 | -17.1949 | -16.4824 | -16.9655 | -17.9687 | -17.1229 | -18.0911 | -17.0128 | -19.6600 | -18.2823 | -17.8109 | -18.2341 | -18.0582 | -18.5735 |
|
608 |
+
| 2.0509 | 7500 | 0.2135 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
609 |
+
| 2.1876 | 8000 | 0.2109 | 0.2167 | -19.6376 | -16.6362 | -17.0307 | -14.4461 | -16.5766 | -18.0419 | -16.7080 | -19.2403 | -18.3971 | -16.6443 | -18.5251 | -20.0263 | -28.7414 | -16.7279 | -15.9992 | -16.5092 | -17.5170 | -16.6766 | -17.7151 | -16.5403 | -19.2861 | -17.8316 | -17.3764 | -17.8453 | -17.6606 | -18.1844 |
|
610 |
+
| 2.3243 | 8500 | 0.2088 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
611 |
+
| 2.4610 | 9000 | 0.2074 | 0.2149 | -19.4358 | -16.3728 | -16.7740 | -14.1447 | -16.3289 | -17.8191 | -16.4582 | -19.0369 | -18.1738 | -16.3903 | -18.3565 | -19.8207 | -28.6133 | -16.4804 | -15.7354 | -16.2673 | -17.3034 | -16.4190 | -17.4826 | -16.2566 | -18.9971 | -17.5950 | -17.1273 | -17.6066 | -17.4124 | -17.9799 |
|
612 |
+
| 2.5978 | 9500 | 0.2059 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
613 |
+
| 2.7345 | 10000 | 0.2047 | 0.2134 | -19.2764 | -16.1718 | -16.5449 | -13.8928 | -16.1098 | -17.5866 | -16.2421 | -18.8665 | -17.9798 | -16.1538 | -18.1695 | -19.6218 | -28.5605 | -16.2479 | -15.4962 | -16.0522 | -17.0797 | -16.2106 | -17.3130 | -16.0278 | -18.8206 | -17.3910 | -16.9231 | -17.4203 | -17.2266 | -17.7903 |
|
614 |
+
| 2.8712 | 10500 | 0.2033 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
615 |
+
| 3.0079 | 11000 | 0.2024 | 0.2120 | -19.1026 | -15.9149 | -16.3497 | -13.6750 | -15.8828 | -17.3842 | -16.0397 | -18.6612 | -17.7796 | -15.9436 | -17.9779 | -19.4370 | -28.4678 | -16.0245 | -15.2818 | -15.8265 | -16.8594 | -15.9988 | -17.1163 | -15.8106 | -18.5870 | -17.1548 | -16.7074 | -17.2082 | -17.0233 | -17.5910 |
|
616 |
+
| 3.1447 | 11500 | 0.201 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
617 |
+
| 3.2814 | 12000 | 0.2004 | 0.2112 | -19.0406 | -15.8196 | -16.2516 | -13.5420 | -15.7688 | -17.2734 | -15.9280 | -18.5894 | -17.6966 | -15.8265 | -17.8933 | -19.3785 | -28.4539 | -15.9129 | -15.1631 | -15.7175 | -16.7540 | -15.8974 | -17.0251 | -15.6875 | -18.4807 | -17.0615 | -16.6087 | -17.1051 | -16.9423 | -17.4923 |
|
618 |
+
| 3.4181 | 12500 | 0.1997 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
619 |
+
| 3.5548 | 13000 | 0.1995 | 0.2108 | -18.9779 | -15.7524 | -16.1996 | -13.4723 | -15.7211 | -17.2272 | -15.8790 | -18.5412 | -17.6416 | -15.7862 | -17.8502 | -19.3124 | -28.4179 | -15.8513 | -15.1030 | -15.6645 | -16.7053 | -15.8355 | -16.9742 | -15.6246 | -18.4384 | -17.0053 | -16.5478 | -17.0674 | -16.8851 | -17.4527 |
|
620 |
+
| 3.6916 | 13500 | 0.1991 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
621 |
+
| 3.8283 | 14000 | 0.1987 | 0.2103 | -18.9326 | -15.6858 | -16.1256 | -13.3884 | -15.6481 | -17.1741 | -15.8143 | -18.4839 | -17.5854 | -15.7066 | -17.8007 | -19.2666 | -28.3875 | -15.7831 | -15.0272 | -15.5984 | -16.6414 | -15.7691 | -16.9116 | -15.5558 | -18.3703 | -16.9459 | -16.4828 | -16.9964 | -16.8207 | -17.3817 |
|
622 |
+
| 3.9650 | 14500 | 0.1989 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
623 |
+
|
624 |
+
|
625 |
+
### Framework Versions
|
626 |
+
- Python: 3.10.12
|
627 |
+
- Sentence Transformers: 3.3.1
|
628 |
+
- Transformers: 4.46.3
|
629 |
+
- PyTorch: 2.5.1+cu121
|
630 |
+
- Accelerate: 1.1.1
|
631 |
+
- Datasets: 3.1.0
|
632 |
+
- Tokenizers: 0.20.3
|
633 |
+
|
634 |
+
## Citation
|
635 |
+
|
636 |
+
### BibTeX
|
637 |
+
|
638 |
+
#### Sentence Transformers
|
639 |
+
```bibtex
|
640 |
+
@inproceedings{reimers-2019-sentence-bert,
|
641 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
642 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
643 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
644 |
+
month = "11",
|
645 |
+
year = "2019",
|
646 |
+
publisher = "Association for Computational Linguistics",
|
647 |
+
url = "https://arxiv.org/abs/1908.10084",
|
648 |
+
}
|
649 |
+
```
|
650 |
+
|
651 |
+
#### MSELoss
|
652 |
+
```bibtex
|
653 |
+
@inproceedings{reimers-2020-multilingual-sentence-bert,
|
654 |
+
title = "Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation",
|
655 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
656 |
+
booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing",
|
657 |
+
month = "11",
|
658 |
+
year = "2020",
|
659 |
+
publisher = "Association for Computational Linguistics",
|
660 |
+
url = "https://arxiv.org/abs/2004.09813",
|
661 |
+
}
|
662 |
+
```
|
663 |
+
|
664 |
+
<!--
|
665 |
+
## Glossary
|
666 |
+
|
667 |
+
*Clearly define terms in order to be accessible across audiences.*
|
668 |
+
-->
|
669 |
+
|
670 |
+
<!--
|
671 |
+
## Model Card Authors
|
672 |
+
|
673 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
674 |
+
-->
|
675 |
+
|
676 |
+
<!--
|
677 |
+
## Model Card Contact
|
678 |
+
|
679 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
680 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/bert-base-multilingual-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 3072,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"max_position_embeddings": 512,
|
16 |
+
"model_type": "bert",
|
17 |
+
"num_attention_heads": 12,
|
18 |
+
"num_hidden_layers": 12,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"pooler_fc_size": 768,
|
21 |
+
"pooler_num_attention_heads": 12,
|
22 |
+
"pooler_num_fc_layers": 3,
|
23 |
+
"pooler_size_per_head": 128,
|
24 |
+
"pooler_type": "first_token_transform",
|
25 |
+
"position_embedding_type": "absolute",
|
26 |
+
"torch_dtype": "float32",
|
27 |
+
"transformers_version": "4.46.3",
|
28 |
+
"type_vocab_size": 2,
|
29 |
+
"use_cache": true,
|
30 |
+
"vocab_size": 119547
|
31 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.3.1",
|
4 |
+
"transformers": "4.46.3",
|
5 |
+
"pytorch": "2.5.1+cu121"
|
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:be0cb3f9cbb2f431475c9103176ad929e674f091dd57253d07184c5d77801973
|
3 |
+
size 711436136
|
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": 128,
|
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.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
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": false,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": false,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "BertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|