nabil-tazi commited on
Commit
6d3360a
·
verified ·
1 Parent(s): 29a27b7

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ 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
+ checkpoint-90/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ checkpoint-90/unigram.json filter=lfs diff=lfs merge=lfs -text
38
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
39
+ unigram.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
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,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ library_name: sentence-transformers
4
+ tags:
5
+ - sentence-transformers
6
+ - sentence-similarity
7
+ - feature-extraction
8
+ - autotrain
9
+ base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
10
+ widget:
11
+ - source_sentence: 'search_query: i love autotrain'
12
+ sentences:
13
+ - 'search_query: huggingface auto train'
14
+ - 'search_query: hugging face auto train'
15
+ - 'search_query: i love autotrain'
16
+ pipeline_tag: sentence-similarity
17
+ ---
18
+
19
+ # Model Trained Using AutoTrain
20
+
21
+ - Problem type: Sentence Transformers
22
+
23
+ ## Validation Metrics
24
+ loss: 0.12417348474264145
25
+
26
+ runtime: 1.2731
27
+
28
+ samples_per_second: 113.897
29
+
30
+ steps_per_second: 3.927
31
+
32
+ : 4.756756756756757
33
+
34
+ ## Usage
35
+
36
+ ### Direct Usage (Sentence Transformers)
37
+
38
+ First install the Sentence Transformers library:
39
+
40
+ ```bash
41
+ pip install -U sentence-transformers
42
+ ```
43
+
44
+ Then you can load this model and run inference.
45
+ ```python
46
+ from sentence_transformers import SentenceTransformer
47
+
48
+ # Download from the Hugging Face Hub
49
+ model = SentenceTransformer("sentence_transformers_model_id")
50
+ # Run inference
51
+ sentences = [
52
+ 'search_query: autotrain',
53
+ 'search_query: auto train',
54
+ 'search_query: i love autotrain',
55
+ ]
56
+ embeddings = model.encode(sentences)
57
+ print(embeddings.shape)
58
+
59
+ # Get the similarity scores for the embeddings
60
+ similarities = model.similarity(embeddings, embeddings)
61
+ print(similarities.shape)
62
+ ```
checkpoint-90/1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
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
+ }
checkpoint-90/README.md ADDED
@@ -0,0 +1,380 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:580
8
+ - loss:SoftmaxLoss
9
+ base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
10
+ widget:
11
+ - source_sentence: 眩い
12
+ sentences:
13
+ - cozy
14
+ - bright
15
+ - bright
16
+ - source_sentence: intense light
17
+ sentences:
18
+ - natural
19
+ - cozy
20
+ - bright
21
+ - source_sentence: 自然な照明
22
+ sentences:
23
+ - natural
24
+ - bright
25
+ - bright
26
+ - source_sentence: blazing lighting
27
+ sentences:
28
+ - cozy
29
+ - bright
30
+ - cozy
31
+ - source_sentence: ほんのり
32
+ sentences:
33
+ - cozy
34
+ - cozy
35
+ - bright
36
+ pipeline_tag: sentence-similarity
37
+ library_name: sentence-transformers
38
+ ---
39
+
40
+ # SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
41
+
42
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
43
+
44
+ ## Model Details
45
+
46
+ ### Model Description
47
+ - **Model Type:** Sentence Transformer
48
+ - **Base model:** [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) <!-- at revision 86741b4e3f5cb7765a600d3a3d55a0f6a6cb443d -->
49
+ - **Maximum Sequence Length:** 128 tokens
50
+ - **Output Dimensionality:** 384 dimensions
51
+ - **Similarity Function:** Cosine Similarity
52
+ <!-- - **Training Dataset:** Unknown -->
53
+ <!-- - **Language:** Unknown -->
54
+ <!-- - **License:** Unknown -->
55
+
56
+ ### Model Sources
57
+
58
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
59
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
60
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
61
+
62
+ ### Full Model Architecture
63
+
64
+ ```
65
+ SentenceTransformer(
66
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
67
+ (1): Pooling({'word_embedding_dimension': 384, '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})
68
+ )
69
+ ```
70
+
71
+ ## Usage
72
+
73
+ ### Direct Usage (Sentence Transformers)
74
+
75
+ First install the Sentence Transformers library:
76
+
77
+ ```bash
78
+ pip install -U sentence-transformers
79
+ ```
80
+
81
+ Then you can load this model and run inference.
82
+ ```python
83
+ from sentence_transformers import SentenceTransformer
84
+
85
+ # Download from the 🤗 Hub
86
+ model = SentenceTransformer("sentence_transformers_model_id")
87
+ # Run inference
88
+ sentences = [
89
+ 'ほんのり',
90
+ 'cozy',
91
+ 'cozy',
92
+ ]
93
+ embeddings = model.encode(sentences)
94
+ print(embeddings.shape)
95
+ # [3, 384]
96
+
97
+ # Get the similarity scores for the embeddings
98
+ similarities = model.similarity(embeddings, embeddings)
99
+ print(similarities.shape)
100
+ # [3, 3]
101
+ ```
102
+
103
+ <!--
104
+ ### Direct Usage (Transformers)
105
+
106
+ <details><summary>Click to see the direct usage in Transformers</summary>
107
+
108
+ </details>
109
+ -->
110
+
111
+ <!--
112
+ ### Downstream Usage (Sentence Transformers)
113
+
114
+ You can finetune this model on your own dataset.
115
+
116
+ <details><summary>Click to expand</summary>
117
+
118
+ </details>
119
+ -->
120
+
121
+ <!--
122
+ ### Out-of-Scope Use
123
+
124
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
125
+ -->
126
+
127
+ <!--
128
+ ## Bias, Risks and Limitations
129
+
130
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
131
+ -->
132
+
133
+ <!--
134
+ ### Recommendations
135
+
136
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
137
+ -->
138
+
139
+ ## Training Details
140
+
141
+ ### Training Dataset
142
+
143
+ #### Unnamed Dataset
144
+
145
+
146
+ * Size: 580 training samples
147
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
148
+ * Approximate statistics based on the first 580 samples:
149
+ | | premise | hypothesis | label |
150
+ |:--------|:---------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:-----------------------------------------------|
151
+ | type | string | string | int |
152
+ | details | <ul><li>min: 3 tokens</li><li>mean: 5.44 tokens</li><li>max: 10 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.37 tokens</li><li>max: 4 tokens</li></ul> | <ul><li>0: ~3.28%</li><li>1: ~96.72%</li></ul> |
153
+ * Samples:
154
+ | premise | hypothesis | label |
155
+ |:-------------------------------|:---------------------|:---------------|
156
+ | <code>blinding lighting</code> | <code>bright</code> | <code>1</code> |
157
+ | <code>standard</code> | <code>natural</code> | <code>1</code> |
158
+ | <code>vivid light</code> | <code>bright</code> | <code>1</code> |
159
+ * Loss: [<code>SoftmaxLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#softmaxloss)
160
+
161
+ ### Evaluation Dataset
162
+
163
+ #### Unnamed Dataset
164
+
165
+
166
+ * Size: 145 evaluation samples
167
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
168
+ * Approximate statistics based on the first 145 samples:
169
+ | | premise | hypothesis | label |
170
+ |:--------|:--------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:-----------------------------------------------|
171
+ | type | string | string | int |
172
+ | details | <ul><li>min: 3 tokens</li><li>mean: 5.36 tokens</li><li>max: 9 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 3.39 tokens</li><li>max: 4 tokens</li></ul> | <ul><li>0: ~3.45%</li><li>1: ~96.55%</li></ul> |
173
+ * Samples:
174
+ | premise | hypothesis | label |
175
+ |:--------------------------|:--------------------|:---------------|
176
+ | <code>ほんのり</code> | <code>cozy</code> | <code>1</code> |
177
+ | <code>not striking</code> | <code>cozy</code> | <code>1</code> |
178
+ | <code>とても明るい</code> | <code>bright</code> | <code>1</code> |
179
+ * Loss: [<code>SoftmaxLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#softmaxloss)
180
+
181
+ ### Training Hyperparameters
182
+ #### Non-Default Hyperparameters
183
+
184
+ - `eval_strategy`: epoch
185
+ - `per_device_train_batch_size`: 16
186
+ - `per_device_eval_batch_size`: 32
187
+ - `gradient_accumulation_steps`: 2
188
+ - `learning_rate`: 2e-05
189
+ - `num_train_epochs`: 5
190
+ - `warmup_ratio`: 0.1
191
+ - `fp16`: True
192
+ - `load_best_model_at_end`: True
193
+ - `ddp_find_unused_parameters`: False
194
+
195
+ #### All Hyperparameters
196
+ <details><summary>Click to expand</summary>
197
+
198
+ - `overwrite_output_dir`: False
199
+ - `do_predict`: False
200
+ - `eval_strategy`: epoch
201
+ - `prediction_loss_only`: True
202
+ - `per_device_train_batch_size`: 16
203
+ - `per_device_eval_batch_size`: 32
204
+ - `per_gpu_train_batch_size`: None
205
+ - `per_gpu_eval_batch_size`: None
206
+ - `gradient_accumulation_steps`: 2
207
+ - `eval_accumulation_steps`: None
208
+ - `torch_empty_cache_steps`: None
209
+ - `learning_rate`: 2e-05
210
+ - `weight_decay`: 0.0
211
+ - `adam_beta1`: 0.9
212
+ - `adam_beta2`: 0.999
213
+ - `adam_epsilon`: 1e-08
214
+ - `max_grad_norm`: 1.0
215
+ - `num_train_epochs`: 5
216
+ - `max_steps`: -1
217
+ - `lr_scheduler_type`: linear
218
+ - `lr_scheduler_kwargs`: {}
219
+ - `warmup_ratio`: 0.1
220
+ - `warmup_steps`: 0
221
+ - `log_level`: passive
222
+ - `log_level_replica`: warning
223
+ - `log_on_each_node`: True
224
+ - `logging_nan_inf_filter`: True
225
+ - `save_safetensors`: True
226
+ - `save_on_each_node`: False
227
+ - `save_only_model`: False
228
+ - `restore_callback_states_from_checkpoint`: False
229
+ - `no_cuda`: False
230
+ - `use_cpu`: False
231
+ - `use_mps_device`: False
232
+ - `seed`: 42
233
+ - `data_seed`: None
234
+ - `jit_mode_eval`: False
235
+ - `use_ipex`: False
236
+ - `bf16`: False
237
+ - `fp16`: True
238
+ - `fp16_opt_level`: O1
239
+ - `half_precision_backend`: auto
240
+ - `bf16_full_eval`: False
241
+ - `fp16_full_eval`: False
242
+ - `tf32`: None
243
+ - `local_rank`: 0
244
+ - `ddp_backend`: None
245
+ - `tpu_num_cores`: None
246
+ - `tpu_metrics_debug`: False
247
+ - `debug`: []
248
+ - `dataloader_drop_last`: False
249
+ - `dataloader_num_workers`: 0
250
+ - `dataloader_prefetch_factor`: None
251
+ - `past_index`: -1
252
+ - `disable_tqdm`: False
253
+ - `remove_unused_columns`: True
254
+ - `label_names`: None
255
+ - `load_best_model_at_end`: True
256
+ - `ignore_data_skip`: False
257
+ - `fsdp`: []
258
+ - `fsdp_min_num_params`: 0
259
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
260
+ - `fsdp_transformer_layer_cls_to_wrap`: None
261
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
262
+ - `deepspeed`: None
263
+ - `label_smoothing_factor`: 0.0
264
+ - `optim`: adamw_torch
265
+ - `optim_args`: None
266
+ - `adafactor`: False
267
+ - `group_by_length`: False
268
+ - `length_column_name`: length
269
+ - `ddp_find_unused_parameters`: False
270
+ - `ddp_bucket_cap_mb`: None
271
+ - `ddp_broadcast_buffers`: False
272
+ - `dataloader_pin_memory`: True
273
+ - `dataloader_persistent_workers`: False
274
+ - `skip_memory_metrics`: True
275
+ - `use_legacy_prediction_loop`: False
276
+ - `push_to_hub`: False
277
+ - `resume_from_checkpoint`: None
278
+ - `hub_model_id`: None
279
+ - `hub_strategy`: every_save
280
+ - `hub_private_repo`: None
281
+ - `hub_always_push`: False
282
+ - `gradient_checkpointing`: False
283
+ - `gradient_checkpointing_kwargs`: None
284
+ - `include_inputs_for_metrics`: False
285
+ - `include_for_metrics`: []
286
+ - `eval_do_concat_batches`: True
287
+ - `fp16_backend`: auto
288
+ - `push_to_hub_model_id`: None
289
+ - `push_to_hub_organization`: None
290
+ - `mp_parameters`:
291
+ - `auto_find_batch_size`: False
292
+ - `full_determinism`: False
293
+ - `torchdynamo`: None
294
+ - `ray_scope`: last
295
+ - `ddp_timeout`: 1800
296
+ - `torch_compile`: False
297
+ - `torch_compile_backend`: None
298
+ - `torch_compile_mode`: None
299
+ - `dispatch_batches`: None
300
+ - `split_batches`: None
301
+ - `include_tokens_per_second`: False
302
+ - `include_num_input_tokens_seen`: False
303
+ - `neftune_noise_alpha`: None
304
+ - `optim_target_modules`: None
305
+ - `batch_eval_metrics`: False
306
+ - `eval_on_start`: False
307
+ - `use_liger_kernel`: False
308
+ - `eval_use_gather_object`: False
309
+ - `average_tokens_across_devices`: False
310
+ - `prompts`: None
311
+ - `batch_sampler`: batch_sampler
312
+ - `multi_dataset_batch_sampler`: proportional
313
+
314
+ </details>
315
+
316
+ ### Training Logs
317
+ | Epoch | Step | Training Loss | Validation Loss |
318
+ |:------:|:----:|:-------------:|:---------------:|
319
+ | 0.3784 | 7 | 0.8088 | - |
320
+ | 0.7568 | 14 | 0.4861 | - |
321
+ | 1.0 | 19 | - | 0.1968 |
322
+ | 1.1081 | 21 | 0.2092 | - |
323
+ | 1.4865 | 28 | 0.2132 | - |
324
+ | 1.8649 | 35 | 0.0818 | - |
325
+ | 2.0 | 38 | - | 0.1315 |
326
+ | 2.2162 | 42 | 0.1802 | - |
327
+ | 2.5946 | 49 | 0.0716 | - |
328
+ | 2.9730 | 56 | 0.1526 | - |
329
+ | 3.0 | 57 | - | 0.1306 |
330
+ | 3.3243 | 63 | 0.0957 | - |
331
+ | 3.7027 | 70 | 0.1797 | - |
332
+ | 4.0 | 76 | - | 0.1242 |
333
+ | 4.0541 | 77 | 0.0561 | - |
334
+ | 4.4324 | 84 | 0.12 | - |
335
+ | 4.7568 | 90 | - | 0.1242 |
336
+
337
+
338
+ ### Framework Versions
339
+ - Python: 3.10.16
340
+ - Sentence Transformers: 3.3.1
341
+ - Transformers: 4.48.0
342
+ - PyTorch: 2.4.0
343
+ - Accelerate: 1.2.1
344
+ - Datasets: 3.2.0
345
+ - Tokenizers: 0.21.0
346
+
347
+ ## Citation
348
+
349
+ ### BibTeX
350
+
351
+ #### Sentence Transformers and SoftmaxLoss
352
+ ```bibtex
353
+ @inproceedings{reimers-2019-sentence-bert,
354
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
355
+ author = "Reimers, Nils and Gurevych, Iryna",
356
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
357
+ month = "11",
358
+ year = "2019",
359
+ publisher = "Association for Computational Linguistics",
360
+ url = "https://arxiv.org/abs/1908.10084",
361
+ }
362
+ ```
363
+
364
+ <!--
365
+ ## Glossary
366
+
367
+ *Clearly define terms in order to be accessible across audiences.*
368
+ -->
369
+
370
+ <!--
371
+ ## Model Card Authors
372
+
373
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
374
+ -->
375
+
376
+ <!--
377
+ ## Model Card Contact
378
+
379
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
380
+ -->
checkpoint-90/config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.48.0",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 250037
26
+ }
checkpoint-90/config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.3.1",
4
+ "transformers": "4.48.0",
5
+ "pytorch": "2.4.0"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
checkpoint-90/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54a57ac89787f3ecad363a5f64d63992b72682465b9e48fb9fb1fc9954013792
3
+ size 470637416
checkpoint-90/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
+ ]
checkpoint-90/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c5723ca704878f374005a5a0718e50575be42f818411c79d82a5d9a57dfda44
3
+ size 940226682
checkpoint-90/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5d7e316a64a7a6bdc01c8ee12bbca432c3a10e3bf79b377842add66d558aa25
3
+ size 13990
checkpoint-90/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:639b21ab22113e656504cfe845f1fadd6b4f71536a4a4212c5d649f9fc63dce3
3
+ size 1064
checkpoint-90/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 128,
3
+ "do_lower_case": false
4
+ }
checkpoint-90/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
+ }
checkpoint-90/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719
3
+ size 17082987
checkpoint-90/tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "do_lower_case": true,
48
+ "eos_token": "</s>",
49
+ "extra_special_tokens": {},
50
+ "mask_token": "<mask>",
51
+ "max_length": 128,
52
+ "model_max_length": 128,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "<pad>",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "</s>",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "<unk>"
65
+ }
checkpoint-90/trainer_state.json ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.12417348474264145,
3
+ "best_model_checkpoint": "autotrain-yr729-mb8s3/checkpoint-90",
4
+ "epoch": 4.756756756756757,
5
+ "eval_steps": 500,
6
+ "global_step": 90,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.3783783783783784,
13
+ "grad_norm": 3.7416491508483887,
14
+ "learning_rate": 1.555555555555556e-05,
15
+ "loss": 0.8088,
16
+ "step": 7
17
+ },
18
+ {
19
+ "epoch": 0.7567567567567568,
20
+ "grad_norm": 1.8437838554382324,
21
+ "learning_rate": 1.8765432098765433e-05,
22
+ "loss": 0.4861,
23
+ "step": 14
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_loss": 0.19678176939487457,
28
+ "eval_runtime": 1.8983,
29
+ "eval_samples_per_second": 76.386,
30
+ "eval_steps_per_second": 2.634,
31
+ "step": 19
32
+ },
33
+ {
34
+ "epoch": 1.1081081081081081,
35
+ "grad_norm": 0.8612255454063416,
36
+ "learning_rate": 1.7037037037037038e-05,
37
+ "loss": 0.2092,
38
+ "step": 21
39
+ },
40
+ {
41
+ "epoch": 1.4864864864864864,
42
+ "grad_norm": 1.2133591175079346,
43
+ "learning_rate": 1.5308641975308643e-05,
44
+ "loss": 0.2132,
45
+ "step": 28
46
+ },
47
+ {
48
+ "epoch": 1.864864864864865,
49
+ "grad_norm": 0.28924116492271423,
50
+ "learning_rate": 1.3580246913580248e-05,
51
+ "loss": 0.0818,
52
+ "step": 35
53
+ },
54
+ {
55
+ "epoch": 2.0,
56
+ "eval_loss": 0.13152343034744263,
57
+ "eval_runtime": 1.3326,
58
+ "eval_samples_per_second": 108.81,
59
+ "eval_steps_per_second": 3.752,
60
+ "step": 38
61
+ },
62
+ {
63
+ "epoch": 2.2162162162162162,
64
+ "grad_norm": 0.9542442560195923,
65
+ "learning_rate": 1.1851851851851852e-05,
66
+ "loss": 0.1802,
67
+ "step": 42
68
+ },
69
+ {
70
+ "epoch": 2.5945945945945947,
71
+ "grad_norm": 0.21355782449245453,
72
+ "learning_rate": 1.0123456790123458e-05,
73
+ "loss": 0.0716,
74
+ "step": 49
75
+ },
76
+ {
77
+ "epoch": 2.972972972972973,
78
+ "grad_norm": 1.5703434944152832,
79
+ "learning_rate": 8.395061728395062e-06,
80
+ "loss": 0.1526,
81
+ "step": 56
82
+ },
83
+ {
84
+ "epoch": 3.0,
85
+ "eval_loss": 0.13062049448490143,
86
+ "eval_runtime": 1.279,
87
+ "eval_samples_per_second": 113.367,
88
+ "eval_steps_per_second": 3.909,
89
+ "step": 57
90
+ },
91
+ {
92
+ "epoch": 3.3243243243243246,
93
+ "grad_norm": 0.21641123294830322,
94
+ "learning_rate": 6.666666666666667e-06,
95
+ "loss": 0.0957,
96
+ "step": 63
97
+ },
98
+ {
99
+ "epoch": 3.7027027027027026,
100
+ "grad_norm": 1.4033623933792114,
101
+ "learning_rate": 4.938271604938272e-06,
102
+ "loss": 0.1797,
103
+ "step": 70
104
+ },
105
+ {
106
+ "epoch": 4.0,
107
+ "eval_loss": 0.12420125305652618,
108
+ "eval_runtime": 1.3105,
109
+ "eval_samples_per_second": 110.647,
110
+ "eval_steps_per_second": 3.815,
111
+ "step": 76
112
+ },
113
+ {
114
+ "epoch": 4.054054054054054,
115
+ "grad_norm": 0.21779827773571014,
116
+ "learning_rate": 3.2098765432098767e-06,
117
+ "loss": 0.0561,
118
+ "step": 77
119
+ },
120
+ {
121
+ "epoch": 4.4324324324324325,
122
+ "grad_norm": 1.0017895698547363,
123
+ "learning_rate": 1.4814814814814815e-06,
124
+ "loss": 0.12,
125
+ "step": 84
126
+ },
127
+ {
128
+ "epoch": 4.756756756756757,
129
+ "eval_loss": 0.12417348474264145,
130
+ "eval_runtime": 1.4134,
131
+ "eval_samples_per_second": 102.592,
132
+ "eval_steps_per_second": 3.538,
133
+ "step": 90
134
+ }
135
+ ],
136
+ "logging_steps": 7,
137
+ "max_steps": 90,
138
+ "num_input_tokens_seen": 0,
139
+ "num_train_epochs": 5,
140
+ "save_steps": 500,
141
+ "stateful_callbacks": {
142
+ "EarlyStoppingCallback": {
143
+ "args": {
144
+ "early_stopping_patience": 5,
145
+ "early_stopping_threshold": 0.01
146
+ },
147
+ "attributes": {
148
+ "early_stopping_patience_counter": 3
149
+ }
150
+ },
151
+ "TrainerControl": {
152
+ "args": {
153
+ "should_epoch_stop": false,
154
+ "should_evaluate": false,
155
+ "should_log": false,
156
+ "should_save": true,
157
+ "should_training_stop": true
158
+ },
159
+ "attributes": {}
160
+ }
161
+ },
162
+ "total_flos": 0.0,
163
+ "train_batch_size": 16,
164
+ "trial_name": null,
165
+ "trial_params": null
166
+ }
checkpoint-90/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a81afbea2162dd6f119245455eb7f243b9a2356013d42564f6deeb0e4aea5033
3
+ size 5624
checkpoint-90/unigram.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
3
+ size 14763260
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.48.0",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 250037
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.3.1",
4
+ "transformers": "4.48.0",
5
+ "pytorch": "2.4.0"
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:54a57ac89787f3ecad363a5f64d63992b72682465b9e48fb9fb1fc9954013792
3
+ size 470637416
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
+ ]
runs/May22_12-19-46_r-nabil-tazi-ambiance-jp1-81f0tkec-3af16-gaqtq/events.out.tfevents.1747916389.r-nabil-tazi-ambiance-jp1-81f0tkec-3af16-gaqtq.107.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ed65eaee62c81f87baf899bf0d7c0a5facef17721b7d3d270f4bec7cc3d9991
3
- size 4425
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a912a58943db8051abe8fc6a79ece4d8d97ea9f61dcf68b507c32985019198ff
3
+ size 8587
runs/May22_12-19-46_r-nabil-tazi-ambiance-jp1-81f0tkec-3af16-gaqtq/events.out.tfevents.1747916782.r-nabil-tazi-ambiance-jp1-81f0tkec-3af16-gaqtq.107.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71e3ba0dc3f9b4af1e0e909989284d979a3d9ac50e1981377913f57c6acd5fda
3
+ size 354
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,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "do_lower_case": true,
48
+ "eos_token": "</s>",
49
+ "extra_special_tokens": {},
50
+ "mask_token": "<mask>",
51
+ "max_length": 128,
52
+ "model_max_length": 128,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "<pad>",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "</s>",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "<unk>"
65
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a81afbea2162dd6f119245455eb7f243b9a2356013d42564f6deeb0e4aea5033
3
+ size 5624
training_params.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-yr729-mb8s3/autotrain-data",
3
+ "model": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
4
+ "lr": 2e-05,
5
+ "epochs": 5,
6
+ "max_seq_length": 128,
7
+ "batch_size": 16,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 2,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "logging_steps": -1,
18
+ "project_name": "autotrain-yr729-mb8s3",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "fp16",
21
+ "save_total_limit": 1,
22
+ "push_to_hub": true,
23
+ "eval_strategy": "epoch",
24
+ "username": "nabil-tazi",
25
+ "log": "tensorboard",
26
+ "early_stopping_patience": 5,
27
+ "early_stopping_threshold": 0.01,
28
+ "trainer": "pair_class",
29
+ "sentence1_column": "autotrain_sentence1",
30
+ "sentence2_column": "autotrain_sentence2",
31
+ "sentence3_column": "autotrain_sentence3",
32
+ "target_column": "autotrain_target"
33
+ }
unigram.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
3
+ size 14763260