Push model using huggingface_hub.
Browse files- README.md +21 -14
- model.safetensors +1 -1
- 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
|
| 14 |
-
- text:
|
| 15 |
-
- text:
|
|
|
|
| 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
|
| 52 |
-
| 1 | <ul><li>'a
|
| 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("
|
| 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 |
|
| 105 |
|
| 106 |
| Label | Training Sample Count |
|
| 107 |
|:------|:----------------------|
|
| 108 |
-
| 0 |
|
| 109 |
-
| 1 |
|
| 110 |
|
| 111 |
### Training Hyperparameters
|
| 112 |
- batch_size: (16, 16)
|
| 113 |
-
- num_epochs: (
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|
| 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:
|
| 3 |
size 7007
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db132fe1e709899f490d56877ba55c99beef1b1644149db5e5fff26c4efdd390
|
| 3 |
size 7007
|