Push model using huggingface_hub.
Browse files- README.md +79 -80
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -10,14 +10,13 @@ tags:
|
|
10 |
- text-classification
|
11 |
- generated_from_setfit_trainer
|
12 |
widget:
|
13 |
-
- text:
|
14 |
-
|
15 |
-
- text:
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
- text:
|
20 |
-
- text: هاد سعودي ، وانت خليك بحالك يا سوري ولا انت تقليد سوري
|
21 |
inference: true
|
22 |
model-index:
|
23 |
- name: SetFit with akhooli/sbert_ar_nli_500k_norm
|
@@ -31,7 +30,7 @@ model-index:
|
|
31 |
split: test
|
32 |
metrics:
|
33 |
- type: accuracy
|
34 |
-
value: 0.
|
35 |
name: Accuracy
|
36 |
---
|
37 |
|
@@ -63,17 +62,17 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
63 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
64 |
|
65 |
### Model Labels
|
66 |
-
| Label | Examples
|
67 |
-
|
68 |
-
| negative | <ul><li>'
|
69 |
-
| positive | <ul><li>'
|
70 |
|
71 |
## Evaluation
|
72 |
|
73 |
### Metrics
|
74 |
| Label | Accuracy |
|
75 |
|:--------|:---------|
|
76 |
-
| **all** | 0.
|
77 |
|
78 |
## Uses
|
79 |
|
@@ -93,7 +92,7 @@ from setfit import SetFitModel
|
|
93 |
# Download from the 🤗 Hub
|
94 |
model = SetFitModel.from_pretrained("akhooli/setfit_ar_hs")
|
95 |
# Run inference
|
96 |
-
preds = model("
|
97 |
```
|
98 |
|
99 |
<!--
|
@@ -125,12 +124,12 @@ preds = model("قوية")
|
|
125 |
### Training Set Metrics
|
126 |
| Training set | Min | Median | Max |
|
127 |
|:-------------|:----|:--------|:----|
|
128 |
-
| Word count | 1 |
|
129 |
|
130 |
| Label | Training Sample Count |
|
131 |
|:---------|:----------------------|
|
132 |
-
| negative |
|
133 |
-
| positive |
|
134 |
|
135 |
### Training Hyperparameters
|
136 |
- batch_size: (32, 32)
|
@@ -147,74 +146,74 @@ preds = model("قوية")
|
|
147 |
- warmup_proportion: 0.1
|
148 |
- l2_weight: 0.01
|
149 |
- seed: 42
|
150 |
-
- run_name:
|
151 |
- eval_max_steps: -1
|
152 |
- load_best_model_at_end: False
|
153 |
|
154 |
### Training Results
|
155 |
| Epoch | Step | Training Loss | Validation Loss |
|
156 |
|:------:|:----:|:-------------:|:---------------:|
|
157 |
-
| 0.0003 | 1 | 0.
|
158 |
-
| 0.0333 | 100 | 0.
|
159 |
-
| 0.0667 | 200 | 0.
|
160 |
-
| 0.1 | 300 | 0.
|
161 |
-
| 0.1333 | 400 | 0.
|
162 |
-
| 0.1667 | 500 | 0.
|
163 |
-
| 0.2 | 600 | 0.
|
164 |
-
| 0.2333 | 700 | 0.
|
165 |
-
| 0.2667 | 800 | 0.
|
166 |
-
| 0.3 | 900 | 0.
|
167 |
-
| 0.3333 | 1000 | 0.
|
168 |
-
| 0.3667 | 1100 | 0.
|
169 |
-
| 0.4 | 1200 | 0.
|
170 |
-
| 0.4333 | 1300 | 0.
|
171 |
-
| 0.4667 | 1400 | 0.
|
172 |
-
| 0.5 | 1500 | 0.
|
173 |
-
| 0.5333 | 1600 | 0.
|
174 |
-
| 0.5667 | 1700 | 0.
|
175 |
-
| 0.6 | 1800 | 0.
|
176 |
-
| 0.6333 | 1900 | 0.
|
177 |
-
| 0.6667 | 2000 | 0.
|
178 |
-
| 0.7 | 2100 | 0.
|
179 |
-
| 0.7333 | 2200 | 0.
|
180 |
-
| 0.7667 | 2300 | 0.
|
181 |
-
| 0.8 | 2400 | 0.
|
182 |
-
| 0.8333 | 2500 | 0.
|
183 |
-
| 0.8667 | 2600 | 0.
|
184 |
-
| 0.9 | 2700 | 0.
|
185 |
-
| 0.9333 | 2800 | 0.
|
186 |
-
| 0.9667 | 2900 | 0.
|
187 |
-
| 1.0 | 3000 | 0.
|
188 |
-
| 1.0333 | 3100 | 0.
|
189 |
-
| 1.0667 | 3200 | 0.
|
190 |
-
| 1.1 | 3300 | 0.
|
191 |
-
| 1.1333 | 3400 | 0.
|
192 |
-
| 1.1667 | 3500 | 0.
|
193 |
-
| 1.2 | 3600 | 0.
|
194 |
-
| 1.2333 | 3700 | 0.
|
195 |
-
| 1.2667 | 3800 | 0.
|
196 |
-
| 1.3 | 3900 | 0.
|
197 |
-
| 1.3333 | 4000 | 0.
|
198 |
-
| 1.3667 | 4100 | 0.
|
199 |
-
| 1.4 | 4200 | 0.
|
200 |
-
| 1.4333 | 4300 | 0.
|
201 |
-
| 1.4667 | 4400 | 0.
|
202 |
-
| 1.5 | 4500 | 0.
|
203 |
-
| 1.5333 | 4600 | 0.
|
204 |
-
| 1.5667 | 4700 | 0.
|
205 |
-
| 1.6 | 4800 | 0.
|
206 |
-
| 1.6333 | 4900 | 0.
|
207 |
-
| 1.6667 | 5000 | 0.
|
208 |
-
| 1.7 | 5100 | 0.
|
209 |
-
| 1.7333 | 5200 | 0.
|
210 |
-
| 1.7667 | 5300 | 0.
|
211 |
-
| 1.8 | 5400 | 0.
|
212 |
-
| 1.8333 | 5500 | 0.
|
213 |
-
| 1.8667 | 5600 | 0.
|
214 |
-
| 1.9 | 5700 | 0.
|
215 |
-
| 1.9333 | 5800 | 0.
|
216 |
-
| 1.9667 | 5900 | 0.
|
217 |
-
| 2.0 | 6000 | 0.
|
218 |
|
219 |
### Framework Versions
|
220 |
- Python: 3.10.14
|
|
|
10 |
- text-classification
|
11 |
- generated_from_setfit_trainer
|
12 |
widget:
|
13 |
+
- text: كيف كل زمن وإله أتباعه الزقيفة بإيام الإحتلال السوري للبنان، كان أشهرهم ناصر
|
14 |
+
قنديل زال الوجود العسكري وتبخ...
|
15 |
+
- text: اداي في كتير مشحرين وقلال عقل في لبنان بقصد الذين يمدحون ويمجدون شخص مخلوق
|
16 |
+
من لحم ونسوا ان الله هو من ي...
|
17 |
+
- text: كول هوا و سد نيعك
|
18 |
+
- text: لا تحبسنا على غدر الزمان طالما نحن لها في المرصاد
|
19 |
+
- text: العمر الو حق مبين عليكي الكبر
|
|
|
20 |
inference: true
|
21 |
model-index:
|
22 |
- name: SetFit with akhooli/sbert_ar_nli_500k_norm
|
|
|
30 |
split: test
|
31 |
metrics:
|
32 |
- type: accuracy
|
33 |
+
value: 0.8838334946757018
|
34 |
name: Accuracy
|
35 |
---
|
36 |
|
|
|
62 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
63 |
|
64 |
### Model Labels
|
65 |
+
| Label | Examples |
|
66 |
+
|:---------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
67 |
+
| negative | <ul><li>'جبران باسيل يغرّد عن رحيل مي منسى لبنان سيفتقد روحك الجميلة'</li><li>'نشرتكم مقابلة لوزير الخارجية اللبناني جبران باسيل مع سي أن أن تثير الجدل على منصات التواصل ما السبب؟'</li><li>' حسا السنه حسا الشيعه حسا الحضران والبدوان\nتساوينا بمحبتها وساوتنا أراضيها\n🌴\nعساني يالحسا فدوة فديت الداار والسكان\nمن اول بيت لآخر بيت بقراها وحواريها\n🌴\nمكانك يالحسا عالي وقدرك فوق مهما كان\nومن حاول يقارن بك بيخسر في تواليها\n🌴وسلامتكم🌴'</li></ul> |
|
68 |
+
| positive | <ul><li>'جبران باسيل اكثر الساسة نفاقا'</li><li>'انا اقترح عليك طبيب بيطري'</li><li>'انتي شكلك مو سورية بس عم تزعمي'</li></ul> |
|
69 |
|
70 |
## Evaluation
|
71 |
|
72 |
### Metrics
|
73 |
| Label | Accuracy |
|
74 |
|:--------|:---------|
|
75 |
+
| **all** | 0.8838 |
|
76 |
|
77 |
## Uses
|
78 |
|
|
|
92 |
# Download from the 🤗 Hub
|
93 |
model = SetFitModel.from_pretrained("akhooli/setfit_ar_hs")
|
94 |
# Run inference
|
95 |
+
preds = model("كول هوا و سد نيعك")
|
96 |
```
|
97 |
|
98 |
<!--
|
|
|
124 |
### Training Set Metrics
|
125 |
| Training set | Min | Median | Max |
|
126 |
|:-------------|:----|:--------|:----|
|
127 |
+
| Word count | 1 | 16.5047 | 102 |
|
128 |
|
129 |
| Label | Training Sample Count |
|
130 |
|:---------|:----------------------|
|
131 |
+
| negative | 3709 |
|
132 |
+
| positive | 3800 |
|
133 |
|
134 |
### Training Hyperparameters
|
135 |
- batch_size: (32, 32)
|
|
|
146 |
- warmup_proportion: 0.1
|
147 |
- l2_weight: 0.01
|
148 |
- seed: 42
|
149 |
+
- run_name: setfit_hate_38k_aub_6k
|
150 |
- eval_max_steps: -1
|
151 |
- load_best_model_at_end: False
|
152 |
|
153 |
### Training Results
|
154 |
| Epoch | Step | Training Loss | Validation Loss |
|
155 |
|:------:|:----:|:-------------:|:---------------:|
|
156 |
+
| 0.0003 | 1 | 0.342 | - |
|
157 |
+
| 0.0333 | 100 | 0.2881 | - |
|
158 |
+
| 0.0667 | 200 | 0.2468 | - |
|
159 |
+
| 0.1 | 300 | 0.1991 | - |
|
160 |
+
| 0.1333 | 400 | 0.1548 | - |
|
161 |
+
| 0.1667 | 500 | 0.113 | - |
|
162 |
+
| 0.2 | 600 | 0.0861 | - |
|
163 |
+
| 0.2333 | 700 | 0.0638 | - |
|
164 |
+
| 0.2667 | 800 | 0.0534 | - |
|
165 |
+
| 0.3 | 900 | 0.0448 | - |
|
166 |
+
| 0.3333 | 1000 | 0.0364 | - |
|
167 |
+
| 0.3667 | 1100 | 0.0278 | - |
|
168 |
+
| 0.4 | 1200 | 0.0306 | - |
|
169 |
+
| 0.4333 | 1300 | 0.0251 | - |
|
170 |
+
| 0.4667 | 1400 | 0.021 | - |
|
171 |
+
| 0.5 | 1500 | 0.0213 | - |
|
172 |
+
| 0.5333 | 1600 | 0.0175 | - |
|
173 |
+
| 0.5667 | 1700 | 0.0181 | - |
|
174 |
+
| 0.6 | 1800 | 0.0175 | - |
|
175 |
+
| 0.6333 | 1900 | 0.0144 | - |
|
176 |
+
| 0.6667 | 2000 | 0.012 | - |
|
177 |
+
| 0.7 | 2100 | 0.0097 | - |
|
178 |
+
| 0.7333 | 2200 | 0.0119 | - |
|
179 |
+
| 0.7667 | 2300 | 0.0112 | - |
|
180 |
+
| 0.8 | 2400 | 0.0106 | - |
|
181 |
+
| 0.8333 | 2500 | 0.0103 | - |
|
182 |
+
| 0.8667 | 2600 | 0.008 | - |
|
183 |
+
| 0.9 | 2700 | 0.0084 | - |
|
184 |
+
| 0.9333 | 2800 | 0.0078 | - |
|
185 |
+
| 0.9667 | 2900 | 0.0063 | - |
|
186 |
+
| 1.0 | 3000 | 0.006 | - |
|
187 |
+
| 1.0333 | 3100 | 0.0057 | - |
|
188 |
+
| 1.0667 | 3200 | 0.0067 | - |
|
189 |
+
| 1.1 | 3300 | 0.0037 | - |
|
190 |
+
| 1.1333 | 3400 | 0.005 | - |
|
191 |
+
| 1.1667 | 3500 | 0.0047 | - |
|
192 |
+
| 1.2 | 3600 | 0.0054 | - |
|
193 |
+
| 1.2333 | 3700 | 0.0038 | - |
|
194 |
+
| 1.2667 | 3800 | 0.0059 | - |
|
195 |
+
| 1.3 | 3900 | 0.0042 | - |
|
196 |
+
| 1.3333 | 4000 | 0.0028 | - |
|
197 |
+
| 1.3667 | 4100 | 0.004 | - |
|
198 |
+
| 1.4 | 4200 | 0.0028 | - |
|
199 |
+
| 1.4333 | 4300 | 0.0032 | - |
|
200 |
+
| 1.4667 | 4400 | 0.003 | - |
|
201 |
+
| 1.5 | 4500 | 0.002 | - |
|
202 |
+
| 1.5333 | 4600 | 0.0022 | - |
|
203 |
+
| 1.5667 | 4700 | 0.0019 | - |
|
204 |
+
| 1.6 | 4800 | 0.0027 | - |
|
205 |
+
| 1.6333 | 4900 | 0.0019 | - |
|
206 |
+
| 1.6667 | 5000 | 0.0021 | - |
|
207 |
+
| 1.7 | 5100 | 0.0024 | - |
|
208 |
+
| 1.7333 | 5200 | 0.0015 | - |
|
209 |
+
| 1.7667 | 5300 | 0.0017 | - |
|
210 |
+
| 1.8 | 5400 | 0.0018 | - |
|
211 |
+
| 1.8333 | 5500 | 0.0015 | - |
|
212 |
+
| 1.8667 | 5600 | 0.0017 | - |
|
213 |
+
| 1.9 | 5700 | 0.0007 | - |
|
214 |
+
| 1.9333 | 5800 | 0.0012 | - |
|
215 |
+
| 1.9667 | 5900 | 0.0014 | - |
|
216 |
+
| 2.0 | 6000 | 0.0018 | - |
|
217 |
|
218 |
### Framework Versions
|
219 |
- Python: 3.10.14
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 540795752
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8cedb8d48ad45bb4beefaac66b4a4f0cf633bf7067c63cf3423a9493dbebe6fa
|
3 |
size 540795752
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 7007
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9cb3aae54b1c03d1867d2ced3179cdf8266ab8dc2916a2cbdff8bb0c0316ea23
|
3 |
size 7007
|