RomainDarous commited on
Commit
b991588
·
verified ·
1 Parent(s): fe5520c

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_MultiHeadGeneralizedPooling/config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "sentence_dim": 768,
3
+ "token_dim": 768,
4
+ "num_heads": 8,
5
+ "initialize": 1,
6
+ "pooling_type": 0
7
+ }
1_MultiHeadGeneralizedPooling/multihead_pooling_weights.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b09480128a47d1809f413b8e0dbf6f43bc5ca5a0692b2c5de99abc75e4916110
3
+ size 4726278
README.md ADDED
@@ -0,0 +1,448 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:4460010
8
+ - loss:CoSENTLoss
9
+ base_model: RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel
10
+ widget:
11
+ - source_sentence: Malformed target specific variable definition
12
+ sentences:
13
+ - Hedefe özgü değişken tanımı bozuk
14
+ - Kan alle data in die gids lees
15
+ - "слава Украине! героям слава!\uFEFF"
16
+ - source_sentence: Can't write an inode bitmap
17
+ sentences:
18
+ - Skontrolujte stav aktualizácií alebo to skúste znova neskôr.
19
+ - Malsukcesis skribi i nodan bitmapon
20
+ - Zastępuje wersję GL obsługiwaną przez sterownik
21
+ - source_sentence: Optimize soft proofing color transformations
22
+ sentences:
23
+ - 'arkadaslar biz artik her an kirmizi kart yiyecek,bencil,pas yapamayan,isabetsiz
24
+ orta yapani istemiyoruz. sozde efsaneniz bu sezon Besiktasa en cok zarar verenlerden
25
+ biriydi. kendini dusunmeden once Besiktasi dusunecek adam lazim bize. o yuzden
26
+ #GoHomeQuaresma'
27
+ - Yav bizim dedikodusunu yaptığımız insanın bile bi vizyonu var. Senin hakkında
28
+ neden oturup konuşalım?
29
+ - Ik ben een transgender.
30
+ - source_sentence: 'Pass 1: Checking @is, @bs, and sizes'
31
+ sentences:
32
+ - Bu adam cidden kurabiye gibi ben bunu çayın yanında yerim
33
+ - sagnat. errada. invisible. justificació. idioma
34
+ - Wilt u echt de primaire sleutel verplaatsen? (j N)
35
+ - source_sentence: Search for matching log entries
36
+ sentences:
37
+ - quem te lembra? caralho tô assustada aqui kkkkk
38
+ - sendotasunik gabeko\ egoera bistaratuko den ala ez adierazten du
39
+ - En aquest cas, hem d'incloure les imatges del contenidor )sr iov per a càrregues
40
+ de treball de telco (per exemple, com a referència, es podrien obtenir des de
41
+ valors de helm chart)
42
+ datasets:
43
+ - RomainDarous/corrupted_os_by_language
44
+ pipeline_tag: sentence-similarity
45
+ library_name: sentence-transformers
46
+ metrics:
47
+ - pearson_cosine
48
+ - spearman_cosine
49
+ model-index:
50
+ - name: SentenceTransformer based on RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel
51
+ results:
52
+ - task:
53
+ type: semantic-similarity
54
+ name: Semantic Similarity
55
+ dataset:
56
+ name: sts eval
57
+ type: sts-eval
58
+ metrics:
59
+ - type: pearson_cosine
60
+ value: 0.980083415375982
61
+ name: Pearson Cosine
62
+ - type: spearman_cosine
63
+ value: 0.8655169963020204
64
+ name: Spearman Cosine
65
+ - task:
66
+ type: semantic-similarity
67
+ name: Semantic Similarity
68
+ dataset:
69
+ name: sts test
70
+ type: sts-test
71
+ metrics:
72
+ - type: pearson_cosine
73
+ value: 0.9801740771365185
74
+ name: Pearson Cosine
75
+ - type: spearman_cosine
76
+ value: 0.8655815024093642
77
+ name: Spearman Cosine
78
+ ---
79
+
80
+ # SentenceTransformer based on RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel
81
+
82
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel](https://huggingface.co/RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel) on the [corrupted_open_os_by_language](https://huggingface.co/datasets/RomainDarous/corrupted_os_by_language) dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
83
+
84
+ ## Model Details
85
+
86
+ ### Model Description
87
+ - **Model Type:** Sentence Transformer
88
+ - **Base model:** [RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel](https://huggingface.co/RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel) <!-- at revision a405f53cddaa76ddc32428235a5f6de58865ac6f -->
89
+ - **Maximum Sequence Length:** 128 tokens
90
+ - **Output Dimensionality:** 768 dimensions
91
+ - **Similarity Function:** Cosine Similarity
92
+ - **Training Dataset:**
93
+ - [corrupted_open_os_by_language](https://huggingface.co/datasets/RomainDarous/corrupted_os_by_language)
94
+ <!-- - **Language:** Unknown -->
95
+ <!-- - **License:** Unknown -->
96
+
97
+ ### Model Sources
98
+
99
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
100
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
101
+ - **HF中国镜像站:** [Sentence Transformers on HF中国镜像站](https://huggingface.co/models?library=sentence-transformers)
102
+
103
+ ### Full Model Architecture
104
+
105
+ ```
106
+ SentenceTransformer(
107
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
108
+ (1): MultiHeadGeneralizedPooling(
109
+ (P): ModuleList(
110
+ (0-7): 8 x Linear(in_features=768, out_features=96, bias=True)
111
+ )
112
+ (W1): ModuleList(
113
+ (0-7): 8 x Linear(in_features=96, out_features=384, bias=True)
114
+ )
115
+ (W2): ModuleList(
116
+ (0-7): 8 x Linear(in_features=384, out_features=96, bias=True)
117
+ )
118
+ )
119
+ )
120
+ ```
121
+
122
+ ## Usage
123
+
124
+ ### Direct Usage (Sentence Transformers)
125
+
126
+ First install the Sentence Transformers library:
127
+
128
+ ```bash
129
+ pip install -U sentence-transformers
130
+ ```
131
+
132
+ Then you can load this model and run inference.
133
+ ```python
134
+ from sentence_transformers import SentenceTransformer
135
+
136
+ # Download from the 🤗 Hub
137
+ model = SentenceTransformer("RomainDarous/large_directFourEpoch_additivePooling_noisedInit_mistranslationModel")
138
+ # Run inference
139
+ sentences = [
140
+ 'Search for matching log entries',
141
+ 'quem te lembra? caralho tô assustada aqui kkkkk',
142
+ 'sendotasunik gabeko\\ egoera bistaratuko den ala ez adierazten du',
143
+ ]
144
+ embeddings = model.encode(sentences)
145
+ print(embeddings.shape)
146
+ # [3, 768]
147
+
148
+ # Get the similarity scores for the embeddings
149
+ similarities = model.similarity(embeddings, embeddings)
150
+ print(similarities.shape)
151
+ # [3, 3]
152
+ ```
153
+
154
+ <!--
155
+ ### Direct Usage (Transformers)
156
+
157
+ <details><summary>Click to see the direct usage in Transformers</summary>
158
+
159
+ </details>
160
+ -->
161
+
162
+ <!--
163
+ ### Downstream Usage (Sentence Transformers)
164
+
165
+ You can finetune this model on your own dataset.
166
+
167
+ <details><summary>Click to expand</summary>
168
+
169
+ </details>
170
+ -->
171
+
172
+ <!--
173
+ ### Out-of-Scope Use
174
+
175
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
176
+ -->
177
+
178
+ ## Evaluation
179
+
180
+ ### Metrics
181
+
182
+ #### Semantic Similarity
183
+
184
+ * Datasets: `sts-eval` and `sts-test`
185
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
186
+
187
+ | Metric | sts-eval | sts-test |
188
+ |:--------------------|:-----------|:-----------|
189
+ | pearson_cosine | 0.9801 | 0.9802 |
190
+ | **spearman_cosine** | **0.8655** | **0.8656** |
191
+
192
+ <!--
193
+ ## Bias, Risks and Limitations
194
+
195
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
196
+ -->
197
+
198
+ <!--
199
+ ### Recommendations
200
+
201
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
202
+ -->
203
+
204
+ ## Training Details
205
+
206
+ ### Training Dataset
207
+
208
+ #### corrupted_open_os_by_language
209
+
210
+ * Dataset: [corrupted_open_os_by_language](https://huggingface.co/datasets/RomainDarous/corrupted_os_by_language) at [9d25780](https://huggingface.co/datasets/RomainDarous/corrupted_os_by_language/tree/9d25780e2032b1e8f06af6a4ff55124d7a930c3c)
211
+ * Size: 4,460,010 training samples
212
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
213
+ * Approximate statistics based on the first 1000 samples:
214
+ | | sentence1 | sentence2 | score |
215
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:------------------------------------------------|
216
+ | type | string | string | int |
217
+ | details | <ul><li>min: 6 tokens</li><li>mean: 18.33 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 26.47 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>0: ~50.60%</li><li>1: ~49.40%</li></ul> |
218
+ * Samples:
219
+ | sentence1 | sentence2 | score |
220
+ |:--------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------|:---------------|
221
+ | <code>Check spelling. Print the document. Show completion window. General. Show help</code> | <code>Kontrolli õigekirja. присоединяюсь. </code> | <code>0</code> |
222
+ | <code>EXIF not supported for this file format.</code> | <code>Šiam failo formatui EXIF nepalaikomas.</code> | <code>1</code> |
223
+ | <code>This package includes the documentation for texlive everyhook</code> | <code>Paket ini menyertakan dokumentasi untuk texlive everyhook</code> | <code>1</code> |
224
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
225
+ ```json
226
+ {
227
+ "scale": 20.0,
228
+ "similarity_fct": "pairwise_cos_sim"
229
+ }
230
+ ```
231
+
232
+ ### Evaluation Dataset
233
+
234
+ #### corrupted_open_os_by_language
235
+
236
+ * Dataset: [corrupted_open_os_by_language](https://huggingface.co/datasets/RomainDarous/corrupted_os_by_language) at [9d25780](https://huggingface.co/datasets/RomainDarous/corrupted_os_by_language/tree/9d25780e2032b1e8f06af6a4ff55124d7a930c3c)
237
+ * Size: 4,460,010 evaluation samples
238
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
239
+ * Approximate statistics based on the first 1000 samples:
240
+ | | sentence1 | sentence2 | score |
241
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:------------------------------------------------|
242
+ | type | string | string | int |
243
+ | details | <ul><li>min: 5 tokens</li><li>mean: 17.71 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 26.95 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>0: ~50.60%</li><li>1: ~49.40%</li></ul> |
244
+ * Samples:
245
+ | sentence1 | sentence2 | score |
246
+ |:----------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
247
+ | <code>Could not identify the current seat.</code> | <code> 天天花着男人的钱还这这创造新词汇男权你可真牛批,你也就这一出了一问男权,就说是我是吧,到现在我也没听到你给我们讲的男权,你也就是在网上喷喷,现实走道都不敢探头自卑,你现实要把你女权的劲拿出来总低啥头,您老应该去国家教育局把男权加上是吧,你们女权天天说自己生活不好没地位,给你们地位了你们能干啥?用你们的女权打到全世界男性是吧,能相出男权这一词您老也是人才呀,是不是庆幸自己是个女的,活在自己想想的世界里不觉得孤单吗,假象有男权是吧,自己假象和男权还说自己不是田园女权,田园女权能连自己都骂说自己妈是驴爸是大鼎的也是奇葩呀,那我们国家大肆宣扬过你们这么田园女权吗,国家要的是女性人群自主自理,你们可好看看你们女权干的啥事,给你们女权地位高了,看看你们女权干的事n绿地集团高管怎么都不说呀,人家可是有钱有地位,也不是我们说三从四德洗衣做饭你们女权会吗?,那我问问你们女权干过啥惊天大事,还甩锅给孔子,还封建社会,那我问问你们女权在福利面前为啥说自己是女性呀不是社会主义社会吗不应该男女平等吗,天天自己也不知道是不是抱个手机天天欧巴欧巴,你家那位要是不陪你看一会就会问你是不是不爱我了是吧大姐,您老也就赚这白菜钱操心国家事,中国五千年的历史被您老一句否决,还嘲讽人家日本女性,好意思说自己不是女权,三从四德流传这么久到您这变成日本文化了,我就想问问男权您老是怎么想的,那你问孔子老人家呗为什么女人��三从四德,我说的是女权你干嘛自己对号入座,连中华人民传承的东西都不认跟我这谈男权,还男权您老给我举个例子呗,让我们男权听听都是h啥,这些不都是你们女权的标准吗?,还男权,您老醒醒吧这里是现实,不是你的公主世界,总觉得自己多么多么重要,地球没你是不能转了还是人类要灭亡呀,我真的想问一句你给我找一条男权的新闻,咋了我们男人不能提女权呗你老授权了呗,那我们谈论田园女权你老对号入座干嘛,天天过节要礼物,还嫌弃自己男朋友没有钱,我寻思你找个有钱人包养你呗,对了有钱人怎么可能看上你这种女权的呢,还要孩子跟女方姓我也没看见你没跟你妈姓呀,年年过节男人给你们送礼物你们女人给男人送过礼物吗?,一问我不是陪着他吗我对他说我爱你了这不是最好的礼物吗?,男人只要不送礼物就是不爱你们了呗,人家国际女权讲的男人能做的我们女人也能做,田园女权男人能做的我们女人为啥要做,还男权我笑了,以前结婚几头牛换个衣服原装的,现在几十万彩...</code> | <code>0</code> |
248
+ | <code>Undoing Date and Time Adjustment</code> | <code>正在取消日期和时间调整</code> | <code>1</code> |
249
+ | <code>Dependency package for gsl_2_6 gnu hpc</code> | <code>Pacotes de desenvolvimento do KDE</code> | <code>1</code> |
250
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
251
+ ```json
252
+ {
253
+ "scale": 20.0,
254
+ "similarity_fct": "pairwise_cos_sim"
255
+ }
256
+ ```
257
+
258
+ ### Training Hyperparameters
259
+ #### Non-Default Hyperparameters
260
+
261
+ - `eval_strategy`: steps
262
+ - `per_device_train_batch_size`: 64
263
+ - `per_device_eval_batch_size`: 64
264
+ - `num_train_epochs`: 1
265
+ - `warmup_ratio`: 0.1
266
+
267
+ #### All Hyperparameters
268
+ <details><summary>Click to expand</summary>
269
+
270
+ - `overwrite_output_dir`: False
271
+ - `do_predict`: False
272
+ - `eval_strategy`: steps
273
+ - `prediction_loss_only`: True
274
+ - `per_device_train_batch_size`: 64
275
+ - `per_device_eval_batch_size`: 64
276
+ - `per_gpu_train_batch_size`: None
277
+ - `per_gpu_eval_batch_size`: None
278
+ - `gradient_accumulation_steps`: 1
279
+ - `eval_accumulation_steps`: None
280
+ - `torch_empty_cache_steps`: None
281
+ - `learning_rate`: 5e-05
282
+ - `weight_decay`: 0.0
283
+ - `adam_beta1`: 0.9
284
+ - `adam_beta2`: 0.999
285
+ - `adam_epsilon`: 1e-08
286
+ - `max_grad_norm`: 1.0
287
+ - `num_train_epochs`: 1
288
+ - `max_steps`: -1
289
+ - `lr_scheduler_type`: linear
290
+ - `lr_scheduler_kwargs`: {}
291
+ - `warmup_ratio`: 0.1
292
+ - `warmup_steps`: 0
293
+ - `log_level`: passive
294
+ - `log_level_replica`: warning
295
+ - `log_on_each_node`: True
296
+ - `logging_nan_inf_filter`: True
297
+ - `save_safetensors`: True
298
+ - `save_on_each_node`: False
299
+ - `save_only_model`: False
300
+ - `restore_callback_states_from_checkpoint`: False
301
+ - `no_cuda`: False
302
+ - `use_cpu`: False
303
+ - `use_mps_device`: False
304
+ - `seed`: 42
305
+ - `data_seed`: None
306
+ - `jit_mode_eval`: False
307
+ - `use_ipex`: False
308
+ - `bf16`: False
309
+ - `fp16`: False
310
+ - `fp16_opt_level`: O1
311
+ - `half_precision_backend`: auto
312
+ - `bf16_full_eval`: False
313
+ - `fp16_full_eval`: False
314
+ - `tf32`: None
315
+ - `local_rank`: 0
316
+ - `ddp_backend`: None
317
+ - `tpu_num_cores`: None
318
+ - `tpu_metrics_debug`: False
319
+ - `debug`: []
320
+ - `dataloader_drop_last`: False
321
+ - `dataloader_num_workers`: 0
322
+ - `dataloader_prefetch_factor`: None
323
+ - `past_index`: -1
324
+ - `disable_tqdm`: False
325
+ - `remove_unused_columns`: True
326
+ - `label_names`: None
327
+ - `load_best_model_at_end`: False
328
+ - `ignore_data_skip`: False
329
+ - `fsdp`: []
330
+ - `fsdp_min_num_params`: 0
331
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
332
+ - `fsdp_transformer_layer_cls_to_wrap`: None
333
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
334
+ - `deepspeed`: None
335
+ - `label_smoothing_factor`: 0.0
336
+ - `optim`: adamw_torch
337
+ - `optim_args`: None
338
+ - `adafactor`: False
339
+ - `group_by_length`: False
340
+ - `length_column_name`: length
341
+ - `ddp_find_unused_parameters`: None
342
+ - `ddp_bucket_cap_mb`: None
343
+ - `ddp_broadcast_buffers`: False
344
+ - `dataloader_pin_memory`: True
345
+ - `dataloader_persistent_workers`: False
346
+ - `skip_memory_metrics`: True
347
+ - `use_legacy_prediction_loop`: False
348
+ - `push_to_hub`: False
349
+ - `resume_from_checkpoint`: None
350
+ - `hub_model_id`: None
351
+ - `hub_strategy`: every_save
352
+ - `hub_private_repo`: None
353
+ - `hub_always_push`: False
354
+ - `gradient_checkpointing`: False
355
+ - `gradient_checkpointing_kwargs`: None
356
+ - `include_inputs_for_metrics`: False
357
+ - `include_for_metrics`: []
358
+ - `eval_do_concat_batches`: True
359
+ - `fp16_backend`: auto
360
+ - `push_to_hub_model_id`: None
361
+ - `push_to_hub_organization`: None
362
+ - `mp_parameters`:
363
+ - `auto_find_batch_size`: False
364
+ - `full_determinism`: False
365
+ - `torchdynamo`: None
366
+ - `ray_scope`: last
367
+ - `ddp_timeout`: 1800
368
+ - `torch_compile`: False
369
+ - `torch_compile_backend`: None
370
+ - `torch_compile_mode`: None
371
+ - `dispatch_batches`: None
372
+ - `split_batches`: None
373
+ - `include_tokens_per_second`: False
374
+ - `include_num_input_tokens_seen`: False
375
+ - `neftune_noise_alpha`: None
376
+ - `optim_target_modules`: None
377
+ - `batch_eval_metrics`: False
378
+ - `eval_on_start`: False
379
+ - `use_liger_kernel`: False
380
+ - `eval_use_gather_object`: False
381
+ - `average_tokens_across_devices`: False
382
+ - `prompts`: None
383
+ - `batch_sampler`: batch_sampler
384
+ - `multi_dataset_batch_sampler`: proportional
385
+
386
+ </details>
387
+
388
+ ### Training Logs
389
+ | Epoch | Step | Training Loss | corrupted open os by language loss | sts-eval_spearman_cosine | sts-test_spearman_cosine |
390
+ |:-----:|:-----:|:-------------:|:----------------------------------:|:------------------------:|:------------------------:|
391
+ | 1.0 | 55751 | 0.0845 | 0.2994 | 0.8655 | - |
392
+ | -1 | -1 | - | - | - | 0.8656 |
393
+
394
+
395
+ ### Framework Versions
396
+ - Python: 3.10.13
397
+ - Sentence Transformers: 3.4.1
398
+ - Transformers: 4.48.2
399
+ - PyTorch: 2.1.2+cu121
400
+ - Accelerate: 1.3.0
401
+ - Datasets: 2.16.1
402
+ - Tokenizers: 0.21.0
403
+
404
+ ## Citation
405
+
406
+ ### BibTeX
407
+
408
+ #### Sentence Transformers
409
+ ```bibtex
410
+ @inproceedings{reimers-2019-sentence-bert,
411
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
412
+ author = "Reimers, Nils and Gurevych, Iryna",
413
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
414
+ month = "11",
415
+ year = "2019",
416
+ publisher = "Association for Computational Linguistics",
417
+ url = "https://arxiv.org/abs/1908.10084",
418
+ }
419
+ ```
420
+
421
+ #### CoSENTLoss
422
+ ```bibtex
423
+ @online{kexuefm-8847,
424
+ title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
425
+ author={Su Jianlin},
426
+ year={2022},
427
+ month={Jan},
428
+ url={https://kexue.fm/archives/8847},
429
+ }
430
+ ```
431
+
432
+ <!--
433
+ ## Glossary
434
+
435
+ *Clearly define terms in order to be accessible across audiences.*
436
+ -->
437
+
438
+ <!--
439
+ ## Model Card Authors
440
+
441
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
442
+ -->
443
+
444
+ <!--
445
+ ## Model Card Contact
446
+
447
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
448
+ -->
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "RomainDarous/large_directThreeEpoch_additivePooling_noisedInit_mistranslationModel",
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
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "layer_norm_eps": 1e-05,
17
+ "max_position_embeddings": 514,
18
+ "model_type": "xlm-roberta",
19
+ "num_attention_heads": 12,
20
+ "num_hidden_layers": 12,
21
+ "output_past": true,
22
+ "pad_token_id": 1,
23
+ "position_embedding_type": "absolute",
24
+ "torch_dtype": "float32",
25
+ "transformers_version": "4.48.2",
26
+ "type_vocab_size": 1,
27
+ "use_cache": true,
28
+ "vocab_size": 250002
29
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.48.2",
5
+ "pytorch": "2.1.2+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:f39a83110cec9b10758a7379f558fd1279dbc1c84d092ceaa48de2cf74125e47
3
+ size 1112197096
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_MultiHeadGeneralizedPooling",
12
+ "type": "sentence_generalized_pooling.multihead_generalized_pooling.MultiHeadGeneralizedPooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 128,
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:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719
3
+ size 17082987
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "max_length": 128,
51
+ "model_max_length": 128,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "<pad>",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "</s>",
57
+ "stride": 0,
58
+ "tokenizer_class": "XLMRobertaTokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "<unk>"
62
+ }