Push model using huggingface_hub.
Browse files- README.md +8 -52
- config.json +1 -1
- config_sentence_transformers.json +1 -1
- config_setfit.json +2 -2
- model_head.pkl +2 -2
README.md
CHANGED
@@ -1,34 +1,15 @@
|
|
1 |
---
|
2 |
-
library_name: setfit
|
3 |
-
metrics:
|
4 |
-
- accuracy
|
5 |
-
pipeline_tag: text-classification
|
6 |
tags:
|
7 |
- setfit
|
8 |
- sentence-transformers
|
9 |
- text-classification
|
10 |
- generated_from_setfit_trainer
|
11 |
-
widget:
|
12 |
-
|
13 |
-
-
|
14 |
-
|
15 |
-
|
16 |
-
- text: What are some cool ways to describe a hidden civilization
|
17 |
inference: true
|
18 |
-
model-index:
|
19 |
-
- name: SetFit
|
20 |
-
results:
|
21 |
-
- task:
|
22 |
-
type: text-classification
|
23 |
-
name: Text Classification
|
24 |
-
dataset:
|
25 |
-
name: Unknown
|
26 |
-
type: unknown
|
27 |
-
split: test
|
28 |
-
metrics:
|
29 |
-
- type: accuracy
|
30 |
-
value: 1.0
|
31 |
-
name: Accuracy
|
32 |
---
|
33 |
|
34 |
# SetFit
|
@@ -58,20 +39,6 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
58 |
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
59 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
60 |
|
61 |
-
### Model Labels
|
62 |
-
| Label | Examples |
|
63 |
-
|:----------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
64 |
-
| comments_assistance | <ul><li>'Can you identify specific areas that need improvement in my text'</li><li>'Point out the flaws in my writing style, please'</li><li>'Which parts of my draft are the weakest'</li></ul> |
|
65 |
-
| chat_assistance | <ul><li>"How do I make my character's driving force more compelling"</li><li>"Any tips to deepen my protagonist's underlying goals"</li><li>"Suggestions for strengthening the reasons behind my character's actions"</li></ul> |
|
66 |
-
| pro_subscription_assistance | <ul><li>'How does the Pro version elevate my writing experience'</li><li>'Could you list the premium perks of Quarkle Pro'</li><li>'What special advantages come with upgrading to Pro'</li></ul> |
|
67 |
-
|
68 |
-
## Evaluation
|
69 |
-
|
70 |
-
### Metrics
|
71 |
-
| Label | Accuracy |
|
72 |
-
|:--------|:---------|
|
73 |
-
| **all** | 1.0 |
|
74 |
-
|
75 |
## Uses
|
76 |
|
77 |
### Direct Use for Inference
|
@@ -90,7 +57,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 |
<!--
|
@@ -119,22 +86,11 @@ preds = model("Point out any dull descriptions that need more color")
|
|
119 |
|
120 |
## Training Details
|
121 |
|
122 |
-
### Training Set Metrics
|
123 |
-
| Training set | Min | Median | Max |
|
124 |
-
|:-------------|:----|:-------|:----|
|
125 |
-
| Word count | 1 | 8.9364 | 15 |
|
126 |
-
|
127 |
-
| Label | Training Sample Count |
|
128 |
-
|:----------------------------|:----------------------|
|
129 |
-
| chat_assistance | 163 |
|
130 |
-
| comments_assistance | 156 |
|
131 |
-
| pro_subscription_assistance | 121 |
|
132 |
-
|
133 |
### Framework Versions
|
134 |
- Python: 3.10.15
|
135 |
-
- SetFit: 1.
|
136 |
- Sentence Transformers: 3.3.1
|
137 |
-
- Transformers: 4.
|
138 |
- PyTorch: 2.5.1
|
139 |
- Datasets: 3.2.0
|
140 |
- Tokenizers: 0.21.0
|
|
|
1 |
---
|
|
|
|
|
|
|
|
|
2 |
tags:
|
3 |
- setfit
|
4 |
- sentence-transformers
|
5 |
- text-classification
|
6 |
- generated_from_setfit_trainer
|
7 |
+
widget: []
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
pipeline_tag: text-classification
|
11 |
+
library_name: setfit
|
|
|
12 |
inference: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
---
|
14 |
|
15 |
# SetFit
|
|
|
39 |
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
40 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
## Uses
|
43 |
|
44 |
### Direct Use for Inference
|
|
|
57 |
# Download from the 🤗 Hub
|
58 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
59 |
# Run inference
|
60 |
+
preds = model("I loved the spiderman movie!")
|
61 |
```
|
62 |
|
63 |
<!--
|
|
|
86 |
|
87 |
## Training Details
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
### Framework Versions
|
90 |
- Python: 3.10.15
|
91 |
+
- SetFit: 1.1.1
|
92 |
- Sentence Transformers: 3.3.1
|
93 |
+
- Transformers: 4.48.0
|
94 |
- PyTorch: 2.5.1
|
95 |
- Datasets: 3.2.0
|
96 |
- Tokenizers: 0.21.0
|
config.json
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
"pad_token_id": 0,
|
19 |
"position_embedding_type": "absolute",
|
20 |
"torch_dtype": "float32",
|
21 |
-
"transformers_version": "4.
|
22 |
"type_vocab_size": 2,
|
23 |
"use_cache": true,
|
24 |
"vocab_size": 30522
|
|
|
18 |
"pad_token_id": 0,
|
19 |
"position_embedding_type": "absolute",
|
20 |
"torch_dtype": "float32",
|
21 |
+
"transformers_version": "4.48.0",
|
22 |
"type_vocab_size": 2,
|
23 |
"use_cache": true,
|
24 |
"vocab_size": 30522
|
config_sentence_transformers.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"__version__": {
|
3 |
"sentence_transformers": "3.3.1",
|
4 |
-
"transformers": "4.
|
5 |
"pytorch": "2.5.1"
|
6 |
},
|
7 |
"prompts": {},
|
|
|
1 |
{
|
2 |
"__version__": {
|
3 |
"sentence_transformers": "3.3.1",
|
4 |
+
"transformers": "4.48.0",
|
5 |
"pytorch": "2.5.1"
|
6 |
},
|
7 |
"prompts": {},
|
config_setfit.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"normalize_embeddings": true,
|
3 |
"labels": [
|
4 |
"chat_assistance",
|
5 |
"comments_assistance",
|
6 |
"pro_subscription_assistance"
|
7 |
-
]
|
|
|
8 |
}
|
|
|
1 |
{
|
|
|
2 |
"labels": [
|
3 |
"chat_assistance",
|
4 |
"comments_assistance",
|
5 |
"pro_subscription_assistance"
|
6 |
+
],
|
7 |
+
"normalize_embeddings": true
|
8 |
}
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2683d8e5c5262347956a652b78c20ade84f01edde6623f741173bfb873f6b399
|
3 |
+
size 10399
|