anismahmahi
commited on
Commit
•
928df31
1
Parent(s):
c61b260
Add SetFit model
Browse files- 1_Pooling/config.json +7 -0
- README.md +342 -0
- config.json +24 -0
- config_sentence_transformers.json +7 -0
- config_setfit.json +4 -0
- model.safetensors +3 -0
- model_head.pkl +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 +66 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
}
|
README.md
ADDED
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: setfit
|
3 |
+
tags:
|
4 |
+
- setfit
|
5 |
+
- sentence-transformers
|
6 |
+
- text-classification
|
7 |
+
- generated_from_setfit_trainer
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
widget:
|
11 |
+
- text: But the author is Bharath Ganesh.
|
12 |
+
- text: The documents, which suggest all the adults were involved in the training,
|
13 |
+
say a person serving as a foster parent caring for one of the kids revealed the
|
14 |
+
details about the training.
|
15 |
+
- text: Louis Farrakhan, the 84-year-old head of the Nation of Islam, has been back
|
16 |
+
in the headlines after a previously unreleased photo of him with President Barack
|
17 |
+
Obama was published in January and Mr. Farrakhan gave an anti-Semitic speech at
|
18 |
+
his organization’s annual convention last month.
|
19 |
+
- text: The name of that CIA official whose torture activities the Post described
|
20 |
+
is Gina Haspel.
|
21 |
+
- text: This is not just about Facebook or Twitter.
|
22 |
+
pipeline_tag: text-classification
|
23 |
+
inference: false
|
24 |
+
base_model: sentence-transformers/paraphrase-mpnet-base-v2
|
25 |
+
model-index:
|
26 |
+
- name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2
|
27 |
+
results:
|
28 |
+
- task:
|
29 |
+
type: text-classification
|
30 |
+
name: Text Classification
|
31 |
+
dataset:
|
32 |
+
name: Unknown
|
33 |
+
type: unknown
|
34 |
+
split: test
|
35 |
+
metrics:
|
36 |
+
- type: accuracy
|
37 |
+
value: 0.7125193199381762
|
38 |
+
name: Accuracy
|
39 |
+
---
|
40 |
+
|
41 |
+
# SetFit with sentence-transformers/paraphrase-mpnet-base-v2
|
42 |
+
|
43 |
+
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 OneVsRestClassifier instance is used for classification.
|
44 |
+
|
45 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
46 |
+
|
47 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
48 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
49 |
+
|
50 |
+
## Model Details
|
51 |
+
|
52 |
+
### Model Description
|
53 |
+
- **Model Type:** SetFit
|
54 |
+
- **Sentence Transformer body:** [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2)
|
55 |
+
- **Classification head:** a OneVsRestClassifier instance
|
56 |
+
- **Maximum Sequence Length:** 512 tokens
|
57 |
+
<!-- - **Number of Classes:** Unknown -->
|
58 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
59 |
+
<!-- - **Language:** Unknown -->
|
60 |
+
<!-- - **License:** Unknown -->
|
61 |
+
|
62 |
+
### Model Sources
|
63 |
+
|
64 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
65 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
66 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
67 |
+
|
68 |
+
## Evaluation
|
69 |
+
|
70 |
+
### Metrics
|
71 |
+
| Label | Accuracy |
|
72 |
+
|:--------|:---------|
|
73 |
+
| **all** | 0.7125 |
|
74 |
+
|
75 |
+
## Uses
|
76 |
+
|
77 |
+
### Direct Use for Inference
|
78 |
+
|
79 |
+
First install the SetFit library:
|
80 |
+
|
81 |
+
```bash
|
82 |
+
pip install setfit
|
83 |
+
```
|
84 |
+
|
85 |
+
Then you can load this model and run inference.
|
86 |
+
|
87 |
+
```python
|
88 |
+
from setfit import SetFitModel
|
89 |
+
|
90 |
+
# Download from the 🤗 Hub
|
91 |
+
model = SetFitModel.from_pretrained("anismahmahi/G2-with-noPropaganda-multilabel-setfit-model")
|
92 |
+
# Run inference
|
93 |
+
preds = model("But the author is Bharath Ganesh.")
|
94 |
+
```
|
95 |
+
|
96 |
+
<!--
|
97 |
+
### Downstream Use
|
98 |
+
|
99 |
+
*List how someone could finetune this model on their own dataset.*
|
100 |
+
-->
|
101 |
+
|
102 |
+
<!--
|
103 |
+
### Out-of-Scope Use
|
104 |
+
|
105 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
106 |
+
-->
|
107 |
+
|
108 |
+
<!--
|
109 |
+
## Bias, Risks and Limitations
|
110 |
+
|
111 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
112 |
+
-->
|
113 |
+
|
114 |
+
<!--
|
115 |
+
### Recommendations
|
116 |
+
|
117 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
118 |
+
-->
|
119 |
+
|
120 |
+
## Training Details
|
121 |
+
|
122 |
+
### Training Set Metrics
|
123 |
+
| Training set | Min | Median | Max |
|
124 |
+
|:-------------|:----|:--------|:----|
|
125 |
+
| Word count | 1 | 23.3972 | 129 |
|
126 |
+
|
127 |
+
### Training Hyperparameters
|
128 |
+
- batch_size: (16, 16)
|
129 |
+
- num_epochs: (2, 2)
|
130 |
+
- max_steps: -1
|
131 |
+
- sampling_strategy: oversampling
|
132 |
+
- num_iterations: 10
|
133 |
+
- body_learning_rate: (2e-05, 1e-05)
|
134 |
+
- head_learning_rate: 0.01
|
135 |
+
- loss: CosineSimilarityLoss
|
136 |
+
- distance_metric: cosine_distance
|
137 |
+
- margin: 0.25
|
138 |
+
- end_to_end: False
|
139 |
+
- use_amp: False
|
140 |
+
- warmup_proportion: 0.1
|
141 |
+
- seed: 42
|
142 |
+
- eval_max_steps: -1
|
143 |
+
- load_best_model_at_end: True
|
144 |
+
|
145 |
+
### Training Results
|
146 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
147 |
+
|:-------:|:--------:|:-------------:|:---------------:|
|
148 |
+
| 0.0003 | 1 | 0.3874 | - |
|
149 |
+
| 0.0135 | 50 | 0.3734 | - |
|
150 |
+
| 0.0270 | 100 | 0.2741 | - |
|
151 |
+
| 0.0405 | 150 | 0.2802 | - |
|
152 |
+
| 0.0539 | 200 | 0.2355 | - |
|
153 |
+
| 0.0674 | 250 | 0.2616 | - |
|
154 |
+
| 0.0809 | 300 | 0.262 | - |
|
155 |
+
| 0.0944 | 350 | 0.2302 | - |
|
156 |
+
| 0.1079 | 400 | 0.1962 | - |
|
157 |
+
| 0.1214 | 450 | 0.1438 | - |
|
158 |
+
| 0.1348 | 500 | 0.2001 | - |
|
159 |
+
| 0.1483 | 550 | 0.2126 | - |
|
160 |
+
| 0.1618 | 600 | 0.1244 | - |
|
161 |
+
| 0.1753 | 650 | 0.1968 | - |
|
162 |
+
| 0.1888 | 700 | 0.1473 | - |
|
163 |
+
| 0.2023 | 750 | 0.2407 | - |
|
164 |
+
| 0.2157 | 800 | 0.1607 | - |
|
165 |
+
| 0.2292 | 850 | 0.1376 | - |
|
166 |
+
| 0.2427 | 900 | 0.145 | - |
|
167 |
+
| 0.2562 | 950 | 0.1439 | - |
|
168 |
+
| 0.2697 | 1000 | 0.0418 | - |
|
169 |
+
| 0.2832 | 1050 | 0.0822 | - |
|
170 |
+
| 0.2967 | 1100 | 0.1042 | - |
|
171 |
+
| 0.3101 | 1150 | 0.0381 | - |
|
172 |
+
| 0.3236 | 1200 | 0.17 | - |
|
173 |
+
| 0.3371 | 1250 | 0.0253 | - |
|
174 |
+
| 0.3506 | 1300 | 0.1009 | - |
|
175 |
+
| 0.3641 | 1350 | 0.1355 | - |
|
176 |
+
| 0.3776 | 1400 | 0.0314 | - |
|
177 |
+
| 0.3910 | 1450 | 0.2185 | - |
|
178 |
+
| 0.4045 | 1500 | 0.0774 | - |
|
179 |
+
| 0.4180 | 1550 | 0.0512 | - |
|
180 |
+
| 0.4315 | 1600 | 0.0814 | - |
|
181 |
+
| 0.4450 | 1650 | 0.0169 | - |
|
182 |
+
| 0.4585 | 1700 | 0.0591 | - |
|
183 |
+
| 0.4720 | 1750 | 0.1232 | - |
|
184 |
+
| 0.4854 | 1800 | 0.0941 | - |
|
185 |
+
| 0.4989 | 1850 | 0.1024 | - |
|
186 |
+
| 0.5124 | 1900 | 0.0031 | - |
|
187 |
+
| 0.5259 | 1950 | 0.037 | - |
|
188 |
+
| 0.5394 | 2000 | 0.1418 | - |
|
189 |
+
| 0.5529 | 2050 | 0.0685 | - |
|
190 |
+
| 0.5663 | 2100 | 0.0326 | - |
|
191 |
+
| 0.5798 | 2150 | 0.0143 | - |
|
192 |
+
| 0.5933 | 2200 | 0.064 | - |
|
193 |
+
| 0.6068 | 2250 | 0.0612 | - |
|
194 |
+
| 0.6203 | 2300 | 0.0689 | - |
|
195 |
+
| 0.6338 | 2350 | 0.1402 | - |
|
196 |
+
| 0.6472 | 2400 | 0.288 | - |
|
197 |
+
| 0.6607 | 2450 | 0.0075 | - |
|
198 |
+
| 0.6742 | 2500 | 0.0785 | - |
|
199 |
+
| 0.6877 | 2550 | 0.0339 | - |
|
200 |
+
| 0.7012 | 2600 | 0.0668 | - |
|
201 |
+
| 0.7147 | 2650 | 0.0319 | - |
|
202 |
+
| 0.7282 | 2700 | 0.0622 | - |
|
203 |
+
| 0.7416 | 2750 | 0.1169 | - |
|
204 |
+
| 0.7551 | 2800 | 0.0249 | - |
|
205 |
+
| 0.7686 | 2850 | 0.0218 | - |
|
206 |
+
| 0.7821 | 2900 | 0.0621 | - |
|
207 |
+
| 0.7956 | 2950 | 0.0698 | - |
|
208 |
+
| 0.8091 | 3000 | 0.0562 | - |
|
209 |
+
| 0.8225 | 3050 | 0.0412 | - |
|
210 |
+
| 0.8360 | 3100 | 0.0048 | - |
|
211 |
+
| 0.8495 | 3150 | 0.0085 | - |
|
212 |
+
| 0.8630 | 3200 | 0.0122 | - |
|
213 |
+
| 0.8765 | 3250 | 0.0387 | - |
|
214 |
+
| 0.8900 | 3300 | 0.0053 | - |
|
215 |
+
| 0.9035 | 3350 | 0.0032 | - |
|
216 |
+
| 0.9169 | 3400 | 0.0156 | - |
|
217 |
+
| 0.9304 | 3450 | 0.0013 | - |
|
218 |
+
| 0.9439 | 3500 | 0.001 | - |
|
219 |
+
| 0.9574 | 3550 | 0.0009 | - |
|
220 |
+
| 0.9709 | 3600 | 0.0025 | - |
|
221 |
+
| 0.9844 | 3650 | 0.0006 | - |
|
222 |
+
| 0.9978 | 3700 | 0.0832 | - |
|
223 |
+
| 1.0 | 3708 | - | 0.2776 |
|
224 |
+
| 1.0113 | 3750 | 0.0735 | - |
|
225 |
+
| 1.0248 | 3800 | 0.0053 | - |
|
226 |
+
| 1.0383 | 3850 | 0.0614 | - |
|
227 |
+
| 1.0518 | 3900 | 0.0005 | - |
|
228 |
+
| 1.0653 | 3950 | 0.0046 | - |
|
229 |
+
| 1.0787 | 4000 | 0.0024 | - |
|
230 |
+
| 1.0922 | 4050 | 0.0004 | - |
|
231 |
+
| 1.1057 | 4100 | 0.0016 | - |
|
232 |
+
| 1.1192 | 4150 | 0.0789 | - |
|
233 |
+
| 1.1327 | 4200 | 0.0016 | - |
|
234 |
+
| 1.1462 | 4250 | 0.0018 | - |
|
235 |
+
| 1.1597 | 4300 | 0.0005 | - |
|
236 |
+
| 1.1731 | 4350 | 0.0051 | - |
|
237 |
+
| 1.1866 | 4400 | 0.0139 | - |
|
238 |
+
| 1.2001 | 4450 | 0.0021 | - |
|
239 |
+
| 1.2136 | 4500 | 0.0064 | - |
|
240 |
+
| 1.2271 | 4550 | 0.0025 | - |
|
241 |
+
| 1.2406 | 4600 | 0.0054 | - |
|
242 |
+
| 1.2540 | 4650 | 0.0022 | - |
|
243 |
+
| 1.2675 | 4700 | 0.0734 | - |
|
244 |
+
| 1.2810 | 4750 | 0.026 | - |
|
245 |
+
| 1.2945 | 4800 | 0.0004 | - |
|
246 |
+
| 1.3080 | 4850 | 0.0574 | - |
|
247 |
+
| 1.3215 | 4900 | 0.0043 | - |
|
248 |
+
| 1.3350 | 4950 | 0.0975 | - |
|
249 |
+
| 1.3484 | 5000 | 0.0125 | - |
|
250 |
+
| 1.3619 | 5050 | 0.0045 | - |
|
251 |
+
| 1.3754 | 5100 | 0.0011 | - |
|
252 |
+
| 1.3889 | 5150 | 0.0061 | - |
|
253 |
+
| 1.4024 | 5200 | 0.0004 | - |
|
254 |
+
| 1.4159 | 5250 | 0.0278 | - |
|
255 |
+
| 1.4293 | 5300 | 0.005 | - |
|
256 |
+
| 1.4428 | 5350 | 0.0302 | - |
|
257 |
+
| 1.4563 | 5400 | 0.0341 | - |
|
258 |
+
| 1.4698 | 5450 | 0.0007 | - |
|
259 |
+
| 1.4833 | 5500 | 0.0128 | - |
|
260 |
+
| 1.4968 | 5550 | 0.0459 | - |
|
261 |
+
| 1.5102 | 5600 | 0.0128 | - |
|
262 |
+
| 1.5237 | 5650 | 0.0003 | - |
|
263 |
+
| 1.5372 | 5700 | 0.004 | - |
|
264 |
+
| 1.5507 | 5750 | 0.0005 | - |
|
265 |
+
| 1.5642 | 5800 | 0.0005 | - |
|
266 |
+
| 1.5777 | 5850 | 0.001 | - |
|
267 |
+
| 1.5912 | 5900 | 0.0069 | - |
|
268 |
+
| 1.6046 | 5950 | 0.0124 | - |
|
269 |
+
| 1.6181 | 6000 | 0.0026 | - |
|
270 |
+
| 1.6316 | 6050 | 0.0143 | - |
|
271 |
+
| 1.6451 | 6100 | 0.0005 | - |
|
272 |
+
| 1.6586 | 6150 | 0.0362 | - |
|
273 |
+
| 1.6721 | 6200 | 0.0002 | - |
|
274 |
+
| 1.6855 | 6250 | 0.0608 | - |
|
275 |
+
| 1.6990 | 6300 | 0.0006 | - |
|
276 |
+
| 1.7125 | 6350 | 0.0003 | - |
|
277 |
+
| 1.7260 | 6400 | 0.0041 | - |
|
278 |
+
| 1.7395 | 6450 | 0.0045 | - |
|
279 |
+
| 1.7530 | 6500 | 0.0005 | - |
|
280 |
+
| 1.7665 | 6550 | 0.0014 | - |
|
281 |
+
| 1.7799 | 6600 | 0.0004 | - |
|
282 |
+
| 1.7934 | 6650 | 0.0211 | - |
|
283 |
+
| 1.8069 | 6700 | 0.0002 | - |
|
284 |
+
| 1.8204 | 6750 | 0.0048 | - |
|
285 |
+
| 1.8339 | 6800 | 0.0368 | - |
|
286 |
+
| 1.8474 | 6850 | 0.0107 | - |
|
287 |
+
| 1.8608 | 6900 | 0.0045 | - |
|
288 |
+
| 1.8743 | 6950 | 0.0062 | - |
|
289 |
+
| 1.8878 | 7000 | 0.0003 | - |
|
290 |
+
| 1.9013 | 7050 | 0.0001 | - |
|
291 |
+
| 1.9148 | 7100 | 0.0096 | - |
|
292 |
+
| 1.9283 | 7150 | 0.0008 | - |
|
293 |
+
| 1.9417 | 7200 | 0.0184 | - |
|
294 |
+
| 1.9552 | 7250 | 0.0006 | - |
|
295 |
+
| 1.9687 | 7300 | 0.0291 | - |
|
296 |
+
| 1.9822 | 7350 | 0.0335 | - |
|
297 |
+
| 1.9957 | 7400 | 0.0149 | - |
|
298 |
+
| **2.0** | **7416** | **-** | **0.2666** |
|
299 |
+
|
300 |
+
* The bold row denotes the saved checkpoint.
|
301 |
+
### Framework Versions
|
302 |
+
- Python: 3.10.12
|
303 |
+
- SetFit: 1.0.1
|
304 |
+
- Sentence Transformers: 2.2.2
|
305 |
+
- Transformers: 4.35.2
|
306 |
+
- PyTorch: 2.1.0+cu121
|
307 |
+
- Datasets: 2.16.1
|
308 |
+
- Tokenizers: 0.15.0
|
309 |
+
|
310 |
+
## Citation
|
311 |
+
|
312 |
+
### BibTeX
|
313 |
+
```bibtex
|
314 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
315 |
+
doi = {10.48550/ARXIV.2209.11055},
|
316 |
+
url = {https://arxiv.org/abs/2209.11055},
|
317 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
318 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
319 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
320 |
+
publisher = {arXiv},
|
321 |
+
year = {2022},
|
322 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
323 |
+
}
|
324 |
+
```
|
325 |
+
|
326 |
+
<!--
|
327 |
+
## Glossary
|
328 |
+
|
329 |
+
*Clearly define terms in order to be accessible across audiences.*
|
330 |
+
-->
|
331 |
+
|
332 |
+
<!--
|
333 |
+
## Model Card Authors
|
334 |
+
|
335 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
336 |
+
-->
|
337 |
+
|
338 |
+
<!--
|
339 |
+
## Model Card Contact
|
340 |
+
|
341 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
342 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "checkpoints/step_7416/",
|
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.35.2",
|
23 |
+
"vocab_size": 30527
|
24 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "2.0.0",
|
4 |
+
"transformers": "4.7.0",
|
5 |
+
"pytorch": "1.9.0+cu102"
|
6 |
+
}
|
7 |
+
}
|
config_setfit.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"normalize_embeddings": false,
|
3 |
+
"labels": null
|
4 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3182c9d3035a96fa09f9b7eac3c21e1b42c73a08291b6c6ab3ebb22c06bb0b94
|
3 |
+
size 437967672
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11e968a9dcbf03193b2be1e6bff3ecd5651ca4144cd69533bedc1d5bb73cfe28
|
3 |
+
size 46356
|
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": false,
|
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": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "[UNK]",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": false,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<s>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<pad>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"104": {
|
28 |
+
"content": "[UNK]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"30526": {
|
36 |
+
"content": "<mask>",
|
37 |
+
"lstrip": true,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"bos_token": "<s>",
|
45 |
+
"clean_up_tokenization_spaces": true,
|
46 |
+
"cls_token": "<s>",
|
47 |
+
"do_basic_tokenize": true,
|
48 |
+
"do_lower_case": true,
|
49 |
+
"eos_token": "</s>",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"max_length": 512,
|
52 |
+
"model_max_length": 512,
|
53 |
+
"never_split": null,
|
54 |
+
"pad_to_multiple_of": null,
|
55 |
+
"pad_token": "<pad>",
|
56 |
+
"pad_token_type_id": 0,
|
57 |
+
"padding_side": "right",
|
58 |
+
"sep_token": "</s>",
|
59 |
+
"stride": 0,
|
60 |
+
"strip_accents": null,
|
61 |
+
"tokenize_chinese_chars": true,
|
62 |
+
"tokenizer_class": "MPNetTokenizer",
|
63 |
+
"truncation_side": "right",
|
64 |
+
"truncation_strategy": "longest_first",
|
65 |
+
"unk_token": "[UNK]"
|
66 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|