tomaarsen HF Staff commited on
Commit
2e51236
·
verified ·
1 Parent(s): dc10aeb

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,583 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - dense
10
+ - generated_from_trainer
11
+ - dataset_size:90000
12
+ - loss:CachedMultipleNegativesBidirectionalRankingLoss
13
+ base_model: microsoft/mpnet-base
14
+ widget:
15
+ - source_sentence: what is the difference between trojan virus and worm?
16
+ sentences:
17
+ - Worms spread from computer to computer, but unlike a virus, it has the capability
18
+ to travel without any help from a person. ... A Trojan horse is not a virus. It
19
+ is a destructive program that looks as a genuine application. Unlike viruses,
20
+ Trojan horses do not replicate themselves but they can be just as destructive.
21
+ - You're usually no longer infectious 24 hours after starting a course of antibiotics,
22
+ but this time period can sometimes vary. For example, the antibiotics may take
23
+ longer to work if your body takes longer to absorb them, or if you're taking other
24
+ medicine that interacts with the antibiotics.
25
+ - Eating salt raises the amount of sodium in your bloodstream and wrecks the delicate
26
+ balance, reducing the ability of your kidneys to remove the water. The result
27
+ is a higher blood pressure due to the extra fluid and extra strain on the delicate
28
+ blood vessels leading to the kidneys.
29
+ - source_sentence: which are the neighbouring countries of pakistan?
30
+ sentences:
31
+ - Pakistan is bordered by India on the east, the Arabian Sea on the south, Iran
32
+ on the southwest, and Afghanistan on the west and north; in the northeast is the
33
+ disputed territory (with India) of Kashmir, of which the part occupied by Pakistan
34
+ borders on China.
35
+ - Age is a big factor when it comes to how much sleep a dog needs. Just as human
36
+ babies need a lot of sleep, the AKC notes your puppy needs 15-20 hours of sleep
37
+ a day to help his central nervous system, immune system and muscles develop properly.
38
+ - 'Step 1: Connect your iPhone to your computer using n USB cable through any of
39
+ the USB ports available on your computer. Step 2: Open iTunes, click the "Files"
40
+ tab and check the boxes to sync or transfer your files. Step 3: Select your desired
41
+ destination folder for the files and click "Sync" to complete the transfer.'
42
+ - source_sentence: what can you do with 1gb of data?
43
+ sentences:
44
+ - You could even contact your email provider, complain that somebody else is using
45
+ your email address, and say that you are worried about your account being compromised.
46
+ They're very unlikely to do anything, but if something goes wrong, at least you
47
+ can prove you forewarned them.
48
+ - 1) Under Section 80CCD(1), investment in Atal Pension Yojana or NPS up to ₹ 1.5
49
+ lakh qualifies for income tax deduction. But remember that the total amount of
50
+ deduction under sections 80C, 80CCC and 80CCD cannot exceed ₹ 1.5 lakh.
51
+ - 1GB (or 1024MB) of data lets you send or receive about 1,000 emails and browse
52
+ the Internet for about 20 hours every month. (This limit relates only to your
53
+ 1GB mobile data allocation; if you are an 'inclusive mobile broadband customer'
54
+ you also get 2000 BT Wi-fi wi-fi minutes every month.)
55
+ - source_sentence: how many carbon atoms are in carbon dioxide?
56
+ sentences:
57
+ - For CO2 there is one atom of carbon and two atoms of oxygen. For H2O, there is
58
+ one atom of oxygen and two atoms of hydrogen. A molecule can be made of only one
59
+ type of atom.
60
+ - Avian influenza refers to the disease caused by infection with avian (bird) influenza
61
+ (flu) Type A viruses. These viruses occur naturally among wild aquatic birds worldwide
62
+ and can infect domestic poultry and other bird and animal species. Avian flu viruses
63
+ do not normally infect humans.
64
+ - At the end of "Inception," Dom Cobb (Leonardo DiCaprio) finally returns home to
65
+ his kids after spending a long time in the dream world. Cobb carries a little
66
+ top with him. If the top keeps spinning, that means he is in a dream. ... The
67
+ final shot shows the top spinning, but it never reveals whether it falls over.
68
+ - source_sentence: is duchenne muscular dystrophy a dominant or recessive trait?
69
+ sentences:
70
+ - Duchenne muscular dystrophy is inherited in an X-linked recessive pattern. Males
71
+ have only one copy of the X chromosome from their mother and one copy of the Y
72
+ chromosome from their father. If their X chromosome has a DMD gene mutation, they
73
+ will have Duchenne muscular dystrophy.
74
+ - An automatic transmission will downshift for you when you drive uphill. However,
75
+ for moderately steep slopes, it's wise to shift to the gear range marked D2, 2,
76
+ or L to ascend and descend the hill. For steep slopes that you can't ascend at
77
+ a speed faster than 10 mph (about 15 kph), shift to D1 or 1.
78
+ - The dream suggests captivity and it refers to your fear of punishment. Another
79
+ interpretation of this dream refers to a need to do what you feel is right in
80
+ waking life. Being in jail suggests that your feelings may be trapped by a limited
81
+ mind and body. ... Jail also suggests repressed feelings.
82
+ datasets:
83
+ - sentence-transformers/gooaq
84
+ pipeline_tag: sentence-similarity
85
+ library_name: sentence-transformers
86
+ metrics:
87
+ - cosine_accuracy@1
88
+ - cosine_accuracy@3
89
+ - cosine_accuracy@5
90
+ - cosine_accuracy@10
91
+ - cosine_precision@1
92
+ - cosine_precision@3
93
+ - cosine_precision@5
94
+ - cosine_precision@10
95
+ - cosine_recall@1
96
+ - cosine_recall@3
97
+ - cosine_recall@5
98
+ - cosine_recall@10
99
+ - cosine_ndcg@10
100
+ - cosine_mrr@10
101
+ - cosine_map@100
102
+ co2_eq_emissions:
103
+ emissions: 23.455178658284066
104
+ energy_consumed: 0.08764293913909942
105
+ source: codecarbon
106
+ training_type: fine-tuning
107
+ on_cloud: false
108
+ cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K
109
+ ram_total_size: 31.777088165283203
110
+ hours_used: 0.24
111
+ hardware_used: 1 x NVIDIA GeForce RTX 3090
112
+ model-index:
113
+ - name: MPNet base trained on GooAQ triplets using CachedMultipleNegativesBidirectionalRankingLoss
114
+ (refactored)
115
+ results:
116
+ - task:
117
+ type: information-retrieval
118
+ name: Information Retrieval
119
+ dataset:
120
+ name: gooaq dev
121
+ type: gooaq-dev
122
+ metrics:
123
+ - type: cosine_accuracy@1
124
+ value: 0.759
125
+ name: Cosine Accuracy@1
126
+ - type: cosine_accuracy@3
127
+ value: 0.8924
128
+ name: Cosine Accuracy@3
129
+ - type: cosine_accuracy@5
130
+ value: 0.931
131
+ name: Cosine Accuracy@5
132
+ - type: cosine_accuracy@10
133
+ value: 0.9636
134
+ name: Cosine Accuracy@10
135
+ - type: cosine_precision@1
136
+ value: 0.759
137
+ name: Cosine Precision@1
138
+ - type: cosine_precision@3
139
+ value: 0.2974666666666666
140
+ name: Cosine Precision@3
141
+ - type: cosine_precision@5
142
+ value: 0.18620000000000003
143
+ name: Cosine Precision@5
144
+ - type: cosine_precision@10
145
+ value: 0.09636000000000002
146
+ name: Cosine Precision@10
147
+ - type: cosine_recall@1
148
+ value: 0.759
149
+ name: Cosine Recall@1
150
+ - type: cosine_recall@3
151
+ value: 0.8924
152
+ name: Cosine Recall@3
153
+ - type: cosine_recall@5
154
+ value: 0.931
155
+ name: Cosine Recall@5
156
+ - type: cosine_recall@10
157
+ value: 0.9636
158
+ name: Cosine Recall@10
159
+ - type: cosine_ndcg@10
160
+ value: 0.8653161814709974
161
+ name: Cosine Ndcg@10
162
+ - type: cosine_mrr@10
163
+ value: 0.8333427777777741
164
+ name: Cosine Mrr@10
165
+ - type: cosine_map@100
166
+ value: 0.8350324253726423
167
+ name: Cosine Map@100
168
+ ---
169
+
170
+ # MPNet base trained on GooAQ triplets using CachedMultipleNegativesBidirectionalRankingLoss (refactored)
171
+
172
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) on the [gooaq](https://huggingface.co/datasets/sentence-transformers/gooaq) dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
173
+
174
+ ## Model Details
175
+
176
+ ### Model Description
177
+ - **Model Type:** Sentence Transformer
178
+ - **Base model:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) <!-- at revision 6996ce1e91bd2a9c7d7f61daec37463394f73f09 -->
179
+ - **Maximum Sequence Length:** 512 tokens
180
+ - **Output Dimensionality:** 768 dimensions
181
+ - **Similarity Function:** Cosine Similarity
182
+ - **Training Dataset:**
183
+ - [gooaq](https://huggingface.co/datasets/sentence-transformers/gooaq)
184
+ - **Language:** en
185
+ - **License:** apache-2.0
186
+
187
+ ### Model Sources
188
+
189
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
190
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
191
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
192
+
193
+ ### Full Model Architecture
194
+
195
+ ```
196
+ SentenceTransformer(
197
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'MPNetModel'})
198
+ (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})
199
+ )
200
+ ```
201
+
202
+ ## Usage
203
+
204
+ ### Direct Usage (Sentence Transformers)
205
+
206
+ First install the Sentence Transformers library:
207
+
208
+ ```bash
209
+ pip install -U sentence-transformers
210
+ ```
211
+
212
+ Then you can load this model and run inference.
213
+ ```python
214
+ from sentence_transformers import SentenceTransformer
215
+
216
+ # Download from the 🤗 Hub
217
+ model = SentenceTransformer("tomaarsen/mpnet-base-gooaq-cmnbrl-1024bs")
218
+ # Run inference
219
+ queries = [
220
+ "is duchenne muscular dystrophy a dominant or recessive trait?",
221
+ ]
222
+ documents = [
223
+ 'Duchenne muscular dystrophy is inherited in an X-linked recessive pattern. Males have only one copy of the X chromosome from their mother and one copy of the Y chromosome from their father. If their X chromosome has a DMD gene mutation, they will have Duchenne muscular dystrophy.',
224
+ 'The dream suggests captivity and it refers to your fear of punishment. Another interpretation of this dream refers to a need to do what you feel is right in waking life. Being in jail suggests that your feelings may be trapped by a limited mind and body. ... Jail also suggests repressed feelings.',
225
+ "An automatic transmission will downshift for you when you drive uphill. However, for moderately steep slopes, it's wise to shift to the gear range marked D2, 2, or L to ascend and descend the hill. For steep slopes that you can't ascend at a speed faster than 10 mph (about 15 kph), shift to D1 or 1.",
226
+ ]
227
+ query_embeddings = model.encode_query(queries)
228
+ document_embeddings = model.encode_document(documents)
229
+ print(query_embeddings.shape, document_embeddings.shape)
230
+ # [1, 768] [3, 768]
231
+
232
+ # Get the similarity scores for the embeddings
233
+ similarities = model.similarity(query_embeddings, document_embeddings)
234
+ print(similarities)
235
+ # tensor([[0.9487, 0.7892, 0.7462]])
236
+ ```
237
+
238
+ <!--
239
+ ### Direct Usage (Transformers)
240
+
241
+ <details><summary>Click to see the direct usage in Transformers</summary>
242
+
243
+ </details>
244
+ -->
245
+
246
+ <!--
247
+ ### Downstream Usage (Sentence Transformers)
248
+
249
+ You can finetune this model on your own dataset.
250
+
251
+ <details><summary>Click to expand</summary>
252
+
253
+ </details>
254
+ -->
255
+
256
+ <!--
257
+ ### Out-of-Scope Use
258
+
259
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
260
+ -->
261
+
262
+ ## Evaluation
263
+
264
+ ### Metrics
265
+
266
+ #### Information Retrieval
267
+
268
+ * Dataset: `gooaq-dev`
269
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
270
+
271
+ | Metric | Value |
272
+ |:--------------------|:-----------|
273
+ | cosine_accuracy@1 | 0.759 |
274
+ | cosine_accuracy@3 | 0.8924 |
275
+ | cosine_accuracy@5 | 0.931 |
276
+ | cosine_accuracy@10 | 0.9636 |
277
+ | cosine_precision@1 | 0.759 |
278
+ | cosine_precision@3 | 0.2975 |
279
+ | cosine_precision@5 | 0.1862 |
280
+ | cosine_precision@10 | 0.0964 |
281
+ | cosine_recall@1 | 0.759 |
282
+ | cosine_recall@3 | 0.8924 |
283
+ | cosine_recall@5 | 0.931 |
284
+ | cosine_recall@10 | 0.9636 |
285
+ | **cosine_ndcg@10** | **0.8653** |
286
+ | cosine_mrr@10 | 0.8333 |
287
+ | cosine_map@100 | 0.835 |
288
+
289
+ <!--
290
+ ## Bias, Risks and Limitations
291
+
292
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
293
+ -->
294
+
295
+ <!--
296
+ ### Recommendations
297
+
298
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
299
+ -->
300
+
301
+ ## Training Details
302
+
303
+ ### Training Dataset
304
+
305
+ #### gooaq
306
+
307
+ * Dataset: [gooaq](https://huggingface.co/datasets/sentence-transformers/gooaq) at [b089f72](https://huggingface.co/datasets/sentence-transformers/gooaq/tree/b089f728748a068b7bc5234e5bcf5b25e3c8279c)
308
+ * Size: 90,000 training samples
309
+ * Columns: <code>question</code> and <code>answer</code>
310
+ * Approximate statistics based on the first 1000 samples:
311
+ | | question | answer |
312
+ |:--------|:----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
313
+ | type | string | string |
314
+ | details | <ul><li>min: 8 tokens</li><li>mean: 11.83 tokens</li><li>max: 20 tokens</li></ul> | <ul><li>min: 15 tokens</li><li>mean: 60.45 tokens</li><li>max: 180 tokens</li></ul> |
315
+ * Samples:
316
+ | question | answer |
317
+ |:--------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
318
+ | <code>how long does halifax take to transfer mortgage funds?</code> | <code>Bear in mind that the speed of application will vary depending on your own personal circumstances and the lender's present day-to-day performance. In some cases, applications can be approved by the lender within 24 hours, while some can take weeks or even months.</code> |
319
+ | <code>can you get a false pregnancy test?</code> | <code>In very rare cases, you can have a false-positive result. This means you're not pregnant but the test says you are. You could have a false-positive result if you have blood or protein in your pee. Certain drugs, such as tranquilizers, anticonvulsants, hypnotics, and fertility drugs, could cause false-positive results.</code> |
320
+ | <code>are ahead of its time?</code> | <code>Definition of ahead of one's/its time : too advanced or modern to be understood or appreciated during the time when one lives or works As a director, he was ahead of his time.</code> |
321
+ * Loss: [<code>CachedMultipleNegativesBidirectionalRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesbidirectionalrankingloss) with these parameters:
322
+ ```json
323
+ {
324
+ "temperature": 0.01,
325
+ "similarity_fct": "cos_sim",
326
+ "mini_batch_size": 64,
327
+ "gather_across_devices": false
328
+ }
329
+ ```
330
+
331
+ ### Evaluation Dataset
332
+
333
+ #### gooaq
334
+
335
+ * Dataset: [gooaq](https://huggingface.co/datasets/sentence-transformers/gooaq) at [b089f72](https://huggingface.co/datasets/sentence-transformers/gooaq/tree/b089f728748a068b7bc5234e5bcf5b25e3c8279c)
336
+ * Size: 10,000 evaluation samples
337
+ * Columns: <code>question</code> and <code>answer</code>
338
+ * Approximate statistics based on the first 1000 samples:
339
+ | | question | answer |
340
+ |:--------|:----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
341
+ | type | string | string |
342
+ | details | <ul><li>min: 8 tokens</li><li>mean: 11.93 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>min: 14 tokens</li><li>mean: 60.84 tokens</li><li>max: 127 tokens</li></ul> |
343
+ * Samples:
344
+ | question | answer |
345
+ |:-----------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
346
+ | <code>should you take ibuprofen with high blood pressure?</code> | <code>In general, people with high blood pressure should use acetaminophen or possibly aspirin for over-the-counter pain relief. Unless your health care provider has said it's OK, you should not use ibuprofen, ketoprofen, or naproxen sodium. If aspirin or acetaminophen doesn't help with your pain, call your doctor.</code> |
347
+ | <code>how old do you have to be to work in sc?</code> | <code>The general minimum age of employment for South Carolina youth is 14, although the state allows younger children who are performers to work in show business. If their families are agricultural workers, children younger than age 14 may also participate in farm labor.</code> |
348
+ | <code>how to write a topic proposal for a research paper?</code> | <code>['Write down the main topic of your paper. ... ', 'Write two or three short sentences under the main topic that explain why you chose that topic. ... ', 'Write a thesis sentence that states the angle and purpose of your research paper. ... ', 'List the items you will cover in the body of the paper that support your thesis statement.']</code> |
349
+ * Loss: [<code>CachedMultipleNegativesBidirectionalRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesbidirectionalrankingloss) with these parameters:
350
+ ```json
351
+ {
352
+ "temperature": 0.01,
353
+ "similarity_fct": "cos_sim",
354
+ "mini_batch_size": 64,
355
+ "gather_across_devices": false
356
+ }
357
+ ```
358
+
359
+ ### Training Hyperparameters
360
+ #### Non-Default Hyperparameters
361
+
362
+ - `eval_strategy`: steps
363
+ - `per_device_train_batch_size`: 1024
364
+ - `per_device_eval_batch_size`: 1024
365
+ - `learning_rate`: 8e-05
366
+ - `num_train_epochs`: 1
367
+ - `warmup_ratio`: 0.1
368
+ - `bf16`: True
369
+ - `batch_sampler`: no_duplicates
370
+
371
+ #### All Hyperparameters
372
+ <details><summary>Click to expand</summary>
373
+
374
+ - `overwrite_output_dir`: False
375
+ - `do_predict`: False
376
+ - `eval_strategy`: steps
377
+ - `prediction_loss_only`: True
378
+ - `per_device_train_batch_size`: 1024
379
+ - `per_device_eval_batch_size`: 1024
380
+ - `per_gpu_train_batch_size`: None
381
+ - `per_gpu_eval_batch_size`: None
382
+ - `gradient_accumulation_steps`: 1
383
+ - `eval_accumulation_steps`: None
384
+ - `torch_empty_cache_steps`: None
385
+ - `learning_rate`: 8e-05
386
+ - `weight_decay`: 0.0
387
+ - `adam_beta1`: 0.9
388
+ - `adam_beta2`: 0.999
389
+ - `adam_epsilon`: 1e-08
390
+ - `max_grad_norm`: 1.0
391
+ - `num_train_epochs`: 1
392
+ - `max_steps`: -1
393
+ - `lr_scheduler_type`: linear
394
+ - `lr_scheduler_kwargs`: {}
395
+ - `warmup_ratio`: 0.1
396
+ - `warmup_steps`: 0
397
+ - `log_level`: passive
398
+ - `log_level_replica`: warning
399
+ - `log_on_each_node`: True
400
+ - `logging_nan_inf_filter`: True
401
+ - `save_safetensors`: True
402
+ - `save_on_each_node`: False
403
+ - `save_only_model`: False
404
+ - `restore_callback_states_from_checkpoint`: False
405
+ - `no_cuda`: False
406
+ - `use_cpu`: False
407
+ - `use_mps_device`: False
408
+ - `seed`: 42
409
+ - `data_seed`: None
410
+ - `jit_mode_eval`: False
411
+ - `bf16`: True
412
+ - `fp16`: False
413
+ - `fp16_opt_level`: O1
414
+ - `half_precision_backend`: auto
415
+ - `bf16_full_eval`: False
416
+ - `fp16_full_eval`: False
417
+ - `tf32`: None
418
+ - `local_rank`: 0
419
+ - `ddp_backend`: None
420
+ - `tpu_num_cores`: None
421
+ - `tpu_metrics_debug`: False
422
+ - `debug`: []
423
+ - `dataloader_drop_last`: False
424
+ - `dataloader_num_workers`: 0
425
+ - `dataloader_prefetch_factor`: None
426
+ - `past_index`: -1
427
+ - `disable_tqdm`: False
428
+ - `remove_unused_columns`: True
429
+ - `label_names`: None
430
+ - `load_best_model_at_end`: False
431
+ - `ignore_data_skip`: False
432
+ - `fsdp`: []
433
+ - `fsdp_min_num_params`: 0
434
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
435
+ - `fsdp_transformer_layer_cls_to_wrap`: None
436
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
437
+ - `parallelism_config`: None
438
+ - `deepspeed`: None
439
+ - `label_smoothing_factor`: 0.0
440
+ - `optim`: adamw_torch_fused
441
+ - `optim_args`: None
442
+ - `adafactor`: False
443
+ - `group_by_length`: False
444
+ - `length_column_name`: length
445
+ - `project`: huggingface
446
+ - `trackio_space_id`: trackio
447
+ - `ddp_find_unused_parameters`: None
448
+ - `ddp_bucket_cap_mb`: None
449
+ - `ddp_broadcast_buffers`: False
450
+ - `dataloader_pin_memory`: True
451
+ - `dataloader_persistent_workers`: False
452
+ - `skip_memory_metrics`: True
453
+ - `use_legacy_prediction_loop`: False
454
+ - `push_to_hub`: False
455
+ - `resume_from_checkpoint`: None
456
+ - `hub_model_id`: None
457
+ - `hub_strategy`: every_save
458
+ - `hub_private_repo`: None
459
+ - `hub_always_push`: False
460
+ - `hub_revision`: None
461
+ - `gradient_checkpointing`: False
462
+ - `gradient_checkpointing_kwargs`: None
463
+ - `include_inputs_for_metrics`: False
464
+ - `include_for_metrics`: []
465
+ - `eval_do_concat_batches`: True
466
+ - `fp16_backend`: auto
467
+ - `push_to_hub_model_id`: None
468
+ - `push_to_hub_organization`: None
469
+ - `mp_parameters`:
470
+ - `auto_find_batch_size`: False
471
+ - `full_determinism`: False
472
+ - `torchdynamo`: None
473
+ - `ray_scope`: last
474
+ - `ddp_timeout`: 1800
475
+ - `torch_compile`: False
476
+ - `torch_compile_backend`: None
477
+ - `torch_compile_mode`: None
478
+ - `include_tokens_per_second`: False
479
+ - `include_num_input_tokens_seen`: no
480
+ - `neftune_noise_alpha`: None
481
+ - `optim_target_modules`: None
482
+ - `batch_eval_metrics`: False
483
+ - `eval_on_start`: False
484
+ - `use_liger_kernel`: False
485
+ - `liger_kernel_config`: None
486
+ - `eval_use_gather_object`: False
487
+ - `average_tokens_across_devices`: True
488
+ - `prompts`: None
489
+ - `batch_sampler`: no_duplicates
490
+ - `multi_dataset_batch_sampler`: proportional
491
+ - `router_mapping`: {}
492
+ - `learning_rate_mapping`: {}
493
+
494
+ </details>
495
+
496
+ ### Training Logs
497
+ | Epoch | Step | Training Loss | Validation Loss | gooaq-dev_cosine_ndcg@10 |
498
+ |:------:|:----:|:-------------:|:---------------:|:------------------------:|
499
+ | -1 | -1 | - | - | 0.2155 |
500
+ | 0.0114 | 1 | 11.1643 | - | - |
501
+ | 0.0568 | 5 | 8.7893 | - | - |
502
+ | 0.1023 | 9 | - | 2.9020 | 0.5926 |
503
+ | 0.1136 | 10 | 4.354 | - | - |
504
+ | 0.1705 | 15 | 2.5193 | - | - |
505
+ | 0.2045 | 18 | - | 1.5662 | 0.7920 |
506
+ | 0.2273 | 20 | 1.9776 | - | - |
507
+ | 0.2841 | 25 | 1.7225 | - | - |
508
+ | 0.3068 | 27 | - | 1.3719 | 0.8238 |
509
+ | 0.3409 | 30 | 1.574 | - | - |
510
+ | 0.3977 | 35 | 1.4706 | - | - |
511
+ | 0.4091 | 36 | - | 1.2714 | 0.8409 |
512
+ | 0.4545 | 40 | 1.409 | - | - |
513
+ | 0.5114 | 45 | 1.3914 | 1.2194 | 0.8516 |
514
+ | 0.5682 | 50 | 1.3798 | - | - |
515
+ | 0.6136 | 54 | - | 1.1948 | 0.8572 |
516
+ | 0.625 | 55 | 1.35 | - | - |
517
+ | 0.6818 | 60 | 1.3182 | - | - |
518
+ | 0.7159 | 63 | - | 1.1765 | 0.8600 |
519
+ | 0.7386 | 65 | 1.2697 | - | - |
520
+ | 0.7955 | 70 | 1.3097 | - | - |
521
+ | 0.8182 | 72 | - | 1.1528 | 0.8644 |
522
+ | 0.8523 | 75 | 1.2693 | - | - |
523
+ | 0.9091 | 80 | 1.2881 | - | - |
524
+ | 0.9205 | 81 | - | 1.1488 | 0.8649 |
525
+ | 0.9659 | 85 | 1.2654 | - | - |
526
+ | -1 | -1 | - | - | 0.8653 |
527
+
528
+
529
+ ### Environmental Impact
530
+ Carbon emissions were measured using [CodeCarbon](https://github.com/mlco2/codecarbon).
531
+ - **Energy Consumed**: 0.088 kWh
532
+ - **Carbon Emitted**: 0.023 kg of CO2
533
+ - **Hours Used**: 0.24 hours
534
+
535
+ ### Training Hardware
536
+ - **On Cloud**: No
537
+ - **GPU Model**: 1 x NVIDIA GeForce RTX 3090
538
+ - **CPU Model**: 13th Gen Intel(R) Core(TM) i7-13700K
539
+ - **RAM Size**: 31.78 GB
540
+
541
+ ### Framework Versions
542
+ - Python: 3.11.14
543
+ - Sentence Transformers: 5.3.0.dev0
544
+ - Transformers: 4.57.3
545
+ - PyTorch: 2.9.1+cu130
546
+ - Accelerate: 1.12.0
547
+ - Datasets: 4.4.2
548
+ - Tokenizers: 0.22.2
549
+
550
+ ## Citation
551
+
552
+ ### BibTeX
553
+
554
+ #### Sentence Transformers
555
+ ```bibtex
556
+ @inproceedings{reimers-2019-sentence-bert,
557
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
558
+ author = "Reimers, Nils and Gurevych, Iryna",
559
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
560
+ month = "11",
561
+ year = "2019",
562
+ publisher = "Association for Computational Linguistics",
563
+ url = "https://arxiv.org/abs/1908.10084",
564
+ }
565
+ ```
566
+
567
+ <!--
568
+ ## Glossary
569
+
570
+ *Clearly define terms in order to be accessible across audiences.*
571
+ -->
572
+
573
+ <!--
574
+ ## Model Card Authors
575
+
576
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
577
+ -->
578
+
579
+ <!--
580
+ ## Model Card Contact
581
+
582
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
583
+ -->
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
+ "dtype": "float32",
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "transformers_version": "4.57.3",
22
+ "vocab_size": 30527
23
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.3.0.dev0",
5
+ "transformers": "4.57.3",
6
+ "pytorch": "2.9.1+cu130"
7
+ },
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:531572d01cdd8b015312e225259cb6f69f2a800614d3836a244e3839b0602c28
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
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": true,
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": true,
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,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 512,
60
+ "pad_token": "<pad>",
61
+ "sep_token": "</s>",
62
+ "strip_accents": null,
63
+ "tokenize_chinese_chars": true,
64
+ "tokenizer_class": "MPNetTokenizer",
65
+ "unk_token": "[UNK]"
66
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff