rasgaard commited on
Commit
e1abc14
·
verified ·
1 Parent(s): 3ed7f8c

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +21 -14
  2. model.safetensors +1 -1
  3. model_head.pkl +1 -1
README.md CHANGED
@@ -8,11 +8,11 @@ tags:
8
  metrics:
9
  - accuracy
10
  widget:
11
- - text: a red and yellow salon sign hangs above a nice street
12
  - text: several surfers one happy girl diving off her board
13
- - text: a ugly cat is laying on a laptop computer
14
- - text: he may not be the best man but he does make some good food
15
- - text: small number of horses with jockeys in a race on a track
 
16
  pipeline_tag: text-classification
17
  inference: true
18
  base_model: sentence-transformers/paraphrase-mpnet-base-v2
@@ -46,10 +46,10 @@ The model has been trained using an efficient few-shot learning technique that i
46
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
47
 
48
  ### Model Labels
49
- | Label | Examples |
50
- |:------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51
- | 0 | <ul><li>'a man rides his surfboard through too shallow water'</li><li>'a cat is sleeping outside an ugly building near a door'</li><li>'a horrific view of two stupid people on the beach under a umbrella'</li></ul> |
52
- | 1 | <ul><li>'a nice person uses the efficient laptop to monitor security in this amazing building'</li><li>'the awesome building with the clock is beset by a perfect sky'</li><li>'three different traffic welcome signs with a building in the background'</li></ul> |
53
 
54
  ## Uses
55
 
@@ -69,7 +69,7 @@ from setfit import SetFitModel
69
  # Download from the 🤗 Hub
70
  model = SetFitModel.from_pretrained("setfit_model_id")
71
  # Run inference
72
- preds = model("a ugly cat is laying on a laptop computer")
73
  ```
74
 
75
  <!--
@@ -101,16 +101,16 @@ preds = model("a ugly cat is laying on a laptop computer")
101
  ### Training Set Metrics
102
  | Training set | Min | Median | Max |
103
  |:-------------|:----|:--------|:----|
104
- | Word count | 9 | 11.5625 | 14 |
105
 
106
  | Label | Training Sample Count |
107
  |:------|:----------------------|
108
- | 0 | 8 |
109
- | 1 | 8 |
110
 
111
  ### Training Hyperparameters
112
  - batch_size: (16, 16)
113
- - num_epochs: (4, 4)
114
  - max_steps: -1
115
  - sampling_strategy: oversampling
116
  - body_learning_rate: (2e-05, 1e-05)
@@ -128,7 +128,14 @@ preds = model("a ugly cat is laying on a laptop computer")
128
  ### Training Results
129
  | Epoch | Step | Training Loss | Validation Loss |
130
  |:------:|:----:|:-------------:|:---------------:|
131
- | 0.1111 | 1 | 0.2801 | - |
 
 
 
 
 
 
 
132
 
133
  ### Framework Versions
134
  - Python: 3.11.7
 
8
  metrics:
9
  - accuracy
10
  widget:
 
11
  - text: several surfers one happy girl diving off her board
12
+ - text: a man in his yard on a motorcycle where there is dead grass
13
+ - text: here is the wall of an interesting building with a clock built in to it
14
+ - text: a polar bear with his chin raised lies on a nice rock
15
+ - text: the awesome building with the clock is beset by a perfect sky
16
  pipeline_tag: text-classification
17
  inference: true
18
  base_model: sentence-transformers/paraphrase-mpnet-base-v2
 
46
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
47
 
48
  ### Model Labels
49
+ | Label | Examples |
50
+ |:------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51
+ | 0 | <ul><li>'a shy girl is hiding herself from the hard rain under a white umbrella'</li><li>'the little kid got caught playing the video game without permission'</li><li>'a drunk guy rides a surfboard in a created wave pool'</li></ul> |
52
+ | 1 | <ul><li>'a cute cate is sitting in an office chair in a nice room'</li><li>'a nice person on a bike on a most beautiful street'</li><li>'a display of a great variety of donuts at a store'</li></ul> |
53
 
54
  ## Uses
55
 
 
69
  # Download from the 🤗 Hub
70
  model = SetFitModel.from_pretrained("setfit_model_id")
71
  # Run inference
72
+ preds = model("several surfers one happy girl diving off her board")
73
  ```
74
 
75
  <!--
 
101
  ### Training Set Metrics
102
  | Training set | Min | Median | Max |
103
  |:-------------|:----|:--------|:----|
104
+ | Word count | 8 | 11.8906 | 36 |
105
 
106
  | Label | Training Sample Count |
107
  |:------|:----------------------|
108
+ | 0 | 32 |
109
+ | 1 | 32 |
110
 
111
  ### Training Hyperparameters
112
  - batch_size: (16, 16)
113
+ - num_epochs: (3, 3)
114
  - max_steps: -1
115
  - sampling_strategy: oversampling
116
  - body_learning_rate: (2e-05, 1e-05)
 
128
  ### Training Results
129
  | Epoch | Step | Training Loss | Validation Loss |
130
  |:------:|:----:|:-------------:|:---------------:|
131
+ | 0.0076 | 1 | 0.3787 | - |
132
+ | 0.3788 | 50 | 0.011 | - |
133
+ | 0.7576 | 100 | 0.0003 | - |
134
+ | 1.1364 | 150 | 0.0003 | - |
135
+ | 1.5152 | 200 | 0.0002 | - |
136
+ | 1.8939 | 250 | 0.0002 | - |
137
+ | 2.2727 | 300 | 0.0002 | - |
138
+ | 2.6515 | 350 | 0.0002 | - |
139
 
140
  ### Framework Versions
141
  - Python: 3.11.7
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:07d7e6f700c77591393ea672121d1c9333f437786d8055fb4ca7a0518f772728
3
  size 437967672
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3f63e8fddef8a2fa2cb21b041e71e261097fe0df12c7600d1565c229f104491
3
  size 437967672
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cbe4424288dd1f10f1153f922f56503bca8b1d5cbc81e15f79fa71ef66441708
3
  size 7007
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db132fe1e709899f490d56877ba55c99beef1b1644149db5e5fff26c4efdd390
3
  size 7007