Push model using huggingface_hub.
Browse files- README.md +23 -30
- config_setfit.json +2 -2
- model_head.pkl +1 -1
- pytorch_model.bin +1 -1
README.md
CHANGED
@@ -8,11 +8,11 @@ tags:
|
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
widget:
|
11 |
-
- text:
|
12 |
-
- text:
|
13 |
-
- text:
|
14 |
-
- text:
|
15 |
-
- text:
|
16 |
pipeline_tag: text-classification
|
17 |
inference: true
|
18 |
base_model: BAAI/bge-base-en-v1.5
|
@@ -28,7 +28,7 @@ model-index:
|
|
28 |
split: test
|
29 |
metrics:
|
30 |
- type: accuracy
|
31 |
-
value: 0
|
32 |
name: Accuracy
|
33 |
---
|
34 |
|
@@ -60,17 +60,17 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
60 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
61 |
|
62 |
### Model Labels
|
63 |
-
| Label | Examples
|
64 |
-
|
65 |
-
|
|
66 |
-
|
|
67 |
|
68 |
## Evaluation
|
69 |
|
70 |
### Metrics
|
71 |
| Label | Accuracy |
|
72 |
|:--------|:---------|
|
73 |
-
| **all** | 0
|
74 |
|
75 |
## Uses
|
76 |
|
@@ -90,7 +90,7 @@ from setfit import SetFitModel
|
|
90 |
# Download from the 🤗 Hub
|
91 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
92 |
# Run inference
|
93 |
-
preds = model("
|
94 |
```
|
95 |
|
96 |
<!--
|
@@ -122,16 +122,16 @@ preds = model("suck me")
|
|
122 |
### Training Set Metrics
|
123 |
| Training set | Min | Median | Max |
|
124 |
|:-------------|:----|:-------|:----|
|
125 |
-
| Word count | 1 | 5.
|
126 |
|
127 |
| Label | Training Sample Count |
|
128 |
|:------|:----------------------|
|
129 |
-
| other |
|
130 |
-
| sex |
|
131 |
|
132 |
### Training Hyperparameters
|
133 |
- batch_size: (32, 32)
|
134 |
-
- num_epochs: (
|
135 |
- max_steps: -1
|
136 |
- sampling_strategy: oversampling
|
137 |
- body_learning_rate: (2e-05, 1e-05)
|
@@ -149,20 +149,13 @@ preds = model("suck me")
|
|
149 |
### Training Results
|
150 |
| Epoch | Step | Training Loss | Validation Loss |
|
151 |
|:------:|:----:|:-------------:|:---------------:|
|
152 |
-
| 0.
|
153 |
-
| 0.
|
154 |
-
|
|
155 |
-
|
|
156 |
-
|
|
157 |
-
|
|
158 |
-
|
|
159 |
-
| 5.3030 | 350 | 0.0017 | - |
|
160 |
-
| 6.0606 | 400 | 0.002 | - |
|
161 |
-
| 6.8182 | 450 | 0.0018 | - |
|
162 |
-
| 7.5758 | 500 | 0.0018 | - |
|
163 |
-
| 8.3333 | 550 | 0.0017 | - |
|
164 |
-
| 9.0909 | 600 | 0.0017 | - |
|
165 |
-
| 9.8485 | 650 | 0.0016 | - |
|
166 |
|
167 |
### Framework Versions
|
168 |
- Python: 3.9.6
|
|
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
widget:
|
11 |
+
- text: The skull protects the brain and eyes.
|
12 |
+
- text: to her sex
|
13 |
+
- text: play hide and seek
|
14 |
+
- text: I was before
|
15 |
+
- text: 'no'
|
16 |
pipeline_tag: text-classification
|
17 |
inference: true
|
18 |
base_model: BAAI/bge-base-en-v1.5
|
|
|
28 |
split: test
|
29 |
metrics:
|
30 |
- type: accuracy
|
31 |
+
value: 1.0
|
32 |
name: Accuracy
|
33 |
---
|
34 |
|
|
|
60 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
61 |
|
62 |
### Model Labels
|
63 |
+
| Label | Examples |
|
64 |
+
|:------|:-------------------------------------------------------------------------------------------------------------|
|
65 |
+
| sex | <ul><li>'I like to suck cock'</li><li>'suck me'</li><li>'What happens when you ride a human being'</li></ul> |
|
66 |
+
| other | <ul><li>'ok'</li><li>'Can I ask a question?'</li><li>'THANK YOU'</li></ul> |
|
67 |
|
68 |
## Evaluation
|
69 |
|
70 |
### Metrics
|
71 |
| Label | Accuracy |
|
72 |
|:--------|:---------|
|
73 |
+
| **all** | 1.0 |
|
74 |
|
75 |
## Uses
|
76 |
|
|
|
90 |
# Download from the 🤗 Hub
|
91 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
92 |
# Run inference
|
93 |
+
preds = model("no")
|
94 |
```
|
95 |
|
96 |
<!--
|
|
|
122 |
### Training Set Metrics
|
123 |
| Training set | Min | Median | Max |
|
124 |
|:-------------|:----|:-------|:----|
|
125 |
+
| Word count | 1 | 5.9314 | 29 |
|
126 |
|
127 |
| Label | Training Sample Count |
|
128 |
|:------|:----------------------|
|
129 |
+
| other | 48 |
|
130 |
+
| sex | 54 |
|
131 |
|
132 |
### Training Hyperparameters
|
133 |
- batch_size: (32, 32)
|
134 |
+
- num_epochs: (2, 2)
|
135 |
- max_steps: -1
|
136 |
- sampling_strategy: oversampling
|
137 |
- body_learning_rate: (2e-05, 1e-05)
|
|
|
149 |
### Training Results
|
150 |
| Epoch | Step | Training Loss | Validation Loss |
|
151 |
|:------:|:----:|:-------------:|:---------------:|
|
152 |
+
| 0.0060 | 1 | 0.2346 | - |
|
153 |
+
| 0.2994 | 50 | 0.1766 | - |
|
154 |
+
| 0.5988 | 100 | 0.0068 | - |
|
155 |
+
| 0.8982 | 150 | 0.0033 | - |
|
156 |
+
| 1.1976 | 200 | 0.0032 | - |
|
157 |
+
| 1.4970 | 250 | 0.0027 | - |
|
158 |
+
| 1.7964 | 300 | 0.0025 | - |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
### Framework Versions
|
161 |
- Python: 3.9.6
|
config_setfit.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
-
"normalize_embeddings": false,
|
3 |
"labels": [
|
4 |
"other",
|
5 |
"sex"
|
6 |
-
]
|
|
|
7 |
}
|
|
|
1 |
{
|
|
|
2 |
"labels": [
|
3 |
"other",
|
4 |
"sex"
|
5 |
+
],
|
6 |
+
"normalize_embeddings": false
|
7 |
}
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 6991
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83b2e42fefab5d12cbc59b9aec69006c9376a07089aca60ffdb0a4875f27aa37
|
3 |
size 6991
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 437997357
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3bd38f910e41b49cf82bcef489120425f9467b3136e21db5d6c8f0c0c23ac482
|
3 |
size 437997357
|