Jeswina-123 commited on
Commit
2083549
·
verified ·
1 Parent(s): 2af80d9

Upload folder using huggingface_hub

Browse files
minilm_finetuned/1_Pooling/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "embedding_dimension": 384,
3
+ "pooling_mode": "mean",
4
+ "include_prompt": true
5
+ }
minilm_finetuned/README.md ADDED
@@ -0,0 +1,483 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:10000
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: What are the AA systems called in Russian?
13
+ sentences:
14
+ - 'Non-English terms for air defence include the German Flak (Fliegerabwehrkanone,
15
+ "aircraft defence cannon", also cited as Flugabwehrkanone), whence English flak,
16
+ and the Russian term Protivovozdushnaya oborona (Cyrillic: Противовозду́шная оборо́на),
17
+ a literal translation of "anti-air defence", abbreviated as PVO. In Russian the
18
+ AA systems are called zenitnye (i.e. "pointing to zenith") systems (guns, missiles
19
+ etc.). In French, air defence is called DCA (Défense contre les aéronefs, "aéronef"
20
+ being the generic term for all kind of airborne device (airplane, airship, balloon,
21
+ missile, rocket, etc.)).'
22
+ - After setting up his workshop, Bell continued experiments based on Helmholtz's
23
+ work with electricity and sound. He also modified a melodeon (a type of pump organ)
24
+ so that it could transmit its music electrically over a distance. Once the family
25
+ was settled in, both Bell and his father made plans to establish a teaching practice
26
+ and in 1871, he accompanied his father to Montreal, where Melville was offered
27
+ a position to teach his System of Visible Speech.
28
+ - Beginning in February 1988, the Democratic Movement of Moldova (formerly Moldavia)
29
+ organized public meetings, demonstrations, and song festivals, which gradually
30
+ grew in size and intensity. In the streets, the center of public manifestations
31
+ was the Stephen the Great Monument in Chişinău, and the adjacent park harboring
32
+ Aleea Clasicilor (The "Alee of the Classics [of the Literature]"). On January
33
+ 15, 1988, in a tribute to Mihai Eminescu at his bust on the Aleea Clasicilor,
34
+ Anatol Şalaru submitted a proposal to continue the meetings. In the public discourse,
35
+ the movement called for national awakening, freedom of speech, revival of Moldavian
36
+ traditions, and for attainment of official status for the Romanian language and
37
+ return to the Latin alphabet. The transition from "movement" (an informal association)
38
+ to "front" (a formal association) was seen as a natural "upgrade" once a movement
39
+ gained momentum with the public, and the Soviet authorities no longer dared to
40
+ crack down on it.
41
+ - source_sentence: Which month and year did GQ feature Beyonce on its cover?
42
+ sentences:
43
+ - In September 2010, Beyoncé made her runway modelling debut at Tom Ford's Spring/Summer
44
+ 2011 fashion show. She was named "World's Most Beautiful Woman" by People and
45
+ the "Hottest Female Singer of All Time" by Complex in 2012. In January 2013, GQ
46
+ placed her on its cover, featuring her atop its "100 Sexiest Women of the 21st
47
+ Century" list. VH1 listed her at number 1 on its 100 Sexiest Artists list. Several
48
+ wax figures of Beyoncé are found at Madame Tussauds Wax Museums in major cities
49
+ around the world, including New York, Washington, D.C., Amsterdam, Bangkok, Hollywood
50
+ and Sydney.
51
+ - 'The Canadian Armed Forces (CAF; French: Forces armées canadiennes, FAC), or Canadian
52
+ Forces (CF) (French: les Forces canadiennes, FC), is the unified armed force of
53
+ Canada, as constituted by the National Defence Act, which states: "The Canadian
54
+ Forces are the armed forces of Her Majesty raised by Canada and consist of one
55
+ Service called the Canadian Armed Forces."'
56
+ - The salivary glands (element 30 in numbered diagram) in an insect's mouth produce
57
+ saliva. The salivary ducts lead from the glands to the reservoirs and then forward
58
+ through the head to an opening called the salivarium, located behind the hypopharynx.
59
+ By moving its mouthparts (element 32 in numbered diagram) the insect can mix its
60
+ food with saliva. The mixture of saliva and food then travels through the salivary
61
+ tubes into the mouth, where it begins to break down. Some insects, like flies,
62
+ have extra-oral digestion. Insects using extra-oral digestion expel digestive
63
+ enzymes onto their food to break it down. This strategy allows insects to extract
64
+ a significant proportion of the available nutrients from the food source.:31 The
65
+ gut is where almost all of insects' digestion takes place. It can be divided into
66
+ the foregut, midgut and hindgut.
67
+ - source_sentence: Hellenism contrasts with what other similar concept of era?
68
+ sentences:
69
+ - Small-scale "expedition tourism" has existed since 1957 and is currently subject
70
+ to Antarctic Treaty and Environmental Protocol provisions, but in effect self-regulated
71
+ by the International Association of Antarctica Tour Operators (IAATO). Not all
72
+ vessels associated with Antarctic tourism are members of IAATO, but IAATO members
73
+ account for 95% of the tourist activity. Travel is largely by small or medium
74
+ ship, focusing on specific scenic locations with accessible concentrations of
75
+ iconic wildlife. A total of 37,506 tourists visited during the 2006–07 Austral
76
+ summer with nearly all of them coming from commercial ships. The number was predicted
77
+ to increase to over 80,000 by 2010.
78
+ - On April 23, 2008, Dell announced the closure of one of its biggest Canadian call-centers
79
+ in Kanata, Ontario, terminating approximately 1100 employees, with 500 of those
80
+ redundancies effective on the spot, and with the official closure of the center
81
+ scheduled for the summer. The call-center had opened in 2006 after the city of
82
+ Ottawa won a bid to host it. Less than a year later, Dell planned to double its
83
+ workforce to nearly 3,000 workers add a new building. These plans were reversed,
84
+ due to a high Canadian dollar that made the Ottawa staff relatively expensive,
85
+ and also as part of Dell's turnaround, which involved moving these call-center
86
+ jobs offshore to cut costs. The company had also announced the shutdown of its
87
+ Edmonton, Alberta office, losing 900 jobs. In total, Dell announced the ending
88
+ of about 8,800 jobs in 2007–2008 — 10% of its workforce.
89
+ - '"Hellenistic" is a modern word and a 19th-century concept; the idea of a Hellenistic
90
+ period did not exist in Ancient Greece. Although words related in form or meaning,
91
+ e.g. Hellenist (Ancient Greek: Ἑλληνιστής, Hellēnistēs), have been attested since
92
+ ancient times, it was J. G. Droysen in the mid-19th century, who in his classic
93
+ work Geschichte des Hellenismus, i.e. History of Hellenism, coined the term Hellenistic
94
+ to refer to and define the period when Greek culture spread in the non-Greek world
95
+ after Alexander’s conquest. Following Droysen, Hellenistic and related terms,
96
+ e.g. Hellenism, have been widely used in various contexts; a notable such use
97
+ is in Culture and Anarchy by Matthew Arnold, where Hellenism is used in contrast
98
+ with Hebraism.'
99
+ - source_sentence: What organization is the FBI a subset of?
100
+ sentences:
101
+ - The Federal Bureau of Investigation (FBI) is the domestic intelligence and security
102
+ service of the United States, which simultaneously serves as the nation's prime
103
+ federal law enforcement organization. Operating under the jurisdiction of the
104
+ U.S. Department of Justice, FBI is concurrently a member of the U.S. Intelligence
105
+ Community and reports to both the Attorney General and the Director of National
106
+ Intelligence. A leading U.S. counterterrorism, counterintelligence, and criminal
107
+ investigative organization, FBI has jurisdiction over violations of more than
108
+ 200 categories of federal crimes.
109
+ - The last use of the firing squad between 1608 and the moratorium on judicial executions
110
+ between 1967 and 1977 was when Utah shot James W. Rodgers on March 30, 1960. The
111
+ last use of the gallows between 1608 and the moratorium was when Kansas hanged
112
+ George York on June 22, 1965. The last use of the electric chair between the first
113
+ electrocution on August 6, 1890 and the moratorium was when Oklahoma electrocuted
114
+ James French on August 10, 1966. The last use of the gas chamber between the first
115
+ gassing on February 8, 1924 and the moratorium was when Colorado gassed Luis Monge
116
+ on June 2, 1967.
117
+ - In mid May 1967, the Soviet Union issued warnings to Nasser of an impending Israeli
118
+ attack on Syria, although Chief of Staff Mohamed Fawzi considered the warnings
119
+ to be "baseless". According to Kandil, without Nasser's authorization, Amer used
120
+ the Soviet warnings as a pretext to dispatch troops to Sinai on 14 May, and Nasser
121
+ subsequently demanded UNEF's withdrawal. Earlier that day, Nasser received a warning
122
+ from King Hussein of Israeli-American collusion to drag Egypt into war. The message
123
+ had been originally received by Amer on 2 May, but was withheld from Nasser until
124
+ the Sinai deployment on 14 May. Although in the preceding months, Hussein and
125
+ Nasser had been accusing each other of avoiding a fight with Israel, Hussein was
126
+ nonetheless wary that an Egyptian-Israeli war would risk the West Bank's occupation
127
+ by Israel. Nasser still felt that the US would restrain Israel from attacking
128
+ due to assurances that he received from the US and Soviet Union. In turn, he also
129
+ reassured both powers that Egypt would only act defensively.
130
+ - source_sentence: What is the modern name for the West Saxon dialect of Alfred's
131
+ time?
132
+ sentences:
133
+ - Each of these four dialects was associated with an independent kingdom on the
134
+ island. Of these, Northumbria south of the Tyne, and most of Mercia, were overrun
135
+ by the Vikings during the 9th century. The portion of Mercia that was successfully
136
+ defended, and all of Kent, were then integrated into Wessex under Alfred the Great.
137
+ From that time on, the West Saxon dialect (then in the form now known as Early
138
+ West Saxon) became standardised as the language of government, and as the basis
139
+ for the many works of literature and religious materials produced or translated
140
+ from Latin in that period.
141
+ - Education in Switzerland is very diverse because the constitution of Switzerland
142
+ delegates the authority for the school system to the cantons. There are both public
143
+ and private schools, including many private international schools. The minimum
144
+ age for primary school is about six years in all cantons, but most cantons provide
145
+ a free "children's school" starting at four or five years old. Primary school
146
+ continues until grade four, five or six, depending on the school. Traditionally,
147
+ the first foreign language in school was always one of the other national languages,
148
+ although recently (2000) English was introduced first in a few cantons.
149
+ - At the dawn of the Grand Lodge era, during the 1720s, James Anderson composed
150
+ the first printed constitutions for Freemasons, the basis for most subsequent
151
+ constitutions, which specifically excluded women from Freemasonry. As Freemasonry
152
+ spread, continental masons began to include their ladies in Lodges of Adoption,
153
+ which worked three degrees with the same names as the men's but different content.
154
+ The French officially abandoned the experiment in the early 19th century. Later
155
+ organisations with a similar aim emerged in the United States, but distinguished
156
+ the names of the degrees from those of male masonry.
157
+ pipeline_tag: sentence-similarity
158
+ library_name: sentence-transformers
159
+ ---
160
+
161
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
162
+
163
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.
164
+
165
+ ## Model Details
166
+
167
+ ### Model Description
168
+ - **Model Type:** Sentence Transformer
169
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision 1110a243fdf4706b3f48f1d95db1a4f5529b4d41 -->
170
+ - **Maximum Sequence Length:** 256 tokens
171
+ - **Output Dimensionality:** 384 dimensions
172
+ - **Similarity Function:** Cosine Similarity
173
+ - **Supported Modality:** Text
174
+ <!-- - **Training Dataset:** Unknown -->
175
+ <!-- - **Language:** Unknown -->
176
+ <!-- - **License:** Unknown -->
177
+
178
+ ### Model Sources
179
+
180
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
181
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
182
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
183
+
184
+ ### Full Model Architecture
185
+
186
+ ```
187
+ SentenceTransformer(
188
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
189
+ (1): Pooling({'embedding_dimension': 384, 'pooling_mode': 'mean', 'include_prompt': True})
190
+ (2): Normalize({})
191
+ )
192
+ ```
193
+
194
+ ## Usage
195
+
196
+ ### Direct Usage (Sentence Transformers)
197
+
198
+ First install the Sentence Transformers library:
199
+
200
+ ```bash
201
+ pip install -U sentence-transformers
202
+ ```
203
+ Then you can load this model and run inference.
204
+ ```python
205
+ from sentence_transformers import SentenceTransformer
206
+
207
+ # Download from the 🤗 Hub
208
+ model = SentenceTransformer("sentence_transformers_model_id")
209
+ # Run inference
210
+ sentences = [
211
+ "What is the modern name for the West Saxon dialect of Alfred's time?",
212
+ 'Each of these four dialects was associated with an independent kingdom on the island. Of these, Northumbria south of the Tyne, and most of Mercia, were overrun by the Vikings during the 9th century. The portion of Mercia that was successfully defended, and all of Kent, were then integrated into Wessex under Alfred the Great. From that time on, the West Saxon dialect (then in the form now known as Early West Saxon) became standardised as the language of government, and as the basis for the many works of literature and religious materials produced or translated from Latin in that period.',
213
+ "At the dawn of the Grand Lodge era, during the 1720s, James Anderson composed the first printed constitutions for Freemasons, the basis for most subsequent constitutions, which specifically excluded women from Freemasonry. As Freemasonry spread, continental masons began to include their ladies in Lodges of Adoption, which worked three degrees with the same names as the men's but different content. The French officially abandoned the experiment in the early 19th century. Later organisations with a similar aim emerged in the United States, but distinguished the names of the degrees from those of male masonry.",
214
+ ]
215
+ embeddings = model.encode(sentences)
216
+ print(embeddings.shape)
217
+ # [3, 384]
218
+
219
+ # Get the similarity scores for the embeddings
220
+ similarities = model.similarity(embeddings, embeddings)
221
+ print(similarities)
222
+ # tensor([[ 1.0000, 0.5936, 0.0054],
223
+ # [ 0.5936, 1.0000, -0.0376],
224
+ # [ 0.0054, -0.0376, 1.0000]])
225
+ ```
226
+ <!--
227
+ ### Direct Usage (Transformers)
228
+
229
+ <details><summary>Click to see the direct usage in Transformers</summary>
230
+
231
+ </details>
232
+ -->
233
+
234
+ <!--
235
+ ### Downstream Usage (Sentence Transformers)
236
+
237
+ You can finetune this model on your own dataset.
238
+
239
+ <details><summary>Click to expand</summary>
240
+
241
+ </details>
242
+ -->
243
+
244
+ <!--
245
+ ### Out-of-Scope Use
246
+
247
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
248
+ -->
249
+
250
+ <!--
251
+ ## Bias, Risks and Limitations
252
+
253
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
254
+ -->
255
+
256
+ <!--
257
+ ### Recommendations
258
+
259
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
260
+ -->
261
+
262
+ ## Training Details
263
+
264
+ ### Training Dataset
265
+
266
+ #### Unnamed Dataset
267
+
268
+ * Size: 10,000 training samples
269
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
270
+ * Approximate statistics based on the first 100 samples:
271
+ | | sentence_0 | sentence_1 |
272
+ |:---------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
273
+ | type | string | string |
274
+ | modality | text | text |
275
+ | details | <ul><li>min: 8 tokens</li><li>mean: 14.67 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 33 tokens</li><li>mean: 152.05 tokens</li><li>max: 256 tokens</li></ul> |
276
+ * Samples:
277
+ | sentence_0 | sentence_1 |
278
+ |:------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
279
+ | <code>Plato and Aristotle are known for systematically discussing what?</code> | <code>Subsequently, Plato and Aristotle produced the first systematic discussions of natural philosophy, which did much to shape later investigations of nature. Their development of deductive reasoning was of particular importance and usefulness to later scientific inquiry. Plato founded the Platonic Academy in 387 BC, whose motto was "Let none unversed in geometry enter here", and turned out many notable philosophers. Plato's student Aristotle introduced empiricism and the notion that universal truths can be arrived at via observation and induction, thereby laying the foundations of the scientific method. Aristotle also produced many biological writings that were empirical in nature, focusing on biological causation and the diversity of life. He made countless observations of nature, especially the habits and attributes of plants and animals in the world around him, classified more than 540 animal species, and dissected at least 50. Aristotle's writings profoundly influenced subsequent Isla...</code> |
280
+ | <code>Destiny's Child released a compilation album about which topic?</code> | <code>In January 2013, Destiny's Child released Love Songs, a compilation album of the romance-themed songs from their previous albums and a newly recorded track, "Nuclear". Beyoncé performed the American national anthem singing along with a pre-recorded track at President Obama's second inauguration in Washington, D.C. The following month, Beyoncé performed at the Super Bowl XLVII halftime show, held at the Mercedes-Benz Superdome in New Orleans. The performance stands as the second most tweeted about moment in history at 268,000 tweets per minute. At the 55th Annual Grammy Awards, Beyoncé won for Best Traditional R&B Performance for "Love on Top". Her feature-length documentary film, Life Is But a Dream, first aired on HBO on February 16, 2013. The film, which she directed and produced herself, featured footage from her childhood, her as a mother and businesswoman, recording, rehearsing for live performances, and her return to the spotlight following Blue Ivy's birth. Its DVD release in No...</code> |
281
+ | <code>Which church is located on East 90th Street between Second and Third Avenue?</code> | <code>90th Street is split into two segments. The first segment, West 90th Street begins at Riverside Drive and ends at Central Park West or West Drive, when it is open, in Central Park on the Upper West Side. The second segment of East 90th Street begins at East Drive, at Engineers Gate of Central Park. When East Drive is closed, East 90th Street begins at Fifth Avenue on the Upper East Side and curves to the right at the FDR Drive becoming East End Avenue. Our Lady of Good Counsel Church, is located on East 90th Street between Third Avenue and Second Avenue, across the street from Ruppert Towers (1601 and 1619 Third Avenue) and Ruppert Park. Asphalt Green, which is located on East 90th Street between York Avenue and East End Avenue.</code> |
282
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
283
+ ```json
284
+ {
285
+ "scale": 20.0,
286
+ "similarity_fct": "cos_sim",
287
+ "gather_across_devices": false,
288
+ "directions": [
289
+ "query_to_doc"
290
+ ],
291
+ "partition_mode": "joint",
292
+ "hardness_mode": null,
293
+ "hardness_strength": 0.0
294
+ }
295
+ ```
296
+
297
+ ### Training Hyperparameters
298
+ #### Non-Default Hyperparameters
299
+
300
+ - `per_device_train_batch_size`: 32
301
+ - `per_device_eval_batch_size`: 32
302
+ - `multi_dataset_batch_sampler`: round_robin
303
+
304
+ #### All Hyperparameters
305
+ <details><summary>Click to expand</summary>
306
+
307
+ - `per_device_train_batch_size`: 32
308
+ - `num_train_epochs`: 3
309
+ - `max_steps`: -1
310
+ - `learning_rate`: 5e-05
311
+ - `lr_scheduler_type`: linear
312
+ - `lr_scheduler_kwargs`: None
313
+ - `warmup_steps`: 0
314
+ - `optim`: adamw_torch_fused
315
+ - `optim_args`: None
316
+ - `weight_decay`: 0.0
317
+ - `adam_beta1`: 0.9
318
+ - `adam_beta2`: 0.999
319
+ - `adam_epsilon`: 1e-08
320
+ - `optim_target_modules`: None
321
+ - `gradient_accumulation_steps`: 1
322
+ - `average_tokens_across_devices`: True
323
+ - `max_grad_norm`: 1
324
+ - `label_smoothing_factor`: 0.0
325
+ - `bf16`: False
326
+ - `fp16`: False
327
+ - `bf16_full_eval`: False
328
+ - `fp16_full_eval`: False
329
+ - `tf32`: None
330
+ - `gradient_checkpointing`: False
331
+ - `gradient_checkpointing_kwargs`: None
332
+ - `torch_compile`: False
333
+ - `torch_compile_backend`: None
334
+ - `torch_compile_mode`: None
335
+ - `use_liger_kernel`: False
336
+ - `liger_kernel_config`: None
337
+ - `use_cache`: False
338
+ - `neftune_noise_alpha`: None
339
+ - `torch_empty_cache_steps`: None
340
+ - `auto_find_batch_size`: False
341
+ - `log_on_each_node`: True
342
+ - `logging_nan_inf_filter`: True
343
+ - `include_num_input_tokens_seen`: no
344
+ - `log_level`: passive
345
+ - `log_level_replica`: warning
346
+ - `disable_tqdm`: False
347
+ - `project`: huggingface
348
+ - `trackio_space_id`: None
349
+ - `trackio_bucket_id`: None
350
+ - `trackio_static_space_id`: None
351
+ - `per_device_eval_batch_size`: 32
352
+ - `prediction_loss_only`: True
353
+ - `eval_on_start`: False
354
+ - `eval_do_concat_batches`: True
355
+ - `eval_use_gather_object`: False
356
+ - `eval_accumulation_steps`: None
357
+ - `include_for_metrics`: []
358
+ - `batch_eval_metrics`: False
359
+ - `save_only_model`: False
360
+ - `save_on_each_node`: False
361
+ - `enable_jit_checkpoint`: False
362
+ - `push_to_hub`: False
363
+ - `hub_private_repo`: None
364
+ - `hub_model_id`: None
365
+ - `hub_strategy`: every_save
366
+ - `hub_always_push`: False
367
+ - `hub_revision`: None
368
+ - `load_best_model_at_end`: False
369
+ - `ignore_data_skip`: False
370
+ - `restore_callback_states_from_checkpoint`: False
371
+ - `full_determinism`: False
372
+ - `seed`: 42
373
+ - `data_seed`: None
374
+ - `use_cpu`: False
375
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
376
+ - `parallelism_config`: None
377
+ - `dataloader_drop_last`: False
378
+ - `dataloader_num_workers`: 0
379
+ - `dataloader_pin_memory`: True
380
+ - `dataloader_persistent_workers`: False
381
+ - `dataloader_prefetch_factor`: None
382
+ - `dataloader_multiprocessing_context`: None
383
+ - `dataloader_in_order`: True
384
+ - `remove_unused_columns`: True
385
+ - `label_names`: None
386
+ - `train_sampling_strategy`: random
387
+ - `length_column_name`: length
388
+ - `ddp_find_unused_parameters`: None
389
+ - `ddp_bucket_cap_mb`: None
390
+ - `ddp_broadcast_buffers`: False
391
+ - `ddp_static_graph`: None
392
+ - `ddp_backend`: None
393
+ - `ddp_timeout`: 1800
394
+ - `fsdp`: None
395
+ - `fsdp_config`: None
396
+ - `deepspeed`: None
397
+ - `debug`: []
398
+ - `skip_memory_metrics`: True
399
+ - `do_predict`: False
400
+ - `resume_from_checkpoint`: None
401
+ - `local_rank`: -1
402
+ - `prompts`: None
403
+ - `batch_sampler`: batch_sampler
404
+ - `multi_dataset_batch_sampler`: round_robin
405
+ - `router_mapping`: {}
406
+ - `learning_rate_mapping`: {}
407
+ - `warmup_ratio`: None
408
+
409
+ </details>
410
+
411
+ ### Training Logs
412
+ | Epoch | Step | Training Loss |
413
+ |:------:|:----:|:-------------:|
414
+ | 1.5974 | 500 | 0.0709 |
415
+
416
+
417
+ ### Training Time
418
+ - **Training**: 12.2 hours
419
+
420
+ ### Framework Versions
421
+ - Python: 3.11.0
422
+ - Sentence Transformers: 5.7.0
423
+ - Transformers: 5.17.0
424
+ - PyTorch: 2.14.0+cpu
425
+ - Accelerate: 1.15.0
426
+ - Datasets: 4.8.5
427
+ - Tokenizers: 0.23.2
428
+
429
+ ## Additional Resources
430
+
431
+ - [Training and Finetuning Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-sentence-transformers): the end-to-end guide for training or finetuning Sentence Transformer models.
432
+ - [Introduction to Matryoshka Embedding Models](https://huggingface.co/blog/matryoshka): variable-size embeddings that can be truncated with minimal quality loss.
433
+ - [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://huggingface.co/blog/embedding-quantization): post-training compression of embedding vectors.
434
+ - [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video models through the same API.
435
+ - [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): train multimodal embedding models, with a Visual Document Retrieval walkthrough.
436
+
437
+ ## Citation
438
+
439
+ ### BibTeX
440
+
441
+ #### Sentence Transformers
442
+ ```bibtex
443
+ @inproceedings{reimers-2019-sentence-bert,
444
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
445
+ author = "Reimers, Nils and Gurevych, Iryna",
446
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
447
+ month = "11",
448
+ year = "2019",
449
+ publisher = "Association for Computational Linguistics",
450
+ url = "https://arxiv.org/abs/1908.10084",
451
+ }
452
+ ```
453
+
454
+ #### MultipleNegativesRankingLoss
455
+ ```bibtex
456
+ @misc{oord2019representationlearningcontrastivepredictive,
457
+ title={Representation Learning with Contrastive Predictive Coding},
458
+ author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
459
+ year={2019},
460
+ eprint={1807.03748},
461
+ archivePrefix={arXiv},
462
+ primaryClass={cs.LG},
463
+ url={https://arxiv.org/abs/1807.03748},
464
+ }
465
+ ```
466
+
467
+ <!--
468
+ ## Glossary
469
+
470
+ *Clearly define terms in order to be accessible across audiences.*
471
+ -->
472
+
473
+ <!--
474
+ ## Model Card Authors
475
+
476
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
477
+ -->
478
+
479
+ <!--
480
+ ## Model Card Contact
481
+
482
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
483
+ -->
minilm_finetuned/config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 384,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 1536,
17
+ "is_decoder": false,
18
+ "layer_norm_eps": 1e-12,
19
+ "max_position_embeddings": 512,
20
+ "model_type": "bert",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 6,
23
+ "pad_token_id": 0,
24
+ "position_embedding_type": "absolute",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.17.0",
27
+ "type_vocab_size": 2,
28
+ "use_cache": false,
29
+ "vocab_size": 30522
30
+ }
minilm_finetuned/config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.14.0+cpu",
4
+ "sentence_transformers": "5.7.0",
5
+ "transformers": "5.17.0"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {
10
+ "document": "",
11
+ "query": ""
12
+ },
13
+ "similarity_fn_name": "cosine"
14
+ }
minilm_finetuned/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe82739c732a7795324deb1512ea6cc1cac8552090e3397b6ccdb98766dec858
3
+ size 90864192
minilm_finetuned/modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.sentence_transformer.modules.normalize.Normalize"
19
+ }
20
+ ]
minilm_finetuned/sentence_bert_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
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
+ }
minilm_finetuned/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
minilm_finetuned/tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": true,
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "mask_token": "[MASK]",
9
+ "max_length": 128,
10
+ "model_max_length": 256,
11
+ "never_split": null,
12
+ "pad_to_multiple_of": null,
13
+ "pad_token": "[PAD]",
14
+ "pad_token_type_id": 0,
15
+ "padding_side": "right",
16
+ "sep_token": "[SEP]",
17
+ "stride": 0,
18
+ "strip_accents": null,
19
+ "tokenize_chinese_chars": true,
20
+ "tokenizer_class": "BertTokenizer",
21
+ "truncation_side": "right",
22
+ "truncation_strategy": "longest_first",
23
+ "unk_token": "[UNK]"
24
+ }