Weike1000 commited on
Commit
4ecb00a
·
verified ·
1 Parent(s): 0a680d5

Add new SentenceTransformer model

Browse files
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,522 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:1275
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: sentence-transformers/all-mpnet-base-v2
11
+ widget:
12
+ - source_sentence: snickers almond
13
+ sentences:
14
+ - Cheetos Flamin' Hot
15
+ - Snickers Almond
16
+ - Tostitos Hint of Lime
17
+ - source_sentence: hershey's special dark
18
+ sentences:
19
+ - Hershey's Special Dark Chocolate Bar
20
+ - 5-Hour Energy Shot
21
+ - Hershey's Milk Chocolate Bar
22
+ - source_sentence: goldfish classic
23
+ sentences:
24
+ - 3 Musketeers Bar
25
+ - Goldfish Crackers
26
+ - Hot Pockets
27
+ - source_sentence: skittles
28
+ sentences:
29
+ - Black Tea
30
+ - Skittles
31
+ - Chips Ahoy! Chewy Cookies
32
+ - source_sentence: cheddar cheese
33
+ sentences:
34
+ - Cucumber
35
+ - Cheddar Cheese Block
36
+ - Coffee-mate Creamer
37
+ pipeline_tag: sentence-similarity
38
+ library_name: sentence-transformers
39
+ ---
40
+
41
+ # SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
42
+
43
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2). 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.
44
+
45
+ ## Model Details
46
+
47
+ ### Model Description
48
+ - **Model Type:** Sentence Transformer
49
+ - **Base model:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) <!-- at revision 12e86a3c702fc3c50205a8db88f0ec7c0b6b94a0 -->
50
+ - **Maximum Sequence Length:** 384 tokens
51
+ - **Output Dimensionality:** 768 dimensions
52
+ - **Similarity Function:** Cosine Similarity
53
+ <!-- - **Training Dataset:** Unknown -->
54
+ <!-- - **Language:** Unknown -->
55
+ <!-- - **License:** Unknown -->
56
+
57
+ ### Model Sources
58
+
59
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
60
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
61
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
62
+
63
+ ### Full Model Architecture
64
+
65
+ ```
66
+ SentenceTransformer(
67
+ (0): Transformer({'max_seq_length': 384, 'do_lower_case': False, 'architecture': 'MPNetModel'})
68
+ (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})
69
+ (2): Normalize()
70
+ )
71
+ ```
72
+
73
+ ## Usage
74
+
75
+ ### Direct Usage (Sentence Transformers)
76
+
77
+ First install the Sentence Transformers library:
78
+
79
+ ```bash
80
+ pip install -U sentence-transformers
81
+ ```
82
+
83
+ Then you can load this model and run inference.
84
+ ```python
85
+ from sentence_transformers import SentenceTransformer
86
+
87
+ # Download from the 🤗 Hub
88
+ model = SentenceTransformer("Weike1000/Snack_Embed")
89
+ # Run inference
90
+ sentences = [
91
+ 'cheddar cheese',
92
+ 'Cheddar Cheese Block',
93
+ 'Cucumber',
94
+ ]
95
+ embeddings = model.encode(sentences)
96
+ print(embeddings.shape)
97
+ # [3, 768]
98
+
99
+ # Get the similarity scores for the embeddings
100
+ similarities = model.similarity(embeddings, embeddings)
101
+ print(similarities)
102
+ # tensor([[1.0000, 0.9452, 0.1340],
103
+ # [0.9452, 1.0000, 0.1356],
104
+ # [0.1340, 0.1356, 1.0000]])
105
+ ```
106
+
107
+ <!--
108
+ ### Direct Usage (Transformers)
109
+
110
+ <details><summary>Click to see the direct usage in Transformers</summary>
111
+
112
+ </details>
113
+ -->
114
+
115
+ <!--
116
+ ### Downstream Usage (Sentence Transformers)
117
+
118
+ You can finetune this model on your own dataset.
119
+
120
+ <details><summary>Click to expand</summary>
121
+
122
+ </details>
123
+ -->
124
+
125
+ <!--
126
+ ### Out-of-Scope Use
127
+
128
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
129
+ -->
130
+
131
+ <!--
132
+ ## Bias, Risks and Limitations
133
+
134
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
135
+ -->
136
+
137
+ <!--
138
+ ### Recommendations
139
+
140
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
141
+ -->
142
+
143
+ ## Training Details
144
+
145
+ ### Training Dataset
146
+
147
+ #### Unnamed Dataset
148
+
149
+ * Size: 1,275 training samples
150
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
151
+ * Approximate statistics based on the first 1000 samples:
152
+ | | sentence_0 | sentence_1 |
153
+ |:--------|:---------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
154
+ | type | string | string |
155
+ | details | <ul><li>min: 3 tokens</li><li>mean: 5.33 tokens</li><li>max: 11 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 6.4 tokens</li><li>max: 15 tokens</li></ul> |
156
+ * Samples:
157
+ | sentence_0 | sentence_1 |
158
+ |:------------------------------|:------------------------------------------------|
159
+ | <code>fudge stripes</code> | <code>Keebler Fudge Stripes Cookies</code> |
160
+ | <code>gummy bears bag</code> | <code>Gummy Bears</code> |
161
+ | <code>kind bar caramel</code> | <code>Kind Bar Caramel Almond & Sea Salt</code> |
162
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
163
+ ```json
164
+ {
165
+ "scale": 20.0,
166
+ "similarity_fct": "cos_sim"
167
+ }
168
+ ```
169
+
170
+ ### Training Hyperparameters
171
+ #### Non-Default Hyperparameters
172
+
173
+ - `per_device_train_batch_size`: 16
174
+ - `per_device_eval_batch_size`: 16
175
+ - `num_train_epochs`: 1000
176
+ - `multi_dataset_batch_sampler`: round_robin
177
+
178
+ #### All Hyperparameters
179
+ <details><summary>Click to expand</summary>
180
+
181
+ - `overwrite_output_dir`: False
182
+ - `do_predict`: False
183
+ - `eval_strategy`: no
184
+ - `prediction_loss_only`: True
185
+ - `per_device_train_batch_size`: 16
186
+ - `per_device_eval_batch_size`: 16
187
+ - `per_gpu_train_batch_size`: None
188
+ - `per_gpu_eval_batch_size`: None
189
+ - `gradient_accumulation_steps`: 1
190
+ - `eval_accumulation_steps`: None
191
+ - `torch_empty_cache_steps`: None
192
+ - `learning_rate`: 5e-05
193
+ - `weight_decay`: 0.0
194
+ - `adam_beta1`: 0.9
195
+ - `adam_beta2`: 0.999
196
+ - `adam_epsilon`: 1e-08
197
+ - `max_grad_norm`: 1
198
+ - `num_train_epochs`: 1000
199
+ - `max_steps`: -1
200
+ - `lr_scheduler_type`: linear
201
+ - `lr_scheduler_kwargs`: {}
202
+ - `warmup_ratio`: 0.0
203
+ - `warmup_steps`: 0
204
+ - `log_level`: passive
205
+ - `log_level_replica`: warning
206
+ - `log_on_each_node`: True
207
+ - `logging_nan_inf_filter`: True
208
+ - `save_safetensors`: True
209
+ - `save_on_each_node`: False
210
+ - `save_only_model`: False
211
+ - `restore_callback_states_from_checkpoint`: False
212
+ - `no_cuda`: False
213
+ - `use_cpu`: False
214
+ - `use_mps_device`: False
215
+ - `seed`: 42
216
+ - `data_seed`: None
217
+ - `jit_mode_eval`: False
218
+ - `use_ipex`: False
219
+ - `bf16`: False
220
+ - `fp16`: False
221
+ - `fp16_opt_level`: O1
222
+ - `half_precision_backend`: auto
223
+ - `bf16_full_eval`: False
224
+ - `fp16_full_eval`: False
225
+ - `tf32`: None
226
+ - `local_rank`: 0
227
+ - `ddp_backend`: None
228
+ - `tpu_num_cores`: None
229
+ - `tpu_metrics_debug`: False
230
+ - `debug`: []
231
+ - `dataloader_drop_last`: False
232
+ - `dataloader_num_workers`: 0
233
+ - `dataloader_prefetch_factor`: None
234
+ - `past_index`: -1
235
+ - `disable_tqdm`: False
236
+ - `remove_unused_columns`: True
237
+ - `label_names`: None
238
+ - `load_best_model_at_end`: False
239
+ - `ignore_data_skip`: False
240
+ - `fsdp`: []
241
+ - `fsdp_min_num_params`: 0
242
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
243
+ - `tp_size`: 0
244
+ - `fsdp_transformer_layer_cls_to_wrap`: None
245
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
246
+ - `deepspeed`: None
247
+ - `label_smoothing_factor`: 0.0
248
+ - `optim`: adamw_torch
249
+ - `optim_args`: None
250
+ - `adafactor`: False
251
+ - `group_by_length`: False
252
+ - `length_column_name`: length
253
+ - `ddp_find_unused_parameters`: None
254
+ - `ddp_bucket_cap_mb`: None
255
+ - `ddp_broadcast_buffers`: False
256
+ - `dataloader_pin_memory`: True
257
+ - `dataloader_persistent_workers`: False
258
+ - `skip_memory_metrics`: True
259
+ - `use_legacy_prediction_loop`: False
260
+ - `push_to_hub`: False
261
+ - `resume_from_checkpoint`: None
262
+ - `hub_model_id`: None
263
+ - `hub_strategy`: every_save
264
+ - `hub_private_repo`: None
265
+ - `hub_always_push`: False
266
+ - `gradient_checkpointing`: False
267
+ - `gradient_checkpointing_kwargs`: None
268
+ - `include_inputs_for_metrics`: False
269
+ - `include_for_metrics`: []
270
+ - `eval_do_concat_batches`: True
271
+ - `fp16_backend`: auto
272
+ - `push_to_hub_model_id`: None
273
+ - `push_to_hub_organization`: None
274
+ - `mp_parameters`:
275
+ - `auto_find_batch_size`: False
276
+ - `full_determinism`: False
277
+ - `torchdynamo`: None
278
+ - `ray_scope`: last
279
+ - `ddp_timeout`: 1800
280
+ - `torch_compile`: False
281
+ - `torch_compile_backend`: None
282
+ - `torch_compile_mode`: None
283
+ - `include_tokens_per_second`: False
284
+ - `include_num_input_tokens_seen`: False
285
+ - `neftune_noise_alpha`: None
286
+ - `optim_target_modules`: None
287
+ - `batch_eval_metrics`: False
288
+ - `eval_on_start`: False
289
+ - `use_liger_kernel`: False
290
+ - `eval_use_gather_object`: False
291
+ - `average_tokens_across_devices`: False
292
+ - `prompts`: None
293
+ - `batch_sampler`: batch_sampler
294
+ - `multi_dataset_batch_sampler`: round_robin
295
+ - `router_mapping`: {}
296
+ - `learning_rate_mapping`: {}
297
+
298
+ </details>
299
+
300
+ ### Training Logs
301
+ <details><summary>Click to expand</summary>
302
+
303
+ | Epoch | Step | Training Loss |
304
+ |:------:|:-----:|:-------------:|
305
+ | 6.25 | 500 | 0.0756 |
306
+ | 12.5 | 1000 | 0.0396 |
307
+ | 18.75 | 1500 | 0.033 |
308
+ | 25.0 | 2000 | 0.0283 |
309
+ | 31.25 | 2500 | 0.0257 |
310
+ | 37.5 | 3000 | 0.0249 |
311
+ | 43.75 | 3500 | 0.0248 |
312
+ | 50.0 | 4000 | 0.019 |
313
+ | 56.25 | 4500 | 0.0242 |
314
+ | 62.5 | 5000 | 0.0203 |
315
+ | 68.75 | 5500 | 0.0205 |
316
+ | 75.0 | 6000 | 0.0225 |
317
+ | 81.25 | 6500 | 0.0183 |
318
+ | 87.5 | 7000 | 0.0227 |
319
+ | 93.75 | 7500 | 0.0224 |
320
+ | 100.0 | 8000 | 0.022 |
321
+ | 106.25 | 8500 | 0.0244 |
322
+ | 112.5 | 9000 | 0.0231 |
323
+ | 118.75 | 9500 | 0.021 |
324
+ | 125.0 | 10000 | 0.0215 |
325
+ | 131.25 | 10500 | 0.0166 |
326
+ | 137.5 | 11000 | 0.0186 |
327
+ | 143.75 | 11500 | 0.0211 |
328
+ | 150.0 | 12000 | 0.0208 |
329
+ | 156.25 | 12500 | 0.0214 |
330
+ | 162.5 | 13000 | 0.0207 |
331
+ | 168.75 | 13500 | 0.0216 |
332
+ | 175.0 | 14000 | 0.0214 |
333
+ | 181.25 | 14500 | 0.0209 |
334
+ | 187.5 | 15000 | 0.0197 |
335
+ | 193.75 | 15500 | 0.022 |
336
+ | 200.0 | 16000 | 0.0183 |
337
+ | 206.25 | 16500 | 0.0189 |
338
+ | 212.5 | 17000 | 0.0188 |
339
+ | 218.75 | 17500 | 0.0163 |
340
+ | 225.0 | 18000 | 0.0209 |
341
+ | 231.25 | 18500 | 0.0185 |
342
+ | 237.5 | 19000 | 0.0211 |
343
+ | 243.75 | 19500 | 0.02 |
344
+ | 250.0 | 20000 | 0.0206 |
345
+ | 256.25 | 20500 | 0.0222 |
346
+ | 262.5 | 21000 | 0.0185 |
347
+ | 268.75 | 21500 | 0.0205 |
348
+ | 275.0 | 22000 | 0.0165 |
349
+ | 281.25 | 22500 | 0.0185 |
350
+ | 287.5 | 23000 | 0.0164 |
351
+ | 293.75 | 23500 | 0.0191 |
352
+ | 300.0 | 24000 | 0.0197 |
353
+ | 306.25 | 24500 | 0.0195 |
354
+ | 312.5 | 25000 | 0.0185 |
355
+ | 318.75 | 25500 | 0.017 |
356
+ | 325.0 | 26000 | 0.0184 |
357
+ | 331.25 | 26500 | 0.0184 |
358
+ | 337.5 | 27000 | 0.0211 |
359
+ | 343.75 | 27500 | 0.0182 |
360
+ | 350.0 | 28000 | 0.0189 |
361
+ | 356.25 | 28500 | 0.0172 |
362
+ | 362.5 | 29000 | 0.0195 |
363
+ | 368.75 | 29500 | 0.0221 |
364
+ | 375.0 | 30000 | 0.0197 |
365
+ | 381.25 | 30500 | 0.0228 |
366
+ | 387.5 | 31000 | 0.0173 |
367
+ | 393.75 | 31500 | 0.0191 |
368
+ | 400.0 | 32000 | 0.0203 |
369
+ | 406.25 | 32500 | 0.0202 |
370
+ | 412.5 | 33000 | 0.0186 |
371
+ | 418.75 | 33500 | 0.0178 |
372
+ | 425.0 | 34000 | 0.018 |
373
+ | 431.25 | 34500 | 0.0192 |
374
+ | 437.5 | 35000 | 0.0186 |
375
+ | 443.75 | 35500 | 0.0211 |
376
+ | 450.0 | 36000 | 0.0209 |
377
+ | 456.25 | 36500 | 0.0216 |
378
+ | 462.5 | 37000 | 0.0201 |
379
+ | 468.75 | 37500 | 0.0227 |
380
+ | 475.0 | 38000 | 0.02 |
381
+ | 481.25 | 38500 | 0.018 |
382
+ | 487.5 | 39000 | 0.0218 |
383
+ | 493.75 | 39500 | 0.0237 |
384
+ | 500.0 | 40000 | 0.0208 |
385
+ | 506.25 | 40500 | 0.0185 |
386
+ | 512.5 | 41000 | 0.0188 |
387
+ | 518.75 | 41500 | 0.0188 |
388
+ | 525.0 | 42000 | 0.0168 |
389
+ | 531.25 | 42500 | 0.017 |
390
+ | 537.5 | 43000 | 0.0165 |
391
+ | 543.75 | 43500 | 0.0197 |
392
+ | 550.0 | 44000 | 0.0159 |
393
+ | 556.25 | 44500 | 0.0224 |
394
+ | 562.5 | 45000 | 0.0179 |
395
+ | 568.75 | 45500 | 0.0188 |
396
+ | 575.0 | 46000 | 0.0203 |
397
+ | 581.25 | 46500 | 0.018 |
398
+ | 587.5 | 47000 | 0.0195 |
399
+ | 593.75 | 47500 | 0.0194 |
400
+ | 600.0 | 48000 | 0.0205 |
401
+ | 606.25 | 48500 | 0.0185 |
402
+ | 612.5 | 49000 | 0.0208 |
403
+ | 618.75 | 49500 | 0.0205 |
404
+ | 625.0 | 50000 | 0.0201 |
405
+ | 631.25 | 50500 | 0.0175 |
406
+ | 637.5 | 51000 | 0.0171 |
407
+ | 643.75 | 51500 | 0.0184 |
408
+ | 650.0 | 52000 | 0.0228 |
409
+ | 656.25 | 52500 | 0.0203 |
410
+ | 662.5 | 53000 | 0.0222 |
411
+ | 668.75 | 53500 | 0.0188 |
412
+ | 675.0 | 54000 | 0.0235 |
413
+ | 681.25 | 54500 | 0.0182 |
414
+ | 687.5 | 55000 | 0.0215 |
415
+ | 693.75 | 55500 | 0.018 |
416
+ | 700.0 | 56000 | 0.0227 |
417
+ | 706.25 | 56500 | 0.0185 |
418
+ | 712.5 | 57000 | 0.0179 |
419
+ | 718.75 | 57500 | 0.0176 |
420
+ | 725.0 | 58000 | 0.0233 |
421
+ | 731.25 | 58500 | 0.0213 |
422
+ | 737.5 | 59000 | 0.0208 |
423
+ | 743.75 | 59500 | 0.015 |
424
+ | 750.0 | 60000 | 0.0199 |
425
+ | 756.25 | 60500 | 0.0197 |
426
+ | 762.5 | 61000 | 0.0199 |
427
+ | 768.75 | 61500 | 0.0209 |
428
+ | 775.0 | 62000 | 0.0185 |
429
+ | 781.25 | 62500 | 0.0183 |
430
+ | 787.5 | 63000 | 0.0169 |
431
+ | 793.75 | 63500 | 0.0176 |
432
+ | 800.0 | 64000 | 0.0206 |
433
+ | 806.25 | 64500 | 0.0186 |
434
+ | 812.5 | 65000 | 0.0181 |
435
+ | 818.75 | 65500 | 0.0179 |
436
+ | 825.0 | 66000 | 0.0184 |
437
+ | 831.25 | 66500 | 0.0157 |
438
+ | 837.5 | 67000 | 0.0181 |
439
+ | 843.75 | 67500 | 0.0174 |
440
+ | 850.0 | 68000 | 0.0185 |
441
+ | 856.25 | 68500 | 0.0213 |
442
+ | 862.5 | 69000 | 0.0181 |
443
+ | 868.75 | 69500 | 0.02 |
444
+ | 875.0 | 70000 | 0.0141 |
445
+ | 881.25 | 70500 | 0.0168 |
446
+ | 887.5 | 71000 | 0.0218 |
447
+ | 893.75 | 71500 | 0.0188 |
448
+ | 900.0 | 72000 | 0.0139 |
449
+ | 906.25 | 72500 | 0.0188 |
450
+ | 912.5 | 73000 | 0.022 |
451
+ | 918.75 | 73500 | 0.0154 |
452
+ | 925.0 | 74000 | 0.0165 |
453
+ | 931.25 | 74500 | 0.0186 |
454
+ | 937.5 | 75000 | 0.0191 |
455
+ | 943.75 | 75500 | 0.0188 |
456
+ | 950.0 | 76000 | 0.0176 |
457
+ | 956.25 | 76500 | 0.0218 |
458
+ | 962.5 | 77000 | 0.0185 |
459
+ | 968.75 | 77500 | 0.0193 |
460
+ | 975.0 | 78000 | 0.0218 |
461
+ | 981.25 | 78500 | 0.0161 |
462
+ | 987.5 | 79000 | 0.0216 |
463
+ | 993.75 | 79500 | 0.0225 |
464
+ | 1000.0 | 80000 | 0.0194 |
465
+
466
+ </details>
467
+
468
+ ### Framework Versions
469
+ - Python: 3.9.6
470
+ - Sentence Transformers: 5.0.0
471
+ - Transformers: 4.51.3
472
+ - PyTorch: 2.7.0
473
+ - Accelerate: 1.7.0
474
+ - Datasets: 4.0.0
475
+ - Tokenizers: 0.21.1
476
+
477
+ ## Citation
478
+
479
+ ### BibTeX
480
+
481
+ #### Sentence Transformers
482
+ ```bibtex
483
+ @inproceedings{reimers-2019-sentence-bert,
484
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
485
+ author = "Reimers, Nils and Gurevych, Iryna",
486
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
487
+ month = "11",
488
+ year = "2019",
489
+ publisher = "Association for Computational Linguistics",
490
+ url = "https://arxiv.org/abs/1908.10084",
491
+ }
492
+ ```
493
+
494
+ #### MultipleNegativesRankingLoss
495
+ ```bibtex
496
+ @misc{henderson2017efficient,
497
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
498
+ 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},
499
+ year={2017},
500
+ eprint={1705.00652},
501
+ archivePrefix={arXiv},
502
+ primaryClass={cs.CL}
503
+ }
504
+ ```
505
+
506
+ <!--
507
+ ## Glossary
508
+
509
+ *Clearly define terms in order to be accessible across audiences.*
510
+ -->
511
+
512
+ <!--
513
+ ## Model Card Authors
514
+
515
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
516
+ -->
517
+
518
+ <!--
519
+ ## Model Card Contact
520
+
521
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
522
+ -->
config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MPNetModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-05,
14
+ "max_position_embeddings": 514,
15
+ "model_type": "mpnet",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 1,
19
+ "relative_attention_num_buckets": 32,
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.51.3",
22
+ "vocab_size": 30527
23
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.0.0",
4
+ "transformers": "4.51.3",
5
+ "pytorch": "2.7.0"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:841a478e224f563e6737248ed994ad66189694add76c6740cd0de825ae96361b
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 384,
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
36
+ "content": "[UNK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "30526": {
44
+ "content": "<mask>",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "bos_token": "<s>",
53
+ "clean_up_tokenization_spaces": false,
54
+ "cls_token": "<s>",
55
+ "do_lower_case": true,
56
+ "eos_token": "</s>",
57
+ "extra_special_tokens": {},
58
+ "mask_token": "<mask>",
59
+ "max_length": 128,
60
+ "model_max_length": 384,
61
+ "pad_to_multiple_of": null,
62
+ "pad_token": "<pad>",
63
+ "pad_token_type_id": 0,
64
+ "padding_side": "right",
65
+ "sep_token": "</s>",
66
+ "stride": 0,
67
+ "strip_accents": null,
68
+ "tokenize_chinese_chars": true,
69
+ "tokenizer_class": "MPNetTokenizer",
70
+ "truncation_side": "right",
71
+ "truncation_strategy": "longest_first",
72
+ "unk_token": "[UNK]"
73
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff