pacoreyes commited on
Commit
6391059
1 Parent(s): bd58d48

Upload 13 files

Browse files
README.md CHANGED
@@ -7,28 +7,29 @@ tags:
7
  - generated_from_setfit_trainer
8
  metrics:
9
  - accuracy
10
- widget:
11
- - text: I opposed this war in Iraq from the start, and I have never, ever wavered
12
- in that opposition.
13
- - text: This Central American democracy, peace, and recovery initiative, which I call
14
- the Jackson plan, will be designed to bring democracy, peace, and prosperity to
15
- Central America.
16
- - text: Yesterday we opened another front on the war on terrorism as we began conventional
17
- military operations designed to destroy terrorist training camps and military
18
- installations of the Taliban Government.
19
- - text: The threats against our critical infrastructure are increasingly complex and
20
- nuanced, and we all must be prepared to better protect ourselves from malicious
21
- actors threatening our cyber and physical security.
22
- - text: Well, I am opposed to discrimination in any form, but I am -but I do not favor
23
- creating special rights for any group.
24
  pipeline_tag: text-classification
25
  inference: true
26
- base_model: sentence-transformers/all-mpnet-base-v2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ---
28
 
29
- # SetFit with sentence-transformers/all-mpnet-base-v2
30
 
31
- This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
32
 
33
  The model has been trained using an efficient few-shot learning technique that involves:
34
 
@@ -39,10 +40,10 @@ The model has been trained using an efficient few-shot learning technique that i
39
 
40
  ### Model Description
41
  - **Model Type:** SetFit
42
- - **Sentence Transformer body:** [sentence-transformers/all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2)
43
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
44
- - **Maximum Sequence Length:** 384 tokens
45
- - **Number of Classes:** 2 classes
46
  <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
47
  <!-- - **Language:** Unknown -->
48
  <!-- - **License:** Unknown -->
@@ -53,11 +54,12 @@ The model has been trained using an efficient few-shot learning technique that i
53
  - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
54
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
55
 
56
- ### Model Labels
57
- | Label | Examples |
58
- |:------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
59
- | 0 | <ul><li>'I support free-trade, but I also support working to achieve better deals for America.'</li><li>'Our space program will, indeed, help rekindle public interest in science and mathematics, revitalize an area of our educational system that has become disturbingly weak.'</li><li>'The other third goes to fund democracy, the things that we Americans believe would lead to better decisions.'</li></ul> |
60
- | 1 | <ul><li>'Well, I think terrorism is the hardest thing to curtail.'</li><li>'For over a year, I have ordered our military to take thousands of airstrikes against ISIL targets.'</li><li>'In my discussion with President Bush this morning, I have made clear that we are opposed to terrorism of all forms.'</li></ul> |
 
61
 
62
  ## Uses
63
 
@@ -77,7 +79,7 @@ from setfit import SetFitModel
77
  # Download from the 🤗 Hub
78
  model = SetFitModel.from_pretrained("setfit_model_id")
79
  # Run inference
80
- preds = model("I opposed this war in Iraq from the start, and I have never, ever wavered in that opposition.")
81
  ```
82
 
83
  <!--
@@ -106,630 +108,6 @@ preds = model("I opposed this war in Iraq from the start, and I have never, ever
106
 
107
  ## Training Details
108
 
109
- ### Training Set Metrics
110
- | Training set | Min | Median | Max |
111
- |:-------------|:----|:--------|:----|
112
- | Word count | 3 | 23.6564 | 46 |
113
-
114
- | Label | Training Sample Count |
115
- |:------|:----------------------|
116
- | 0 | 486 |
117
- | 1 | 486 |
118
-
119
- ### Training Hyperparameters
120
- - batch_size: (16, 16)
121
- - num_epochs: (1, 1)
122
- - max_steps: -1
123
- - sampling_strategy: oversampling
124
- - body_learning_rate: (1.003444469523018e-06, 1.003444469523018e-06)
125
- - head_learning_rate: 0.01
126
- - loss: CosineSimilarityLoss
127
- - distance_metric: cosine_distance
128
- - margin: 0.25
129
- - end_to_end: False
130
- - use_amp: False
131
- - warmup_proportion: 0.1
132
- - seed: 37
133
- - eval_max_steps: -1
134
- - load_best_model_at_end: True
135
-
136
- ### Training Results
137
- | Epoch | Step | Training Loss | Validation Loss |
138
- |:----------:|:---------:|:-------------:|:---------------:|
139
- | 0.0000 | 1 | 0.3371 | - |
140
- | 0.0017 | 50 | 0.3042 | - |
141
- | 0.0034 | 100 | 0.2146 | - |
142
- | 0.0051 | 150 | 0.2119 | - |
143
- | 0.0068 | 200 | 0.3006 | - |
144
- | 0.0084 | 250 | 0.2619 | - |
145
- | 0.0101 | 300 | 0.2862 | - |
146
- | 0.0118 | 350 | 0.2587 | - |
147
- | 0.0135 | 400 | 0.1888 | - |
148
- | 0.0152 | 450 | 0.2727 | - |
149
- | 0.0169 | 500 | 0.2586 | 0.2538 |
150
- | 0.0186 | 550 | 0.2382 | - |
151
- | 0.0203 | 600 | 0.2268 | - |
152
- | 0.0220 | 650 | 0.2547 | - |
153
- | 0.0237 | 700 | 0.2011 | - |
154
- | 0.0253 | 750 | 0.1975 | - |
155
- | 0.0270 | 800 | 0.2417 | - |
156
- | 0.0287 | 850 | 0.2558 | - |
157
- | 0.0304 | 900 | 0.227 | - |
158
- | 0.0321 | 950 | 0.2148 | - |
159
- | 0.0338 | 1000 | 0.2035 | 0.1979 |
160
- | 0.0355 | 1050 | 0.2029 | - |
161
- | 0.0372 | 1100 | 0.1874 | - |
162
- | 0.0389 | 1150 | 0.1489 | - |
163
- | 0.0406 | 1200 | 0.0767 | - |
164
- | 0.0422 | 1250 | 0.0995 | - |
165
- | 0.0439 | 1300 | 0.1205 | - |
166
- | 0.0456 | 1350 | 0.0752 | - |
167
- | 0.0473 | 1400 | 0.0546 | - |
168
- | 0.0490 | 1450 | 0.0255 | - |
169
- | 0.0507 | 1500 | 0.0232 | 0.026 |
170
- | 0.0524 | 1550 | 0.0292 | - |
171
- | 0.0541 | 1600 | 0.0277 | - |
172
- | 0.0558 | 1650 | 0.038 | - |
173
- | 0.0575 | 1700 | 0.0073 | - |
174
- | 0.0591 | 1750 | 0.0276 | - |
175
- | 0.0608 | 1800 | 0.019 | - |
176
- | 0.0625 | 1850 | 0.015 | - |
177
- | 0.0642 | 1900 | 0.0063 | - |
178
- | 0.0659 | 1950 | 0.0031 | - |
179
- | 0.0676 | 2000 | 0.0035 | 0.0032 |
180
- | 0.0693 | 2050 | 0.0041 | - |
181
- | 0.0710 | 2100 | 0.003 | - |
182
- | 0.0727 | 2150 | 0.0051 | - |
183
- | 0.0744 | 2200 | 0.0062 | - |
184
- | 0.0760 | 2250 | 0.0029 | - |
185
- | 0.0777 | 2300 | 0.0063 | - |
186
- | 0.0794 | 2350 | 0.0061 | - |
187
- | 0.0811 | 2400 | 0.0024 | - |
188
- | 0.0828 | 2450 | 0.0015 | - |
189
- | 0.0845 | 2500 | 0.0009 | 0.001 |
190
- | 0.0862 | 2550 | 0.0015 | - |
191
- | 0.0879 | 2600 | 0.0012 | - |
192
- | 0.0896 | 2650 | 0.0011 | - |
193
- | 0.0913 | 2700 | 0.0007 | - |
194
- | 0.0929 | 2750 | 0.0007 | - |
195
- | 0.0946 | 2800 | 0.0007 | - |
196
- | 0.0963 | 2850 | 0.0007 | - |
197
- | 0.0980 | 2900 | 0.0006 | - |
198
- | 0.0997 | 2950 | 0.0008 | - |
199
- | 0.1014 | 3000 | 0.0005 | 0.0004 |
200
- | 0.1031 | 3050 | 0.0006 | - |
201
- | 0.1048 | 3100 | 0.0008 | - |
202
- | 0.1065 | 3150 | 0.0008 | - |
203
- | 0.1082 | 3200 | 0.0005 | - |
204
- | 0.1098 | 3250 | 0.0004 | - |
205
- | 0.1115 | 3300 | 0.0004 | - |
206
- | 0.1132 | 3350 | 0.0004 | - |
207
- | 0.1149 | 3400 | 0.0005 | - |
208
- | 0.1166 | 3450 | 0.0005 | - |
209
- | 0.1183 | 3500 | 0.0003 | 0.0002 |
210
- | 0.1200 | 3550 | 0.0003 | - |
211
- | 0.1217 | 3600 | 0.0002 | - |
212
- | 0.1234 | 3650 | 0.0006 | - |
213
- | 0.1251 | 3700 | 0.0004 | - |
214
- | 0.1267 | 3750 | 0.0004 | - |
215
- | 0.1284 | 3800 | 0.0002 | - |
216
- | 0.1301 | 3850 | 0.0004 | - |
217
- | 0.1318 | 3900 | 0.0003 | - |
218
- | 0.1335 | 3950 | 0.0003 | - |
219
- | 0.1352 | 4000 | 0.0003 | 0.0002 |
220
- | 0.1369 | 4050 | 0.0002 | - |
221
- | 0.1386 | 4100 | 0.0002 | - |
222
- | 0.1403 | 4150 | 0.0002 | - |
223
- | 0.1420 | 4200 | 0.0001 | - |
224
- | 0.1436 | 4250 | 0.0006 | - |
225
- | 0.1453 | 4300 | 0.0002 | - |
226
- | 0.1470 | 4350 | 0.0002 | - |
227
- | 0.1487 | 4400 | 0.0004 | - |
228
- | 0.1504 | 4450 | 0.0002 | - |
229
- | 0.1521 | 4500 | 0.0002 | 0.0001 |
230
- | 0.1538 | 4550 | 0.0001 | - |
231
- | 0.1555 | 4600 | 0.0002 | - |
232
- | 0.1572 | 4650 | 0.0001 | - |
233
- | 0.1589 | 4700 | 0.0002 | - |
234
- | 0.1605 | 4750 | 0.0002 | - |
235
- | 0.1622 | 4800 | 0.0002 | - |
236
- | 0.1639 | 4850 | 0.0001 | - |
237
- | 0.1656 | 4900 | 0.0003 | - |
238
- | 0.1673 | 4950 | 0.0001 | - |
239
- | 0.1690 | 5000 | 0.0003 | 0.0001 |
240
- | 0.1707 | 5050 | 0.0003 | - |
241
- | 0.1724 | 5100 | 0.0001 | - |
242
- | 0.1741 | 5150 | 0.0001 | - |
243
- | 0.1758 | 5200 | 0.0003 | - |
244
- | 0.1774 | 5250 | 0.0002 | - |
245
- | 0.1791 | 5300 | 0.0001 | - |
246
- | 0.1808 | 5350 | 0.0002 | - |
247
- | 0.1825 | 5400 | 0.0001 | - |
248
- | 0.1842 | 5450 | 0.0002 | - |
249
- | 0.1859 | 5500 | 0.0001 | 0.0001 |
250
- | 0.1876 | 5550 | 0.0001 | - |
251
- | 0.1893 | 5600 | 0.0001 | - |
252
- | 0.1910 | 5650 | 0.0001 | - |
253
- | 0.1927 | 5700 | 0.0001 | - |
254
- | 0.1943 | 5750 | 0.0001 | - |
255
- | 0.1960 | 5800 | 0.0002 | - |
256
- | 0.1977 | 5850 | 0.001 | - |
257
- | 0.1994 | 5900 | 0.0001 | - |
258
- | 0.2011 | 5950 | 0.0001 | - |
259
- | 0.2028 | 6000 | 0.0002 | 0.0 |
260
- | 0.2045 | 6050 | 0.0001 | - |
261
- | 0.2062 | 6100 | 0.0001 | - |
262
- | 0.2079 | 6150 | 0.0001 | - |
263
- | 0.2096 | 6200 | 0.0001 | - |
264
- | 0.2112 | 6250 | 0.0001 | - |
265
- | 0.2129 | 6300 | 0.0001 | - |
266
- | 0.2146 | 6350 | 0.0001 | - |
267
- | 0.2163 | 6400 | 0.0001 | - |
268
- | 0.2180 | 6450 | 0.0001 | - |
269
- | 0.2197 | 6500 | 0.0001 | 0.0 |
270
- | 0.2214 | 6550 | 0.0001 | - |
271
- | 0.2231 | 6600 | 0.0001 | - |
272
- | 0.2248 | 6650 | 0.0001 | - |
273
- | 0.2265 | 6700 | 0.0001 | - |
274
- | 0.2281 | 6750 | 0.0001 | - |
275
- | 0.2298 | 6800 | 0.0001 | - |
276
- | 0.2315 | 6850 | 0.0001 | - |
277
- | 0.2332 | 6900 | 0.0001 | - |
278
- | 0.2349 | 6950 | 0.0 | - |
279
- | 0.2366 | 7000 | 0.0 | 0.0 |
280
- | 0.2383 | 7050 | 0.0001 | - |
281
- | 0.2400 | 7100 | 0.0001 | - |
282
- | 0.2417 | 7150 | 0.0 | - |
283
- | 0.2434 | 7200 | 0.0001 | - |
284
- | 0.2450 | 7250 | 0.0 | - |
285
- | 0.2467 | 7300 | 0.0001 | - |
286
- | 0.2484 | 7350 | 0.0001 | - |
287
- | 0.2501 | 7400 | 0.0001 | - |
288
- | 0.2518 | 7450 | 0.0 | - |
289
- | 0.2535 | 7500 | 0.0001 | 0.0 |
290
- | 0.2552 | 7550 | 0.0 | - |
291
- | 0.2569 | 7600 | 0.0 | - |
292
- | 0.2586 | 7650 | 0.0001 | - |
293
- | 0.2603 | 7700 | 0.0001 | - |
294
- | 0.2619 | 7750 | 0.0001 | - |
295
- | 0.2636 | 7800 | 0.0001 | - |
296
- | 0.2653 | 7850 | 0.0001 | - |
297
- | 0.2670 | 7900 | 0.0 | - |
298
- | 0.2687 | 7950 | 0.0001 | - |
299
- | 0.2704 | 8000 | 0.0001 | 0.0 |
300
- | 0.2721 | 8050 | 0.0001 | - |
301
- | 0.2738 | 8100 | 0.0001 | - |
302
- | 0.2755 | 8150 | 0.0 | - |
303
- | 0.2772 | 8200 | 0.0 | - |
304
- | 0.2788 | 8250 | 0.0 | - |
305
- | 0.2805 | 8300 | 0.0001 | - |
306
- | 0.2822 | 8350 | 0.0001 | - |
307
- | 0.2839 | 8400 | 0.0 | - |
308
- | 0.2856 | 8450 | 0.0001 | - |
309
- | 0.2873 | 8500 | 0.0002 | 0.0 |
310
- | 0.2890 | 8550 | 0.0 | - |
311
- | 0.2907 | 8600 | 0.0 | - |
312
- | 0.2924 | 8650 | 0.0 | - |
313
- | 0.2941 | 8700 | 0.0 | - |
314
- | 0.2957 | 8750 | 0.0 | - |
315
- | 0.2974 | 8800 | 0.0 | - |
316
- | 0.2991 | 8850 | 0.0 | - |
317
- | 0.3008 | 8900 | 0.0 | - |
318
- | 0.3025 | 8950 | 0.0001 | - |
319
- | 0.3042 | 9000 | 0.0 | 0.0 |
320
- | 0.3059 | 9050 | 0.0001 | - |
321
- | 0.3076 | 9100 | 0.0 | - |
322
- | 0.3093 | 9150 | 0.0 | - |
323
- | 0.3110 | 9200 | 0.0 | - |
324
- | 0.3126 | 9250 | 0.0 | - |
325
- | 0.3143 | 9300 | 0.0 | - |
326
- | 0.3160 | 9350 | 0.0001 | - |
327
- | 0.3177 | 9400 | 0.0 | - |
328
- | 0.3194 | 9450 | 0.0001 | - |
329
- | 0.3211 | 9500 | 0.0 | 0.0 |
330
- | 0.3228 | 9550 | 0.0 | - |
331
- | 0.3245 | 9600 | 0.0 | - |
332
- | 0.3262 | 9650 | 0.0001 | - |
333
- | 0.3279 | 9700 | 0.0 | - |
334
- | 0.3295 | 9750 | 0.0 | - |
335
- | 0.3312 | 9800 | 0.0 | - |
336
- | 0.3329 | 9850 | 0.0 | - |
337
- | 0.3346 | 9900 | 0.0 | - |
338
- | 0.3363 | 9950 | 0.0 | - |
339
- | 0.3380 | 10000 | 0.0 | 0.0 |
340
- | 0.3397 | 10050 | 0.0 | - |
341
- | 0.3414 | 10100 | 0.0 | - |
342
- | 0.3431 | 10150 | 0.0 | - |
343
- | 0.3448 | 10200 | 0.0 | - |
344
- | 0.3464 | 10250 | 0.0 | - |
345
- | 0.3481 | 10300 | 0.0 | - |
346
- | 0.3498 | 10350 | 0.0 | - |
347
- | 0.3515 | 10400 | 0.0 | - |
348
- | 0.3532 | 10450 | 0.0 | - |
349
- | 0.3549 | 10500 | 0.0 | 0.0 |
350
- | 0.3566 | 10550 | 0.0 | - |
351
- | 0.3583 | 10600 | 0.0 | - |
352
- | 0.3600 | 10650 | 0.0 | - |
353
- | 0.3617 | 10700 | 0.0 | - |
354
- | 0.3633 | 10750 | 0.0 | - |
355
- | 0.3650 | 10800 | 0.0 | - |
356
- | 0.3667 | 10850 | 0.0 | - |
357
- | 0.3684 | 10900 | 0.0 | - |
358
- | 0.3701 | 10950 | 0.0 | - |
359
- | 0.3718 | 11000 | 0.0 | 0.0 |
360
- | 0.3735 | 11050 | 0.0 | - |
361
- | 0.3752 | 11100 | 0.0 | - |
362
- | 0.3769 | 11150 | 0.0 | - |
363
- | 0.3786 | 11200 | 0.0 | - |
364
- | 0.3802 | 11250 | 0.0 | - |
365
- | 0.3819 | 11300 | 0.0 | - |
366
- | 0.3836 | 11350 | 0.0 | - |
367
- | 0.3853 | 11400 | 0.0 | - |
368
- | 0.3870 | 11450 | 0.0 | - |
369
- | 0.3887 | 11500 | 0.0 | 0.0 |
370
- | 0.3904 | 11550 | 0.0 | - |
371
- | 0.3921 | 11600 | 0.0 | - |
372
- | 0.3938 | 11650 | 0.0 | - |
373
- | 0.3955 | 11700 | 0.0 | - |
374
- | 0.3971 | 11750 | 0.0 | - |
375
- | 0.3988 | 11800 | 0.0 | - |
376
- | 0.4005 | 11850 | 0.0 | - |
377
- | 0.4022 | 11900 | 0.0 | - |
378
- | 0.4039 | 11950 | 0.0 | - |
379
- | 0.4056 | 12000 | 0.0 | 0.0 |
380
- | 0.4073 | 12050 | 0.0 | - |
381
- | 0.4090 | 12100 | 0.0 | - |
382
- | 0.4107 | 12150 | 0.0 | - |
383
- | 0.4124 | 12200 | 0.0 | - |
384
- | 0.4140 | 12250 | 0.0 | - |
385
- | 0.4157 | 12300 | 0.0 | - |
386
- | 0.4174 | 12350 | 0.0 | - |
387
- | 0.4191 | 12400 | 0.0 | - |
388
- | 0.4208 | 12450 | 0.0 | - |
389
- | 0.4225 | 12500 | 0.0 | 0.0 |
390
- | 0.4242 | 12550 | 0.0 | - |
391
- | 0.4259 | 12600 | 0.0 | - |
392
- | 0.4276 | 12650 | 0.0 | - |
393
- | 0.4293 | 12700 | 0.0 | - |
394
- | 0.4309 | 12750 | 0.0 | - |
395
- | 0.4326 | 12800 | 0.0 | - |
396
- | 0.4343 | 12850 | 0.0001 | - |
397
- | 0.4360 | 12900 | 0.0 | - |
398
- | 0.4377 | 12950 | 0.0 | - |
399
- | 0.4394 | 13000 | 0.0 | 0.0 |
400
- | 0.4411 | 13050 | 0.0 | - |
401
- | 0.4428 | 13100 | 0.0 | - |
402
- | 0.4445 | 13150 | 0.0 | - |
403
- | 0.4462 | 13200 | 0.0 | - |
404
- | 0.4478 | 13250 | 0.0 | - |
405
- | 0.4495 | 13300 | 0.0 | - |
406
- | 0.4512 | 13350 | 0.0 | - |
407
- | 0.4529 | 13400 | 0.0 | - |
408
- | 0.4546 | 13450 | 0.0 | - |
409
- | 0.4563 | 13500 | 0.0 | 0.0 |
410
- | 0.4580 | 13550 | 0.0 | - |
411
- | 0.4597 | 13600 | 0.0 | - |
412
- | 0.4614 | 13650 | 0.0 | - |
413
- | 0.4631 | 13700 | 0.0 | - |
414
- | 0.4647 | 13750 | 0.0 | - |
415
- | 0.4664 | 13800 | 0.0 | - |
416
- | 0.4681 | 13850 | 0.0 | - |
417
- | 0.4698 | 13900 | 0.0 | - |
418
- | 0.4715 | 13950 | 0.0 | - |
419
- | 0.4732 | 14000 | 0.0 | 0.0 |
420
- | 0.4749 | 14050 | 0.0 | - |
421
- | 0.4766 | 14100 | 0.0 | - |
422
- | 0.4783 | 14150 | 0.0 | - |
423
- | 0.4800 | 14200 | 0.0 | - |
424
- | 0.4816 | 14250 | 0.0 | - |
425
- | 0.4833 | 14300 | 0.0 | - |
426
- | 0.4850 | 14350 | 0.0 | - |
427
- | 0.4867 | 14400 | 0.0 | - |
428
- | 0.4884 | 14450 | 0.0 | - |
429
- | 0.4901 | 14500 | 0.0 | 0.0 |
430
- | 0.4918 | 14550 | 0.0 | - |
431
- | 0.4935 | 14600 | 0.0 | - |
432
- | 0.4952 | 14650 | 0.0 | - |
433
- | 0.4969 | 14700 | 0.0 | - |
434
- | 0.4985 | 14750 | 0.0001 | - |
435
- | 0.5002 | 14800 | 0.0 | - |
436
- | 0.5019 | 14850 | 0.0 | - |
437
- | 0.5036 | 14900 | 0.0 | - |
438
- | 0.5053 | 14950 | 0.0 | - |
439
- | 0.5070 | 15000 | 0.0 | 0.0 |
440
- | 0.5087 | 15050 | 0.0 | - |
441
- | 0.5104 | 15100 | 0.0 | - |
442
- | 0.5121 | 15150 | 0.0 | - |
443
- | 0.5138 | 15200 | 0.0 | - |
444
- | 0.5154 | 15250 | 0.0 | - |
445
- | 0.5171 | 15300 | 0.0 | - |
446
- | 0.5188 | 15350 | 0.0 | - |
447
- | 0.5205 | 15400 | 0.0 | - |
448
- | 0.5222 | 15450 | 0.0 | - |
449
- | 0.5239 | 15500 | 0.0 | 0.0 |
450
- | 0.5256 | 15550 | 0.0 | - |
451
- | 0.5273 | 15600 | 0.0 | - |
452
- | 0.5290 | 15650 | 0.0 | - |
453
- | 0.5307 | 15700 | 0.0 | - |
454
- | 0.5323 | 15750 | 0.0 | - |
455
- | 0.5340 | 15800 | 0.0 | - |
456
- | 0.5357 | 15850 | 0.0 | - |
457
- | 0.5374 | 15900 | 0.0 | - |
458
- | 0.5391 | 15950 | 0.0 | - |
459
- | 0.5408 | 16000 | 0.0 | 0.0 |
460
- | 0.5425 | 16050 | 0.0 | - |
461
- | 0.5442 | 16100 | 0.0 | - |
462
- | 0.5459 | 16150 | 0.0 | - |
463
- | 0.5476 | 16200 | 0.0 | - |
464
- | 0.5492 | 16250 | 0.0 | - |
465
- | 0.5509 | 16300 | 0.0 | - |
466
- | 0.5526 | 16350 | 0.0 | - |
467
- | 0.5543 | 16400 | 0.0 | - |
468
- | 0.5560 | 16450 | 0.0 | - |
469
- | 0.5577 | 16500 | 0.0 | 0.0 |
470
- | 0.5594 | 16550 | 0.0 | - |
471
- | 0.5611 | 16600 | 0.0 | - |
472
- | 0.5628 | 16650 | 0.0 | - |
473
- | 0.5645 | 16700 | 0.0 | - |
474
- | 0.5661 | 16750 | 0.0 | - |
475
- | 0.5678 | 16800 | 0.0 | - |
476
- | 0.5695 | 16850 | 0.0 | - |
477
- | 0.5712 | 16900 | 0.0 | - |
478
- | 0.5729 | 16950 | 0.0 | - |
479
- | 0.5746 | 17000 | 0.0 | 0.0 |
480
- | 0.5763 | 17050 | 0.0 | - |
481
- | 0.5780 | 17100 | 0.0 | - |
482
- | 0.5797 | 17150 | 0.0 | - |
483
- | 0.5814 | 17200 | 0.0 | - |
484
- | 0.5830 | 17250 | 0.0 | - |
485
- | 0.5847 | 17300 | 0.0 | - |
486
- | 0.5864 | 17350 | 0.0 | - |
487
- | 0.5881 | 17400 | 0.0 | - |
488
- | 0.5898 | 17450 | 0.0 | - |
489
- | 0.5915 | 17500 | 0.0 | 0.0 |
490
- | 0.5932 | 17550 | 0.0 | - |
491
- | 0.5949 | 17600 | 0.0 | - |
492
- | 0.5966 | 17650 | 0.0 | - |
493
- | 0.5983 | 17700 | 0.0 | - |
494
- | 0.5999 | 17750 | 0.0 | - |
495
- | 0.6016 | 17800 | 0.0 | - |
496
- | 0.6033 | 17850 | 0.0 | - |
497
- | 0.6050 | 17900 | 0.0 | - |
498
- | 0.6067 | 17950 | 0.0 | - |
499
- | 0.6084 | 18000 | 0.0 | 0.0 |
500
- | 0.6101 | 18050 | 0.0 | - |
501
- | 0.6118 | 18100 | 0.0 | - |
502
- | 0.6135 | 18150 | 0.0 | - |
503
- | 0.6152 | 18200 | 0.0 | - |
504
- | 0.6168 | 18250 | 0.0 | - |
505
- | 0.6185 | 18300 | 0.0 | - |
506
- | 0.6202 | 18350 | 0.0 | - |
507
- | 0.6219 | 18400 | 0.0 | - |
508
- | 0.6236 | 18450 | 0.0 | - |
509
- | 0.6253 | 18500 | 0.0 | 0.0 |
510
- | 0.6270 | 18550 | 0.0 | - |
511
- | 0.6287 | 18600 | 0.0 | - |
512
- | 0.6304 | 18650 | 0.0 | - |
513
- | 0.6321 | 18700 | 0.0 | - |
514
- | 0.6337 | 18750 | 0.0 | - |
515
- | 0.6354 | 18800 | 0.0 | - |
516
- | 0.6371 | 18850 | 0.0 | - |
517
- | 0.6388 | 18900 | 0.0 | - |
518
- | 0.6405 | 18950 | 0.0 | - |
519
- | 0.6422 | 19000 | 0.0 | 0.0 |
520
- | 0.6439 | 19050 | 0.0 | - |
521
- | 0.6456 | 19100 | 0.0 | - |
522
- | 0.6473 | 19150 | 0.0 | - |
523
- | 0.6490 | 19200 | 0.0 | - |
524
- | 0.6506 | 19250 | 0.0 | - |
525
- | 0.6523 | 19300 | 0.0 | - |
526
- | 0.6540 | 19350 | 0.0 | - |
527
- | 0.6557 | 19400 | 0.0 | - |
528
- | 0.6574 | 19450 | 0.0 | - |
529
- | 0.6591 | 19500 | 0.0 | 0.0 |
530
- | 0.6608 | 19550 | 0.0 | - |
531
- | 0.6625 | 19600 | 0.0 | - |
532
- | 0.6642 | 19650 | 0.0 | - |
533
- | 0.6659 | 19700 | 0.0 | - |
534
- | 0.6675 | 19750 | 0.0 | - |
535
- | 0.6692 | 19800 | 0.0 | - |
536
- | 0.6709 | 19850 | 0.0 | - |
537
- | 0.6726 | 19900 | 0.0 | - |
538
- | 0.6743 | 19950 | 0.0 | - |
539
- | 0.6760 | 20000 | 0.0 | 0.0 |
540
- | 0.6777 | 20050 | 0.0 | - |
541
- | 0.6794 | 20100 | 0.0 | - |
542
- | 0.6811 | 20150 | 0.0 | - |
543
- | 0.6828 | 20200 | 0.0 | - |
544
- | 0.6844 | 20250 | 0.0 | - |
545
- | 0.6861 | 20300 | 0.0 | - |
546
- | 0.6878 | 20350 | 0.0 | - |
547
- | 0.6895 | 20400 | 0.0 | - |
548
- | 0.6912 | 20450 | 0.0 | - |
549
- | 0.6929 | 20500 | 0.0 | 0.0 |
550
- | 0.6946 | 20550 | 0.0 | - |
551
- | 0.6963 | 20600 | 0.0 | - |
552
- | 0.6980 | 20650 | 0.0 | - |
553
- | 0.6997 | 20700 | 0.0 | - |
554
- | 0.7013 | 20750 | 0.0 | - |
555
- | 0.7030 | 20800 | 0.0 | - |
556
- | 0.7047 | 20850 | 0.0 | - |
557
- | 0.7064 | 20900 | 0.0 | - |
558
- | 0.7081 | 20950 | 0.0 | - |
559
- | 0.7098 | 21000 | 0.0 | 0.0 |
560
- | 0.7115 | 21050 | 0.0 | - |
561
- | 0.7132 | 21100 | 0.0 | - |
562
- | 0.7149 | 21150 | 0.0 | - |
563
- | 0.7166 | 21200 | 0.0 | - |
564
- | 0.7182 | 21250 | 0.0 | - |
565
- | 0.7199 | 21300 | 0.0 | - |
566
- | 0.7216 | 21350 | 0.0 | - |
567
- | 0.7233 | 21400 | 0.0 | - |
568
- | 0.7250 | 21450 | 0.0 | - |
569
- | **0.7267** | **21500** | **0.0** | **0.0** |
570
- | 0.7284 | 21550 | 0.0 | - |
571
- | 0.7301 | 21600 | 0.0 | - |
572
- | 0.7318 | 21650 | 0.0 | - |
573
- | 0.7335 | 21700 | 0.0 | - |
574
- | 0.7351 | 21750 | 0.0 | - |
575
- | 0.7368 | 21800 | 0.0 | - |
576
- | 0.7385 | 21850 | 0.0 | - |
577
- | 0.7402 | 21900 | 0.0 | - |
578
- | 0.7419 | 21950 | 0.0 | - |
579
- | 0.7436 | 22000 | 0.0 | 0.0 |
580
- | 0.7453 | 22050 | 0.0 | - |
581
- | 0.7470 | 22100 | 0.0 | - |
582
- | 0.7487 | 22150 | 0.0 | - |
583
- | 0.7504 | 22200 | 0.0 | - |
584
- | 0.7520 | 22250 | 0.0 | - |
585
- | 0.7537 | 22300 | 0.0 | - |
586
- | 0.7554 | 22350 | 0.0 | - |
587
- | 0.7571 | 22400 | 0.0 | - |
588
- | 0.7588 | 22450 | 0.0 | - |
589
- | 0.7605 | 22500 | 0.0 | 0.0 |
590
- | 0.7622 | 22550 | 0.0 | - |
591
- | 0.7639 | 22600 | 0.0 | - |
592
- | 0.7656 | 22650 | 0.0 | - |
593
- | 0.7673 | 22700 | 0.0 | - |
594
- | 0.7689 | 22750 | 0.0 | - |
595
- | 0.7706 | 22800 | 0.0 | - |
596
- | 0.7723 | 22850 | 0.0 | - |
597
- | 0.7740 | 22900 | 0.0 | - |
598
- | 0.7757 | 22950 | 0.0 | - |
599
- | 0.7774 | 23000 | 0.0 | 0.0 |
600
- | 0.7791 | 23050 | 0.0 | - |
601
- | 0.7808 | 23100 | 0.0 | - |
602
- | 0.7825 | 23150 | 0.0 | - |
603
- | 0.7842 | 23200 | 0.0 | - |
604
- | 0.7858 | 23250 | 0.0 | - |
605
- | 0.7875 | 23300 | 0.0 | - |
606
- | 0.7892 | 23350 | 0.0 | - |
607
- | 0.7909 | 23400 | 0.0 | - |
608
- | 0.7926 | 23450 | 0.0 | - |
609
- | 0.7943 | 23500 | 0.0 | 0.0 |
610
- | 0.7960 | 23550 | 0.0 | - |
611
- | 0.7977 | 23600 | 0.0 | - |
612
- | 0.7994 | 23650 | 0.0 | - |
613
- | 0.8011 | 23700 | 0.0 | - |
614
- | 0.8027 | 23750 | 0.0 | - |
615
- | 0.8044 | 23800 | 0.0 | - |
616
- | 0.8061 | 23850 | 0.0 | - |
617
- | 0.8078 | 23900 | 0.0 | - |
618
- | 0.8095 | 23950 | 0.0 | - |
619
- | 0.8112 | 24000 | 0.0 | 0.0 |
620
- | 0.8129 | 24050 | 0.0 | - |
621
- | 0.8146 | 24100 | 0.0 | - |
622
- | 0.8163 | 24150 | 0.0 | - |
623
- | 0.8180 | 24200 | 0.0 | - |
624
- | 0.8196 | 24250 | 0.0 | - |
625
- | 0.8213 | 24300 | 0.0 | - |
626
- | 0.8230 | 24350 | 0.0 | - |
627
- | 0.8247 | 24400 | 0.0 | - |
628
- | 0.8264 | 24450 | 0.0 | - |
629
- | 0.8281 | 24500 | 0.0 | 0.0 |
630
- | 0.8298 | 24550 | 0.0 | - |
631
- | 0.8315 | 24600 | 0.0 | - |
632
- | 0.8332 | 24650 | 0.0 | - |
633
- | 0.8349 | 24700 | 0.0 | - |
634
- | 0.8365 | 24750 | 0.0 | - |
635
- | 0.8382 | 24800 | 0.0 | - |
636
- | 0.8399 | 24850 | 0.0 | - |
637
- | 0.8416 | 24900 | 0.0 | - |
638
- | 0.8433 | 24950 | 0.0 | - |
639
- | 0.8450 | 25000 | 0.0 | 0.0 |
640
- | 0.8467 | 25050 | 0.0 | - |
641
- | 0.8484 | 25100 | 0.0 | - |
642
- | 0.8501 | 25150 | 0.0 | - |
643
- | 0.8518 | 25200 | 0.0 | - |
644
- | 0.8534 | 25250 | 0.0 | - |
645
- | 0.8551 | 25300 | 0.0 | - |
646
- | 0.8568 | 25350 | 0.0 | - |
647
- | 0.8585 | 25400 | 0.0 | - |
648
- | 0.8602 | 25450 | 0.0 | - |
649
- | 0.8619 | 25500 | 0.0 | 0.0 |
650
- | 0.8636 | 25550 | 0.0 | - |
651
- | 0.8653 | 25600 | 0.0 | - |
652
- | 0.8670 | 25650 | 0.0 | - |
653
- | 0.8687 | 25700 | 0.0 | - |
654
- | 0.8703 | 25750 | 0.0 | - |
655
- | 0.8720 | 25800 | 0.0 | - |
656
- | 0.8737 | 25850 | 0.0 | - |
657
- | 0.8754 | 25900 | 0.0 | - |
658
- | 0.8771 | 25950 | 0.0 | - |
659
- | 0.8788 | 26000 | 0.0 | 0.0 |
660
- | 0.8805 | 26050 | 0.0 | - |
661
- | 0.8822 | 26100 | 0.0 | - |
662
- | 0.8839 | 26150 | 0.0 | - |
663
- | 0.8856 | 26200 | 0.0 | - |
664
- | 0.8872 | 26250 | 0.0 | - |
665
- | 0.8889 | 26300 | 0.0 | - |
666
- | 0.8906 | 26350 | 0.0 | - |
667
- | 0.8923 | 26400 | 0.0 | - |
668
- | 0.8940 | 26450 | 0.0 | - |
669
- | 0.8957 | 26500 | 0.0 | 0.0 |
670
- | 0.8974 | 26550 | 0.0 | - |
671
- | 0.8991 | 26600 | 0.0 | - |
672
- | 0.9008 | 26650 | 0.0 | - |
673
- | 0.9025 | 26700 | 0.0 | - |
674
- | 0.9041 | 26750 | 0.0 | - |
675
- | 0.9058 | 26800 | 0.0 | - |
676
- | 0.9075 | 26850 | 0.0 | - |
677
- | 0.9092 | 26900 | 0.0 | - |
678
- | 0.9109 | 26950 | 0.0 | - |
679
- | 0.9126 | 27000 | 0.0 | 0.0 |
680
- | 0.9143 | 27050 | 0.0 | - |
681
- | 0.9160 | 27100 | 0.0 | - |
682
- | 0.9177 | 27150 | 0.0 | - |
683
- | 0.9194 | 27200 | 0.0 | - |
684
- | 0.9210 | 27250 | 0.0 | - |
685
- | 0.9227 | 27300 | 0.0 | - |
686
- | 0.9244 | 27350 | 0.0 | - |
687
- | 0.9261 | 27400 | 0.0 | - |
688
- | 0.9278 | 27450 | 0.0 | - |
689
- | 0.9295 | 27500 | 0.0 | 0.0 |
690
- | 0.9312 | 27550 | 0.0 | - |
691
- | 0.9329 | 27600 | 0.0 | - |
692
- | 0.9346 | 27650 | 0.0 | - |
693
- | 0.9363 | 27700 | 0.0 | - |
694
- | 0.9379 | 27750 | 0.0 | - |
695
- | 0.9396 | 27800 | 0.0 | - |
696
- | 0.9413 | 27850 | 0.0 | - |
697
- | 0.9430 | 27900 | 0.0 | - |
698
- | 0.9447 | 27950 | 0.0 | - |
699
- | 0.9464 | 28000 | 0.0 | 0.0 |
700
- | 0.9481 | 28050 | 0.0 | - |
701
- | 0.9498 | 28100 | 0.0 | - |
702
- | 0.9515 | 28150 | 0.0 | - |
703
- | 0.9532 | 28200 | 0.0 | - |
704
- | 0.9548 | 28250 | 0.0 | - |
705
- | 0.9565 | 28300 | 0.0 | - |
706
- | 0.9582 | 28350 | 0.0 | - |
707
- | 0.9599 | 28400 | 0.0 | - |
708
- | 0.9616 | 28450 | 0.0 | - |
709
- | 0.9633 | 28500 | 0.0 | 0.0 |
710
- | 0.9650 | 28550 | 0.0 | - |
711
- | 0.9667 | 28600 | 0.0 | - |
712
- | 0.9684 | 28650 | 0.0 | - |
713
- | 0.9701 | 28700 | 0.0 | - |
714
- | 0.9717 | 28750 | 0.0 | - |
715
- | 0.9734 | 28800 | 0.0 | - |
716
- | 0.9751 | 28850 | 0.0 | - |
717
- | 0.9768 | 28900 | 0.0 | - |
718
- | 0.9785 | 28950 | 0.0 | - |
719
- | 0.9802 | 29000 | 0.0 | 0.0 |
720
- | 0.9819 | 29050 | 0.0 | - |
721
- | 0.9836 | 29100 | 0.0 | - |
722
- | 0.9853 | 29150 | 0.0 | - |
723
- | 0.9870 | 29200 | 0.0 | - |
724
- | 0.9886 | 29250 | 0.0 | - |
725
- | 0.9903 | 29300 | 0.0 | - |
726
- | 0.9920 | 29350 | 0.0 | - |
727
- | 0.9937 | 29400 | 0.0 | - |
728
- | 0.9954 | 29450 | 0.0 | - |
729
- | 0.9971 | 29500 | 0.0 | 0.0 |
730
- | 0.9988 | 29550 | 0.0 | - |
731
-
732
- * The bold row denotes the saved checkpoint.
733
  ### Framework Versions
734
  - Python: 3.10.11
735
  - SetFit: 1.0.1
 
7
  - generated_from_setfit_trainer
8
  metrics:
9
  - accuracy
10
+ widget: []
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  pipeline_tag: text-classification
12
  inference: true
13
+ base_model: sentence-transformers/paraphrase-mpnet-base-v2
14
+ model-index:
15
+ - name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2
16
+ results:
17
+ - task:
18
+ type: text-classification
19
+ name: Text Classification
20
+ dataset:
21
+ name: Unknown
22
+ type: unknown
23
+ split: test
24
+ metrics:
25
+ - type: accuracy
26
+ value: 1.0
27
+ name: Accuracy
28
  ---
29
 
30
+ # SetFit with sentence-transformers/paraphrase-mpnet-base-v2
31
 
32
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
33
 
34
  The model has been trained using an efficient few-shot learning technique that involves:
35
 
 
40
 
41
  ### Model Description
42
  - **Model Type:** SetFit
43
+ - **Sentence Transformer body:** [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2)
44
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
45
+ - **Maximum Sequence Length:** 512 tokens
46
+ <!-- - **Number of Classes:** Unknown -->
47
  <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
48
  <!-- - **Language:** Unknown -->
49
  <!-- - **License:** Unknown -->
 
54
  - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
55
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
56
 
57
+ ## Evaluation
58
+
59
+ ### Metrics
60
+ | Label | Accuracy |
61
+ |:--------|:---------|
62
+ | **all** | 1.0 |
63
 
64
  ## Uses
65
 
 
79
  # Download from the 🤗 Hub
80
  model = SetFitModel.from_pretrained("setfit_model_id")
81
  # Run inference
82
+ preds = model("I loved the spiderman movie!")
83
  ```
84
 
85
  <!--
 
108
 
109
  ## Training Details
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  ### Framework Versions
112
  - Python: 3.10.11
113
  - SetFit: 1.0.1
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "checkpoints/step_21500/",
3
  "architectures": [
4
  "MPNetModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "checkpoints/step_2000/",
3
  "architectures": [
4
  "MPNetModel"
5
  ],
config_sentence_transformers.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "__version__": {
3
  "sentence_transformers": "2.0.0",
4
- "transformers": "4.6.1",
5
- "pytorch": "1.8.1"
6
  }
7
  }
 
1
  {
2
  "__version__": {
3
  "sentence_transformers": "2.0.0",
4
+ "transformers": "4.7.0",
5
+ "pytorch": "1.9.0+cu102"
6
  }
7
  }
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9816777c2500d063ca7262f452d591d6dccb90a352449a8152f68b6db8da64ec
3
- size 7007
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a4d0d286315d0ec84dcca769bee5958abbec6a4c73e5e229f1ec8368676e5d0
3
+ size 7019
modules.json CHANGED
@@ -10,11 +10,5 @@
10
  "name": "1",
11
  "path": "1_Pooling",
12
  "type": "sentence_transformers.models.Pooling"
13
- },
14
- {
15
- "idx": 2,
16
- "name": "2",
17
- "path": "2_Normalize",
18
- "type": "sentence_transformers.models.Normalize"
19
  }
20
  ]
 
10
  "name": "1",
11
  "path": "1_Pooling",
12
  "type": "sentence_transformers.models.Pooling"
 
 
 
 
 
 
13
  }
14
  ]
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0ffc0284c7cd57ffcbd36c1976631e19952a3d3fa204011c81832bfb4b86cd6c
3
  size 438014122
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d6522dfabc397b3bf2ce0751263f48e63d41460e312dda5ab97ba9f7d439a6c
3
  size 438014122
sentence_bert_config.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "max_seq_length": 384,
3
  "do_lower_case": false
4
  }
 
1
  {
2
+ "max_seq_length": 512,
3
  "do_lower_case": false
4
  }
tokenizer.json CHANGED
@@ -2,7 +2,7 @@
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
- "max_length": 384,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
@@ -42,15 +42,6 @@
42
  "normalized": false,
43
  "special": true
44
  },
45
- {
46
- "id": 3,
47
- "content": "<unk>",
48
- "single_word": false,
49
- "lstrip": false,
50
- "rstrip": false,
51
- "normalized": true,
52
- "special": true
53
- },
54
  {
55
  "id": 104,
56
  "content": "[UNK]",
@@ -81,17 +72,85 @@
81
  "type": "BertPreTokenizer"
82
  },
83
  "post_processor": {
84
- "type": "RobertaProcessing",
85
- "sep": [
86
- "</s>",
87
- 2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  ],
89
- "cls": [
90
- "<s>",
91
- 0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  ],
93
- "trim_offsets": true,
94
- "add_prefix_space": false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  },
96
  "decoder": {
97
  "type": "WordPiece",
 
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
+ "max_length": 512,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
 
42
  "normalized": false,
43
  "special": true
44
  },
 
 
 
 
 
 
 
 
 
