damiam commited on
Commit
e915d29
1 Parent(s): 748c9bd

Push model using huggingface_hub.

Browse files
Files changed (4) hide show
  1. README.md +23 -30
  2. config_setfit.json +2 -2
  3. model_head.pkl +1 -1
  4. pytorch_model.bin +1 -1
README.md CHANGED
@@ -8,11 +8,11 @@ tags:
8
  metrics:
9
  - accuracy
10
  widget:
11
- - text: suck me
12
- - text: I love to read
13
- - text: or a girlfriend
14
- - text: What is your gender?
15
- - text: romantic
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.7419354838709677
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
- | other | <ul><li>"I'm going to be the flight attendant"</li><li>'Writing dancing and singing'</li><li>'Girls'</li></ul> |
66
- | sex | <ul><li>'Sex'</li><li>'i find it on the pronoun list'</li><li>'I was hot'</li></ul> |
67
 
68
  ## Evaluation
69
 
70
  ### Metrics
71
  | Label | Accuracy |
72
  |:--------|:---------|
73
- | **all** | 0.7419 |
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("suck me")
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.8906 | 26 |
126
 
127
  | Label | Training Sample Count |
128
  |:------|:----------------------|
129
- | other | 32 |
130
- | sex | 32 |
131
 
132
  ### Training Hyperparameters
133
  - batch_size: (32, 32)
134
- - num_epochs: (10, 10)
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.0152 | 1 | 0.2459 | - |
153
- | 0.7576 | 50 | 0.2101 | - |
154
- | 1.5152 | 100 | 0.007 | - |
155
- | 2.2727 | 150 | 0.0031 | - |
156
- | 3.0303 | 200 | 0.0028 | - |
157
- | 3.7879 | 250 | 0.0021 | - |
158
- | 4.5455 | 300 | 0.0024 | - |
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:7cc868c1e097ab2d72a081c5813ee86e1cd6f496552b7dfd88544edc9de2a4d0
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:d9d3d44eae1b903e72fd0918c84a5bb10094c755f4b8f7f69f5f570cdcf0f619
3
  size 437997357
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bd38f910e41b49cf82bcef489120425f9467b3136e21db5d6c8f0c0c23ac482
3
  size 437997357