pyrac commited on
Commit
86c2b70
·
verified ·
1 Parent(s): 51e6594

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": 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,454 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - generated_from_trainer
10
+ - dataset_size:132020
11
+ - loss:MultipleNegativesRankingLoss
12
+ base_model: pyrac/rse_gestion_durable
13
+ widget:
14
+ - source_sentence: Les chemins extérieurs n'avaient pas de garde-corps pour sécuriser
15
+ les déplacements.
16
+ sentences:
17
+ - Les mesures d'accessibilité pour les personnes handicapées sont bien respectées
18
+ dans l'établissement
19
+ - Cette chambre nous a vraiment déçus, rien n’était comme on l’espérait.
20
+ - L'absence de barres d'appui rend cet hôtel moins pratique pour les personnes en
21
+ situation de handicap
22
+ - source_sentence: Les rampes étaient inclinées de façon inconfortable, limitant leur
23
+ accessibilité.
24
+ sentences:
25
+ - La chambre PMR n’était pas adaptée à notre confort, on en est ressortis frustrés.
26
+ - Les ascenseurs de l'hôtel sont trop petits pour un fauteuil roulant ce qui complique
27
+ les déplacements
28
+ - La sécurité est assurée avec un gardien présent.
29
+ - source_sentence: L'absence d'indication en braille était regrettable.
30
+ sentences:
31
+ - Parking sécurisé avec gardien.
32
+ - Il est difficile de trouver un restaurant accessible aux fauteuils roulants dans
33
+ cette ville car beaucoup d'entre eux ont des escaliers
34
+ - difficiles à parcourir en fauteuil roulant.
35
+ - source_sentence: Il n'y avait aucun plan en braille pour les visiteurs malvoyants.
36
+ sentences:
37
+ - Bon rapport qualité-prix pour le stationnement.
38
+ - Aucune signalétique tactile n'était présente dans les espaces communs.
39
+ - Le théâtre est mal conçu pour les fauteuils roulants et il est difficile de trouver
40
+ des places adaptées
41
+ - source_sentence: L'absence de cheminement accessible a rendu la visite difficile
42
+ pour ma famille.
43
+ sentences:
44
+ - Le lavabo était trop haut, ce qui le rendait inutilisable pour les personnes en
45
+ fauteuil roulant.
46
+ - Ce n’était pas du tout ce qu’on voulait, cette chambre a gâché notre séjour.
47
+ - L'hôtel n'offre pas assez de chambres adaptées aux fauteuils roulants et il est
48
+ difficile de réserver à la dernière minute
49
+ pipeline_tag: sentence-similarity
50
+ library_name: sentence-transformers
51
+ metrics:
52
+ - cosine_accuracy
53
+ model-index:
54
+ - name: MPNet base trained on AllNLI triplets
55
+ results:
56
+ - task:
57
+ type: triplet
58
+ name: Triplet
59
+ dataset:
60
+ name: all nli dev
61
+ type: all-nli-dev
62
+ metrics:
63
+ - type: cosine_accuracy
64
+ value: 1.0
65
+ name: Cosine Accuracy
66
+ - task:
67
+ type: triplet
68
+ name: Triplet
69
+ dataset:
70
+ name: all nli test
71
+ type: all-nli-test
72
+ metrics:
73
+ - type: cosine_accuracy
74
+ value: 1.0
75
+ name: Cosine Accuracy
76
+ ---
77
+
78
+ # MPNet base trained on AllNLI triplets
79
+
80
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [pyrac/rse_gestion_durable](https://huggingface.co/pyrac/rse_gestion_durable). 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.
81
+
82
+ ## Model Details
83
+
84
+ ### Model Description
85
+ - **Model Type:** Sentence Transformer
86
+ - **Base model:** [pyrac/rse_gestion_durable](https://huggingface.co/pyrac/rse_gestion_durable) <!-- at revision fc41501961df3b7a70af7a014df8e12349918dcf -->
87
+ - **Maximum Sequence Length:** 128 tokens
88
+ - **Output Dimensionality:** 768 dimensions
89
+ - **Similarity Function:** Cosine Similarity
90
+ <!-- - **Training Dataset:** Unknown -->
91
+ - **Language:** en
92
+ - **License:** apache-2.0
93
+
94
+ ### Model Sources
95
+
96
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
97
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
98
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
99
+
100
+ ### Full Model Architecture
101
+
102
+ ```
103
+ SentenceTransformer(
104
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
105
+ (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})
106
+ )
107
+ ```
108
+
109
+ ## Usage
110
+
111
+ ### Direct Usage (Sentence Transformers)
112
+
113
+ First install the Sentence Transformers library:
114
+
115
+ ```bash
116
+ pip install -U sentence-transformers
117
+ ```
118
+
119
+ Then you can load this model and run inference.
120
+ ```python
121
+ from sentence_transformers import SentenceTransformer
122
+
123
+ # Download from the 🤗 Hub
124
+ model = SentenceTransformer("pyrac/rse_handicap")
125
+ # Run inference
126
+ sentences = [
127
+ "L'absence de cheminement accessible a rendu la visite difficile pour ma famille.",
128
+ "L'hôtel n'offre pas assez de chambres adaptées aux fauteuils roulants et il est difficile de réserver à la dernière minute",
129
+ 'Ce n’était pas du tout ce qu’on voulait, cette chambre a gâché notre séjour.',
130
+ ]
131
+ embeddings = model.encode(sentences)
132
+ print(embeddings.shape)
133
+ # [3, 768]
134
+
135
+ # Get the similarity scores for the embeddings
136
+ similarities = model.similarity(embeddings, embeddings)
137
+ print(similarities.shape)
138
+ # [3, 3]
139
+ ```
140
+
141
+ <!--
142
+ ### Direct Usage (Transformers)
143
+
144
+ <details><summary>Click to see the direct usage in Transformers</summary>
145
+
146
+ </details>
147
+ -->
148
+
149
+ <!--
150
+ ### Downstream Usage (Sentence Transformers)
151
+
152
+ You can finetune this model on your own dataset.
153
+
154
+ <details><summary>Click to expand</summary>
155
+
156
+ </details>
157
+ -->
158
+
159
+ <!--
160
+ ### Out-of-Scope Use
161
+
162
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
163
+ -->
164
+
165
+ ## Evaluation
166
+
167
+ ### Metrics
168
+
169
+ #### Triplet
170
+
171
+ * Datasets: `all-nli-dev` and `all-nli-test`
172
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
173
+
174
+ | Metric | all-nli-dev | all-nli-test |
175
+ |:--------------------|:------------|:-------------|
176
+ | **cosine_accuracy** | **1.0** | **1.0** |
177
+
178
+ <!--
179
+ ## Bias, Risks and Limitations
180
+
181
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
182
+ -->
183
+
184
+ <!--
185
+ ### Recommendations
186
+
187
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
188
+ -->
189
+
190
+ ## Training Details
191
+
192
+ ### Training Dataset
193
+
194
+ #### Unnamed Dataset
195
+
196
+ * Size: 132,020 training samples
197
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
198
+ * Approximate statistics based on the first 1000 samples:
199
+ | | anchor | positive | negative |
200
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
201
+ | type | string | string | string |
202
+ | details | <ul><li>min: 7 tokens</li><li>mean: 20.24 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 23.96 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 19.23 tokens</li><li>max: 31 tokens</li></ul> |
203
+ * Samples:
204
+ | anchor | positive | negative |
205
+ |:----------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------|
206
+ | <code>Les panneaux d'indication manquaient de braille, ce qui pénalisait les malvoyants.</code> | <code>Hôtel bien situé et accessible mais l'absence de barres d'appui est un vrai point négatif</code> | <code>On a eu une chambre mal entretenue, rien ne fonctionnait comme il fallait.</code> |
207
+ | <code>Le cheminement extérieur n'était pas praticable pour les fauteuils roulants électriques.</code> | <code>Aucun confort dans cette chambre PMR, elle n'était absolument pas adaptée à nos besoins.</code> | <code>On a eu une chambre trop bruyante, c’était vraiment une mauvaise expérience.</code> |
208
+ | <code>Il n'y avait pas de signalisation concernant l'accessibilité pour les personnes à mobilité réduite</code> | <code>La chambre adaptée aux fauteuils roulants est spacieuse et permet de circuler sans aucune difficulté</code> | <code>Se retrouver dans cette chambre sans avoir rien demandé, ça a vraiment gâché notre séjour.</code> |
209
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
210
+ ```json
211
+ {
212
+ "scale": 20.0,
213
+ "similarity_fct": "cos_sim"
214
+ }
215
+ ```
216
+
217
+ ### Evaluation Dataset
218
+
219
+ #### Unnamed Dataset
220
+
221
+ * Size: 16,502 evaluation samples
222
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
223
+ * Approximate statistics based on the first 1000 samples:
224
+ | | anchor | positive | negative |
225
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
226
+ | type | string | string | string |
227
+ | details | <ul><li>min: 7 tokens</li><li>mean: 20.06 tokens</li><li>max: 55 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 24.09 tokens</li><li>max: 55 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 18.96 tokens</li><li>max: 31 tokens</li></ul> |
228
+ * Samples:
229
+ | anchor | positive | negative |
230
+ |:------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------|
231
+ | <code>Le cheminement accessible était interrompu par des obstacles imprévus.</code> | <code>étaient inaccessibles depuis un fauteuil roulant.</code> | <code>On n’a pas du tout aimé la chambre, l’équipement était dépassé et inconfortable.</code> |
232
+ | <code>était bien adapté pour les fauteuils roulants.</code> | <code>On a été choqués de nous retrouver dans une chambre accessible pour handicapé, c’était inconfortable.</code> | <code>Cette chambre était en tout point décevante, ça ne correspondait pas du tout à ce qu’on avait espéré.</code> |
233
+ | <code>Leur sensibilisation sur le handicap auditif semblaient insuffisantes.</code> | <code>Le cheminement était bien signalé avec des panneaux visuels et tactiles.</code> | <code>On s’est retrouvés dans une chambre qu’on n’avait pas demandée, ça nous a déstabilisés.</code> |
234
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
235
+ ```json
236
+ {
237
+ "scale": 20.0,
238
+ "similarity_fct": "cos_sim"
239
+ }
240
+ ```
241
+
242
+ ### Training Hyperparameters
243
+ #### Non-Default Hyperparameters
244
+
245
+ - `eval_strategy`: steps
246
+ - `per_device_train_batch_size`: 64
247
+ - `per_device_eval_batch_size`: 64
248
+ - `num_train_epochs`: 1
249
+ - `warmup_ratio`: 0.1
250
+ - `bf16`: True
251
+ - `batch_sampler`: no_duplicates
252
+
253
+ #### All Hyperparameters
254
+ <details><summary>Click to expand</summary>
255
+
256
+ - `overwrite_output_dir`: False
257
+ - `do_predict`: False
258
+ - `eval_strategy`: steps
259
+ - `prediction_loss_only`: True
260
+ - `per_device_train_batch_size`: 64
261
+ - `per_device_eval_batch_size`: 64
262
+ - `per_gpu_train_batch_size`: None
263
+ - `per_gpu_eval_batch_size`: None
264
+ - `gradient_accumulation_steps`: 1
265
+ - `eval_accumulation_steps`: None
266
+ - `torch_empty_cache_steps`: None
267
+ - `learning_rate`: 5e-05
268
+ - `weight_decay`: 0.0
269
+ - `adam_beta1`: 0.9
270
+ - `adam_beta2`: 0.999
271
+ - `adam_epsilon`: 1e-08
272
+ - `max_grad_norm`: 1.0
273
+ - `num_train_epochs`: 1
274
+ - `max_steps`: -1
275
+ - `lr_scheduler_type`: linear
276
+ - `lr_scheduler_kwargs`: {}
277
+ - `warmup_ratio`: 0.1
278
+ - `warmup_steps`: 0
279
+ - `log_level`: passive
280
+ - `log_level_replica`: warning
281
+ - `log_on_each_node`: True
282
+ - `logging_nan_inf_filter`: True
283
+ - `save_safetensors`: True
284
+ - `save_on_each_node`: False
285
+ - `save_only_model`: False
286
+ - `restore_callback_states_from_checkpoint`: False
287
+ - `no_cuda`: False
288
+ - `use_cpu`: False
289
+ - `use_mps_device`: False
290
+ - `seed`: 42
291
+ - `data_seed`: None
292
+ - `jit_mode_eval`: False
293
+ - `use_ipex`: False
294
+ - `bf16`: True
295
+ - `fp16`: False
296
+ - `fp16_opt_level`: O1
297
+ - `half_precision_backend`: auto
298
+ - `bf16_full_eval`: False
299
+ - `fp16_full_eval`: False
300
+ - `tf32`: None
301
+ - `local_rank`: 0
302
+ - `ddp_backend`: None
303
+ - `tpu_num_cores`: None
304
+ - `tpu_metrics_debug`: False
305
+ - `debug`: []
306
+ - `dataloader_drop_last`: False
307
+ - `dataloader_num_workers`: 0
308
+ - `dataloader_prefetch_factor`: None
309
+ - `past_index`: -1
310
+ - `disable_tqdm`: False
311
+ - `remove_unused_columns`: True
312
+ - `label_names`: None
313
+ - `load_best_model_at_end`: False
314
+ - `ignore_data_skip`: False
315
+ - `fsdp`: []
316
+ - `fsdp_min_num_params`: 0
317
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
318
+ - `fsdp_transformer_layer_cls_to_wrap`: None
319
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
320
+ - `deepspeed`: None
321
+ - `label_smoothing_factor`: 0.0
322
+ - `optim`: adamw_torch
323
+ - `optim_args`: None
324
+ - `adafactor`: False
325
+ - `group_by_length`: False
326
+ - `length_column_name`: length
327
+ - `ddp_find_unused_parameters`: None
328
+ - `ddp_bucket_cap_mb`: None
329
+ - `ddp_broadcast_buffers`: False
330
+ - `dataloader_pin_memory`: True
331
+ - `dataloader_persistent_workers`: False
332
+ - `skip_memory_metrics`: True
333
+ - `use_legacy_prediction_loop`: False
334
+ - `push_to_hub`: False
335
+ - `resume_from_checkpoint`: None
336
+ - `hub_model_id`: None
337
+ - `hub_strategy`: every_save
338
+ - `hub_private_repo`: None
339
+ - `hub_always_push`: False
340
+ - `gradient_checkpointing`: False
341
+ - `gradient_checkpointing_kwargs`: None
342
+ - `include_inputs_for_metrics`: False
343
+ - `include_for_metrics`: []
344
+ - `eval_do_concat_batches`: True
345
+ - `fp16_backend`: auto
346
+ - `push_to_hub_model_id`: None
347
+ - `push_to_hub_organization`: None
348
+ - `mp_parameters`:
349
+ - `auto_find_batch_size`: False
350
+ - `full_determinism`: False
351
+ - `torchdynamo`: None
352
+ - `ray_scope`: last
353
+ - `ddp_timeout`: 1800
354
+ - `torch_compile`: False
355
+ - `torch_compile_backend`: None
356
+ - `torch_compile_mode`: None
357
+ - `dispatch_batches`: None
358
+ - `split_batches`: None
359
+ - `include_tokens_per_second`: False
360
+ - `include_num_input_tokens_seen`: False
361
+ - `neftune_noise_alpha`: None
362
+ - `optim_target_modules`: None
363
+ - `batch_eval_metrics`: False
364
+ - `eval_on_start`: False
365
+ - `use_liger_kernel`: False
366
+ - `eval_use_gather_object`: False
367
+ - `average_tokens_across_devices`: False
368
+ - `prompts`: None
369
+ - `batch_sampler`: no_duplicates
370
+ - `multi_dataset_batch_sampler`: proportional
371
+
372
+ </details>
373
+
374
+ ### Training Logs
375
+ | Epoch | Step | Training Loss | Validation Loss | all-nli-dev_cosine_accuracy | all-nli-test_cosine_accuracy |
376
+ |:------:|:----:|:-------------:|:---------------:|:---------------------------:|:----------------------------:|
377
+ | 0.0485 | 100 | 4.6964 | 4.0874 | 1.0 | - |
378
+ | 0.0969 | 200 | 4.1044 | 4.0497 | 1.0 | - |
379
+ | 0.1454 | 300 | 4.0817 | 4.0305 | 1.0 | - |
380
+ | 0.1939 | 400 | 4.0734 | 4.0310 | 1.0 | - |
381
+ | 0.2424 | 500 | 4.0587 | 4.0209 | 1.0 | - |
382
+ | 0.2908 | 600 | 4.0625 | 4.0180 | 1.0 | - |
383
+ | 0.3393 | 700 | 4.053 | 4.0201 | 1.0 | - |
384
+ | 0.3878 | 800 | 4.0607 | 4.0116 | 1.0 | - |
385
+ | 0.4363 | 900 | 4.0511 | 4.0078 | 1.0 | - |
386
+ | 0.4847 | 1000 | 4.0433 | 4.0087 | 1.0 | - |
387
+ | 0.5332 | 1100 | 4.0385 | 4.0080 | 1.0 | - |
388
+ | 0.5817 | 1200 | 4.0413 | 4.0055 | 1.0 | - |
389
+ | 0.6302 | 1300 | 4.044 | 4.0016 | 1.0 | - |
390
+ | 0.6786 | 1400 | 4.0385 | 4.0010 | 1.0 | - |
391
+ | 0.7271 | 1500 | 4.037 | 3.9974 | 1.0 | - |
392
+ | 0.7756 | 1600 | 4.0364 | 3.9965 | 1.0 | - |
393
+ | 0.8240 | 1700 | 4.0337 | 3.9988 | 1.0 | - |
394
+ | 0.8725 | 1800 | 4.0362 | 3.9965 | 1.0 | - |
395
+ | 0.9210 | 1900 | 4.0293 | 3.9964 | 1.0 | - |
396
+ | 0.9695 | 2000 | 4.0317 | 3.9947 | 1.0 | - |
397
+ | -1 | -1 | - | - | - | 1.0 |
398
+
399
+
400
+ ### Framework Versions
401
+ - Python: 3.12.3
402
+ - Sentence Transformers: 3.4.1
403
+ - Transformers: 4.48.3
404
+ - PyTorch: 2.6.0+cu124
405
+ - Accelerate: 1.3.0
406
+ - Datasets: 3.2.0
407
+ - Tokenizers: 0.21.0
408
+
409
+ ## Citation
410
+
411
+ ### BibTeX
412
+
413
+ #### Sentence Transformers
414
+ ```bibtex
415
+ @inproceedings{reimers-2019-sentence-bert,
416
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
417
+ author = "Reimers, Nils and Gurevych, Iryna",
418
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
419
+ month = "11",
420
+ year = "2019",
421
+ publisher = "Association for Computational Linguistics",
422
+ url = "https://arxiv.org/abs/1908.10084",
423
+ }
424
+ ```
425
+
426
+ #### MultipleNegativesRankingLoss
427
+ ```bibtex
428
+ @misc{henderson2017efficient,
429
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
430
+ 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},
431
+ year={2017},
432
+ eprint={1705.00652},
433
+ archivePrefix={arXiv},
434
+ primaryClass={cs.CL}
435
+ }
436
+ ```
437
+
438
+ <!--
439
+ ## Glossary
440
+
441
+ *Clearly define terms in order to be accessible across audiences.*
442
+ -->
443
+
444
+ <!--
445
+ ## Model Card Authors
446
+
447
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
448
+ -->
449
+
450
+ <!--
451
+ ## Model Card Contact
452
+
453
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
454
+ -->
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "pyrac/rse_gestion_durable",
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.3",
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.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:180fca174bae06b18ced04f47dabcc80ba3ce651823cc0066e5d1b21c4b80013
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_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,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
+ }