45
  {
46
  "id": 104,
47
  "content": "[UNK]",
 
72
  "type": "BertPreTokenizer"
73
  },
74
  "post_processor": {
75
+ "type": "TemplateProcessing",
76
+ "single": [
77
+ {
78
+ "SpecialToken": {
79
+ "id": "<s>",
80
+ "type_id": 0
81
+ }
82
+ },
83
+ {
84
+ "Sequence": {
85
+ "id": "A",
86
+ "type_id": 0
87
+ }
88
+ },
89
+ {
90
+ "SpecialToken": {
91
+ "id": "</s>",
92
+ "type_id": 0
93
+ }
94
+ }
95
  ],
96
+ "pair": [
97
+ {
98
+ "SpecialToken": {
99
+ "id": "<s>",
100
+ "type_id": 0
101
+ }
102
+ },
103
+ {
104
+ "Sequence": {
105
+ "id": "A",
106
+ "type_id": 0
107
+ }
108
+ },
109
+ {
110
+ "SpecialToken": {
111
+ "id": "</s>",
112
+ "type_id": 0
113
+ }
114
+ },
115
+ {
116
+ "SpecialToken": {
117
+ "id": "</s>",
118
+ "type_id": 0
119
+ }
120
+ },
121
+ {
122
+ "Sequence": {
123
+ "id": "B",
124
+ "type_id": 1
125
+ }
126
+ },
127
+ {
128
+ "SpecialToken": {
129
+ "id": "</s>",
130
+ "type_id": 1
131
+ }
132
+ }
133
  ],
134
+ "special_tokens": {
135
+ "</s>": {
136
+ "id": "</s>",
137
+ "ids": [
138
+ 2
139
+ ],
140
+ "tokens": [
141
+ "</s>"
142
+ ]
143
+ },
144
+ "<s>": {
145
+ "id": "<s>",
146
+ "ids": [
147
+ 0
148
+ ],
149
+ "tokens": [
150
+ "<s>"
151
+ ]
152
+ }
153
+ }
154
  },
155
  "decoder": {
156
  "type": "WordPiece",
tokenizer_config.json CHANGED
@@ -1,16 +1,67 @@
1
  {
2
- "bos_token": "<s>",
3
- "cls_token": "<s>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  "do_lower_case": true,
5
- "eos_token": "</s>",
6
- "mask_token": "<mask>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  "model_max_length": 512,
8
- "name_or_path": "checkpoints/step_21500/",
9
- "pad_token": "<pad>",
10
- "sep_token": "</s>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  "special_tokens_map_file": null,
12
  "strip_accents": null,
13
  "tokenize_chinese_chars": true,
14
  "tokenizer_class": "MPNetTokenizer",
15
- "unk_token": "[UNK]"
 
 
 
 
 
 
 
16
  }
 
1
  {
2
+ "bos_token": {
3
+ "__type": "AddedToken",
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": true,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "cls_token": {
11
+ "__type": "AddedToken",
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": true,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "do_basic_tokenize": true,
19
  "do_lower_case": true,
20
+ "eos_token": {
21
+ "__type": "AddedToken",
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "mask_token": {
29
+ "__type": "AddedToken",
30
+ "content": "<mask>",
31
+ "lstrip": true,
32
+ "normalized": true,
33
+ "rstrip": false,
34
+ "single_word": false
35
+ },
36
  "model_max_length": 512,
37
+ "name_or_path": "checkpoints/step_2000/",
38
+ "never_split": null,
39
+ "pad_token": {
40
+ "__type": "AddedToken",
41
+ "content": "<pad>",
42
+ "lstrip": false,
43
+ "normalized": true,
44
+ "rstrip": false,
45
+ "single_word": false
46
+ },
47
+ "sep_token": {
48
+ "__type": "AddedToken",
49
+ "content": "</s>",
50
+ "lstrip": false,
51
+ "normalized": true,
52
+ "rstrip": false,
53
+ "single_word": false
54
+ },
55
  "special_tokens_map_file": null,
56
  "strip_accents": null,
57
  "tokenize_chinese_chars": true,
58
  "tokenizer_class": "MPNetTokenizer",
59
+ "unk_token": {
60
+ "__type": "AddedToken",
61
+ "content": "[UNK]",
62
+ "lstrip": false,
63
+ "normalized": true,
64
+ "rstrip": false,
65
+ "single_word": false
66
+ }
67
  }