tomaarsen HF Staff commited on
Commit
dd3560b
·
verified ·
1 Parent(s): b041f30

Add new model.

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "embedding_dimension": 384,
3
+ "pooling_mode": "mean",
4
+ "include_prompt": true
5
+ }
README.md ADDED
@@ -0,0 +1,576 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - sentence-transformers
6
+ - sentence-similarity
7
+ - feature-extraction
8
+ - dense
9
+ - generated_from_trainer
10
+ - dataset_size:300000
11
+ - loss:CachedMultipleNegativesRankingLoss
12
+ base_model: jhu-clsp/mmBERT-small
13
+ widget:
14
+ - source_sentence: where is henderson mn
15
+ sentences:
16
+ - Confidence votes 1.7K. Assuming we're talking about the `usual' 12 volt car battery'
17
+ the resting voltage should be around 11 to 11.5 volts. Under charge it's as high
18
+ as 15 volts as supplied from the alternator,and most cars won't start if the voltage
19
+ is under 10.5 to 11.5 volts. The term `12 volt battery' is what's referred to
20
+ as, `nominal' or `in name only' as a general reference and not meant to be an
21
+ accurate description.
22
+ - Henderson is a very small town of 1,000 people on the west bank of the Minnesota
23
+ River just south of the Minneapolis and Saint Paul metro area.
24
+ - Henderson, officially the City of Henderson, is an affluent city in Clark County,
25
+ Nevada, United States, about 16 miles southeast of Las Vegas. It is the second-largest
26
+ city in Nevada, after Las Vegas, with an estimated population of 292,969 in 2016.[2]
27
+ The city is part of the Las Vegas metropolitan area, which spans the entire Las
28
+ Vegas Valley. Henderson occupies the southeastern end of the valley, at an elevation
29
+ of approximately 1,330 feet (410 m).
30
+ - source_sentence: polytomy definition
31
+ sentences:
32
+ - Polytomy definition, the act or process of dividing into more than three parts.
33
+ See more.
34
+ - 'The name Loyalty has the following meaning: One who is faithful, loyal. It is
35
+ a male name, suitable for baby boys. Origins. The name Loyalty is very likely
36
+ a(n) English variant of the name Loyal. See other suggested English boy baby names.
37
+ You might also like to see the other variants of the name Loyal.'
38
+ - "Polysemy (/pÉ\x99Ë\x88lɪsɪmi/ or /Ë\x88pÉ\x92lɪsiË\x90mi/; from Greek: Ï\x80\
39
+ ολÏ\N-, poly-, many and Ï\x83á¿\x86μα, sêma, sign) is the capacity for a\
40
+ \ sign (such as a word, phrase, or symbol) to have multiple meanings (that is,\
41
+ \ multiple semes or sememes and thus multiple senses), usually related by contiguity\
42
+ \ of meaning within a semantic field."
43
+ - source_sentence: age group for juvenile arthritis
44
+ sentences:
45
+ - "Different Types of Juvenile Rheumatoid Arthritis. There are three kinds. Each\
46
+ \ type is based on the number of joints involved, the symptoms, and certain antibodies\
47
+ \ that may be in the blood. Four or fewer joints are involved. Doctors call this\
48
+ \ pauciarticular JRA. Itâ\x80\x99s the most common form. About half of all children\
49
+ \ with juvenile rheumatoid arthritis have this type. It usually affects large\
50
+ \ joints like the knees. Girls under age 8 are most likely to get it."
51
+ - Juvenile rheumatoid arthritis (JRA), often referred to by doctors today as juvenile
52
+ idiopathic arthritis (JIA), is a type of arthritis that causes joint inflammation
53
+ and stiffness for more than six weeks in a child aged 16 or younger. It affects
54
+ approximately 50,000 children in the United States.
55
+ - A depressant, or central depressant, is a drug that lowers neurotransmission levels,
56
+ which is to depress or reduce arousal or stimulation, in various areas of the
57
+ brain.Depressants are also occasionally referred to as downers as they lower the
58
+ level of arousal when taken.istilled (concentrated) alcoholic beverages, often
59
+ called hard liquor , roughly eight times more alcoholic than beer. An alcoholic
60
+ beverage is a drink that contains ethanol, an anesthetic that has been used as
61
+ a psychoactive drug for several millennia. Ethanol is the oldest recreational
62
+ drug still used by humans.
63
+ - source_sentence: what is besivance and durezol used for
64
+ sentences:
65
+ - Besivance is antibiotic eye drops, Prolensa is antiinflammatory eye drop and Durezol
66
+ is steroid eye drop. Besivance and Prolensa are need to be taken from 1-3 days
67
+ prior to surgery as a prophylaxis to prevent postoperative infection and inflammation
68
+ respectively. These eye drops can be administered after at least a gap of 5 minutes.
69
+ They are needed to be administered at least 4 times per day.
70
+ - .23 Acres Comfort, Kendall County, Texas. $399,500. This could be the most well
71
+ known building in Comfort with excellent all around visibility. Constructed in
72
+ the early 1930's and initially used as a bar it ...
73
+ - Duloxetine is used to treat major depressive disorder and general anxiety disorder.
74
+ Duloxetine is also used to treat fibromyalgia (a chronic pain disorder), or chronic
75
+ muscle or joint pain (such as low back pain and osteoarthritis pain). Duloxetine
76
+ is also used to treat pain caused by nerve damage in people with diabetes (diabetic
77
+ neuropathy).
78
+ - source_sentence: do bond funds pay dividends
79
+ sentences:
80
+ - If a cavity is causing the toothache, your dentist will fill the cavity or possibly
81
+ extract the tooth, if necessary. A root canal might be needed if the cause of
82
+ the toothache is determined to be an infection of the tooth's nerve. Bacteria
83
+ that have worked their way into the inner aspects of the tooth cause such an infection.
84
+ An antibiotic may be prescribed if there is fever or swelling of the jaw.
85
+ - "You would have $71,200 paying out $1,687 in annual dividends. That is about $4.62\
86
+ \ for working up in the morning. Interestingly enough, that 2.37% yield is at\
87
+ \ a low point because The Wellington Fund is a â\x80\x9Cbalanced fundâ\x80\x9D\
88
+ \ meaning that it holds a combination of stocks and bonds."
89
+ - A bond fund or debt fund is a fund that invests in bonds, or other debt securities.
90
+ Bond funds can be contrasted with stock funds and money funds. Bond funds typically
91
+ pay periodic dividends that include interest payments on the fund's underlying
92
+ securities plus periodic realized capital appreciation. Bond funds typically pay
93
+ higher dividends than CDs and money market accounts. Most bond funds pay out dividends
94
+ more frequently than individual bonds.
95
+ datasets:
96
+ - sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1
97
+ pipeline_tag: sentence-similarity
98
+ library_name: sentence-transformers
99
+ metrics:
100
+ - cosine_accuracy
101
+ co2_eq_emissions:
102
+ emissions: 68.14048860186945
103
+ energy_consumed: 0.2546146751831667
104
+ source: codecarbon
105
+ training_type: fine-tuning
106
+ on_cloud: false
107
+ cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K
108
+ ram_total_size: 31.777088165283203
109
+ hours_used: 0.787
110
+ hardware_used: 1 x NVIDIA GeForce RTX 3090
111
+ model-index:
112
+ - name: SentenceTransformer based on jhu-clsp/mmBERT-small
113
+ results:
114
+ - task:
115
+ type: triplet
116
+ name: Triplet
117
+ dataset:
118
+ name: msmarco co condenser eval triplet
119
+ type: msmarco-co-condenser-eval-triplet
120
+ metrics:
121
+ - type: cosine_accuracy
122
+ value: 0.6399999856948853
123
+ name: Cosine Accuracy
124
+ ---
125
+
126
+ # SentenceTransformer based on jhu-clsp/mmBERT-small
127
+
128
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [jhu-clsp/mmBERT-small](https://huggingface.co/jhu-clsp/mmBERT-small) on the [msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1](https://huggingface.co/datasets/sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1) dataset. 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.
129
+
130
+ ## Model Details
131
+
132
+ ### Model Description
133
+ - **Model Type:** Sentence Transformer
134
+ - **Base model:** [jhu-clsp/mmBERT-small](https://huggingface.co/jhu-clsp/mmBERT-small) <!-- at revision abc32620dd4f6ab06f5fbe905dc25f310618e09f -->
135
+ - **Maximum Sequence Length:** 8192 tokens
136
+ - **Output Dimensionality:** 384 dimensions
137
+ - **Similarity Function:** Cosine Similarity
138
+ - **Training Dataset:**
139
+ - [msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1](https://huggingface.co/datasets/sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1)
140
+ - **Language:** en
141
+ <!-- - **License:** Unknown -->
142
+
143
+ ### Model Sources
144
+
145
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
146
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
147
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
148
+
149
+ ### Full Model Architecture
150
+
151
+ ```
152
+ SentenceTransformer(
153
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'message_format': 'auto', 'architecture': 'ModernBertModel'})
154
+ (1): Pooling({'embedding_dimension': 384, 'pooling_mode': 'mean', 'include_prompt': True})
155
+ )
156
+ ```
157
+
158
+ ## Usage
159
+
160
+ ### Direct Usage (Sentence Transformers)
161
+
162
+ First install the Sentence Transformers library:
163
+
164
+ ```bash
165
+ pip install -U sentence-transformers
166
+ ```
167
+
168
+ Then you can load this model and run inference.
169
+ ```python
170
+ from sentence_transformers import SentenceTransformer
171
+
172
+ # Download from the 🤗 Hub
173
+ model = SentenceTransformer("tomaarsen/mmBERT-small-msmarco-fa2-flattened-cmnrl")
174
+ # Run inference
175
+ sentences = [
176
+ 'do bond funds pay dividends',
177
+ "A bond fund or debt fund is a fund that invests in bonds, or other debt securities. Bond funds can be contrasted with stock funds and money funds. Bond funds typically pay periodic dividends that include interest payments on the fund's underlying securities plus periodic realized capital appreciation. Bond funds typically pay higher dividends than CDs and money market accounts. Most bond funds pay out dividends more frequently than individual bonds.",
178
+ 'You would have $71,200 paying out $1,687 in annual dividends. That is about $4.62 for working up in the morning. Interestingly enough, that 2.37% yield is at a low point because The Wellington Fund is a â\x80\x9cbalanced fundâ\x80\x9d meaning that it holds a combination of stocks and bonds.',
179
+ "If a cavity is causing the toothache, your dentist will fill the cavity or possibly extract the tooth, if necessary. A root canal might be needed if the cause of the toothache is determined to be an infection of the tooth's nerve. Bacteria that have worked their way into the inner aspects of the tooth cause such an infection. An antibiotic may be prescribed if there is fever or swelling of the jaw.",
180
+ ]
181
+ embeddings = model.encode(sentences)
182
+ print(embeddings.shape)
183
+ # [4, 384]
184
+
185
+ # Get the similarity scores for the embeddings
186
+ similarities = model.similarity(embeddings, embeddings)
187
+ print(similarities)
188
+ # tensor([[0.6686, 0.4937, 0.2202]])
189
+ ```
190
+
191
+ <!--
192
+ ### Direct Usage (Transformers)
193
+
194
+ <details><summary>Click to see the direct usage in Transformers</summary>
195
+
196
+ </details>
197
+ -->
198
+
199
+ <!--
200
+ ### Downstream Usage (Sentence Transformers)
201
+
202
+ You can finetune this model on your own dataset.
203
+
204
+ <details><summary>Click to expand</summary>
205
+
206
+ </details>
207
+ -->
208
+
209
+ <!--
210
+ ### Out-of-Scope Use
211
+
212
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
213
+ -->
214
+
215
+ ## Evaluation
216
+
217
+ ### Metrics
218
+
219
+ #### Triplet
220
+
221
+ * Dataset: `msmarco-co-condenser-eval-triplet`
222
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.TripletEvaluator)
223
+
224
+ | Metric | Value |
225
+ |:--------------------|:---------|
226
+ | **cosine_accuracy** | **0.64** |
227
+
228
+ <!--
229
+ ## Bias, Risks and Limitations
230
+
231
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
232
+ -->
233
+
234
+ <!--
235
+ ### Recommendations
236
+
237
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
238
+ -->
239
+
240
+ ## Training Details
241
+
242
+ ### Training Dataset
243
+
244
+ #### msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1
245
+
246
+ * Dataset: [msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1](https://huggingface.co/datasets/sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1) at [84ed2d3](https://huggingface.co/datasets/sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1/tree/84ed2d35626f617d890bd493b4d6db69a741e0e2)
247
+ * Size: 300,000 training samples
248
+ * Columns: <code>query</code>, <code>positive</code>, and <code>negative</code>
249
+ * Approximate statistics based on the first 1000 samples:
250
+ | | query | positive | negative |
251
+ |:--------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
252
+ | type | string | string | string |
253
+ | details | <ul><li>min: 11 characters</li><li>mean: 32.46 characters</li><li>max: 140 characters</li></ul> | <ul><li>min: 67 characters</li><li>mean: 336.71 characters</li><li>max: 864 characters</li></ul> | <ul><li>min: 56 characters</li><li>mean: 339.96 characters</li><li>max: 900 characters</li></ul> |
254
+ * Samples:
255
+ | query | positive | negative |
256
+ |:---------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
257
+ | <code>what is the meaning of menu planning</code> | <code>Menu planning is the selection of a menu for an event. Such as picking out the dinner for your wedding or even a meal at a Birthday Party. Menu planning is when you are preparing a calendar of meals and you have to sit down and decide what meat and veggies you want to serve on each certain day.</code> | <code>Menu Costs. In economics, a menu cost is the cost to a firm resulting from changing its prices. The name stems from the cost of restaurants literally printing new menus, but economists use it to refer to the costs of changing nominal prices in general.</code> |
258
+ | <code>how old is brett butler</code> | <code>Brett Butler is 59 years old. To be more precise (and nerdy), the current age as of right now is 21564 days or (even more geeky) 517536 hours. That's a lot of hours!</code> | <code>Passed in: St. John's, Newfoundland and Labrador, Canada. Passed on: 16/07/2016. Published in the St. John's Telegram. Passed away suddenly at the Health Sciences Centre surrounded by his loving family, on July 16, 2016 Robert (Bobby) Joseph Butler, age 52 years. Predeceased by his special aunt Geri Murrin and uncle Mike Mchugh; grandparents Joe and Margaret Murrin and Jack and Theresa Butler.</code> |
259
+ | <code>when was the last navajo treaty sign?</code> | <code>In Executive Session, Senate of the United States, July 25, 1868. Resolved, (two-thirds of the senators present concurring,) That the Senate advise and consent to the ratification of the treaty between the United States and the Navajo Indians, concluded at Fort Sumner, New Mexico, on the first day of June, 1868.</code> | <code>Share Treaty of Greenville. The Treaty of Greenville was signed August 3, 1795, between the United States, represented by Gen. Anthony Wayne, and chiefs of the Indian tribes located in the Northwest Territory, including the Wyandots, Delawares, Shawnees, Ottawas, Miamis, and others.</code> |
260
+ * Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
261
+ ```json
262
+ {
263
+ "scale": 20.0,
264
+ "similarity_fct": "cos_sim",
265
+ "mini_batch_size": 128,
266
+ "gather_across_devices": false,
267
+ "directions": [
268
+ "query_to_doc"
269
+ ],
270
+ "partition_mode": "joint",
271
+ "hardness_mode": null,
272
+ "hardness_strength": 0.0
273
+ }
274
+ ```
275
+
276
+ ### Evaluation Dataset
277
+
278
+ #### msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1
279
+
280
+ * Dataset: [msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1](https://huggingface.co/datasets/sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1) at [84ed2d3](https://huggingface.co/datasets/sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1/tree/84ed2d35626f617d890bd493b4d6db69a741e0e2)
281
+ * Size: 1,000 evaluation samples
282
+ * Columns: <code>query</code>, <code>positive</code>, and <code>negative</code>
283
+ * Approximate statistics based on the first 1000 samples:
284
+ | | query | positive | negative |
285
+ |:--------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
286
+ | type | string | string | string |
287
+ | details | <ul><li>min: 10 characters</li><li>mean: 32.61 characters</li><li>max: 110 characters</li></ul> | <ul><li>min: 81 characters</li><li>mean: 344.28 characters</li><li>max: 908 characters</li></ul> | <ul><li>min: 97 characters</li><li>mean: 342.31 characters</li><li>max: 963 characters</li></ul> |
288
+ * Samples:
289
+ | query | positive | negative |
290
+ |:------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
291
+ | <code>what county is holly springs nc in</code> | <code>Holly Springs, North Carolina. Holly Springs is a town in Wake County, North Carolina, United States. As of the 2010 census, the town population was 24,661, over 2½ times its population in 2000. Contents.</code> | <code>The Mt. Holly Springs Park & Resort. One of the numerous trolley routes that carried people around the county at the turn of the century was the Carlisle & Mt. Holly Railway Company. The “Holly Trolley” as it came to be known was put into service by Patricio Russo and made its first run on May 14, 1901.</code> |
292
+ | <code>how long does nyquil stay in your system</code> | <code>In order to understand exactly how long Nyquil lasts, it is absolutely vital to learn about the various ingredients in the drug. One of the ingredients found in Nyquil is Doxylamine, which is an antihistamine. This specific medication has a biological half-life or 6 to 12 hours. With this in mind, it is possible for the drug to remain in the system for a period of 12 to 24 hours. It should be known that the specifics will depend on a wide variety of different factors, including your age and metabolism.</code> | <code>I confirmed that NyQuil is about 10% alcohol, a higher content than most domestic beers. When I asked about the relatively high proof, I was told that the alcohol dilutes the active ingredients. The alcohol free version is there for customers with addiction issues.. also found that in that version there is twice the amount of DXM. When I asked if I could speak to a chemist or scientist, I was told they didn't have anyone who fit that description there. It’s been eight years since I kicked NyQuil. I've been sober from alcohol for four years.</code> |
293
+ | <code>what are mineral water</code> | <code>1 Mineral water – water from a mineral spring that contains various minerals, such as salts and sulfur compounds. 2 It comes from a source tapped at one or more bore holes or spring, and originates from a geologically and physically protected underground water source. Mineral water – water from a mineral spring that contains various minerals, such as salts and sulfur compounds. 2 It comes from a source tapped at one or more bore holes or spring, and originates from a geologically and physically protected underground water source.</code> | <code>Minerals for Your Body. Drinking mineral water is beneficial to health and well-being. But it is not only the amount of water you drink that is important-what the water contains is even more essential.inerals for Your Body. Drinking mineral water is beneficial to health and well-being. But it is not only the amount of water you drink that is important-what the water contains is even more essential.</code> |
294
+ * Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
295
+ ```json
296
+ {
297
+ "scale": 20.0,
298
+ "similarity_fct": "cos_sim",
299
+ "mini_batch_size": 128,
300
+ "gather_across_devices": false,
301
+ "directions": [
302
+ "query_to_doc"
303
+ ],
304
+ "partition_mode": "joint",
305
+ "hardness_mode": null,
306
+ "hardness_strength": 0.0
307
+ }
308
+ ```
309
+
310
+ ### Training Hyperparameters
311
+ #### Non-Default Hyperparameters
312
+
313
+ - `per_device_train_batch_size`: 2048
314
+ - `num_train_epochs`: 1
315
+ - `learning_rate`: 8e-05
316
+ - `warmup_steps`: 0.05
317
+ - `bf16`: True
318
+ - `eval_strategy`: steps
319
+ - `per_device_eval_batch_size`: 2048
320
+ - `batch_sampler`: no_duplicates
321
+
322
+ #### All Hyperparameters
323
+ <details><summary>Click to expand</summary>
324
+
325
+ - `per_device_train_batch_size`: 2048
326
+ - `num_train_epochs`: 1
327
+ - `max_steps`: -1
328
+ - `learning_rate`: 8e-05
329
+ - `lr_scheduler_type`: linear
330
+ - `lr_scheduler_kwargs`: None
331
+ - `warmup_steps`: 0.05
332
+ - `optim`: adamw_torch_fused
333
+ - `optim_args`: None
334
+ - `weight_decay`: 0.0
335
+ - `adam_beta1`: 0.9
336
+ - `adam_beta2`: 0.999
337
+ - `adam_epsilon`: 1e-08
338
+ - `optim_target_modules`: None
339
+ - `gradient_accumulation_steps`: 1
340
+ - `average_tokens_across_devices`: True
341
+ - `max_grad_norm`: 1.0
342
+ - `label_smoothing_factor`: 0.0
343
+ - `bf16`: True
344
+ - `fp16`: False
345
+ - `bf16_full_eval`: False
346
+ - `fp16_full_eval`: False
347
+ - `tf32`: None
348
+ - `gradient_checkpointing`: False
349
+ - `gradient_checkpointing_kwargs`: None
350
+ - `torch_compile`: False
351
+ - `torch_compile_backend`: None
352
+ - `torch_compile_mode`: None
353
+ - `use_liger_kernel`: False
354
+ - `liger_kernel_config`: None
355
+ - `use_cache`: False
356
+ - `neftune_noise_alpha`: None
357
+ - `torch_empty_cache_steps`: None
358
+ - `auto_find_batch_size`: False
359
+ - `log_on_each_node`: True
360
+ - `logging_nan_inf_filter`: True
361
+ - `include_num_input_tokens_seen`: no
362
+ - `log_level`: passive
363
+ - `log_level_replica`: warning
364
+ - `disable_tqdm`: False
365
+ - `project`: huggingface
366
+ - `trackio_space_id`: trackio
367
+ - `eval_strategy`: steps
368
+ - `per_device_eval_batch_size`: 2048
369
+ - `prediction_loss_only`: True
370
+ - `eval_on_start`: False
371
+ - `eval_do_concat_batches`: True
372
+ - `eval_use_gather_object`: False
373
+ - `eval_accumulation_steps`: None
374
+ - `include_for_metrics`: []
375
+ - `batch_eval_metrics`: False
376
+ - `save_only_model`: False
377
+ - `save_on_each_node`: False
378
+ - `enable_jit_checkpoint`: False
379
+ - `push_to_hub`: False
380
+ - `hub_private_repo`: None
381
+ - `hub_model_id`: None
382
+ - `hub_strategy`: every_save
383
+ - `hub_always_push`: False
384
+ - `hub_revision`: None
385
+ - `load_best_model_at_end`: False
386
+ - `ignore_data_skip`: False
387
+ - `restore_callback_states_from_checkpoint`: False
388
+ - `full_determinism`: False
389
+ - `seed`: 42
390
+ - `data_seed`: None
391
+ - `use_cpu`: False
392
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
393
+ - `parallelism_config`: None
394
+ - `dataloader_drop_last`: False
395
+ - `dataloader_num_workers`: 0
396
+ - `dataloader_pin_memory`: True
397
+ - `dataloader_persistent_workers`: False
398
+ - `dataloader_prefetch_factor`: None
399
+ - `remove_unused_columns`: True
400
+ - `label_names`: None
401
+ - `train_sampling_strategy`: random
402
+ - `length_column_name`: length
403
+ - `ddp_find_unused_parameters`: None
404
+ - `ddp_bucket_cap_mb`: None
405
+ - `ddp_broadcast_buffers`: False
406
+ - `ddp_backend`: None
407
+ - `ddp_timeout`: 1800
408
+ - `fsdp`: []
409
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
410
+ - `deepspeed`: None
411
+ - `debug`: []
412
+ - `skip_memory_metrics`: True
413
+ - `do_predict`: False
414
+ - `resume_from_checkpoint`: None
415
+ - `warmup_ratio`: None
416
+ - `local_rank`: -1
417
+ - `prompts`: None
418
+ - `batch_sampler`: no_duplicates
419
+ - `multi_dataset_batch_sampler`: proportional
420
+ - `router_mapping`: {}
421
+ - `learning_rate_mapping`: {}
422
+
423
+ </details>
424
+
425
+ ### Training Logs
426
+ | Epoch | Step | Training Loss | Validation Loss | msmarco-co-condenser-eval-triplet_cosine_accuracy |
427
+ |:------:|:----:|:-------------:|:---------------:|:-------------------------------------------------:|
428
+ | -1 | -1 | - | - | 0.5410 |
429
+ | 0.0136 | 2 | 8.2614 | - | - |
430
+ | 0.0272 | 4 | 8.2470 | - | - |
431
+ | 0.0408 | 6 | 8.1877 | - | - |
432
+ | 0.0544 | 8 | 8.0314 | - | - |
433
+ | 0.0680 | 10 | 7.7203 | - | - |
434
+ | 0.0816 | 12 | 7.2604 | - | - |
435
+ | 0.0952 | 14 | 6.8749 | - | - |
436
+ | 0.1020 | 15 | - | 5.7117 | 0.6220 |
437
+ | 0.1088 | 16 | 6.5251 | - | - |
438
+ | 0.1224 | 18 | 6.1747 | - | - |
439
+ | 0.1361 | 20 | 5.8759 | - | - |
440
+ | 0.1497 | 22 | 5.5909 | - | - |
441
+ | 0.1633 | 24 | 5.3883 | - | - |
442
+ | 0.1769 | 26 | 5.1466 | - | - |
443
+ | 0.1905 | 28 | 4.8767 | - | - |
444
+ | 0.2041 | 30 | 4.6119 | 3.8599 | 0.6920 |
445
+ | 0.2177 | 32 | 4.4513 | - | - |
446
+ | 0.2313 | 34 | 4.2229 | - | - |
447
+ | 0.2449 | 36 | 3.9295 | - | - |
448
+ | 0.2585 | 38 | 3.7703 | - | - |
449
+ | 0.2721 | 40 | 3.5242 | - | - |
450
+ | 0.2857 | 42 | 3.3985 | - | - |
451
+ | 0.2993 | 44 | 3.2776 | - | - |
452
+ | 0.3061 | 45 | - | 2.5264 | 0.6390 |
453
+ | 0.3129 | 46 | 3.1696 | - | - |
454
+ | 0.3265 | 48 | 2.9440 | - | - |
455
+ | 0.3401 | 50 | 2.9842 | - | - |
456
+ | 0.3537 | 52 | 2.8640 | - | - |
457
+ | 0.3673 | 54 | 2.7503 | - | - |
458
+ | 0.3810 | 56 | 2.7603 | - | - |
459
+ | 0.3946 | 58 | 2.6417 | - | - |
460
+ | 0.4082 | 60 | 2.4575 | 2.0850 | 0.6370 |
461
+ | 0.4218 | 62 | 2.4319 | - | - |
462
+ | 0.4354 | 64 | 2.3469 | - | - |
463
+ | 0.4490 | 66 | 2.3213 | - | - |
464
+ | 0.4626 | 68 | 2.2758 | - | - |
465
+ | 0.4762 | 70 | 2.2147 | - | - |
466
+ | 0.4898 | 72 | 2.3848 | - | - |
467
+ | 0.5034 | 74 | 2.2504 | - | - |
468
+ | 0.5102 | 75 | - | 1.9316 | 0.6370 |
469
+ | 0.5170 | 76 | 2.2943 | - | - |
470
+ | 0.5306 | 78 | 2.2707 | - | - |
471
+ | 0.5442 | 80 | 2.2240 | - | - |
472
+ | 0.5578 | 82 | 2.1809 | - | - |
473
+ | 0.5714 | 84 | 2.2143 | - | - |
474
+ | 0.5850 | 86 | 2.0512 | - | - |
475
+ | 0.5986 | 88 | 2.0743 | - | - |
476
+ | 0.6122 | 90 | 2.2043 | 1.7521 | 0.6330 |
477
+ | 0.6259 | 92 | 2.1268 | - | - |
478
+ | 0.6395 | 94 | 1.9546 | - | - |
479
+ | 0.6531 | 96 | 2.0395 | - | - |
480
+ | 0.6667 | 98 | 2.0138 | - | - |
481
+ | 0.6803 | 100 | 1.9161 | - | - |
482
+ | 0.6939 | 102 | 2.0675 | - | - |
483
+ | 0.7075 | 104 | 1.9894 | - | - |
484
+ | 0.7143 | 105 | - | 1.6923 | 0.6420 |
485
+ | 0.7211 | 106 | 2.0513 | - | - |
486
+ | 0.7347 | 108 | 1.8997 | - | - |
487
+ | 0.7483 | 110 | 2.0753 | - | - |
488
+ | 0.7619 | 112 | 1.9403 | - | - |
489
+ | 0.7755 | 114 | 1.9421 | - | - |
490
+ | 0.7891 | 116 | 1.9446 | - | - |
491
+ | 0.8027 | 118 | 1.9905 | - | - |
492
+ | 0.8163 | 120 | 1.8458 | 1.6407 | 0.6370 |
493
+ | 0.8299 | 122 | 1.9369 | - | - |
494
+ | 0.8435 | 124 | 1.8938 | - | - |
495
+ | 0.8571 | 126 | 1.8699 | - | - |
496
+ | 0.8707 | 128 | 2.0305 | - | - |
497
+ | 0.8844 | 130 | 1.8765 | - | - |
498
+ | 0.8980 | 132 | 1.9484 | - | - |
499
+ | 0.9116 | 134 | 1.8669 | - | - |
500
+ | 0.9184 | 135 | - | 1.6204 | 0.6390 |
501
+ | 0.9252 | 136 | 1.9958 | - | - |
502
+ | 0.9388 | 138 | 1.9659 | - | - |
503
+ | 0.9524 | 140 | 1.8720 | - | - |
504
+ | 0.9660 | 142 | 1.9456 | - | - |
505
+ | 0.9796 | 144 | 1.8776 | - | - |
506
+ | 0.9932 | 146 | 1.9861 | - | - |
507
+ | -1 | -1 | - | - | 0.6400 |
508
+
509
+
510
+ ### Environmental Impact
511
+ Carbon emissions were measured using [CodeCarbon](https://github.com/mlco2/codecarbon).
512
+ - **Energy Consumed**: 0.255 kWh
513
+ - **Carbon Emitted**: 0.068 kg of CO2
514
+ - **Hours Used**: 0.787 hours
515
+
516
+ ### Training Hardware
517
+ - **On Cloud**: No
518
+ - **GPU Model**: 1 x NVIDIA GeForce RTX 3090
519
+ - **CPU Model**: 13th Gen Intel(R) Core(TM) i7-13700K
520
+ - **RAM Size**: 31.78 GB
521
+
522
+ ### Framework Versions
523
+ - Python: 3.11.6
524
+ - Sentence Transformers: 5.4.0.dev0
525
+ - Transformers: 5.3.0.dev0
526
+ - PyTorch: 2.10.0+cu128
527
+ - Accelerate: 1.13.0.dev0
528
+ - Datasets: 4.3.0
529
+ - Tokenizers: 0.22.2
530
+
531
+ ## Citation
532
+
533
+ ### BibTeX
534
+
535
+ #### Sentence Transformers
536
+ ```bibtex
537
+ @inproceedings{reimers-2019-sentence-bert,
538
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
539
+ author = "Reimers, Nils and Gurevych, Iryna",
540
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
541
+ month = "11",
542
+ year = "2019",
543
+ publisher = "Association for Computational Linguistics",
544
+ url = "https://arxiv.org/abs/1908.10084",
545
+ }
546
+ ```
547
+
548
+ #### CachedMultipleNegativesRankingLoss
549
+ ```bibtex
550
+ @misc{gao2021scaling,
551
+ title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
552
+ author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
553
+ year={2021},
554
+ eprint={2101.06983},
555
+ archivePrefix={arXiv},
556
+ primaryClass={cs.LG}
557
+ }
558
+ ```
559
+
560
+ <!--
561
+ ## Glossary
562
+
563
+ *Clearly define terms in order to be accessible across audiences.*
564
+ -->
565
+
566
+ <!--
567
+ ## Model Card Authors
568
+
569
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
570
+ -->
571
+
572
+ <!--
573
+ ## Model Card Contact
574
+
575
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
576
+ -->
config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 2,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 1,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "bfloat16",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 1,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 384,
22
+ "initializer_cutoff_factor": 2.0,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 1152,
25
+ "layer_norm_eps": 1e-05,
26
+ "layer_types": [
27
+ "full_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "full_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "full_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "full_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "full_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "full_attention"
49
+ ],
50
+ "local_attention": 128,
51
+ "mask_token_id": 4,
52
+ "max_position_embeddings": 8192,
53
+ "mlp_bias": false,
54
+ "mlp_dropout": 0.0,
55
+ "model_type": "modernbert",
56
+ "norm_bias": false,
57
+ "norm_eps": 1e-05,
58
+ "num_attention_heads": 6,
59
+ "num_hidden_layers": 22,
60
+ "pad_token_id": 0,
61
+ "position_embedding_type": "sans_pos",
62
+ "rope_parameters": {
63
+ "full_attention": {
64
+ "rope_theta": 160000,
65
+ "rope_type": "default"
66
+ },
67
+ "sliding_attention": {
68
+ "rope_theta": 160000,
69
+ "rope_type": "default"
70
+ }
71
+ },
72
+ "sep_token_id": 1,
73
+ "sparse_pred_ignore_index": -100,
74
+ "sparse_prediction": false,
75
+ "tie_word_embeddings": true,
76
+ "transformers_version": "5.3.0.dev0",
77
+ "vocab_size": 256000
78
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.4.0.dev0",
5
+ "transformers": "5.3.0.dev0",
6
+ "pytorch": "2.10.0+cu128"
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:1038b3fff1ccf8be4dd588ecf917e344977dee64d768042a8a87c39886e8c91f
3
+ size 281000576
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.base.modules.transformer.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformer_task": "feature-extraction",
3
+ "modality_config": {
4
+ "text": {
5
+ "method": "forward",
6
+ "method_output_name": "last_hidden_state"
7
+ }
8
+ },
9
+ "module_output_name": "token_embeddings",
10
+ "message_format": "auto"
11
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a086e6a7efb90bbab8e379a63f3463fb13e6256ebec3343c1f1612cab693935b
3
+ size 34363287
tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<bos>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "cls_token": "<bos>",
6
+ "eos_token": "<eos>",
7
+ "extra_special_tokens": [
8
+ "<start_of_turn>",
9
+ "<end_of_turn>"
10
+ ],
11
+ "is_local": false,
12
+ "mask_token": "<mask>",
13
+ "model_input_names": [
14
+ "input_ids",
15
+ "attention_mask"
16
+ ],
17
+ "model_max_length": 8192,
18
+ "pad_token": "<pad>",
19
+ "padding_side": "right",
20
+ "sep_token": "<eos>",
21
+ "spaces_between_special_tokens": false,
22
+ "tokenizer_class": "TokenizersBackend",
23
+ "unk_token": "<unk>"
24
+ }