Add new SentenceTransformer model.
Browse files- 1_Pooling/config.json +10 -0
- README.md +684 -0
- config.json +24 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- vocab.txt +0 -0
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,684 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/mpnet-base
|
3 |
+
datasets:
|
4 |
+
- sentence-transformers/natural-questions
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
library_name: sentence-transformers
|
8 |
+
license: apache-2.0
|
9 |
+
metrics:
|
10 |
+
- cosine_accuracy@1
|
11 |
+
- cosine_accuracy@3
|
12 |
+
- cosine_accuracy@5
|
13 |
+
- cosine_accuracy@10
|
14 |
+
- cosine_precision@1
|
15 |
+
- cosine_precision@3
|
16 |
+
- cosine_precision@5
|
17 |
+
- cosine_precision@10
|
18 |
+
- cosine_recall@1
|
19 |
+
- cosine_recall@3
|
20 |
+
- cosine_recall@5
|
21 |
+
- cosine_recall@10
|
22 |
+
- cosine_ndcg@10
|
23 |
+
- cosine_mrr@10
|
24 |
+
- cosine_map@100
|
25 |
+
- dot_accuracy@1
|
26 |
+
- dot_accuracy@3
|
27 |
+
- dot_accuracy@5
|
28 |
+
- dot_accuracy@10
|
29 |
+
- dot_precision@1
|
30 |
+
- dot_precision@3
|
31 |
+
- dot_precision@5
|
32 |
+
- dot_precision@10
|
33 |
+
- dot_recall@1
|
34 |
+
- dot_recall@3
|
35 |
+
- dot_recall@5
|
36 |
+
- dot_recall@10
|
37 |
+
- dot_ndcg@10
|
38 |
+
- dot_mrr@10
|
39 |
+
- dot_map@100
|
40 |
+
pipeline_tag: sentence-similarity
|
41 |
+
tags:
|
42 |
+
- sentence-transformers
|
43 |
+
- sentence-similarity
|
44 |
+
- feature-extraction
|
45 |
+
- generated_from_trainer
|
46 |
+
- dataset_size:100231
|
47 |
+
- loss:ImprovedContrastiveLoss
|
48 |
+
widget:
|
49 |
+
- source_sentence: when did the british leave new york city
|
50 |
+
sentences:
|
51 |
+
- Golden State Warriors The Golden State Warriors are an American professional basketball
|
52 |
+
team based in Oakland, California. The Warriors compete in the National Basketball
|
53 |
+
Association (NBA) as a member of the league's Western Conference Pacific Division.
|
54 |
+
The Warriors play their home games at the Oracle Arena in Oakland. The Warriors
|
55 |
+
have reached nine NBA Finals, winning five NBA championships in 1947,[b] 1956,
|
56 |
+
1975, 2015 and 2017. Golden State's five NBA championships are tied for fourth-most
|
57 |
+
in NBA history with the San Antonio Spurs, and behind only the Boston Celtics
|
58 |
+
(17), Los Angeles Lakers (16) and Chicago Bulls (6). As of 2017, the Warriors
|
59 |
+
are the third most valuable NBA franchise according to Forbes, with an estimated
|
60 |
+
value of $2.6Â billion.[6]
|
61 |
+
- Evacuation Day (New York) Evacuation Day on November 25 marks the day in 1783
|
62 |
+
when British troops departed from New York City on Manhattan Island, after the
|
63 |
+
end of the American Revolutionary War. After this British Army evacuation, General
|
64 |
+
George Washington triumphantly led the Continental Army from his former headquarters,
|
65 |
+
north of the city, across the Harlem River south down Manhattan through the town
|
66 |
+
to The Battery at the foot of Broadway.[1]
|
67 |
+
- Biochemical oxygen demand BOD can be used as a gauge of the effectiveness of wastewater
|
68 |
+
treatment plants. It is listed as a conventional pollutant in the U.S. Clean Water
|
69 |
+
Act.[2]
|
70 |
+
- source_sentence: what is the newest generation of the ipad
|
71 |
+
sentences:
|
72 |
+
- Alex Karev Alex is fired by Dr. Lebackes when Maggie Pierce accidentally reveals
|
73 |
+
to him that Karev was thinking about leaving the job. Webber recommended Bailey
|
74 |
+
to fill Yang's board seat after she left, so Bailey and Alex fight over the chair.
|
75 |
+
They both make presentations to the board and eventually Bailey wins, with a unanimous
|
76 |
+
vote in her favor. He is hired back as an attending Peds surgeon and takes over
|
77 |
+
full-time as Arizona pursues a fellowship with Dr. Herman. Alex continues to date
|
78 |
+
Jo and his friendship with Meredith grows stronger than ever, with him taking
|
79 |
+
on the role of her new person. When Derek dies and Meredith runs away, Alex is
|
80 |
+
upset by her leaving without telling him where she went and calls her everyday.
|
81 |
+
Eventually she calls him, tells him she is okay, and to stop calling. When she
|
82 |
+
goes into labor and gives birth to Ellis Shepherd, Alex goes to see her since
|
83 |
+
he is her emergency contact. He brings Meredith and her kids back to her house.
|
84 |
+
She asks to move back in with him in her old house. Alex sells Meredith back the
|
85 |
+
house and he and Jo rent a loft.
|
86 |
+
- List of presidents of the United States by age The median age upon accession to
|
87 |
+
the presidency is 55 years and 3 months. This is how old Lyndon B. Johnson was
|
88 |
+
at the time of his inauguration. The youngest person to assume the office was
|
89 |
+
Theodore Roosevelt, who became president at the age of 42 years, 322 days, following
|
90 |
+
William McKinley's assassination; the oldest was Donald Trump, who was 70 years,
|
91 |
+
220 days old at his inauguration. The youngest person to be elected president
|
92 |
+
was John F. Kennedy, at 43 years, 163 days of age on election day; the oldest
|
93 |
+
was Ronald Reagan, who was 73 years, 274 days old at the time of his election
|
94 |
+
to a second term.
|
95 |
+
- iPad (2018) The iPad (officially sixth-generation iPad) is a 9.7-inch (25cm) tablet
|
96 |
+
computer designed, developed, and marketed by Apple Inc. It was announced on March
|
97 |
+
27, 2018 during an education-focused event in Chicago and it is a revision of
|
98 |
+
the 2017 model, upgraded with the Apple A10 Fusion SoC and support for styluses
|
99 |
+
such as Apple Pencil.[2] The iPad is marketed towards educators and schools.
|
100 |
+
- source_sentence: what is the average speed of passenger airplane
|
101 |
+
sentences:
|
102 |
+
- Fixed exchange-rate system In the 21st century, the currencies associated with
|
103 |
+
large economies typically do not fix or peg exchange rates to other currencies.
|
104 |
+
The last large economy to use a fixed exchange rate system was the People's Republic
|
105 |
+
of China which, in July 2005, adopted a slightly more flexible exchange rate system
|
106 |
+
called a managed exchange rate.[2] The European Exchange Rate Mechanism is also
|
107 |
+
used on a temporary basis to establish a final conversion rate against the Euro
|
108 |
+
(€) from the local currencies of countries joining the Eurozone.
|
109 |
+
- Tenth Doctor The Tenth Doctor is an incarnation of the Doctor, the protagonist
|
110 |
+
of the BBC science fiction television programme Doctor Who, who is played by David
|
111 |
+
Tennant in three series as well as nine specials. As with previous incarnations
|
112 |
+
of the Doctor, the character has also appeared in other Doctor Who spin-offs.
|
113 |
+
In the programme's narrative, the Doctor is a centuries-old Time Lord alien from
|
114 |
+
the planet Gallifrey who travels in time in his TARDIS, frequently with companions.
|
115 |
+
When the Doctor is critically injured beyond medical repair, he can regenerate
|
116 |
+
his body; in doing so, his physical appearance and personality change, and a new
|
117 |
+
actor assumes the role. Tennant's portrayal of the Doctor is of an outwardly charismatic
|
118 |
+
and charming adventurer whose likable and easygoing attitude can quickly turn
|
119 |
+
to righteous fury when provoked.
|
120 |
+
- Cruise (aeronautics) The typical cruising airspeed for a long-distance commercial
|
121 |
+
passenger aircraft is approximately 475–500 knots (878–926 km/h; 546–575 mph).
|
122 |
+
- source_sentence: when is cars three going to be released
|
123 |
+
sentences:
|
124 |
+
- Benedict's reagent The color of the obtained precipitate gives an idea about the
|
125 |
+
quantity of sugar present in the solution, hence the test is semi-quantitative.
|
126 |
+
A greenish precipitate indicates about 0.5 g% concentration; yellow precipitate
|
127 |
+
indicates 1 g% concentration; orange indicates 1.5 g% and red indicates 2 g% or
|
128 |
+
higher concentration.
|
129 |
+
- Cars 3 The film was released on June 16, 2017, has grossed over $362 million worldwide
|
130 |
+
and received generally positive reviews, with many critics considering it an improvement
|
131 |
+
over its predecessor, as well as praising its emotional story and animation.[7]
|
132 |
+
- Sleeping Beauty At the christening of a king and queen's long-wished-for child,
|
133 |
+
seven good fairies are invited to be godmothers to the infant princess. The fairies
|
134 |
+
attend the banquet at the palace. Each fairy is presented with a golden plate
|
135 |
+
and drinking cups adorned with jewels. Soon after, an old fairy enters the palace
|
136 |
+
and is seated with a plate of fine china and a crystal drinking glass. This old
|
137 |
+
fairy is overlooked because she has been within a tower for many years and everyone
|
138 |
+
had believed her to be deceased. Six of the other seven fairies then offer their
|
139 |
+
gifts of beauty, wit, grace, dance, song, and goodness to the infant princess.
|
140 |
+
The evil fairy is very angry about having been forgotten, and as her gift, enchants
|
141 |
+
the infant princess so that she will one day prick her finger on a spindle of
|
142 |
+
a spinning wheel and die. The seventh fairy, who hasn't yet given her gift, attempts
|
143 |
+
to reverse the evil fairy's curse. However, she can only do so partially. Instead
|
144 |
+
of dying, the Princess will fall into a deep sleep for 100 years and be awakened
|
145 |
+
by a kiss from a king's son.
|
146 |
+
- source_sentence: who was ancient china's main enemy that lived to the north
|
147 |
+
sentences:
|
148 |
+
- Betty Lynn Elizabeth Ann Theresa "Betty" Lynn[1] (born August 29, 1926) is a former
|
149 |
+
American actress. She is best known for her role as Thelma Lou, Deputy Barney
|
150 |
+
Fife's girlfriend, on The Andy Griffith Show.
|
151 |
+
- Sampath Bank Sampath Bank PLC is a licensed commercial bank incorporated in Sri
|
152 |
+
Lanka in 1986 with 229 branches and 373 ATMs island wide. It has won the "Bank
|
153 |
+
of the Year" award by "The Banker" of Financial Times Limited – London, for
|
154 |
+
the second consecutive year and the "National Business Excellence Awards 2010".[citation
|
155 |
+
needed] It has become the third largest private sector bank in Sri Lanka with
|
156 |
+
Rs. 453 billion in deposits as of 30 June 2016.[1]
|
157 |
+
- 'Sui dynasty The Sui Dynasty (Chinese: 隋朝; pinyin: Suí cháo) was a short-lived
|
158 |
+
imperial dynasty of China of pivotal significance. The Sui unified the Northern
|
159 |
+
and Southern dynasties and reinstalled the rule of ethnic Han Chinese in the entirety
|
160 |
+
of China proper, along with sinicization of former nomadic ethnic minorities (the
|
161 |
+
Five Barbarians) within its territory. It was succeeded by the Tang dynasty, which
|
162 |
+
largely inherited its foundation.'
|
163 |
+
co2_eq_emissions:
|
164 |
+
emissions: 171.00505800984172
|
165 |
+
energy_consumed: 0.4399387140015789
|
166 |
+
source: codecarbon
|
167 |
+
training_type: fine-tuning
|
168 |
+
on_cloud: false
|
169 |
+
cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K
|
170 |
+
ram_total_size: 31.777088165283203
|
171 |
+
hours_used: 1.139
|
172 |
+
hardware_used: 1 x NVIDIA GeForce RTX 3090
|
173 |
+
model-index:
|
174 |
+
- name: MPNet base trained on Natural Questions pairs
|
175 |
+
results:
|
176 |
+
- task:
|
177 |
+
type: information-retrieval
|
178 |
+
name: Information Retrieval
|
179 |
+
dataset:
|
180 |
+
name: natural questions dev
|
181 |
+
type: natural-questions-dev
|
182 |
+
metrics:
|
183 |
+
- type: cosine_accuracy@1
|
184 |
+
value: 0.5886032645880168
|
185 |
+
name: Cosine Accuracy@1
|
186 |
+
- type: cosine_accuracy@3
|
187 |
+
value: 0.8148763561724172
|
188 |
+
name: Cosine Accuracy@3
|
189 |
+
- type: cosine_accuracy@5
|
190 |
+
value: 0.8832958655067931
|
191 |
+
name: Cosine Accuracy@5
|
192 |
+
- type: cosine_accuracy@10
|
193 |
+
value: 0.9410614798162448
|
194 |
+
name: Cosine Accuracy@10
|
195 |
+
- type: cosine_precision@1
|
196 |
+
value: 0.5886032645880168
|
197 |
+
name: Cosine Precision@1
|
198 |
+
- type: cosine_precision@3
|
199 |
+
value: 0.27162545205747235
|
200 |
+
name: Cosine Precision@3
|
201 |
+
- type: cosine_precision@5
|
202 |
+
value: 0.17665917310135862
|
203 |
+
name: Cosine Precision@5
|
204 |
+
- type: cosine_precision@10
|
205 |
+
value: 0.09410614798162449
|
206 |
+
name: Cosine Precision@10
|
207 |
+
- type: cosine_recall@1
|
208 |
+
value: 0.5886032645880168
|
209 |
+
name: Cosine Recall@1
|
210 |
+
- type: cosine_recall@3
|
211 |
+
value: 0.8148763561724172
|
212 |
+
name: Cosine Recall@3
|
213 |
+
- type: cosine_recall@5
|
214 |
+
value: 0.8832958655067931
|
215 |
+
name: Cosine Recall@5
|
216 |
+
- type: cosine_recall@10
|
217 |
+
value: 0.9410614798162448
|
218 |
+
name: Cosine Recall@10
|
219 |
+
- type: cosine_ndcg@10
|
220 |
+
value: 0.769304304207993
|
221 |
+
name: Cosine Ndcg@10
|
222 |
+
- type: cosine_mrr@10
|
223 |
+
value: 0.7136417796519368
|
224 |
+
name: Cosine Mrr@10
|
225 |
+
- type: cosine_map@100
|
226 |
+
value: 0.7163262351468975
|
227 |
+
name: Cosine Map@100
|
228 |
+
- type: dot_accuracy@1
|
229 |
+
value: 0.5153943896002345
|
230 |
+
name: Dot Accuracy@1
|
231 |
+
- type: dot_accuracy@3
|
232 |
+
value: 0.7485094321180725
|
233 |
+
name: Dot Accuracy@3
|
234 |
+
- type: dot_accuracy@5
|
235 |
+
value: 0.8219137914182387
|
236 |
+
name: Dot Accuracy@5
|
237 |
+
- type: dot_accuracy@10
|
238 |
+
value: 0.8932655654383735
|
239 |
+
name: Dot Accuracy@10
|
240 |
+
- type: dot_precision@1
|
241 |
+
value: 0.5153943896002345
|
242 |
+
name: Dot Precision@1
|
243 |
+
- type: dot_precision@3
|
244 |
+
value: 0.2495031440393575
|
245 |
+
name: Dot Precision@3
|
246 |
+
- type: dot_precision@5
|
247 |
+
value: 0.16438275828364773
|
248 |
+
name: Dot Precision@5
|
249 |
+
- type: dot_precision@10
|
250 |
+
value: 0.08932655654383737
|
251 |
+
name: Dot Precision@10
|
252 |
+
- type: dot_recall@1
|
253 |
+
value: 0.5153943896002345
|
254 |
+
name: Dot Recall@1
|
255 |
+
- type: dot_recall@3
|
256 |
+
value: 0.7485094321180725
|
257 |
+
name: Dot Recall@3
|
258 |
+
- type: dot_recall@5
|
259 |
+
value: 0.8219137914182387
|
260 |
+
name: Dot Recall@5
|
261 |
+
- type: dot_recall@10
|
262 |
+
value: 0.8932655654383735
|
263 |
+
name: Dot Recall@10
|
264 |
+
- type: dot_ndcg@10
|
265 |
+
value: 0.7056782708639685
|
266 |
+
name: Dot Ndcg@10
|
267 |
+
- type: dot_mrr@10
|
268 |
+
value: 0.6453053511503243
|
269 |
+
name: Dot Mrr@10
|
270 |
+
- type: dot_map@100
|
271 |
+
value: 0.6498747716288641
|
272 |
+
name: Dot Map@100
|
273 |
+
---
|
274 |
+
|
275 |
+
# MPNet base trained on Natural Questions pairs
|
276 |
+
|
277 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) on the [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) 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.
|
278 |
+
|
279 |
+
## Model Details
|
280 |
+
|
281 |
+
### Model Description
|
282 |
+
- **Model Type:** Sentence Transformer
|
283 |
+
- **Base model:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) <!-- at revision 6996ce1e91bd2a9c7d7f61daec37463394f73f09 -->
|
284 |
+
- **Maximum Sequence Length:** 512 tokens
|
285 |
+
- **Output Dimensionality:** 768 tokens
|
286 |
+
- **Similarity Function:** Cosine Similarity
|
287 |
+
- **Training Dataset:**
|
288 |
+
- [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions)
|
289 |
+
- **Language:** en
|
290 |
+
- **License:** apache-2.0
|
291 |
+
|
292 |
+
### Model Sources
|
293 |
+
|
294 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
295 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
296 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
297 |
+
|
298 |
+
### Full Model Architecture
|
299 |
+
|
300 |
+
```
|
301 |
+
SentenceTransformer(
|
302 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
|
303 |
+
(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})
|
304 |
+
)
|
305 |
+
```
|
306 |
+
|
307 |
+
## Usage
|
308 |
+
|
309 |
+
### Direct Usage (Sentence Transformers)
|
310 |
+
|
311 |
+
First install the Sentence Transformers library:
|
312 |
+
|
313 |
+
```bash
|
314 |
+
pip install -U sentence-transformers
|
315 |
+
```
|
316 |
+
|
317 |
+
Then you can load this model and run inference.
|
318 |
+
```python
|
319 |
+
from sentence_transformers import SentenceTransformer
|
320 |
+
|
321 |
+
# Download from the 🤗 Hub
|
322 |
+
model = SentenceTransformer("tomaarsen/mpnet-base-natural-questions-icl")
|
323 |
+
# Run inference
|
324 |
+
sentences = [
|
325 |
+
"who was ancient china's main enemy that lived to the north",
|
326 |
+
'Sui dynasty The Sui Dynasty (Chinese: 隋朝; pinyin: Suí cháo) was a short-lived imperial dynasty of China of pivotal significance. The Sui unified the Northern and Southern dynasties and reinstalled the rule of ethnic Han Chinese in the entirety of China proper, along with sinicization of former nomadic ethnic minorities (the Five Barbarians) within its territory. It was succeeded by the Tang dynasty, which largely inherited its foundation.',
|
327 |
+
'Sampath Bank Sampath Bank PLC is a licensed commercial bank incorporated in Sri Lanka in 1986 with 229 branches and 373 ATMs island wide. It has won the "Bank of the Year" award by "The Banker" of Financial Times Limited – London, for the second consecutive year and the "National Business Excellence Awards 2010".[citation needed] It has become the third largest private sector bank in Sri Lanka with Rs. 453 billion in deposits as of 30 June 2016.[1]',
|
328 |
+
]
|
329 |
+
embeddings = model.encode(sentences)
|
330 |
+
print(embeddings.shape)
|
331 |
+
# [3, 768]
|
332 |
+
|
333 |
+
# Get the similarity scores for the embeddings
|
334 |
+
similarities = model.similarity(embeddings, embeddings)
|
335 |
+
print(similarities.shape)
|
336 |
+
# [3, 3]
|
337 |
+
```
|
338 |
+
|
339 |
+
<!--
|
340 |
+
### Direct Usage (Transformers)
|
341 |
+
|
342 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
343 |
+
|
344 |
+
</details>
|
345 |
+
-->
|
346 |
+
|
347 |
+
<!--
|
348 |
+
### Downstream Usage (Sentence Transformers)
|
349 |
+
|
350 |
+
You can finetune this model on your own dataset.
|
351 |
+
|
352 |
+
<details><summary>Click to expand</summary>
|
353 |
+
|
354 |
+
</details>
|
355 |
+
-->
|
356 |
+
|
357 |
+
<!--
|
358 |
+
### Out-of-Scope Use
|
359 |
+
|
360 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
361 |
+
-->
|
362 |
+
|
363 |
+
## Evaluation
|
364 |
+
|
365 |
+
### Metrics
|
366 |
+
|
367 |
+
#### Information Retrieval
|
368 |
+
* Dataset: `natural-questions-dev`
|
369 |
+
* Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
|
370 |
+
|
371 |
+
| Metric | Value |
|
372 |
+
|:--------------------|:-----------|
|
373 |
+
| cosine_accuracy@1 | 0.5886 |
|
374 |
+
| cosine_accuracy@3 | 0.8149 |
|
375 |
+
| cosine_accuracy@5 | 0.8833 |
|
376 |
+
| cosine_accuracy@10 | 0.9411 |
|
377 |
+
| cosine_precision@1 | 0.5886 |
|
378 |
+
| cosine_precision@3 | 0.2716 |
|
379 |
+
| cosine_precision@5 | 0.1767 |
|
380 |
+
| cosine_precision@10 | 0.0941 |
|
381 |
+
| cosine_recall@1 | 0.5886 |
|
382 |
+
| cosine_recall@3 | 0.8149 |
|
383 |
+
| cosine_recall@5 | 0.8833 |
|
384 |
+
| cosine_recall@10 | 0.9411 |
|
385 |
+
| cosine_ndcg@10 | 0.7693 |
|
386 |
+
| cosine_mrr@10 | 0.7136 |
|
387 |
+
| **cosine_map@100** | **0.7163** |
|
388 |
+
| dot_accuracy@1 | 0.5154 |
|
389 |
+
| dot_accuracy@3 | 0.7485 |
|
390 |
+
| dot_accuracy@5 | 0.8219 |
|
391 |
+
| dot_accuracy@10 | 0.8933 |
|
392 |
+
| dot_precision@1 | 0.5154 |
|
393 |
+
| dot_precision@3 | 0.2495 |
|
394 |
+
| dot_precision@5 | 0.1644 |
|
395 |
+
| dot_precision@10 | 0.0893 |
|
396 |
+
| dot_recall@1 | 0.5154 |
|
397 |
+
| dot_recall@3 | 0.7485 |
|
398 |
+
| dot_recall@5 | 0.8219 |
|
399 |
+
| dot_recall@10 | 0.8933 |
|
400 |
+
| dot_ndcg@10 | 0.7057 |
|
401 |
+
| dot_mrr@10 | 0.6453 |
|
402 |
+
| dot_map@100 | 0.6499 |
|
403 |
+
|
404 |
+
<!--
|
405 |
+
## Bias, Risks and Limitations
|
406 |
+
|
407 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
408 |
+
-->
|
409 |
+
|
410 |
+
<!--
|
411 |
+
### Recommendations
|
412 |
+
|
413 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
414 |
+
-->
|
415 |
+
|
416 |
+
## Training Details
|
417 |
+
|
418 |
+
### Training Dataset
|
419 |
+
|
420 |
+
#### natural-questions
|
421 |
+
|
422 |
+
* Dataset: [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) at [f9e894e](https://huggingface.co/datasets/sentence-transformers/natural-questions/tree/f9e894e1081e206e577b4eaa9ee6de2b06ae6f17)
|
423 |
+
* Size: 100,231 training samples
|
424 |
+
* Columns: <code>query</code> and <code>answer</code>
|
425 |
+
* Approximate statistics based on the first 1000 samples:
|
426 |
+
| | query | answer |
|
427 |
+
|:--------|:-----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
|
428 |
+
| type | string | string |
|
429 |
+
| details | <ul><li>min: 10 tokens</li><li>mean: 11.74 tokens</li><li>max: 21 tokens</li></ul> | <ul><li>min: 17 tokens</li><li>mean: 135.66 tokens</li><li>max: 512 tokens</li></ul> |
|
430 |
+
* Samples:
|
431 |
+
| query | answer |
|
432 |
+
|:----------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
433 |
+
| <code>when did richmond last play in a preliminary final</code> | <code>Richmond Football Club Richmond began 2017 with 5 straight wins, a feat it had not achieved since 1995. A series of close losses hampered the Tigers throughout the middle of the season, including a 5-point loss to the Western Bulldogs, 2-point loss to Fremantle, and a 3-point loss to the Giants. Richmond ended the season strongly with convincing victories over Fremantle and St Kilda in the final two rounds, elevating the club to 3rd on the ladder. Richmond's first final of the season against the Cats at the MCG attracted a record qualifying final crowd of 95,028; the Tigers won by 51 points. Having advanced to the first preliminary finals for the first time since 2001, Richmond defeated Greater Western Sydney by 36 points in front of a crowd of 94,258 to progress to the Grand Final against Adelaide, their first Grand Final appearance since 1982. The attendance was 100,021, the largest crowd to a grand final since 1986. The Crows led at quarter time and led by as many as 13, but the Tigers took over the game as it progressed and scored seven straight goals at one point. They eventually would win by 48 points – 16.12 (108) to Adelaide's 8.12 (60) – to end their 37-year flag drought.[22] Dustin Martin also became the first player to win a Premiership medal, the Brownlow Medal and the Norm Smith Medal in the same season, while Damien Hardwick was named AFL Coaches Association Coach of the Year. Richmond's jump from 13th to premiers also marked the biggest jump from one AFL season to the next.</code> |
|
434 |
+
| <code>who sang what in the world's come over you</code> | <code>Jack Scott (singer) At the beginning of 1960, Scott again changed record labels, this time to Top Rank Records.[1] He then recorded four Billboard Hot 100 hits – "What in the World's Come Over You" (#5), "Burning Bridges" (#3) b/w "Oh Little One" (#34), and "It Only Happened Yesterday" (#38).[1] "What in the World's Come Over You" was Scott's second gold disc winner.[6] Scott continued to record and perform during the 1960s and 1970s.[1] His song "You're Just Gettin' Better" reached the country charts in 1974.[1] In May 1977, Scott recorded a Peel session for BBC Radio 1 disc jockey, John Peel.</code> |
|
435 |
+
| <code>who produces the most wool in the world</code> | <code>Wool Global wool production is about 2 million tonnes per year, of which 60% goes into apparel. Wool comprises ca 3% of the global textile market, but its value is higher owing to dying and other modifications of the material.[1] Australia is a leading producer of wool which is mostly from Merino sheep but has been eclipsed by China in terms of total weight.[30] New Zealand (2016) is the third-largest producer of wool, and the largest producer of crossbred wool. Breeds such as Lincoln, Romney, Drysdale, and Elliotdale produce coarser fibers, and wool from these sheep is usually used for making carpets.</code> |
|
436 |
+
* Loss: <code>__main__.ImprovedContrastiveLoss</code> with these parameters:
|
437 |
+
```json
|
438 |
+
{
|
439 |
+
"temperature": 0.01
|
440 |
+
}
|
441 |
+
```
|
442 |
+
|
443 |
+
### Evaluation Dataset
|
444 |
+
|
445 |
+
#### natural-questions
|
446 |
+
|
447 |
+
* Dataset: [natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) at [f9e894e](https://huggingface.co/datasets/sentence-transformers/natural-questions/tree/f9e894e1081e206e577b4eaa9ee6de2b06ae6f17)
|
448 |
+
* Size: 100,231 evaluation samples
|
449 |
+
* Columns: <code>query</code> and <code>answer</code>
|
450 |
+
* Approximate statistics based on the first 1000 samples:
|
451 |
+
| | query | answer |
|
452 |
+
|:--------|:-----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
|
453 |
+
| type | string | string |
|
454 |
+
| details | <ul><li>min: 10 tokens</li><li>mean: 11.79 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>min: 15 tokens</li><li>mean: 142.78 tokens</li><li>max: 512 tokens</li></ul> |
|
455 |
+
* Samples:
|
456 |
+
| query | answer |
|
457 |
+
|:--------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
458 |
+
| <code>who betrayed siraj ud daula in the battle of plassey in 1757</code> | <code>Siraj ud-Daulah The Battle of Plassey (or Palashi) is widely considered the turning point in the history of the subcontinent, and opened the way to eventual British domination. After Siraj-ud-Daulah's conquest of Calcutta, the British sent fresh troops from Madras to recapture the fort and avenge the attack. A retreating Siraj-ud-Daulah met the British at Plassey. He had to make camp 27 miles away from Murshidabad. On 23 June 1757 Siraj-ud-Daulah called on Mir Jafar because he was saddened by the sudden fall of Mir Mardan who was a very dear companion of Siraj in battles. The Nawab asked for help from Mir Jafar. Mir Jafar advised Siraj to retreat for that day. The Nawab made the blunder in giving the order to stop the fight. Following his command, the soldiers of the Nawab were returning to their camps. At that time, Robert Clive attacked the soldiers with his army. At such a sudden attack, the army of Siraj became indisciplined and could think of no way to fight. So all fled away in such a situation. Betrayed by a conspiracy plotted by Jagat Seth, Mir Jafar, Krishna Chandra, Omichund etc., he lost the battle and had to escape. He went first to Murshidabad and then to Patna by boat, but was eventually arrested by Mir Jafar's soldiers.</code> |
|
459 |
+
| <code>what is the meaning of single malt whisky</code> | <code>Single malt whisky Single malt whisky is malt whisky from a single distillery, that is, whisky distilled from fermented mash made exclusively with malted grain (usually barley), as distinguished from unmalted grain.</code> |
|
460 |
+
| <code>when is despicable me 3 going to release</code> | <code>Despicable Me 3 Despicable Me 3 premiered on June 14, 2017, at the Annecy International Animated Film Festival, and was released in the United States on June 30, 2017, by Universal Pictures in 3D, RealD 3D, Dolby Cinema, and IMAX 3D. The film received mixed reviews from critics[7] and has grossed over $1 billion worldwide, making it the third highest-grossing film of 2017, the fifth highest-grossing animated film of all time and the 28th highest-grossing overall. It is Illumination's second film to gross over $1 billion, after Minions in 2015, becoming the first ever animated franchise to do so.</code> |
|
461 |
+
* Loss: <code>__main__.ImprovedContrastiveLoss</code> with these parameters:
|
462 |
+
```json
|
463 |
+
{
|
464 |
+
"temperature": 0.01
|
465 |
+
}
|
466 |
+
```
|
467 |
+
|
468 |
+
### Training Hyperparameters
|
469 |
+
#### Non-Default Hyperparameters
|
470 |
+
|
471 |
+
- `eval_strategy`: steps
|
472 |
+
- `per_device_train_batch_size`: 32
|
473 |
+
- `per_device_eval_batch_size`: 32
|
474 |
+
- `learning_rate`: 2e-05
|
475 |
+
- `num_train_epochs`: 1
|
476 |
+
- `warmup_ratio`: 0.1
|
477 |
+
- `bf16`: True
|
478 |
+
- `batch_sampler`: no_duplicates
|
479 |
+
|
480 |
+
#### All Hyperparameters
|
481 |
+
<details><summary>Click to expand</summary>
|
482 |
+
|
483 |
+
- `overwrite_output_dir`: False
|
484 |
+
- `do_predict`: False
|
485 |
+
- `eval_strategy`: steps
|
486 |
+
- `prediction_loss_only`: True
|
487 |
+
- `per_device_train_batch_size`: 32
|
488 |
+
- `per_device_eval_batch_size`: 32
|
489 |
+
- `per_gpu_train_batch_size`: None
|
490 |
+
- `per_gpu_eval_batch_size`: None
|
491 |
+
- `gradient_accumulation_steps`: 1
|
492 |
+
- `eval_accumulation_steps`: None
|
493 |
+
- `learning_rate`: 2e-05
|
494 |
+
- `weight_decay`: 0.0
|
495 |
+
- `adam_beta1`: 0.9
|
496 |
+
- `adam_beta2`: 0.999
|
497 |
+
- `adam_epsilon`: 1e-08
|
498 |
+
- `max_grad_norm`: 1.0
|
499 |
+
- `num_train_epochs`: 1
|
500 |
+
- `max_steps`: -1
|
501 |
+
- `lr_scheduler_type`: linear
|
502 |
+
- `lr_scheduler_kwargs`: {}
|
503 |
+
- `warmup_ratio`: 0.1
|
504 |
+
- `warmup_steps`: 0
|
505 |
+
- `log_level`: passive
|
506 |
+
- `log_level_replica`: warning
|
507 |
+
- `log_on_each_node`: True
|
508 |
+
- `logging_nan_inf_filter`: True
|
509 |
+
- `save_safetensors`: True
|
510 |
+
- `save_on_each_node`: False
|
511 |
+
- `save_only_model`: False
|
512 |
+
- `restore_callback_states_from_checkpoint`: False
|
513 |
+
- `no_cuda`: False
|
514 |
+
- `use_cpu`: False
|
515 |
+
- `use_mps_device`: False
|
516 |
+
- `seed`: 42
|
517 |
+
- `data_seed`: None
|
518 |
+
- `jit_mode_eval`: False
|
519 |
+
- `use_ipex`: False
|
520 |
+
- `bf16`: True
|
521 |
+
- `fp16`: False
|
522 |
+
- `fp16_opt_level`: O1
|
523 |
+
- `half_precision_backend`: auto
|
524 |
+
- `bf16_full_eval`: False
|
525 |
+
- `fp16_full_eval`: False
|
526 |
+
- `tf32`: None
|
527 |
+
- `local_rank`: 0
|
528 |
+
- `ddp_backend`: None
|
529 |
+
- `tpu_num_cores`: None
|
530 |
+
- `tpu_metrics_debug`: False
|
531 |
+
- `debug`: []
|
532 |
+
- `dataloader_drop_last`: False
|
533 |
+
- `dataloader_num_workers`: 0
|
534 |
+
- `dataloader_prefetch_factor`: None
|
535 |
+
- `past_index`: -1
|
536 |
+
- `disable_tqdm`: False
|
537 |
+
- `remove_unused_columns`: True
|
538 |
+
- `label_names`: None
|
539 |
+
- `load_best_model_at_end`: False
|
540 |
+
- `ignore_data_skip`: False
|
541 |
+
- `fsdp`: []
|
542 |
+
- `fsdp_min_num_params`: 0
|
543 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
544 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
545 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
546 |
+
- `deepspeed`: None
|
547 |
+
- `label_smoothing_factor`: 0.0
|
548 |
+
- `optim`: adamw_torch
|
549 |
+
- `optim_args`: None
|
550 |
+
- `adafactor`: False
|
551 |
+
- `group_by_length`: False
|
552 |
+
- `length_column_name`: length
|
553 |
+
- `ddp_find_unused_parameters`: None
|
554 |
+
- `ddp_bucket_cap_mb`: None
|
555 |
+
- `ddp_broadcast_buffers`: False
|
556 |
+
- `dataloader_pin_memory`: True
|
557 |
+
- `dataloader_persistent_workers`: False
|
558 |
+
- `skip_memory_metrics`: True
|
559 |
+
- `use_legacy_prediction_loop`: False
|
560 |
+
- `push_to_hub`: False
|
561 |
+
- `resume_from_checkpoint`: None
|
562 |
+
- `hub_model_id`: None
|
563 |
+
- `hub_strategy`: every_save
|
564 |
+
- `hub_private_repo`: False
|
565 |
+
- `hub_always_push`: False
|
566 |
+
- `gradient_checkpointing`: False
|
567 |
+
- `gradient_checkpointing_kwargs`: None
|
568 |
+
- `include_inputs_for_metrics`: False
|
569 |
+
- `eval_do_concat_batches`: True
|
570 |
+
- `fp16_backend`: auto
|
571 |
+
- `push_to_hub_model_id`: None
|
572 |
+
- `push_to_hub_organization`: None
|
573 |
+
- `mp_parameters`:
|
574 |
+
- `auto_find_batch_size`: False
|
575 |
+
- `full_determinism`: False
|
576 |
+
- `torchdynamo`: None
|
577 |
+
- `ray_scope`: last
|
578 |
+
- `ddp_timeout`: 1800
|
579 |
+
- `torch_compile`: False
|
580 |
+
- `torch_compile_backend`: None
|
581 |
+
- `torch_compile_mode`: None
|
582 |
+
- `dispatch_batches`: None
|
583 |
+
- `split_batches`: None
|
584 |
+
- `include_tokens_per_second`: False
|
585 |
+
- `include_num_input_tokens_seen`: False
|
586 |
+
- `neftune_noise_alpha`: None
|
587 |
+
- `optim_target_modules`: None
|
588 |
+
- `batch_eval_metrics`: False
|
589 |
+
- `batch_sampler`: no_duplicates
|
590 |
+
- `multi_dataset_batch_sampler`: proportional
|
591 |
+
|
592 |
+
</details>
|
593 |
+
|
594 |
+
### Training Logs
|
595 |
+
| Epoch | Step | Training Loss | loss | natural-questions-dev_cosine_map@100 |
|
596 |
+
|:------:|:----:|:-------------:|:------:|:------------------------------------:|
|
597 |
+
| 0 | 0 | - | - | 0.1228 |
|
598 |
+
| 0.0004 | 1 | 12.7798 | - | - |
|
599 |
+
| 0.0355 | 100 | 3.9819 | 1.0786 | 0.5069 |
|
600 |
+
| 0.0711 | 200 | 0.9481 | 0.8211 | 0.6407 |
|
601 |
+
| 0.1066 | 300 | 0.8286 | 0.8080 | 0.6565 |
|
602 |
+
| 0.1422 | 400 | 0.8069 | 0.7917 | 0.6608 |
|
603 |
+
| 0.1777 | 500 | 0.8148 | 0.7781 | 0.6778 |
|
604 |
+
| 0.2133 | 600 | 0.7887 | 0.7719 | 0.6790 |
|
605 |
+
| 0.2488 | 700 | 0.7866 | 0.7651 | 0.6817 |
|
606 |
+
| 0.2844 | 800 | 0.7848 | 0.7768 | 0.6836 |
|
607 |
+
| 0.3199 | 900 | 0.7702 | 0.7628 | 0.6863 |
|
608 |
+
| 0.3555 | 1000 | 0.7774 | 0.7558 | 0.6987 |
|
609 |
+
| 0.3910 | 1100 | 0.7537 | 0.7630 | 0.6871 |
|
610 |
+
| 0.4266 | 1200 | 0.7588 | 0.7524 | 0.7012 |
|
611 |
+
| 0.4621 | 1300 | 0.7688 | 0.7544 | 0.6942 |
|
612 |
+
| 0.4977 | 1400 | 0.7454 | 0.7567 | 0.6910 |
|
613 |
+
| 0.5332 | 1500 | 0.7371 | 0.7498 | 0.7047 |
|
614 |
+
| 0.5688 | 1600 | 0.7581 | 0.7529 | 0.6953 |
|
615 |
+
| 0.6043 | 1700 | 0.7922 | 0.7465 | 0.6967 |
|
616 |
+
| 0.6399 | 1800 | 0.7528 | 0.7474 | 0.7021 |
|
617 |
+
| 0.6754 | 1900 | 0.7572 | 0.7482 | 0.7048 |
|
618 |
+
| 0.7110 | 2000 | 0.7384 | 0.7460 | 0.7050 |
|
619 |
+
| 0.7465 | 2100 | 0.7523 | 0.7439 | 0.7069 |
|
620 |
+
| 0.7821 | 2200 | 0.7587 | 0.7437 | 0.7072 |
|
621 |
+
| 0.8176 | 2300 | 0.7416 | 0.7424 | 0.7080 |
|
622 |
+
| 0.8532 | 2400 | 0.7407 | 0.7416 | 0.7112 |
|
623 |
+
| 0.8887 | 2500 | 0.7634 | 0.7397 | 0.7125 |
|
624 |
+
| 0.9243 | 2600 | 0.7513 | 0.7383 | 0.7137 |
|
625 |
+
| 0.9598 | 2700 | 0.7392 | 0.7383 | 0.7149 |
|
626 |
+
| 0.9954 | 2800 | 0.7398 | 0.7379 | 0.7147 |
|
627 |
+
| 1.0 | 2813 | - | - | 0.7163 |
|
628 |
+
|
629 |
+
|
630 |
+
### Environmental Impact
|
631 |
+
Carbon emissions were measured using [CodeCarbon](https://github.com/mlco2/codecarbon).
|
632 |
+
- **Energy Consumed**: 0.440 kWh
|
633 |
+
- **Carbon Emitted**: 0.171 kg of CO2
|
634 |
+
- **Hours Used**: 1.139 hours
|
635 |
+
|
636 |
+
### Training Hardware
|
637 |
+
- **On Cloud**: No
|
638 |
+
- **GPU Model**: 1 x NVIDIA GeForce RTX 3090
|
639 |
+
- **CPU Model**: 13th Gen Intel(R) Core(TM) i7-13700K
|
640 |
+
- **RAM Size**: 31.78 GB
|
641 |
+
|
642 |
+
### Framework Versions
|
643 |
+
- Python: 3.11.6
|
644 |
+
- Sentence Transformers: 3.1.0.dev0
|
645 |
+
- Transformers: 4.41.2
|
646 |
+
- PyTorch: 2.3.1+cu121
|
647 |
+
- Accelerate: 0.31.0
|
648 |
+
- Datasets: 2.20.0
|
649 |
+
- Tokenizers: 0.19.1
|
650 |
+
|
651 |
+
## Citation
|
652 |
+
|
653 |
+
### BibTeX
|
654 |
+
|
655 |
+
#### Sentence Transformers
|
656 |
+
```bibtex
|
657 |
+
@inproceedings{reimers-2019-sentence-bert,
|
658 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
659 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
660 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
661 |
+
month = "11",
|
662 |
+
year = "2019",
|
663 |
+
publisher = "Association for Computational Linguistics",
|
664 |
+
url = "https://arxiv.org/abs/1908.10084",
|
665 |
+
}
|
666 |
+
```
|
667 |
+
|
668 |
+
<!--
|
669 |
+
## Glossary
|
670 |
+
|
671 |
+
*Clearly define terms in order to be accessible across audiences.*
|
672 |
+
-->
|
673 |
+
|
674 |
+
<!--
|
675 |
+
## Model Card Authors
|
676 |
+
|
677 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
678 |
+
-->
|
679 |
+
|
680 |
+
<!--
|
681 |
+
## Model Card Contact
|
682 |
+
|
683 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
684 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/mpnet-base",
|
3 |
+
"architectures": [
|
4 |
+
"MPNetModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
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 |
+
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.41.2",
|
23 |
+
"vocab_size": 30527
|
24 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.1.0.dev0",
|
4 |
+
"transformers": "4.41.2",
|
5 |
+
"pytorch": "2.3.1+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": null
|
10 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:674e5d744ccd6afdcf50cd49a8e2f3ad1a48d23642a768ae17b7e6c578b44f96
|
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,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": true,
|
54 |
+
"cls_token": "<s>",
|
55 |
+
"do_lower_case": true,
|
56 |
+
"eos_token": "</s>",
|
57 |
+
"mask_token": "<mask>",
|
58 |
+
"model_max_length": 512,
|
59 |
+
"pad_token": "<pad>",
|
60 |
+
"sep_token": "</s>",
|
61 |
+
"strip_accents": null,
|
62 |
+
"tokenize_chinese_chars": true,
|
63 |
+
"tokenizer_class": "MPNetTokenizer",
|
64 |
+
"unk_token": "[UNK]"
|
65 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|