Push model using huggingface_hub.
Browse files- README.md +139 -142
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -5,11 +5,11 @@ tags:
|
|
5 |
- text-classification
|
6 |
- generated_from_setfit_trainer
|
7 |
widget:
|
8 |
-
- text: I need some
|
9 |
-
- text:
|
10 |
-
- text: Group the
|
11 |
-
- text: Create a photo of a
|
12 |
-
- text: Mirror the
|
13 |
metrics:
|
14 |
- accuracy
|
15 |
pipeline_tag: text-classification
|
@@ -28,7 +28,7 @@ model-index:
|
|
28 |
split: test
|
29 |
metrics:
|
30 |
- type: accuracy
|
31 |
-
value: 0.
|
32 |
name: Accuracy
|
33 |
---
|
34 |
|
@@ -60,78 +60,78 @@ 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 |
-
| 0 | <ul><li>'Add a corporate presentation background'</li
|
66 |
-
| 1 | <ul><li>'
|
67 |
-
| 2 | <ul><li>
|
68 |
-
| 3 | <ul><li>'
|
69 |
-
| 4 | <ul><li>'
|
70 |
-
| 5 | <ul><li>'
|
71 |
-
| 6 | <ul><li>'
|
72 |
-
| 7 | <ul><li>'
|
73 |
-
| 8 | <ul><li>'
|
74 |
-
| 9 | <ul><li>'Distribute the buttons around the center image'</li
|
75 |
-
| 10 | <ul><li>'
|
76 |
-
| 11 | <ul><li>'Duplicate the
|
77 |
-
| 12 | <ul><li>'Copy the
|
78 |
-
| 13 | <ul><li>'Fix the
|
79 |
-
| 14 | <ul><li>'Mirror the
|
80 |
-
| 15 | <ul><li>'Create a photo of a
|
81 |
-
| 16 | <ul><li>'
|
82 |
-
| 17 | <ul><li>'Group the
|
83 |
-
| 18 | <ul><li>'
|
84 |
-
| 19 | <ul><li>'
|
85 |
-
| 20 | <ul><li>'
|
86 |
-
| 21 | <ul><li>'
|
87 |
-
| 22 | <ul><li>'Remove the background from the
|
88 |
-
| 23 | <ul><li>'Delete the
|
89 |
-
| 24 | <ul><li>'
|
90 |
-
| 25 | <ul><li>'
|
91 |
-
| 26 | <ul><li>'
|
92 |
-
| 27 | <ul><li>'
|
93 |
-
| 28 | <ul><li>'
|
94 |
-
| 29 | <ul><li>'
|
95 |
-
| 30 | <ul><li>'
|
96 |
-
| 31 | <ul><li>'Select the
|
97 |
-
| 32 | <ul><li>'
|
98 |
-
| 33 | <ul><li>'Change the blend mode to
|
99 |
-
| 34 | <ul><li>'
|
100 |
-
| 35 | <ul><li>'Add a
|
101 |
-
| 36 | <ul><li>'Make the
|
102 |
-
| 37 | <ul><li>'Send the
|
103 |
-
| 38 | <ul><li>'
|
104 |
-
| 39 | <ul><li>'
|
105 |
-
| 40 | <ul><li>'Add a
|
106 |
-
| 41 | <ul><li>'Change the
|
107 |
-
| 42 | <ul><li>'Increase the
|
108 |
-
| 43 | <ul><li>'
|
109 |
-
| 44 | <ul><li>'Use a
|
110 |
-
| 45 | <ul><li>'Brighten the light areas'</li
|
111 |
-
| 46 | <ul><li>'Set the
|
112 |
-
| 47 | <ul><li>'
|
113 |
-
| 48 | <ul><li>'
|
114 |
-
| 49 | <ul><li>'
|
115 |
-
| 50 | <ul><li>'
|
116 |
-
| 51 | <ul><li>'
|
117 |
-
| 52 | <ul><li>'Make the shadows
|
118 |
-
| 53 | <ul><li>'Increase the image
|
119 |
-
| 54 | <ul><li>'
|
120 |
-
| 55 | <ul><li>'Create a
|
121 |
-
| 56 | <ul><li>'
|
122 |
-
| 57 | <ul><li>'Convert
|
123 |
-
| 58 | <ul><li>'Add a
|
124 |
-
| 59 | <ul><li>'
|
125 |
-
| 60 | <ul><li>'
|
126 |
-
| 61 | <ul><li>'
|
127 |
-
| 62 | <ul><li>'
|
128 |
|
129 |
## Evaluation
|
130 |
|
131 |
### Metrics
|
132 |
| Label | Accuracy |
|
133 |
|:--------|:---------|
|
134 |
-
| **all** | 0.
|
135 |
|
136 |
## Uses
|
137 |
|
@@ -151,7 +151,7 @@ from setfit import SetFitModel
|
|
151 |
# Download from the 🤗 Hub
|
152 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
153 |
# Run inference
|
154 |
-
preds = model("
|
155 |
```
|
156 |
|
157 |
<!--
|
@@ -183,73 +183,73 @@ preds = model("Group the menu items")
|
|
183 |
### Training Set Metrics
|
184 |
| Training set | Min | Median | Max |
|
185 |
|:-------------|:----|:-------|:----|
|
186 |
-
| Word count | 3 | 5.
|
187 |
|
188 |
| Label | Training Sample Count |
|
189 |
|:------|:----------------------|
|
190 |
-
| 0 |
|
191 |
-
| 1 |
|
192 |
-
| 2 |
|
193 |
-
| 3 |
|
194 |
-
| 4 |
|
195 |
-
| 5 |
|
196 |
-
| 6 |
|
197 |
-
| 7 |
|
198 |
-
| 8 |
|
199 |
-
| 9 |
|
200 |
-
| 10 |
|
201 |
-
| 11 |
|
202 |
-
| 12 |
|
203 |
-
| 13 |
|
204 |
-
| 14 |
|
205 |
-
| 15 |
|
206 |
-
| 16 |
|
207 |
-
| 17 |
|
208 |
-
| 18 |
|
209 |
-
| 19 |
|
210 |
-
| 20 |
|
211 |
-
| 21 |
|
212 |
-
| 22 |
|
213 |
-
| 23 |
|
214 |
-
| 24 |
|
215 |
-
| 25 |
|
216 |
-
| 26 |
|
217 |
-
| 27 |
|
218 |
-
| 28 |
|
219 |
-
| 29 |
|
220 |
-
| 30 |
|
221 |
-
| 31 |
|
222 |
-
| 32 |
|
223 |
-
| 33 |
|
224 |
-
| 34 |
|
225 |
-
| 35 |
|
226 |
-
| 36 |
|
227 |
-
| 37 |
|
228 |
-
| 38 |
|
229 |
-
| 39 |
|
230 |
-
| 40 |
|
231 |
-
| 41 |
|
232 |
-
| 42 |
|
233 |
-
| 43 |
|
234 |
-
| 44 |
|
235 |
-
| 45 |
|
236 |
-
| 46 |
|
237 |
-
| 47 |
|
238 |
-
| 48 |
|
239 |
-
| 49 |
|
240 |
-
| 50 |
|
241 |
-
| 51 |
|
242 |
-
| 52 |
|
243 |
-
| 53 |
|
244 |
-
| 54 |
|
245 |
-
| 55 |
|
246 |
-
| 56 |
|
247 |
-
| 57 |
|
248 |
-
| 58 |
|
249 |
-
| 59 |
|
250 |
-
| 60 |
|
251 |
-
| 61 |
|
252 |
-
| 62 |
|
253 |
|
254 |
### Training Hyperparameters
|
255 |
- batch_size: (64, 64)
|
@@ -272,11 +272,8 @@ preds = model("Group the menu items")
|
|
272 |
### Training Results
|
273 |
| Epoch | Step | Training Loss | Validation Loss |
|
274 |
|:------:|:----:|:-------------:|:---------------:|
|
275 |
-
| 0.
|
276 |
-
| 0.
|
277 |
-
| 0.4082 | 100 | 0.0106 | - |
|
278 |
-
| 0.6122 | 150 | 0.0045 | - |
|
279 |
-
| 0.8163 | 200 | 0.0032 | - |
|
280 |
|
281 |
### Framework Versions
|
282 |
- Python: 3.12.11
|
|
|
5 |
- text-classification
|
6 |
- generated_from_setfit_trainer
|
7 |
widget:
|
8 |
+
- text: I need some icon suggestions for this layout
|
9 |
+
- text: Tighten the letter spacing
|
10 |
+
- text: Group the logo and title together
|
11 |
+
- text: Create a photo of a mountain landscape
|
12 |
+
- text: Mirror the logo vertically
|
13 |
metrics:
|
14 |
- accuracy
|
15 |
pipeline_tag: text-classification
|
|
|
28 |
split: test
|
29 |
metrics:
|
30 |
- type: accuracy
|
31 |
+
value: 0.29854096520763185
|
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 |
+
| 0 | <ul><li>'Add a corporate presentation background'</li></ul> |
|
66 |
+
| 1 | <ul><li>'I need some icon suggestions for this layout'</li></ul> |
|
67 |
+
| 2 | <ul><li>"Add a heading that says 'Welcome'"</li></ul> |
|
68 |
+
| 3 | <ul><li>'Distribute the shapes across the page'</li></ul> |
|
69 |
+
| 4 | <ul><li>'Add a zoom animation to the logo'</li></ul> |
|
70 |
+
| 5 | <ul><li>'Make everything fade in gradually'</li></ul> |
|
71 |
+
| 6 | <ul><li>'Remove the unwanted text overlay'</li></ul> |
|
72 |
+
| 7 | <ul><li>'Remove the background shape'</li></ul> |
|
73 |
+
| 8 | <ul><li>'What shape options do you have?'</li></ul> |
|
74 |
+
| 9 | <ul><li>'Distribute the buttons around the center image'</li></ul> |
|
75 |
+
| 10 | <ul><li>'Duplicate the page structure'</li></ul> |
|
76 |
+
| 11 | <ul><li>'Duplicate the icon and move it'</li></ul> |
|
77 |
+
| 12 | <ul><li>'Copy the content to the final page'</li></ul> |
|
78 |
+
| 13 | <ul><li>'Fix the letter spacing'</li></ul> |
|
79 |
+
| 14 | <ul><li>'Mirror the logo vertically'</li></ul> |
|
80 |
+
| 15 | <ul><li>'Create a photo of a mountain landscape'</li></ul> |
|
81 |
+
| 16 | <ul><li>'Create a card for a birthday party'</li></ul> |
|
82 |
+
| 17 | <ul><li>'Group the logo and title together'</li></ul> |
|
83 |
+
| 18 | <ul><li>'Move the image to the center'</li></ul> |
|
84 |
+
| 19 | <ul><li>'Apply a vintage filter to the photo'</li></ul> |
|
85 |
+
| 20 | <ul><li>'Find me texture patterns'</li></ul> |
|
86 |
+
| 21 | <ul><li>'Restore the previous color'</li></ul> |
|
87 |
+
| 22 | <ul><li>'Remove the background from the illustration'</li></ul> |
|
88 |
+
| 23 | <ul><li>'Delete the old sign'</li></ul> |
|
89 |
+
| 24 | <ul><li>'Replace the old logo with a new one'</li></ul> |
|
90 |
+
| 25 | <ul><li>'Replace the tagline'</li></ul> |
|
91 |
+
| 26 | <ul><li>'Reset the image adjustments'</li></ul> |
|
92 |
+
| 27 | <ul><li>'Scale the text up'</li></ul> |
|
93 |
+
| 28 | <ul><li>'Resize to LinkedIn post dimensions'</li></ul> |
|
94 |
+
| 29 | <ul><li>'Turn the logo 270 degrees'</li></ul> |
|
95 |
+
| 30 | <ul><li>'Scatter the particles around the text'</li></ul> |
|
96 |
+
| 31 | <ul><li>'Select the footer content'</li></ul> |
|
97 |
+
| 32 | <ul><li>'Change to a light gray background'</li></ul> |
|
98 |
+
| 33 | <ul><li>'Change the blend mode to color burn'</li></ul> |
|
99 |
+
| 34 | <ul><li>'Blur the logo slightly'</li></ul> |
|
100 |
+
| 35 | <ul><li>'Add a double border to the image'</li></ul> |
|
101 |
+
| 36 | <ul><li>'Make the photo more illuminated'</li></ul> |
|
102 |
+
| 37 | <ul><li>'Send the logo to the back'</li></ul> |
|
103 |
+
| 38 | <ul><li>'Increase the image contrast'</li></ul> |
|
104 |
+
| 39 | <ul><li>'Crop to a polygon'</li></ul> |
|
105 |
+
| 40 | <ul><li>'Add a gradient shadow'</li></ul> |
|
106 |
+
| 41 | <ul><li>'Change the background color to green'</li></ul> |
|
107 |
+
| 42 | <ul><li>'Increase the menu font size'</li></ul> |
|
108 |
+
| 43 | <ul><li>'Make the text bold and strikethrough'</li></ul> |
|
109 |
+
| 44 | <ul><li>'Use a decorative font for the logo'</li></ul> |
|
110 |
+
| 45 | <ul><li>'Brighten the light areas'</li></ul> |
|
111 |
+
| 46 | <ul><li>'Set the picture as full background'</li></ul> |
|
112 |
+
| 47 | <ul><li>'Tighten the letter spacing'</li></ul> |
|
113 |
+
| 48 | <ul><li>'Add more line height'</li></ul> |
|
114 |
+
| 49 | <ul><li>'Reduce the opacity of the overlay'</li></ul> |
|
115 |
+
| 50 | <ul><li>'Reduce the paragraph spacing'</li></ul> |
|
116 |
+
| 51 | <ul><li>'Make the colors more vibrant'</li></ul> |
|
117 |
+
| 52 | <ul><li>'Make the shadows deeper'</li></ul> |
|
118 |
+
| 53 | <ul><li>'Increase the image sharpness'</li></ul> |
|
119 |
+
| 54 | <ul><li>'Left align the subtitle'</li></ul> |
|
120 |
+
| 55 | <ul><li>'Create a text container'</li></ul> |
|
121 |
+
| 56 | <ul><li>'Create text in a spiral pattern'</li></ul> |
|
122 |
+
| 57 | <ul><li>'Convert to bullet point format'</li></ul> |
|
123 |
+
| 58 | <ul><li>'Add a colored shadow to the text'</li></ul> |
|
124 |
+
| 59 | <ul><li>'Increase the warm color cast'</li></ul> |
|
125 |
+
| 60 | <ul><li>'I want to upload a new image'</li></ul> |
|
126 |
+
| 61 | <ul><li>'Revert the opacity change'</li></ul> |
|
127 |
+
| 62 | <ul><li>'Break apart the grouped elements'</li></ul> |
|
128 |
|
129 |
## Evaluation
|
130 |
|
131 |
### Metrics
|
132 |
| Label | Accuracy |
|
133 |
|:--------|:---------|
|
134 |
+
| **all** | 0.2985 |
|
135 |
|
136 |
## Uses
|
137 |
|
|
|
151 |
# Download from the 🤗 Hub
|
152 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
153 |
# Run inference
|
154 |
+
preds = model("Tighten the letter spacing")
|
155 |
```
|
156 |
|
157 |
<!--
|
|
|
183 |
### Training Set Metrics
|
184 |
| Training set | Min | Median | Max |
|
185 |
|:-------------|:----|:-------|:----|
|
186 |
+
| Word count | 3 | 5.2857 | 8 |
|
187 |
|
188 |
| Label | Training Sample Count |
|
189 |
|:------|:----------------------|
|
190 |
+
| 0 | 1 |
|
191 |
+
| 1 | 1 |
|
192 |
+
| 2 | 1 |
|
193 |
+
| 3 | 1 |
|
194 |
+
| 4 | 1 |
|
195 |
+
| 5 | 1 |
|
196 |
+
| 6 | 1 |
|
197 |
+
| 7 | 1 |
|
198 |
+
| 8 | 1 |
|
199 |
+
| 9 | 1 |
|
200 |
+
| 10 | 1 |
|
201 |
+
| 11 | 1 |
|
202 |
+
| 12 | 1 |
|
203 |
+
| 13 | 1 |
|
204 |
+
| 14 | 1 |
|
205 |
+
| 15 | 1 |
|
206 |
+
| 16 | 1 |
|
207 |
+
| 17 | 1 |
|
208 |
+
| 18 | 1 |
|
209 |
+
| 19 | 1 |
|
210 |
+
| 20 | 1 |
|
211 |
+
| 21 | 1 |
|
212 |
+
| 22 | 1 |
|
213 |
+
| 23 | 1 |
|
214 |
+
| 24 | 1 |
|
215 |
+
| 25 | 1 |
|
216 |
+
| 26 | 1 |
|
217 |
+
| 27 | 1 |
|
218 |
+
| 28 | 1 |
|
219 |
+
| 29 | 1 |
|
220 |
+
| 30 | 1 |
|
221 |
+
| 31 | 1 |
|
222 |
+
| 32 | 1 |
|
223 |
+
| 33 | 1 |
|
224 |
+
| 34 | 1 |
|
225 |
+
| 35 | 1 |
|
226 |
+
| 36 | 1 |
|
227 |
+
| 37 | 1 |
|
228 |
+
| 38 | 1 |
|
229 |
+
| 39 | 1 |
|
230 |
+
| 40 | 1 |
|
231 |
+
| 41 | 1 |
|
232 |
+
| 42 | 1 |
|
233 |
+
| 43 | 1 |
|
234 |
+
| 44 | 1 |
|
235 |
+
| 45 | 1 |
|
236 |
+
| 46 | 1 |
|
237 |
+
| 47 | 1 |
|
238 |
+
| 48 | 1 |
|
239 |
+
| 49 | 1 |
|
240 |
+
| 50 | 1 |
|
241 |
+
| 51 | 1 |
|
242 |
+
| 52 | 1 |
|
243 |
+
| 53 | 1 |
|
244 |
+
| 54 | 1 |
|
245 |
+
| 55 | 1 |
|
246 |
+
| 56 | 1 |
|
247 |
+
| 57 | 1 |
|
248 |
+
| 58 | 1 |
|
249 |
+
| 59 | 1 |
|
250 |
+
| 60 | 1 |
|
251 |
+
| 61 | 1 |
|
252 |
+
| 62 | 1 |
|
253 |
|
254 |
### Training Hyperparameters
|
255 |
- batch_size: (64, 64)
|
|
|
272 |
### Training Results
|
273 |
| Epoch | Step | Training Loss | Validation Loss |
|
274 |
|:------:|:----:|:-------------:|:---------------:|
|
275 |
+
| 0.0161 | 1 | 0.1282 | - |
|
276 |
+
| 0.8065 | 50 | 0.0118 | - |
|
|
|
|
|
|
|
277 |
|
278 |
### Framework Versions
|
279 |
- Python: 3.12.11
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 546938168
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63c1f03cab264850c048b0b6eb29d9f8bf69476c716d38f5657dc8b9bd087404
|
3 |
size 546938168
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 388927
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e18a0fa946e9f6dbcb9646d4a936308a4e0e3ddb0886a33bbe2f33e3e8e9215
|
3 |
size 388927
|