adriansanz commited on
Commit
3597a4c
1 Parent(s): b63ad37

Add new SentenceTransformer model.

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1024,
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,893 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: BAAI/bge-m3
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ metrics:
7
+ - cosine_accuracy@1
8
+ - cosine_accuracy@3
9
+ - cosine_accuracy@5
10
+ - cosine_accuracy@10
11
+ - cosine_precision@1
12
+ - cosine_precision@3
13
+ - cosine_precision@5
14
+ - cosine_precision@10
15
+ - cosine_recall@1
16
+ - cosine_recall@3
17
+ - cosine_recall@5
18
+ - cosine_recall@10
19
+ - cosine_ndcg@10
20
+ - cosine_mrr@10
21
+ - cosine_map@100
22
+ pipeline_tag: sentence-similarity
23
+ tags:
24
+ - sentence-transformers
25
+ - sentence-similarity
26
+ - feature-extraction
27
+ - generated_from_trainer
28
+ - dataset_size:4173
29
+ - loss:MatryoshkaLoss
30
+ - loss:MultipleNegativesRankingLoss
31
+ widget:
32
+ - source_sentence: L'Espai d'escalada és una instal·lació municipal en forma de túnel
33
+ a una sala interior, amb una llargada de 10m, una amplada de 4,6m i una alçada
34
+ de 4m.
35
+ sentences:
36
+ - Quin és el registre on es comprova la inscripció dels estrangers amb ciutadania
37
+ de l'Espai Econòmic Europeu?
38
+ - On es pot trobar les bases generals de les convocatòries de selecció de personal
39
+ de l'Ajuntament?
40
+ - Quina és la llargada de l'Espai d'Escalada?
41
+ - source_sentence: Les activitats s’organitzen per setmanes.
42
+ sentences:
43
+ - Quin és el format en què es desenvolupen les activitats de l'Estiu Jove?
44
+ - Quin és el paper del subjecte passiu en la gestió de pagaments?
45
+ - Quin és el benefici de les subvencions?
46
+ - source_sentence: Les Estades Esportives cerquen que els infants aprenguin a relacionar-se
47
+ i a compartir mitjançant l'esport, experiències i vivències amb d'altres infants
48
+ amb qui no estan en contacte durant la resta de l'any.
49
+ sentences:
50
+ - Quin és el propòsit de l'ajut per a la creació de noves empreses?
51
+ - Quin és el propòsit de la llicència de parcel·lació?
52
+ - Quin és el benefici principal de les Estades Esportives?
53
+ - source_sentence: Declaració tributària mitjançant la qual es sol·licita la baixa
54
+ d'una activitat de la Taxa pel servei municipal complementari de recollida, tractament
55
+ i eliminació de residus comercials.
56
+ sentences:
57
+ - Quin és el format de la Declaració de baixa?
58
+ - Quin és el resultat de justificar una sol·licitud de canvi a les estades esportives?
59
+ - Quin és el període de celebració de la Fira d'Art de Sitges?
60
+ - source_sentence: Les entitats inscrites en el Registre resten obligades a comunicar
61
+ a l’Ajuntament qualsevol modificació en les seves dades registrals, podent sol·licitar
62
+ la seva cancel·lació o comunicant la seva dissolució.
63
+ sentences:
64
+ - Quin és el procediment per cancel·lar la inscripció d'una entitat al Registre
65
+ municipal d'entitats?
66
+ - Quin és el propòsit de la quota del servei de les Llars d'Infants Municipals?
67
+ - Quin és el paper de les entitats de protecció dels animals en la gestió de les
68
+ colònies urbanes felines?
69
+ model-index:
70
+ - name: SentenceTransformer based on BAAI/bge-m3
71
+ results:
72
+ - task:
73
+ type: information-retrieval
74
+ name: Information Retrieval
75
+ dataset:
76
+ name: dim 1024
77
+ type: dim_1024
78
+ metrics:
79
+ - type: cosine_accuracy@1
80
+ value: 0.08620689655172414
81
+ name: Cosine Accuracy@1
82
+ - type: cosine_accuracy@3
83
+ value: 0.21551724137931033
84
+ name: Cosine Accuracy@3
85
+ - type: cosine_accuracy@5
86
+ value: 0.3275862068965517
87
+ name: Cosine Accuracy@5
88
+ - type: cosine_accuracy@10
89
+ value: 0.5107758620689655
90
+ name: Cosine Accuracy@10
91
+ - type: cosine_precision@1
92
+ value: 0.08620689655172414
93
+ name: Cosine Precision@1
94
+ - type: cosine_precision@3
95
+ value: 0.07183908045977011
96
+ name: Cosine Precision@3
97
+ - type: cosine_precision@5
98
+ value: 0.06551724137931034
99
+ name: Cosine Precision@5
100
+ - type: cosine_precision@10
101
+ value: 0.05107758620689654
102
+ name: Cosine Precision@10
103
+ - type: cosine_recall@1
104
+ value: 0.08620689655172414
105
+ name: Cosine Recall@1
106
+ - type: cosine_recall@3
107
+ value: 0.21551724137931033
108
+ name: Cosine Recall@3
109
+ - type: cosine_recall@5
110
+ value: 0.3275862068965517
111
+ name: Cosine Recall@5
112
+ - type: cosine_recall@10
113
+ value: 0.5107758620689655
114
+ name: Cosine Recall@10
115
+ - type: cosine_ndcg@10
116
+ value: 0.26401643418499254
117
+ name: Cosine Ndcg@10
118
+ - type: cosine_mrr@10
119
+ value: 0.1896731321839082
120
+ name: Cosine Mrr@10
121
+ - type: cosine_map@100
122
+ value: 0.2150866107809785
123
+ name: Cosine Map@100
124
+ - task:
125
+ type: information-retrieval
126
+ name: Information Retrieval
127
+ dataset:
128
+ name: dim 768
129
+ type: dim_768
130
+ metrics:
131
+ - type: cosine_accuracy@1
132
+ value: 0.08405172413793104
133
+ name: Cosine Accuracy@1
134
+ - type: cosine_accuracy@3
135
+ value: 0.20905172413793102
136
+ name: Cosine Accuracy@3
137
+ - type: cosine_accuracy@5
138
+ value: 0.31896551724137934
139
+ name: Cosine Accuracy@5
140
+ - type: cosine_accuracy@10
141
+ value: 0.5
142
+ name: Cosine Accuracy@10
143
+ - type: cosine_precision@1
144
+ value: 0.08405172413793104
145
+ name: Cosine Precision@1
146
+ - type: cosine_precision@3
147
+ value: 0.069683908045977
148
+ name: Cosine Precision@3
149
+ - type: cosine_precision@5
150
+ value: 0.06379310344827585
151
+ name: Cosine Precision@5
152
+ - type: cosine_precision@10
153
+ value: 0.04999999999999999
154
+ name: Cosine Precision@10
155
+ - type: cosine_recall@1
156
+ value: 0.08405172413793104
157
+ name: Cosine Recall@1
158
+ - type: cosine_recall@3
159
+ value: 0.20905172413793102
160
+ name: Cosine Recall@3
161
+ - type: cosine_recall@5
162
+ value: 0.31896551724137934
163
+ name: Cosine Recall@5
164
+ - type: cosine_recall@10
165
+ value: 0.5
166
+ name: Cosine Recall@10
167
+ - type: cosine_ndcg@10
168
+ value: 0.2594763687925116
169
+ name: Cosine Ndcg@10
170
+ - type: cosine_mrr@10
171
+ value: 0.18673713738368922
172
+ name: Cosine Mrr@10
173
+ - type: cosine_map@100
174
+ value: 0.21319033477988852
175
+ name: Cosine Map@100
176
+ - task:
177
+ type: information-retrieval
178
+ name: Information Retrieval
179
+ dataset:
180
+ name: dim 512
181
+ type: dim_512
182
+ metrics:
183
+ - type: cosine_accuracy@1
184
+ value: 0.08620689655172414
185
+ name: Cosine Accuracy@1
186
+ - type: cosine_accuracy@3
187
+ value: 0.21120689655172414
188
+ name: Cosine Accuracy@3
189
+ - type: cosine_accuracy@5
190
+ value: 0.32112068965517243
191
+ name: Cosine Accuracy@5
192
+ - type: cosine_accuracy@10
193
+ value: 0.5129310344827587
194
+ name: Cosine Accuracy@10
195
+ - type: cosine_precision@1
196
+ value: 0.08620689655172414
197
+ name: Cosine Precision@1
198
+ - type: cosine_precision@3
199
+ value: 0.07040229885057471
200
+ name: Cosine Precision@3
201
+ - type: cosine_precision@5
202
+ value: 0.06422413793103447
203
+ name: Cosine Precision@5
204
+ - type: cosine_precision@10
205
+ value: 0.051293103448275854
206
+ name: Cosine Precision@10
207
+ - type: cosine_recall@1
208
+ value: 0.08620689655172414
209
+ name: Cosine Recall@1
210
+ - type: cosine_recall@3
211
+ value: 0.21120689655172414
212
+ name: Cosine Recall@3
213
+ - type: cosine_recall@5
214
+ value: 0.32112068965517243
215
+ name: Cosine Recall@5
216
+ - type: cosine_recall@10
217
+ value: 0.5129310344827587
218
+ name: Cosine Recall@10
219
+ - type: cosine_ndcg@10
220
+ value: 0.2646539120704089
221
+ name: Cosine Ndcg@10
222
+ - type: cosine_mrr@10
223
+ value: 0.1899279898741108
224
+ name: Cosine Mrr@10
225
+ - type: cosine_map@100
226
+ value: 0.21554766038692458
227
+ name: Cosine Map@100
228
+ - task:
229
+ type: information-retrieval
230
+ name: Information Retrieval
231
+ dataset:
232
+ name: dim 256
233
+ type: dim_256
234
+ metrics:
235
+ - type: cosine_accuracy@1
236
+ value: 0.08189655172413793
237
+ name: Cosine Accuracy@1
238
+ - type: cosine_accuracy@3
239
+ value: 0.20474137931034483
240
+ name: Cosine Accuracy@3
241
+ - type: cosine_accuracy@5
242
+ value: 0.30603448275862066
243
+ name: Cosine Accuracy@5
244
+ - type: cosine_accuracy@10
245
+ value: 0.5043103448275862
246
+ name: Cosine Accuracy@10
247
+ - type: cosine_precision@1
248
+ value: 0.08189655172413793
249
+ name: Cosine Precision@1
250
+ - type: cosine_precision@3
251
+ value: 0.0682471264367816
252
+ name: Cosine Precision@3
253
+ - type: cosine_precision@5
254
+ value: 0.061206896551724135
255
+ name: Cosine Precision@5
256
+ - type: cosine_precision@10
257
+ value: 0.05043103448275862
258
+ name: Cosine Precision@10
259
+ - type: cosine_recall@1
260
+ value: 0.08189655172413793
261
+ name: Cosine Recall@1
262
+ - type: cosine_recall@3
263
+ value: 0.20474137931034483
264
+ name: Cosine Recall@3
265
+ - type: cosine_recall@5
266
+ value: 0.30603448275862066
267
+ name: Cosine Recall@5
268
+ - type: cosine_recall@10
269
+ value: 0.5043103448275862
270
+ name: Cosine Recall@10
271
+ - type: cosine_ndcg@10
272
+ value: 0.25554093803691474
273
+ name: Cosine Ndcg@10
274
+ - type: cosine_mrr@10
275
+ value: 0.1807856116584566
276
+ name: Cosine Mrr@10
277
+ - type: cosine_map@100
278
+ value: 0.20657861277416045
279
+ name: Cosine Map@100
280
+ - task:
281
+ type: information-retrieval
282
+ name: Information Retrieval
283
+ dataset:
284
+ name: dim 128
285
+ type: dim_128
286
+ metrics:
287
+ - type: cosine_accuracy@1
288
+ value: 0.08405172413793104
289
+ name: Cosine Accuracy@1
290
+ - type: cosine_accuracy@3
291
+ value: 0.20043103448275862
292
+ name: Cosine Accuracy@3
293
+ - type: cosine_accuracy@5
294
+ value: 0.3146551724137931
295
+ name: Cosine Accuracy@5
296
+ - type: cosine_accuracy@10
297
+ value: 0.49137931034482757
298
+ name: Cosine Accuracy@10
299
+ - type: cosine_precision@1
300
+ value: 0.08405172413793104
301
+ name: Cosine Precision@1
302
+ - type: cosine_precision@3
303
+ value: 0.0668103448275862
304
+ name: Cosine Precision@3
305
+ - type: cosine_precision@5
306
+ value: 0.06293103448275862
307
+ name: Cosine Precision@5
308
+ - type: cosine_precision@10
309
+ value: 0.04913793103448275
310
+ name: Cosine Precision@10
311
+ - type: cosine_recall@1
312
+ value: 0.08405172413793104
313
+ name: Cosine Recall@1
314
+ - type: cosine_recall@3
315
+ value: 0.20043103448275862
316
+ name: Cosine Recall@3
317
+ - type: cosine_recall@5
318
+ value: 0.3146551724137931
319
+ name: Cosine Recall@5
320
+ - type: cosine_recall@10
321
+ value: 0.49137931034482757
322
+ name: Cosine Recall@10
323
+ - type: cosine_ndcg@10
324
+ value: 0.2516576518560222
325
+ name: Cosine Ndcg@10
326
+ - type: cosine_mrr@10
327
+ value: 0.1794651409414343
328
+ name: Cosine Mrr@10
329
+ - type: cosine_map@100
330
+ value: 0.20584710715396837
331
+ name: Cosine Map@100
332
+ - task:
333
+ type: information-retrieval
334
+ name: Information Retrieval
335
+ dataset:
336
+ name: dim 64
337
+ type: dim_64
338
+ metrics:
339
+ - type: cosine_accuracy@1
340
+ value: 0.07974137931034483
341
+ name: Cosine Accuracy@1
342
+ - type: cosine_accuracy@3
343
+ value: 0.2025862068965517
344
+ name: Cosine Accuracy@3
345
+ - type: cosine_accuracy@5
346
+ value: 0.3017241379310345
347
+ name: Cosine Accuracy@5
348
+ - type: cosine_accuracy@10
349
+ value: 0.4956896551724138
350
+ name: Cosine Accuracy@10
351
+ - type: cosine_precision@1
352
+ value: 0.07974137931034483
353
+ name: Cosine Precision@1
354
+ - type: cosine_precision@3
355
+ value: 0.06752873563218391
356
+ name: Cosine Precision@3
357
+ - type: cosine_precision@5
358
+ value: 0.0603448275862069
359
+ name: Cosine Precision@5
360
+ - type: cosine_precision@10
361
+ value: 0.04956896551724138
362
+ name: Cosine Precision@10
363
+ - type: cosine_recall@1
364
+ value: 0.07974137931034483
365
+ name: Cosine Recall@1
366
+ - type: cosine_recall@3
367
+ value: 0.2025862068965517
368
+ name: Cosine Recall@3
369
+ - type: cosine_recall@5
370
+ value: 0.3017241379310345
371
+ name: Cosine Recall@5
372
+ - type: cosine_recall@10
373
+ value: 0.4956896551724138
374
+ name: Cosine Recall@10
375
+ - type: cosine_ndcg@10
376
+ value: 0.2527082338557514
377
+ name: Cosine Ndcg@10
378
+ - type: cosine_mrr@10
379
+ value: 0.17959085933223878
380
+ name: Cosine Mrr@10
381
+ - type: cosine_map@100
382
+ value: 0.2058214047481906
383
+ name: Cosine Map@100
384
+ ---
385
+
386
+ # SentenceTransformer based on BAAI/bge-m3
387
+
388
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-m3](https://huggingface.co/BAAI/bge-m3). It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
389
+
390
+ ## Model Details
391
+
392
+ ### Model Description
393
+ - **Model Type:** Sentence Transformer
394
+ - **Base model:** [BAAI/bge-m3](https://huggingface.co/BAAI/bge-m3) <!-- at revision 5617a9f61b028005a4858fdac845db406aefb181 -->
395
+ - **Maximum Sequence Length:** 8192 tokens
396
+ - **Output Dimensionality:** 1024 tokens
397
+ - **Similarity Function:** Cosine Similarity
398
+ <!-- - **Training Dataset:** Unknown -->
399
+ <!-- - **Language:** Unknown -->
400
+ <!-- - **License:** Unknown -->
401
+
402
+ ### Model Sources
403
+
404
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
405
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
406
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
407
+
408
+ ### Full Model Architecture
409
+
410
+ ```
411
+ SentenceTransformer(
412
+ (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
413
+ (1): Pooling({'word_embedding_dimension': 1024, '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})
414
+ (2): Normalize()
415
+ )
416
+ ```
417
+
418
+ ## Usage
419
+
420
+ ### Direct Usage (Sentence Transformers)
421
+
422
+ First install the Sentence Transformers library:
423
+
424
+ ```bash
425
+ pip install -U sentence-transformers
426
+ ```
427
+
428
+ Then you can load this model and run inference.
429
+ ```python
430
+ from sentence_transformers import SentenceTransformer
431
+
432
+ # Download from the 🤗 Hub
433
+ model = SentenceTransformer("adriansanz/sitgrsBAAIbge-m3-290824")
434
+ # Run inference
435
+ sentences = [
436
+ 'Les entitats inscrites en el Registre resten obligades a comunicar a l’Ajuntament qualsevol modificació en les seves dades registrals, podent sol·licitar la seva cancel·lació o comunicant la seva dissolució.',
437
+ "Quin és el procediment per cancel·lar la inscripció d'una entitat al Registre municipal d'entitats?",
438
+ 'Quin és el paper de les entitats de protecció dels animals en la gestió de les colònies urbanes felines?',
439
+ ]
440
+ embeddings = model.encode(sentences)
441
+ print(embeddings.shape)
442
+ # [3, 1024]
443
+
444
+ # Get the similarity scores for the embeddings
445
+ similarities = model.similarity(embeddings, embeddings)
446
+ print(similarities.shape)
447
+ # [3, 3]
448
+ ```
449
+
450
+ <!--
451
+ ### Direct Usage (Transformers)
452
+
453
+ <details><summary>Click to see the direct usage in Transformers</summary>
454
+
455
+ </details>
456
+ -->
457
+
458
+ <!--
459
+ ### Downstream Usage (Sentence Transformers)
460
+
461
+ You can finetune this model on your own dataset.
462
+
463
+ <details><summary>Click to expand</summary>
464
+
465
+ </details>
466
+ -->
467
+
468
+ <!--
469
+ ### Out-of-Scope Use
470
+
471
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
472
+ -->
473
+
474
+ ## Evaluation
475
+
476
+ ### Metrics
477
+
478
+ #### Information Retrieval
479
+ * Dataset: `dim_1024`
480
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
481
+
482
+ | Metric | Value |
483
+ |:--------------------|:-----------|
484
+ | cosine_accuracy@1 | 0.0862 |
485
+ | cosine_accuracy@3 | 0.2155 |
486
+ | cosine_accuracy@5 | 0.3276 |
487
+ | cosine_accuracy@10 | 0.5108 |
488
+ | cosine_precision@1 | 0.0862 |
489
+ | cosine_precision@3 | 0.0718 |
490
+ | cosine_precision@5 | 0.0655 |
491
+ | cosine_precision@10 | 0.0511 |
492
+ | cosine_recall@1 | 0.0862 |
493
+ | cosine_recall@3 | 0.2155 |
494
+ | cosine_recall@5 | 0.3276 |
495
+ | cosine_recall@10 | 0.5108 |
496
+ | cosine_ndcg@10 | 0.264 |
497
+ | cosine_mrr@10 | 0.1897 |
498
+ | **cosine_map@100** | **0.2151** |
499
+
500
+ #### Information Retrieval
501
+ * Dataset: `dim_768`
502
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
503
+
504
+ | Metric | Value |
505
+ |:--------------------|:-----------|
506
+ | cosine_accuracy@1 | 0.0841 |
507
+ | cosine_accuracy@3 | 0.2091 |
508
+ | cosine_accuracy@5 | 0.319 |
509
+ | cosine_accuracy@10 | 0.5 |
510
+ | cosine_precision@1 | 0.0841 |
511
+ | cosine_precision@3 | 0.0697 |
512
+ | cosine_precision@5 | 0.0638 |
513
+ | cosine_precision@10 | 0.05 |
514
+ | cosine_recall@1 | 0.0841 |
515
+ | cosine_recall@3 | 0.2091 |
516
+ | cosine_recall@5 | 0.319 |
517
+ | cosine_recall@10 | 0.5 |
518
+ | cosine_ndcg@10 | 0.2595 |
519
+ | cosine_mrr@10 | 0.1867 |
520
+ | **cosine_map@100** | **0.2132** |
521
+
522
+ #### Information Retrieval
523
+ * Dataset: `dim_512`
524
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
525
+
526
+ | Metric | Value |
527
+ |:--------------------|:-----------|
528
+ | cosine_accuracy@1 | 0.0862 |
529
+ | cosine_accuracy@3 | 0.2112 |
530
+ | cosine_accuracy@5 | 0.3211 |
531
+ | cosine_accuracy@10 | 0.5129 |
532
+ | cosine_precision@1 | 0.0862 |
533
+ | cosine_precision@3 | 0.0704 |
534
+ | cosine_precision@5 | 0.0642 |
535
+ | cosine_precision@10 | 0.0513 |
536
+ | cosine_recall@1 | 0.0862 |
537
+ | cosine_recall@3 | 0.2112 |
538
+ | cosine_recall@5 | 0.3211 |
539
+ | cosine_recall@10 | 0.5129 |
540
+ | cosine_ndcg@10 | 0.2647 |
541
+ | cosine_mrr@10 | 0.1899 |
542
+ | **cosine_map@100** | **0.2155** |
543
+
544
+ #### Information Retrieval
545
+ * Dataset: `dim_256`
546
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
547
+
548
+ | Metric | Value |
549
+ |:--------------------|:-----------|
550
+ | cosine_accuracy@1 | 0.0819 |
551
+ | cosine_accuracy@3 | 0.2047 |
552
+ | cosine_accuracy@5 | 0.306 |
553
+ | cosine_accuracy@10 | 0.5043 |
554
+ | cosine_precision@1 | 0.0819 |
555
+ | cosine_precision@3 | 0.0682 |
556
+ | cosine_precision@5 | 0.0612 |
557
+ | cosine_precision@10 | 0.0504 |
558
+ | cosine_recall@1 | 0.0819 |
559
+ | cosine_recall@3 | 0.2047 |
560
+ | cosine_recall@5 | 0.306 |
561
+ | cosine_recall@10 | 0.5043 |
562
+ | cosine_ndcg@10 | 0.2555 |
563
+ | cosine_mrr@10 | 0.1808 |
564
+ | **cosine_map@100** | **0.2066** |
565
+
566
+ #### Information Retrieval
567
+ * Dataset: `dim_128`
568
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
569
+
570
+ | Metric | Value |
571
+ |:--------------------|:-----------|
572
+ | cosine_accuracy@1 | 0.0841 |
573
+ | cosine_accuracy@3 | 0.2004 |
574
+ | cosine_accuracy@5 | 0.3147 |
575
+ | cosine_accuracy@10 | 0.4914 |
576
+ | cosine_precision@1 | 0.0841 |
577
+ | cosine_precision@3 | 0.0668 |
578
+ | cosine_precision@5 | 0.0629 |
579
+ | cosine_precision@10 | 0.0491 |
580
+ | cosine_recall@1 | 0.0841 |
581
+ | cosine_recall@3 | 0.2004 |
582
+ | cosine_recall@5 | 0.3147 |
583
+ | cosine_recall@10 | 0.4914 |
584
+ | cosine_ndcg@10 | 0.2517 |
585
+ | cosine_mrr@10 | 0.1795 |
586
+ | **cosine_map@100** | **0.2058** |
587
+
588
+ #### Information Retrieval
589
+ * Dataset: `dim_64`
590
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
591
+
592
+ | Metric | Value |
593
+ |:--------------------|:-----------|
594
+ | cosine_accuracy@1 | 0.0797 |
595
+ | cosine_accuracy@3 | 0.2026 |
596
+ | cosine_accuracy@5 | 0.3017 |
597
+ | cosine_accuracy@10 | 0.4957 |
598
+ | cosine_precision@1 | 0.0797 |
599
+ | cosine_precision@3 | 0.0675 |
600
+ | cosine_precision@5 | 0.0603 |
601
+ | cosine_precision@10 | 0.0496 |
602
+ | cosine_recall@1 | 0.0797 |
603
+ | cosine_recall@3 | 0.2026 |
604
+ | cosine_recall@5 | 0.3017 |
605
+ | cosine_recall@10 | 0.4957 |
606
+ | cosine_ndcg@10 | 0.2527 |
607
+ | cosine_mrr@10 | 0.1796 |
608
+ | **cosine_map@100** | **0.2058** |
609
+
610
+ <!--
611
+ ## Bias, Risks and Limitations
612
+
613
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
614
+ -->
615
+
616
+ <!--
617
+ ### Recommendations
618
+
619
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
620
+ -->
621
+
622
+ ## Training Details
623
+
624
+ ### Training Dataset
625
+
626
+ #### Unnamed Dataset
627
+
628
+
629
+ * Size: 4,173 training samples
630
+ * Columns: <code>positive</code> and <code>anchor</code>
631
+ * Approximate statistics based on the first 1000 samples:
632
+ | | positive | anchor |
633
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
634
+ | type | string | string |
635
+ | details | <ul><li>min: 8 tokens</li><li>mean: 48.75 tokens</li><li>max: 125 tokens</li></ul> | <ul><li>min: 10 tokens</li><li>mean: 21.07 tokens</li><li>max: 47 tokens</li></ul> |
636
+ * Samples:
637
+ | positive | anchor |
638
+ |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------|
639
+ | <code>Els ajuts per a la realització d'activitats en el lleure esportiu estan destinats a les entitats sense ànim de lucre que desenvolupen activitats esportives i de lleure.</code> | <code>Quins són els sectors que es beneficien dels ajuts?</code> |
640
+ | <code>En el certificat s'indiquen les dades de planejament vigent, classificació del sòl, qualificació urbanística, condicions de l’edificació i usos admesos referides a una finca o solar concreta.</code> | <code>Quin és el contingut de les condicions de l'edificació en el certificat d'aprofitament urbanístic?</code> |
641
+ | <code>Aportació de documentació. Ajuts per compensar la disminució d'ingressos de les empreses o establiments del sector de l'hosteleria i restauració afectats per les mesures adoptades per la situació de crisis provocada pel SARS-CoV2</code> | <code>Quin és el paper dels ajuts en la situació de crisis?</code> |
642
+ * Loss: [<code>MatryoshkaLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
643
+ ```json
644
+ {
645
+ "loss": "MultipleNegativesRankingLoss",
646
+ "matryoshka_dims": [
647
+ 1024,
648
+ 768,
649
+ 512,
650
+ 256,
651
+ 128,
652
+ 64
653
+ ],
654
+ "matryoshka_weights": [
655
+ 1,
656
+ 1,
657
+ 1,
658
+ 1,
659
+ 1,
660
+ 1
661
+ ],
662
+ "n_dims_per_step": -1
663
+ }
664
+ ```
665
+
666
+ ### Training Hyperparameters
667
+ #### Non-Default Hyperparameters
668
+
669
+ - `eval_strategy`: epoch
670
+ - `per_device_train_batch_size`: 16
671
+ - `per_device_eval_batch_size`: 16
672
+ - `gradient_accumulation_steps`: 16
673
+ - `num_train_epochs`: 10
674
+ - `lr_scheduler_type`: cosine
675
+ - `warmup_ratio`: 0.2
676
+ - `bf16`: True
677
+ - `tf32`: False
678
+ - `load_best_model_at_end`: True
679
+ - `optim`: adamw_torch_fused
680
+ - `batch_sampler`: no_duplicates
681
+
682
+ #### All Hyperparameters
683
+ <details><summary>Click to expand</summary>
684
+
685
+ - `overwrite_output_dir`: False
686
+ - `do_predict`: False
687
+ - `eval_strategy`: epoch
688
+ - `prediction_loss_only`: True
689
+ - `per_device_train_batch_size`: 16
690
+ - `per_device_eval_batch_size`: 16
691
+ - `per_gpu_train_batch_size`: None
692
+ - `per_gpu_eval_batch_size`: None
693
+ - `gradient_accumulation_steps`: 16
694
+ - `eval_accumulation_steps`: None
695
+ - `learning_rate`: 5e-05
696
+ - `weight_decay`: 0.0
697
+ - `adam_beta1`: 0.9
698
+ - `adam_beta2`: 0.999
699
+ - `adam_epsilon`: 1e-08
700
+ - `max_grad_norm`: 1.0
701
+ - `num_train_epochs`: 10
702
+ - `max_steps`: -1
703
+ - `lr_scheduler_type`: cosine
704
+ - `lr_scheduler_kwargs`: {}
705
+ - `warmup_ratio`: 0.2
706
+ - `warmup_steps`: 0
707
+ - `log_level`: passive
708
+ - `log_level_replica`: warning
709
+ - `log_on_each_node`: True
710
+ - `logging_nan_inf_filter`: True
711
+ - `save_safetensors`: True
712
+ - `save_on_each_node`: False
713
+ - `save_only_model`: False
714
+ - `restore_callback_states_from_checkpoint`: False
715
+ - `no_cuda`: False
716
+ - `use_cpu`: False
717
+ - `use_mps_device`: False
718
+ - `seed`: 42
719
+ - `data_seed`: None
720
+ - `jit_mode_eval`: False
721
+ - `use_ipex`: False
722
+ - `bf16`: True
723
+ - `fp16`: False
724
+ - `fp16_opt_level`: O1
725
+ - `half_precision_backend`: auto
726
+ - `bf16_full_eval`: False
727
+ - `fp16_full_eval`: False
728
+ - `tf32`: False
729
+ - `local_rank`: 0
730
+ - `ddp_backend`: None
731
+ - `tpu_num_cores`: None
732
+ - `tpu_metrics_debug`: False
733
+ - `debug`: []
734
+ - `dataloader_drop_last`: False
735
+ - `dataloader_num_workers`: 0
736
+ - `dataloader_prefetch_factor`: None
737
+ - `past_index`: -1
738
+ - `disable_tqdm`: False
739
+ - `remove_unused_columns`: True
740
+ - `label_names`: None
741
+ - `load_best_model_at_end`: True
742
+ - `ignore_data_skip`: False
743
+ - `fsdp`: []
744
+ - `fsdp_min_num_params`: 0
745
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
746
+ - `fsdp_transformer_layer_cls_to_wrap`: None
747
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
748
+ - `deepspeed`: None
749
+ - `label_smoothing_factor`: 0.0
750
+ - `optim`: adamw_torch_fused
751
+ - `optim_args`: None
752
+ - `adafactor`: False
753
+ - `group_by_length`: False
754
+ - `length_column_name`: length
755
+ - `ddp_find_unused_parameters`: None
756
+ - `ddp_bucket_cap_mb`: None
757
+ - `ddp_broadcast_buffers`: False
758
+ - `dataloader_pin_memory`: True
759
+ - `dataloader_persistent_workers`: False
760
+ - `skip_memory_metrics`: True
761
+ - `use_legacy_prediction_loop`: False
762
+ - `push_to_hub`: False
763
+ - `resume_from_checkpoint`: None
764
+ - `hub_model_id`: None
765
+ - `hub_strategy`: every_save
766
+ - `hub_private_repo`: False
767
+ - `hub_always_push`: False
768
+ - `gradient_checkpointing`: False
769
+ - `gradient_checkpointing_kwargs`: None
770
+ - `include_inputs_for_metrics`: False
771
+ - `eval_do_concat_batches`: True
772
+ - `fp16_backend`: auto
773
+ - `push_to_hub_model_id`: None
774
+ - `push_to_hub_organization`: None
775
+ - `mp_parameters`:
776
+ - `auto_find_batch_size`: False
777
+ - `full_determinism`: False
778
+ - `torchdynamo`: None
779
+ - `ray_scope`: last
780
+ - `ddp_timeout`: 1800
781
+ - `torch_compile`: False
782
+ - `torch_compile_backend`: None
783
+ - `torch_compile_mode`: None
784
+ - `dispatch_batches`: None
785
+ - `split_batches`: None
786
+ - `include_tokens_per_second`: False
787
+ - `include_num_input_tokens_seen`: False
788
+ - `neftune_noise_alpha`: None
789
+ - `optim_target_modules`: None
790
+ - `batch_eval_metrics`: False
791
+ - `eval_on_start`: False
792
+ - `batch_sampler`: no_duplicates
793
+ - `multi_dataset_batch_sampler`: proportional
794
+
795
+ </details>
796
+
797
+ ### Training Logs
798
+ | Epoch | Step | Training Loss | dim_1024_cosine_map@100 | dim_128_cosine_map@100 | dim_256_cosine_map@100 | dim_512_cosine_map@100 | dim_64_cosine_map@100 | dim_768_cosine_map@100 |
799
+ |:----------:|:-------:|:-------------:|:-----------------------:|:----------------------:|:----------------------:|:----------------------:|:---------------------:|:----------------------:|
800
+ | 0.6130 | 10 | 3.0594 | - | - | - | - | - | - |
801
+ | 0.9808 | 16 | - | 0.2047 | 0.1922 | 0.2020 | 0.2016 | 0.1774 | 0.2115 |
802
+ | 1.2261 | 20 | 1.525 | - | - | - | - | - | - |
803
+ | 1.8391 | 30 | 0.7434 | - | - | - | - | - | - |
804
+ | 1.9617 | 32 | - | 0.2186 | 0.2003 | 0.2102 | 0.2092 | 0.1870 | 0.2101 |
805
+ | 2.4521 | 40 | 0.4451 | - | - | - | - | - | - |
806
+ | 2.9425 | 48 | - | 0.2083 | 0.2054 | 0.2091 | 0.2118 | 0.2009 | 0.2140 |
807
+ | 3.0651 | 50 | 0.2518 | - | - | - | - | - | - |
808
+ | 3.6782 | 60 | 0.1801 | - | - | - | - | - | - |
809
+ | 3.9847 | 65 | - | 0.2135 | 0.2071 | 0.2037 | 0.2115 | 0.2030 | 0.2191 |
810
+ | 4.2912 | 70 | 0.1483 | - | - | - | - | - | - |
811
+ | 4.9042 | 80 | 0.0893 | - | - | - | - | - | - |
812
+ | 4.9655 | 81 | - | 0.2066 | 0.2053 | 0.2057 | 0.2137 | 0.1982 | 0.2176 |
813
+ | 5.5172 | 90 | 0.0748 | - | - | - | - | - | - |
814
+ | 5.9464 | 97 | - | 0.2171 | 0.2113 | 0.2086 | 0.2178 | 0.2120 | 0.2193 |
815
+ | 6.1303 | 100 | 0.064 | - | - | - | - | - | - |
816
+ | 6.7433 | 110 | 0.0458 | - | - | - | - | - | - |
817
+ | 6.9885 | 114 | - | 0.2294 | 0.2132 | 0.2151 | 0.2227 | 0.2054 | 0.2138 |
818
+ | 7.3563 | 120 | 0.0436 | - | - | - | - | - | - |
819
+ | 7.9693 | 130 | 0.0241 | 0.2133 | 0.2083 | 0.2096 | 0.2138 | 0.2080 | 0.2124 |
820
+ | 8.5824 | 140 | 0.021 | - | - | - | - | - | - |
821
+ | **8.9502** | **146** | **-** | **0.216** | **0.2074** | **0.2081** | **0.2162** | **0.2094** | **0.2177** |
822
+ | 9.1954 | 150 | 0.0237 | - | - | - | - | - | - |
823
+ | 9.8084 | 160 | 0.0145 | 0.2151 | 0.2058 | 0.2066 | 0.2155 | 0.2058 | 0.2132 |
824
+
825
+ * The bold row denotes the saved checkpoint.
826
+
827
+ ### Framework Versions
828
+ - Python: 3.10.12
829
+ - Sentence Transformers: 3.0.1
830
+ - Transformers: 4.42.4
831
+ - PyTorch: 2.4.0+cu121
832
+ - Accelerate: 0.34.0.dev0
833
+ - Datasets: 2.21.0
834
+ - Tokenizers: 0.19.1
835
+
836
+ ## Citation
837
+
838
+ ### BibTeX
839
+
840
+ #### Sentence Transformers
841
+ ```bibtex
842
+ @inproceedings{reimers-2019-sentence-bert,
843
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
844
+ author = "Reimers, Nils and Gurevych, Iryna",
845
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
846
+ month = "11",
847
+ year = "2019",
848
+ publisher = "Association for Computational Linguistics",
849
+ url = "https://arxiv.org/abs/1908.10084",
850
+ }
851
+ ```
852
+
853
+ #### MatryoshkaLoss
854
+ ```bibtex
855
+ @misc{kusupati2024matryoshka,
856
+ title={Matryoshka Representation Learning},
857
+ author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
858
+ year={2024},
859
+ eprint={2205.13147},
860
+ archivePrefix={arXiv},
861
+ primaryClass={cs.LG}
862
+ }
863
+ ```
864
+
865
+ #### MultipleNegativesRankingLoss
866
+ ```bibtex
867
+ @misc{henderson2017efficient,
868
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
869
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
870
+ year={2017},
871
+ eprint={1705.00652},
872
+ archivePrefix={arXiv},
873
+ primaryClass={cs.CL}
874
+ }
875
+ ```
876
+
877
+ <!--
878
+ ## Glossary
879
+
880
+ *Clearly define terms in order to be accessible across audiences.*
881
+ -->
882
+
883
+ <!--
884
+ ## Model Card Authors
885
+
886
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
887
+ -->
888
+
889
+ <!--
890
+ ## Model Card Contact
891
+
892
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
893
+ -->
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BAAI/bge-m3",
3
+ "architectures": [
4
+ "XLMRobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 1024,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 4096,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 8194,
17
+ "model_type": "xlm-roberta",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 24,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.42.4",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 250002
28
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.42.4",
5
+ "pytorch": "2.4.0+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:133bdb11af88bb24c05ec94a7c4cdfae2a36f1eaa5822250faee340896351749
3
+ size 2271064456
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 8192,
3
+ "do_lower_case": false
4
+ }
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4f7e21bec3fb0044ca0bb2d50eb5d4d8c596273c422baef84466d2c73748b9c
3
+ size 17083053
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 8192,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "sp_model_kwargs": {},
53
+ "tokenizer_class": "XLMRobertaTokenizer",
54
+ "unk_token": "<unk>"
55
+ }