Add SetFit model
Browse files- README.md +22 -16
- config_setfit.json +2 -2
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
|
@@ -11,15 +11,21 @@ datasets:
|
|
| 11 |
metrics:
|
| 12 |
- accuracy
|
| 13 |
widget:
|
| 14 |
-
- text:
|
| 15 |
-
please.
|
| 16 |
- text: American people are dumbass. They don't even know geography
|
| 17 |
-
- text:
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
pipeline_tag: text-classification
|
| 24 |
inference: false
|
| 25 |
model-index:
|
|
@@ -34,7 +40,7 @@ model-index:
|
|
| 34 |
split: test
|
| 35 |
metrics:
|
| 36 |
- type: accuracy
|
| 37 |
-
value: 0.
|
| 38 |
name: Accuracy
|
| 39 |
---
|
| 40 |
|
|
@@ -70,7 +76,7 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 70 |
### Metrics
|
| 71 |
| Label | Accuracy |
|
| 72 |
|:--------|:---------|
|
| 73 |
-
| **all** | 0.
|
| 74 |
|
| 75 |
## Uses
|
| 76 |
|
|
@@ -90,7 +96,7 @@ from setfit import SetFitModel
|
|
| 90 |
# Download from the 🤗 Hub
|
| 91 |
model = SetFitModel.from_pretrained("amitprgx/setfit-ethos-multilabel-example")
|
| 92 |
# Run inference
|
| 93 |
-
preds = model("
|
| 94 |
```
|
| 95 |
|
| 96 |
<!--
|
|
@@ -122,7 +128,7 @@ preds = model("LMAO while watching this church burn")
|
|
| 122 |
### Training Set Metrics
|
| 123 |
| Training set | Min | Median | Max |
|
| 124 |
|:-------------|:----|:--------|:----|
|
| 125 |
-
| Word count |
|
| 126 |
|
| 127 |
### Training Hyperparameters
|
| 128 |
- batch_size: (16, 16)
|
|
@@ -145,10 +151,10 @@ preds = model("LMAO while watching this church burn")
|
|
| 145 |
### Training Results
|
| 146 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 147 |
|:------:|:----:|:-------------:|:---------------:|
|
| 148 |
-
| 0.0063 | 1 | 0.
|
| 149 |
-
| 0.3125 | 50 | 0.
|
| 150 |
-
| 0.625 | 100 | 0.
|
| 151 |
-
| 0.9375 | 150 | 0.
|
| 152 |
|
| 153 |
### Framework Versions
|
| 154 |
- Python: 3.10.12
|
|
|
|
| 11 |
metrics:
|
| 12 |
- accuracy
|
| 13 |
widget:
|
| 14 |
+
- text: WOW THIS GUY TALKS LIKE A RETARD HAHAHAHAHAH
|
|
|
|
| 15 |
- text: American people are dumbass. They don't even know geography
|
| 16 |
+
- text: Oh GOD YES!!!! Feel the shrapnel pierce through your skin, let the fire consume
|
| 17 |
+
your flesh and lay lifeless on the unforgiving sand that seeps into your wounds.
|
| 18 |
+
Your screams is what gives Murcia the fuck yeah in the most patriotic songs on
|
| 19 |
+
earth. BURN IN HELL YOU GOATS !!!
|
| 20 |
+
- text: One needs to do a Pareto Analysis...90-95% of global terrorists belong to
|
| 21 |
+
a single religion that represents 25% of the global population (1.25 billion in
|
| 22 |
+
a 8 billion global population). To say that terrorism has no religion and colour,
|
| 23 |
+
is the biggest bluff in the world. If Islam was such a peaceful religion, then
|
| 24 |
+
why are refugees from Islamic countries seek non-Muslim countries for settlement....it
|
| 25 |
+
is because they want to Islamise the world.
|
| 26 |
+
- text: It's so sick and sad that young people will think of the concept of clout
|
| 27 |
+
like rap niggers invented it because they aren't even properly taught about the
|
| 28 |
+
english language anymore.
|
| 29 |
pipeline_tag: text-classification
|
| 30 |
inference: false
|
| 31 |
model-index:
|
|
|
|
| 40 |
split: test
|
| 41 |
metrics:
|
| 42 |
- type: accuracy
|
| 43 |
+
value: 0.39466666666666667
|
| 44 |
name: Accuracy
|
| 45 |
---
|
| 46 |
|
|
|
|
| 76 |
### Metrics
|
| 77 |
| Label | Accuracy |
|
| 78 |
|:--------|:---------|
|
| 79 |
+
| **all** | 0.3947 |
|
| 80 |
|
| 81 |
## Uses
|
| 82 |
|
|
|
|
| 96 |
# Download from the 🤗 Hub
|
| 97 |
model = SetFitModel.from_pretrained("amitprgx/setfit-ethos-multilabel-example")
|
| 98 |
# Run inference
|
| 99 |
+
preds = model("WOW THIS GUY TALKS LIKE A RETARD HAHAHAHAHAH")
|
| 100 |
```
|
| 101 |
|
| 102 |
<!--
|
|
|
|
| 128 |
### Training Set Metrics
|
| 129 |
| Training set | Min | Median | Max |
|
| 130 |
|:-------------|:----|:--------|:----|
|
| 131 |
+
| Word count | 2 | 16.3594 | 72 |
|
| 132 |
|
| 133 |
### Training Hyperparameters
|
| 134 |
- batch_size: (16, 16)
|
|
|
|
| 151 |
### Training Results
|
| 152 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 153 |
|:------:|:----:|:-------------:|:---------------:|
|
| 154 |
+
| 0.0063 | 1 | 0.2956 | - |
|
| 155 |
+
| 0.3125 | 50 | 0.1327 | - |
|
| 156 |
+
| 0.625 | 100 | 0.0963 | - |
|
| 157 |
+
| 0.9375 | 150 | 0.0525 | - |
|
| 158 |
|
| 159 |
### Framework Versions
|
| 160 |
- Python: 3.10.12
|
config_setfit.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"labels": null,
|
| 3 |
+
"normalize_embeddings": false
|
| 4 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 437967672
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:facd7f682af62404bfa4fadaf798e3517d9060603c9b66a38fb2fa43bbef7dd1
|
| 3 |
size 437967672
|
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 52836
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcd73ab8a67bad84bcb9915a7f3bfd0fd3c3d51465c18a9fcdc7d0b4e8911b0f
|
| 3 |
size 52836
|