ShauryaNova commited on
Commit
6db602e
1 Parent(s): 1baeff6

Upload folder using huggingface_hub

Browse files
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,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/all-MiniLM-L6-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: 9.164422988891602
25
+
26
+ validation_pearson_cosine: -0.10073561135203735
27
+
28
+ validation_spearman_cosine: -0.05129891760425771
29
+
30
+ validation_pearson_manhattan: -0.07223520049199797
31
+
32
+ validation_spearman_manhattan: -0.05129891760425771
33
+
34
+ validation_pearson_euclidean: -0.056592337170460805
35
+
36
+ validation_spearman_euclidean: -0.05129891760425771
37
+
38
+ validation_pearson_dot: -0.1007351930231386
39
+
40
+ validation_spearman_dot: -0.05129891760425771
41
+
42
+ validation_pearson_max: -0.056592337170460805
43
+
44
+ validation_spearman_max: -0.05129891760425771
45
+
46
+ runtime: 0.1267
47
+
48
+ samples_per_second: 39.454
49
+
50
+ steps_per_second: 7.891
51
+
52
+ : 3.0
53
+
54
+ ## Usage
55
+
56
+ ### Direct Usage (Sentence Transformers)
57
+
58
+ First install the Sentence Transformers library:
59
+
60
+ ```bash
61
+ pip install -U sentence-transformers
62
+ ```
63
+
64
+ Then you can load this model and run inference.
65
+ ```python
66
+ from sentence_transformers import SentenceTransformer
67
+
68
+ # Download from the Hugging Face Hub
69
+ model = SentenceTransformer("sentence_transformers_model_id")
70
+ # Run inference
71
+ sentences = [
72
+ 'search_query: autotrain',
73
+ 'search_query: auto train',
74
+ 'search_query: i love autotrain',
75
+ ]
76
+ embeddings = model.encode(sentences)
77
+ print(embeddings.shape)
78
+
79
+ # Get the similarity scores for the embeddings
80
+ similarities = model.similarity(embeddings, embeddings)
81
+ print(similarities.shape)
82
+ ```
checkpoint-6/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-6/README.md ADDED
@@ -0,0 +1,433 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/all-MiniLM-L6-v2
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ metrics:
7
+ - pearson_cosine
8
+ - spearman_cosine
9
+ - pearson_manhattan
10
+ - spearman_manhattan
11
+ - pearson_euclidean
12
+ - spearman_euclidean
13
+ - pearson_dot
14
+ - spearman_dot
15
+ - pearson_max
16
+ - spearman_max
17
+ pipeline_tag: sentence-similarity
18
+ tags:
19
+ - sentence-transformers
20
+ - sentence-similarity
21
+ - feature-extraction
22
+ - generated_from_trainer
23
+ - dataset_size:20
24
+ - loss:CoSENTLoss
25
+ widget: []
26
+ model-index:
27
+ - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
28
+ results:
29
+ - task:
30
+ type: semantic-similarity
31
+ name: Semantic Similarity
32
+ dataset:
33
+ name: validation
34
+ type: validation
35
+ metrics:
36
+ - type: pearson_cosine
37
+ value: -0.10073561135203735
38
+ name: Pearson Cosine
39
+ - type: spearman_cosine
40
+ value: -0.05129891760425771
41
+ name: Spearman Cosine
42
+ - type: pearson_manhattan
43
+ value: -0.07223520049199797
44
+ name: Pearson Manhattan
45
+ - type: spearman_manhattan
46
+ value: -0.05129891760425771
47
+ name: Spearman Manhattan
48
+ - type: pearson_euclidean
49
+ value: -0.056592337170460805
50
+ name: Pearson Euclidean
51
+ - type: spearman_euclidean
52
+ value: -0.05129891760425771
53
+ name: Spearman Euclidean
54
+ - type: pearson_dot
55
+ value: -0.1007351930231386
56
+ name: Pearson Dot
57
+ - type: spearman_dot
58
+ value: -0.05129891760425771
59
+ name: Spearman Dot
60
+ - type: pearson_max
61
+ value: -0.056592337170460805
62
+ name: Pearson Max
63
+ - type: spearman_max
64
+ value: -0.05129891760425771
65
+ name: Spearman Max
66
+ ---
67
+
68
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
69
+
70
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-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.
71
+
72
+ ## Model Details
73
+
74
+ ### Model Description
75
+ - **Model Type:** Sentence Transformer
76
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision 8b3219a92973c328a8e22fadcfa821b5dc75636a -->
77
+ - **Maximum Sequence Length:** 256 tokens
78
+ - **Output Dimensionality:** 384 tokens
79
+ - **Similarity Function:** Cosine Similarity
80
+ <!-- - **Training Dataset:** Unknown -->
81
+ <!-- - **Language:** Unknown -->
82
+ <!-- - **License:** Unknown -->
83
+
84
+ ### Model Sources
85
+
86
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
87
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
88
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
89
+
90
+ ### Full Model Architecture
91
+
92
+ ```
93
+ SentenceTransformer(
94
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False}) with Transformer model: BertModel
95
+ (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})
96
+ (2): Normalize()
97
+ )
98
+ ```
99
+
100
+ ## Usage
101
+
102
+ ### Direct Usage (Sentence Transformers)
103
+
104
+ First install the Sentence Transformers library:
105
+
106
+ ```bash
107
+ pip install -U sentence-transformers
108
+ ```
109
+
110
+ Then you can load this model and run inference.
111
+ ```python
112
+ from sentence_transformers import SentenceTransformer
113
+
114
+ # Download from the 🤗 Hub
115
+ model = SentenceTransformer("sentence_transformers_model_id")
116
+ # Run inference
117
+ sentences = [
118
+ 'The weather is lovely today.',
119
+ "It's so sunny outside!",
120
+ 'He drove to the stadium.',
121
+ ]
122
+ embeddings = model.encode(sentences)
123
+ print(embeddings.shape)
124
+ # [3, 384]
125
+
126
+ # Get the similarity scores for the embeddings
127
+ similarities = model.similarity(embeddings, embeddings)
128
+ print(similarities.shape)
129
+ # [3, 3]
130
+ ```
131
+
132
+ <!--
133
+ ### Direct Usage (Transformers)
134
+
135
+ <details><summary>Click to see the direct usage in Transformers</summary>
136
+
137
+ </details>
138
+ -->
139
+
140
+ <!--
141
+ ### Downstream Usage (Sentence Transformers)
142
+
143
+ You can finetune this model on your own dataset.
144
+
145
+ <details><summary>Click to expand</summary>
146
+
147
+ </details>
148
+ -->
149
+
150
+ <!--
151
+ ### Out-of-Scope Use
152
+
153
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
154
+ -->
155
+
156
+ ## Evaluation
157
+
158
+ ### Metrics
159
+
160
+ #### Semantic Similarity
161
+ * Dataset: `validation`
162
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
163
+
164
+ | Metric | Value |
165
+ |:-------------------|:------------|
166
+ | pearson_cosine | -0.1007 |
167
+ | spearman_cosine | -0.0513 |
168
+ | pearson_manhattan | -0.0722 |
169
+ | spearman_manhattan | -0.0513 |
170
+ | pearson_euclidean | -0.0566 |
171
+ | spearman_euclidean | -0.0513 |
172
+ | pearson_dot | -0.1007 |
173
+ | spearman_dot | -0.0513 |
174
+ | pearson_max | -0.0566 |
175
+ | **spearman_max** | **-0.0513** |
176
+
177
+ <!--
178
+ ## Bias, Risks and Limitations
179
+
180
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
181
+ -->
182
+
183
+ <!--
184
+ ### Recommendations
185
+
186
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
187
+ -->
188
+
189
+ ## Training Details
190
+
191
+ ### Training Dataset
192
+
193
+ #### Unnamed Dataset
194
+
195
+
196
+ * Size: 20 training samples
197
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
198
+ * Approximate statistics based on the first 1000 samples:
199
+ | | sentence1 | sentence2 | score |
200
+ |:--------|:--------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
201
+ | type | string | string | float |
202
+ | details | <ul><li>min: 4 tokens</li><li>mean: 7.0 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 18.2 tokens</li><li>max: 31 tokens</li></ul> | <ul><li>min: 0.1</li><li>mean: 0.84</li><li>max: 1.0</li></ul> |
203
+ * Samples:
204
+ | sentence1 | sentence2 | score |
205
+ |:--------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
206
+ | <code>search for anti slip shoes</code> | <code>Mens Shower Shoes With Holes Dry Quickly Bath Slippers Womens Non Slip Indoor Home Bedroom Pool Spa Guest College Dorm</code> | <code>0.8</code> |
207
+ | <code>men slim jeans</code> | <code>Urbano Fashion Mens Slim Fit Jeans</code> | <code>0.9</code> |
208
+ | <code>Looking for a red cotton shirt</code> | <code>Cotton Regular Fit Solid Red Shirt</code> | <code>1.0</code> |
209
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
210
+ ```json
211
+ {
212
+ "scale": 20.0,
213
+ "similarity_fct": "pairwise_cos_sim"
214
+ }
215
+ ```
216
+
217
+ ### Evaluation Dataset
218
+
219
+ #### Unnamed Dataset
220
+
221
+
222
+ * Size: 5 evaluation samples
223
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
224
+ * Approximate statistics based on the first 1000 samples:
225
+ | | sentence1 | sentence2 | score |
226
+ |:--------|:-------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
227
+ | type | string | string | float |
228
+ | details | <ul><li>min: 4 tokens</li><li>mean: 5.6 tokens</li><li>max: 8 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 17.8 tokens</li><li>max: 27 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.54</li><li>max: 0.9</li></ul> |
229
+ * Samples:
230
+ | sentence1 | sentence2 | score |
231
+ |:-------------------------------------------|:----------------------------------------------------------------------------------------------------|:-----------------|
232
+ | <code>sandal</code> | <code>Beslip Womens Mens Garden Clogs Shoes with Arch Support Unisex Comfort Slip-on Sandals</code> | <code>0.9</code> |
233
+ | <code>Looking for a men black jeans</code> | <code>DENNIE FOSTE Men Regular Mid Rise Black Jeans</code> | <code>0.9</code> |
234
+ | <code>comfortable running shoes</code> | <code>NYKD Everyday Stylish Running Sports Jacket with Pockets for Women</code> | <code>0.0</code> |
235
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
236
+ ```json
237
+ {
238
+ "scale": 20.0,
239
+ "similarity_fct": "pairwise_cos_sim"
240
+ }
241
+ ```
242
+
243
+ ### Training Hyperparameters
244
+ #### Non-Default Hyperparameters
245
+
246
+ - `eval_strategy`: epoch
247
+ - `per_device_eval_batch_size`: 16
248
+ - `learning_rate`: 3e-05
249
+ - `lr_scheduler_type`: cosine
250
+ - `warmup_ratio`: 0.1
251
+ - `load_best_model_at_end`: True
252
+ - `ddp_find_unused_parameters`: False
253
+
254
+ #### All Hyperparameters
255
+ <details><summary>Click to expand</summary>
256
+
257
+ - `overwrite_output_dir`: False
258
+ - `do_predict`: False
259
+ - `eval_strategy`: epoch
260
+ - `prediction_loss_only`: True
261
+ - `per_device_train_batch_size`: 8
262
+ - `per_device_eval_batch_size`: 16
263
+ - `per_gpu_train_batch_size`: None
264
+ - `per_gpu_eval_batch_size`: None
265
+ - `gradient_accumulation_steps`: 1
266
+ - `eval_accumulation_steps`: None
267
+ - `learning_rate`: 3e-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`: 3
274
+ - `max_steps`: -1
275
+ - `lr_scheduler_type`: cosine
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`: False
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`: True
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`: False
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`: False
339
+ - `hub_always_push`: False
340
+ - `gradient_checkpointing`: False
341
+ - `gradient_checkpointing_kwargs`: None
342
+ - `include_inputs_for_metrics`: False
343
+ - `eval_do_concat_batches`: True
344
+ - `fp16_backend`: auto
345
+ - `push_to_hub_model_id`: None
346
+ - `push_to_hub_organization`: None
347
+ - `mp_parameters`:
348
+ - `auto_find_batch_size`: False
349
+ - `full_determinism`: False
350
+ - `torchdynamo`: None
351
+ - `ray_scope`: last
352
+ - `ddp_timeout`: 1800
353
+ - `torch_compile`: False
354
+ - `torch_compile_backend`: None
355
+ - `torch_compile_mode`: None
356
+ - `dispatch_batches`: None
357
+ - `split_batches`: None
358
+ - `include_tokens_per_second`: False
359
+ - `include_num_input_tokens_seen`: False
360
+ - `neftune_noise_alpha`: None
361
+ - `optim_target_modules`: None
362
+ - `batch_eval_metrics`: False
363
+ - `eval_on_start`: False
364
+ - `batch_sampler`: batch_sampler
365
+ - `multi_dataset_batch_sampler`: proportional
366
+
367
+ </details>
368
+
369
+ ### Training Logs
370
+ | Epoch | Step | Training Loss | loss | validation_spearman_max |
371
+ |:------:|:----:|:-------------:|:------:|:-----------------------:|
372
+ | 0.3333 | 1 | 5.5753 | - | - |
373
+ | 0.6667 | 2 | 3.8769 | - | - |
374
+ | 1.0 | 3 | 0.6162 | 9.5527 | -0.0513 |
375
+ | 1.3333 | 4 | 0.9801 | - | - |
376
+ | 1.6667 | 5 | 1.1051 | - | - |
377
+ | 2.0 | 6 | 0.6455 | 9.1644 | -0.0513 |
378
+
379
+
380
+ ### Framework Versions
381
+ - Python: 3.10.14
382
+ - Sentence Transformers: 3.0.1
383
+ - Transformers: 4.42.2
384
+ - PyTorch: 2.3.0
385
+ - Accelerate: 0.31.0
386
+ - Datasets: 2.19.1
387
+ - Tokenizers: 0.19.1
388
+
389
+ ## Citation
390
+
391
+ ### BibTeX
392
+
393
+ #### Sentence Transformers
394
+ ```bibtex
395
+ @inproceedings{reimers-2019-sentence-bert,
396
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
397
+ author = "Reimers, Nils and Gurevych, Iryna",
398
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
399
+ month = "11",
400
+ year = "2019",
401
+ publisher = "Association for Computational Linguistics",
402
+ url = "https://arxiv.org/abs/1908.10084",
403
+ }
404
+ ```
405
+
406
+ #### CoSENTLoss
407
+ ```bibtex
408
+ @online{kexuefm-8847,
409
+ title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
410
+ author={Su Jianlin},
411
+ year={2022},
412
+ month={Jan},
413
+ url={https://kexue.fm/archives/8847},
414
+ }
415
+ ```
416
+
417
+ <!--
418
+ ## Glossary
419
+
420
+ *Clearly define terms in order to be accessible across audiences.*
421
+ -->
422
+
423
+ <!--
424
+ ## Model Card Authors
425
+
426
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
427
+ -->
428
+
429
+ <!--
430
+ ## Model Card Contact
431
+
432
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
433
+ -->
checkpoint-6/config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/all-MiniLM-L6-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": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.42.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
checkpoint-6/config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.42.2",
5
+ "pytorch": "2.3.0"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
checkpoint-6/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd3b7ba3f8100aa4b65ebb3e871dd6971caf3c1e55ad508b0cca54232710233a
3
+ size 90864192
checkpoint-6/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
+ ]
checkpoint-6/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28eb400345ca1d8e50ac7c70d11bdbd5d2f42e6194510f07d88317ce5d18943c
3
+ size 180604922
checkpoint-6/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d191496ed1b70d943d91ed8af36fcb765e438312f411b9f9b8b0f3951a44b68f
3
+ size 13990
checkpoint-6/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bfdadea369dc5f69fa90eedbfa1ef5660408a25f9fad39eabe661f3ad8faa60
3
+ size 1064
checkpoint-6/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
checkpoint-6/special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
checkpoint-6/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-6/tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "max_length": 128,
50
+ "model_max_length": 256,
51
+ "never_split": null,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
checkpoint-6/trainer_state.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 9.164422988891602,
3
+ "best_model_checkpoint": "autotrain-tuac9-vfsuc/checkpoint-6",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 6,
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.3333333333333333,
13
+ "grad_norm": 141.18881225585938,
14
+ "learning_rate": 3e-05,
15
+ "loss": 5.5753,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6666666666666666,
20
+ "grad_norm": 113.59857940673828,
21
+ "learning_rate": 2.8858192987669303e-05,
22
+ "loss": 3.8769,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "grad_norm": 62.12335205078125,
28
+ "learning_rate": 2.5606601717798212e-05,
29
+ "loss": 0.6162,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 1.0,
34
+ "eval_loss": 9.552681922912598,
35
+ "eval_runtime": 0.1556,
36
+ "eval_samples_per_second": 32.136,
37
+ "eval_steps_per_second": 6.427,
38
+ "eval_validation_pearson_cosine": -0.05720032020910332,
39
+ "eval_validation_pearson_dot": -0.05720025912665361,
40
+ "eval_validation_pearson_euclidean": -0.00422203561181958,
41
+ "eval_validation_pearson_manhattan": -0.016885377525531375,
42
+ "eval_validation_pearson_max": -0.00422203561181958,
43
+ "eval_validation_spearman_cosine": -0.05129891760425771,
44
+ "eval_validation_spearman_dot": -0.05129891760425771,
45
+ "eval_validation_spearman_euclidean": -0.05129891760425771,
46
+ "eval_validation_spearman_manhattan": -0.05129891760425771,
47
+ "eval_validation_spearman_max": -0.05129891760425771,
48
+ "step": 3
49
+ },
50
+ {
51
+ "epoch": 1.3333333333333333,
52
+ "grad_norm": 45.422462463378906,
53
+ "learning_rate": 2.074025148547635e-05,
54
+ "loss": 0.9801,
55
+ "step": 4
56
+ },
57
+ {
58
+ "epoch": 1.6666666666666665,
59
+ "grad_norm": 78.78740692138672,
60
+ "learning_rate": 1.5e-05,
61
+ "loss": 1.1051,
62
+ "step": 5
63
+ },
64
+ {
65
+ "epoch": 2.0,
66
+ "grad_norm": 40.24138641357422,
67
+ "learning_rate": 9.259748514523654e-06,
68
+ "loss": 0.6455,
69
+ "step": 6
70
+ },
71
+ {
72
+ "epoch": 2.0,
73
+ "eval_loss": 9.164422988891602,
74
+ "eval_runtime": 0.1273,
75
+ "eval_samples_per_second": 39.273,
76
+ "eval_steps_per_second": 7.855,
77
+ "eval_validation_pearson_cosine": -0.10073561135203735,
78
+ "eval_validation_pearson_dot": -0.1007351930231386,
79
+ "eval_validation_pearson_euclidean": -0.056592337170460805,
80
+ "eval_validation_pearson_manhattan": -0.07223520049199797,
81
+ "eval_validation_pearson_max": -0.056592337170460805,
82
+ "eval_validation_spearman_cosine": -0.05129891760425771,
83
+ "eval_validation_spearman_dot": -0.05129891760425771,
84
+ "eval_validation_spearman_euclidean": -0.05129891760425771,
85
+ "eval_validation_spearman_manhattan": -0.05129891760425771,
86
+ "eval_validation_spearman_max": -0.05129891760425771,
87
+ "step": 6
88
+ }
89
+ ],
90
+ "logging_steps": 1,
91
+ "max_steps": 9,
92
+ "num_input_tokens_seen": 0,
93
+ "num_train_epochs": 3,
94
+ "save_steps": 500,
95
+ "stateful_callbacks": {
96
+ "EarlyStoppingCallback": {
97
+ "args": {
98
+ "early_stopping_patience": 5,
99
+ "early_stopping_threshold": 0.01
100
+ },
101
+ "attributes": {
102
+ "early_stopping_patience_counter": 0
103
+ }
104
+ },
105
+ "TrainerControl": {
106
+ "args": {
107
+ "should_epoch_stop": false,
108
+ "should_evaluate": false,
109
+ "should_log": false,
110
+ "should_save": true,
111
+ "should_training_stop": false
112
+ },
113
+ "attributes": {}
114
+ }
115
+ },
116
+ "total_flos": 0.0,
117
+ "train_batch_size": 8,
118
+ "trial_name": null,
119
+ "trial_params": null
120
+ }
checkpoint-6/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d53a9d313f046489b3b19c30c4bc06623976fd4927ed69f7db81e0b6595c3616
3
+ size 5368
checkpoint-6/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/all-MiniLM-L6-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": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.42.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.42.2",
5
+ "pytorch": "2.3.0"
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:bd3b7ba3f8100aa4b65ebb3e871dd6971caf3c1e55ad508b0cca54232710233a
3
+ size 90864192
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
+ ]
runs/Jun28_15-16-38_r-shauryanova-ayush-mhx3ukze-cc8ff-05fj6/events.out.tfevents.1719587800.r-shauryanova-ayush-mhx3ukze-cc8ff-05fj6.101.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ed4fb551deb25770e5ecd67a76156b9fe02d5115066077c6da57f43820642b81
3
- size 4231
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dae96f1afe02dd09442820eec89d09bd5df50930c11cb5186d54db86af1301c
3
+ size 9295
runs/Jun28_15-16-38_r-shauryanova-ayush-mhx3ukze-cc8ff-05fj6/events.out.tfevents.1719587809.r-shauryanova-ayush-mhx3ukze-cc8ff-05fj6.101.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:683e01e10438c5cd2ad0312071a0849f726ba4247b449205a7c3ffb78829d051
3
+ size 1039
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "max_length": 128,
50
+ "model_max_length": 256,
51
+ "never_split": null,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d53a9d313f046489b3b19c30c4bc06623976fd4927ed69f7db81e0b6595c3616
3
+ size 5368
training_params.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-tuac9-vfsuc/autotrain-data",
3
+ "model": "sentence-transformers/all-MiniLM-L6-v2",
4
+ "lr": 3e-05,
5
+ "epochs": 3,
6
+ "max_seq_length": 128,
7
+ "batch_size": 8,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "cosine",
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-tuac9-vfsuc",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "none",
21
+ "save_total_limit": 1,
22
+ "push_to_hub": true,
23
+ "eval_strategy": "epoch",
24
+ "username": "ShauryaNova",
25
+ "log": "tensorboard",
26
+ "early_stopping_patience": 5,
27
+ "early_stopping_threshold": 0.01,
28
+ "trainer": "pair_score",
29
+ "sentence1_column": "autotrain_sentence1",
30
+ "sentence2_column": "autotrain_sentence2",
31
+ "sentence3_column": "autotrain_sentence3",
32
+ "target_column": "autotrain_target"
33
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff