Add SetFit model
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +9 -0
- README.md +317 -0
- config.json +29 -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
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +3 -0
- tokenizer_config.json +61 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
1_Pooling/config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
}
|
README.md
ADDED
@@ -0,0 +1,317 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: παστα ατομικη
|
12 |
+
- text: mikel mini croissant σοκολατα
|
13 |
+
- text: tasty nat nut παστελι σουσαμι
|
14 |
+
- text: σκιουφιχτα σαλτσα ντοματας μυζηθρα σαλτσα ντοματας ελιες καππαρη μυζηθρα
|
15 |
+
- text: κρασι ροζε λιανος
|
16 |
+
pipeline_tag: text-classification
|
17 |
+
inference: false
|
18 |
+
base_model: lighteternal/stsb-xlm-r-greek-transfer
|
19 |
+
model-index:
|
20 |
+
- name: SetFit with lighteternal/stsb-xlm-r-greek-transfer
|
21 |
+
results:
|
22 |
+
- task:
|
23 |
+
type: text-classification
|
24 |
+
name: Text Classification
|
25 |
+
dataset:
|
26 |
+
name: Unknown
|
27 |
+
type: unknown
|
28 |
+
split: test
|
29 |
+
metrics:
|
30 |
+
- type: accuracy
|
31 |
+
value: 0.1588785046728972
|
32 |
+
name: Accuracy
|
33 |
+
---
|
34 |
+
|
35 |
+
# SetFit with lighteternal/stsb-xlm-r-greek-transfer
|
36 |
+
|
37 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [lighteternal/stsb-xlm-r-greek-transfer](https://huggingface.co/lighteternal/stsb-xlm-r-greek-transfer) as the Sentence Transformer embedding model. A OneVsRestClassifier instance is used for classification.
|
38 |
+
|
39 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
40 |
+
|
41 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
42 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
43 |
+
|
44 |
+
## Model Details
|
45 |
+
|
46 |
+
### Model Description
|
47 |
+
- **Model Type:** SetFit
|
48 |
+
- **Sentence Transformer body:** [lighteternal/stsb-xlm-r-greek-transfer](https://huggingface.co/lighteternal/stsb-xlm-r-greek-transfer)
|
49 |
+
- **Classification head:** a OneVsRestClassifier instance
|
50 |
+
- **Maximum Sequence Length:** 400 tokens
|
51 |
+
<!-- - **Number of Classes:** Unknown -->
|
52 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
53 |
+
<!-- - **Language:** Unknown -->
|
54 |
+
<!-- - **License:** Unknown -->
|
55 |
+
|
56 |
+
### Model Sources
|
57 |
+
|
58 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
59 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
60 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
61 |
+
|
62 |
+
## Evaluation
|
63 |
+
|
64 |
+
### Metrics
|
65 |
+
| Label | Accuracy |
|
66 |
+
|:--------|:---------|
|
67 |
+
| **all** | 0.1589 |
|
68 |
+
|
69 |
+
## Uses
|
70 |
+
|
71 |
+
### Direct Use for Inference
|
72 |
+
|
73 |
+
First install the SetFit library:
|
74 |
+
|
75 |
+
```bash
|
76 |
+
pip install setfit
|
77 |
+
```
|
78 |
+
|
79 |
+
Then you can load this model and run inference.
|
80 |
+
|
81 |
+
```python
|
82 |
+
from setfit import SetFitModel
|
83 |
+
|
84 |
+
# Download from the 🤗 Hub
|
85 |
+
model = SetFitModel.from_pretrained("st-karlos-efood/setfit-multilabel-one-vs-rest-feb-2024")
|
86 |
+
# Run inference
|
87 |
+
preds = model("παστα ατομικη")
|
88 |
+
```
|
89 |
+
|
90 |
+
<!--
|
91 |
+
### Downstream Use
|
92 |
+
|
93 |
+
*List how someone could finetune this model on their own dataset.*
|
94 |
+
-->
|
95 |
+
|
96 |
+
<!--
|
97 |
+
### Out-of-Scope Use
|
98 |
+
|
99 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
100 |
+
-->
|
101 |
+
|
102 |
+
<!--
|
103 |
+
## Bias, Risks and Limitations
|
104 |
+
|
105 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
106 |
+
-->
|
107 |
+
|
108 |
+
<!--
|
109 |
+
### Recommendations
|
110 |
+
|
111 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
112 |
+
-->
|
113 |
+
|
114 |
+
## Training Details
|
115 |
+
|
116 |
+
### Training Set Metrics
|
117 |
+
| Training set | Min | Median | Max |
|
118 |
+
|:-------------|:----|:-------|:----|
|
119 |
+
| Word count | 1 | 8.6048 | 116 |
|
120 |
+
|
121 |
+
### Training Hyperparameters
|
122 |
+
- batch_size: (48, 48)
|
123 |
+
- num_epochs: (5, 5)
|
124 |
+
- max_steps: -1
|
125 |
+
- sampling_strategy: oversampling
|
126 |
+
- num_iterations: 10
|
127 |
+
- body_learning_rate: (2e-05, 2e-05)
|
128 |
+
- head_learning_rate: 2e-05
|
129 |
+
- loss: CosineSimilarityLoss
|
130 |
+
- distance_metric: cosine_distance
|
131 |
+
- margin: 0.25
|
132 |
+
- end_to_end: False
|
133 |
+
- use_amp: False
|
134 |
+
- warmup_proportion: 0.1
|
135 |
+
- seed: 42
|
136 |
+
- eval_max_steps: -1
|
137 |
+
- load_best_model_at_end: False
|
138 |
+
|
139 |
+
### Training Results
|
140 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
141 |
+
|:------:|:----:|:-------------:|:---------------:|
|
142 |
+
| 0.0008 | 1 | 0.2009 | - |
|
143 |
+
| 0.0377 | 50 | 0.1674 | - |
|
144 |
+
| 0.0754 | 100 | 0.1593 | - |
|
145 |
+
| 0.1131 | 150 | 0.1793 | - |
|
146 |
+
| 0.1508 | 200 | 0.176 | - |
|
147 |
+
| 0.1885 | 250 | 0.1818 | - |
|
148 |
+
| 0.2262 | 300 | 0.1209 | - |
|
149 |
+
| 0.2640 | 350 | 0.1546 | - |
|
150 |
+
| 0.3017 | 400 | 0.0996 | - |
|
151 |
+
| 0.3394 | 450 | 0.1108 | - |
|
152 |
+
| 0.3771 | 500 | 0.1163 | - |
|
153 |
+
| 0.4148 | 550 | 0.1102 | - |
|
154 |
+
| 0.4525 | 600 | 0.1477 | - |
|
155 |
+
| 0.4902 | 650 | 0.0973 | - |
|
156 |
+
| 0.5279 | 700 | 0.1324 | - |
|
157 |
+
| 0.5656 | 750 | 0.1792 | - |
|
158 |
+
| 0.6033 | 800 | 0.1026 | - |
|
159 |
+
| 0.6410 | 850 | 0.1461 | - |
|
160 |
+
| 0.6787 | 900 | 0.117 | - |
|
161 |
+
| 0.7164 | 950 | 0.0907 | - |
|
162 |
+
| 0.7541 | 1000 | 0.0904 | - |
|
163 |
+
| 0.7919 | 1050 | 0.1168 | - |
|
164 |
+
| 0.8296 | 1100 | 0.0831 | - |
|
165 |
+
| 0.8673 | 1150 | 0.0623 | - |
|
166 |
+
| 0.9050 | 1200 | 0.0802 | - |
|
167 |
+
| 0.9427 | 1250 | 0.0802 | - |
|
168 |
+
| 0.9804 | 1300 | 0.1212 | - |
|
169 |
+
| 1.0181 | 1350 | 0.0872 | - |
|
170 |
+
| 1.0558 | 1400 | 0.1068 | - |
|
171 |
+
| 1.0935 | 1450 | 0.0975 | - |
|
172 |
+
| 1.1312 | 1500 | 0.096 | - |
|
173 |
+
| 1.1689 | 1550 | 0.0649 | - |
|
174 |
+
| 1.2066 | 1600 | 0.1004 | - |
|
175 |
+
| 1.2443 | 1650 | 0.0818 | - |
|
176 |
+
| 1.2821 | 1700 | 0.0714 | - |
|
177 |
+
| 1.3198 | 1750 | 0.0875 | - |
|
178 |
+
| 1.3575 | 1800 | 0.0893 | - |
|
179 |
+
| 1.3952 | 1850 | 0.1132 | - |
|
180 |
+
| 1.4329 | 1900 | 0.1127 | - |
|
181 |
+
| 1.4706 | 1950 | 0.0707 | - |
|
182 |
+
| 1.5083 | 2000 | 0.0819 | - |
|
183 |
+
| 1.5460 | 2050 | 0.0954 | - |
|
184 |
+
| 1.5837 | 2100 | 0.0948 | - |
|
185 |
+
| 1.6214 | 2150 | 0.0953 | - |
|
186 |
+
| 1.6591 | 2200 | 0.0813 | - |
|
187 |
+
| 1.6968 | 2250 | 0.0974 | - |
|
188 |
+
| 1.7345 | 2300 | 0.0785 | - |
|
189 |
+
| 1.7722 | 2350 | 0.086 | - |
|
190 |
+
| 1.8100 | 2400 | 0.0808 | - |
|
191 |
+
| 1.8477 | 2450 | 0.1014 | - |
|
192 |
+
| 1.8854 | 2500 | 0.112 | - |
|
193 |
+
| 1.9231 | 2550 | 0.0765 | - |
|
194 |
+
| 1.9608 | 2600 | 0.0694 | - |
|
195 |
+
| 1.9985 | 2650 | 0.0915 | - |
|
196 |
+
| 2.0362 | 2700 | 0.087 | - |
|
197 |
+
| 2.0739 | 2750 | 0.0831 | - |
|
198 |
+
| 2.1116 | 2800 | 0.1223 | - |
|
199 |
+
| 2.1493 | 2850 | 0.0897 | - |
|
200 |
+
| 2.1870 | 2900 | 0.0937 | - |
|
201 |
+
| 2.2247 | 2950 | 0.0862 | - |
|
202 |
+
| 2.2624 | 3000 | 0.0977 | - |
|
203 |
+
| 2.3002 | 3050 | 0.0563 | - |
|
204 |
+
| 2.3379 | 3100 | 0.1197 | - |
|
205 |
+
| 2.3756 | 3150 | 0.095 | - |
|
206 |
+
| 2.4133 | 3200 | 0.0702 | - |
|
207 |
+
| 2.4510 | 3250 | 0.0823 | - |
|
208 |
+
| 2.4887 | 3300 | 0.1309 | - |
|
209 |
+
| 2.5264 | 3350 | 0.0612 | - |
|
210 |
+
| 2.5641 | 3400 | 0.0994 | - |
|
211 |
+
| 2.6018 | 3450 | 0.0904 | - |
|
212 |
+
| 2.6395 | 3500 | 0.0678 | - |
|
213 |
+
| 2.6772 | 3550 | 0.0896 | - |
|
214 |
+
| 2.7149 | 3600 | 0.0753 | - |
|
215 |
+
| 2.7526 | 3650 | 0.0997 | - |
|
216 |
+
| 2.7903 | 3700 | 0.0956 | - |
|
217 |
+
| 2.8281 | 3750 | 0.1016 | - |
|
218 |
+
| 2.8658 | 3800 | 0.0784 | - |
|
219 |
+
| 2.9035 | 3850 | 0.0911 | - |
|
220 |
+
| 2.9412 | 3900 | 0.0485 | - |
|
221 |
+
| 2.9789 | 3950 | 0.1078 | - |
|
222 |
+
| 3.0166 | 4000 | 0.0659 | - |
|
223 |
+
| 3.0543 | 4050 | 0.0802 | - |
|
224 |
+
| 3.0920 | 4100 | 0.12 | - |
|
225 |
+
| 3.1297 | 4150 | 0.0519 | - |
|
226 |
+
| 3.1674 | 4200 | 0.047 | - |
|
227 |
+
| 3.2051 | 4250 | 0.0906 | - |
|
228 |
+
| 3.2428 | 4300 | 0.0999 | - |
|
229 |
+
| 3.2805 | 4350 | 0.059 | - |
|
230 |
+
| 3.3183 | 4400 | 0.0533 | - |
|
231 |
+
| 3.3560 | 4450 | 0.1033 | - |
|
232 |
+
| 3.3937 | 4500 | 0.0871 | - |
|
233 |
+
| 3.4314 | 4550 | 0.065 | - |
|
234 |
+
| 3.4691 | 4600 | 0.1487 | - |
|
235 |
+
| 3.5068 | 4650 | 0.0542 | - |
|
236 |
+
| 3.5445 | 4700 | 0.0846 | - |
|
237 |
+
| 3.5822 | 4750 | 0.0756 | - |
|
238 |
+
| 3.6199 | 4800 | 0.0518 | - |
|
239 |
+
| 3.6576 | 4850 | 0.1035 | - |
|
240 |
+
| 3.6953 | 4900 | 0.1129 | - |
|
241 |
+
| 3.7330 | 4950 | 0.1319 | - |
|
242 |
+
| 3.7707 | 5000 | 0.0804 | - |
|
243 |
+
| 3.8084 | 5050 | 0.108 | - |
|
244 |
+
| 3.8462 | 5100 | 0.1246 | - |
|
245 |
+
| 3.8839 | 5150 | 0.0923 | - |
|
246 |
+
| 3.9216 | 5200 | 0.1048 | - |
|
247 |
+
| 3.9593 | 5250 | 0.0951 | - |
|
248 |
+
| 3.9970 | 5300 | 0.1015 | - |
|
249 |
+
| 4.0347 | 5350 | 0.0888 | - |
|
250 |
+
| 4.0724 | 5400 | 0.0917 | - |
|
251 |
+
| 4.1101 | 5450 | 0.0823 | - |
|
252 |
+
| 4.1478 | 5500 | 0.0882 | - |
|
253 |
+
| 4.1855 | 5550 | 0.0807 | - |
|
254 |
+
| 4.2232 | 5600 | 0.0997 | - |
|
255 |
+
| 4.2609 | 5650 | 0.0782 | - |
|
256 |
+
| 4.2986 | 5700 | 0.1165 | - |
|
257 |
+
| 4.3363 | 5750 | 0.0837 | - |
|
258 |
+
| 4.3741 | 5800 | 0.1098 | - |
|
259 |
+
| 4.4118 | 5850 | 0.0564 | - |
|
260 |
+
| 4.4495 | 5900 | 0.0715 | - |
|
261 |
+
| 4.4872 | 5950 | 0.0858 | - |
|
262 |
+
| 4.5249 | 6000 | 0.0889 | - |
|
263 |
+
| 4.5626 | 6050 | 0.0719 | - |
|
264 |
+
| 4.6003 | 6100 | 0.1076 | - |
|
265 |
+
| 4.6380 | 6150 | 0.1044 | - |
|
266 |
+
| 4.6757 | 6200 | 0.0914 | - |
|
267 |
+
| 4.7134 | 6250 | 0.1078 | - |
|
268 |
+
| 4.7511 | 6300 | 0.1137 | - |
|
269 |
+
| 4.7888 | 6350 | 0.0666 | - |
|
270 |
+
| 4.8265 | 6400 | 0.1009 | - |
|
271 |
+
| 4.8643 | 6450 | 0.0537 | - |
|
272 |
+
| 4.9020 | 6500 | 0.0576 | - |
|
273 |
+
| 4.9397 | 6550 | 0.1366 | - |
|
274 |
+
| 4.9774 | 6600 | 0.1009 | - |
|
275 |
+
|
276 |
+
### Framework Versions
|
277 |
+
- Python: 3.10.12
|
278 |
+
- SetFit: 1.0.3
|
279 |
+
- Sentence Transformers: 2.3.1
|
280 |
+
- Transformers: 4.35.2
|
281 |
+
- PyTorch: 2.1.0+cu121
|
282 |
+
- Datasets: 2.17.0
|
283 |
+
- Tokenizers: 0.15.1
|
284 |
+
|
285 |
+
## Citation
|
286 |
+
|
287 |
+
### BibTeX
|
288 |
+
```bibtex
|
289 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
290 |
+
doi = {10.48550/ARXIV.2209.11055},
|
291 |
+
url = {https://arxiv.org/abs/2209.11055},
|
292 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
293 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
294 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
295 |
+
publisher = {arXiv},
|
296 |
+
year = {2022},
|
297 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
298 |
+
}
|
299 |
+
```
|
300 |
+
|
301 |
+
<!--
|
302 |
+
## Glossary
|
303 |
+
|
304 |
+
*Clearly define terms in order to be accessible across audiences.*
|
305 |
+
-->
|
306 |
+
|
307 |
+
<!--
|
308 |
+
## Model Card Authors
|
309 |
+
|
310 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
311 |
+
-->
|
312 |
+
|
313 |
+
<!--
|
314 |
+
## Model Card Contact
|
315 |
+
|
316 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
317 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "lighteternal/stsb-xlm-r-greek-transfer",
|
3 |
+
"architectures": [
|
4 |
+
"XLMRobertaModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 3072,
|
16 |
+
"layer_norm_eps": 1e-05,
|
17 |
+
"max_position_embeddings": 514,
|
18 |
+
"model_type": "xlm-roberta",
|
19 |
+
"num_attention_heads": 12,
|
20 |
+
"num_hidden_layers": 12,
|
21 |
+
"output_past": true,
|
22 |
+
"pad_token_id": 1,
|
23 |
+
"position_embedding_type": "absolute",
|
24 |
+
"torch_dtype": "float32",
|
25 |
+
"transformers_version": "4.35.2",
|
26 |
+
"type_vocab_size": 1,
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 250002
|
29 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "2.0.0",
|
4 |
+
"transformers": "4.10.0",
|
5 |
+
"pytorch": "1.7.1"
|
6 |
+
}
|
7 |
+
}
|
config_setfit.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"labels": null,
|
3 |
+
"normalize_embeddings": false
|
4 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a9db3fc7c1a2c4319811b356c1a4c82c19829d87a0be535951597cd897d4410
|
3 |
+
size 1112197096
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0abac0948d398ef6b1f7bfcbb9bbe4a896590cb8778d88e9c51809b6b841acb4
|
3 |
+
size 1685796
|
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": 400,
|
3 |
+
"do_lower_case": false
|
4 |
+
}
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
3 |
+
size 5069051
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b71f1d376a0a8c293a4ac7f890ff2fb81845ec785fc0e150e82be5559dadb2c
|
3 |
+
size 17083009
|
tokenizer_config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"250001": {
|
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 |
+
"eos_token": "</s>",
|
48 |
+
"mask_token": "<mask>",
|
49 |
+
"max_length": 400,
|
50 |
+
"model_max_length": 512,
|
51 |
+
"pad_to_multiple_of": null,
|
52 |
+
"pad_token": "<pad>",
|
53 |
+
"pad_token_type_id": 0,
|
54 |
+
"padding_side": "right",
|
55 |
+
"sep_token": "</s>",
|
56 |
+
"stride": 0,
|
57 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
58 |
+
"truncation_side": "right",
|
59 |
+
"truncation_strategy": "longest_first",
|
60 |
+
"unk_token": "<unk>"
|
61 |
+
}
|