Add SetFit model
Browse files- README.md +22 -16
- config_sentence_transformers.json +2 -2
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -87,7 +87,7 @@ model-index:
|
|
87 |
split: test
|
88 |
metrics:
|
89 |
- type: accuracy
|
90 |
-
value: 0.
|
91 |
name: Accuracy
|
92 |
---
|
93 |
|
@@ -119,17 +119,17 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
119 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
120 |
|
121 |
### Model Labels
|
122 |
-
| Label | Examples
|
123 |
-
|
124 |
-
|
|
125 |
-
|
|
126 |
|
127 |
## Evaluation
|
128 |
|
129 |
### Metrics
|
130 |
| Label | Accuracy |
|
131 |
|:--------|:---------|
|
132 |
-
| **all** | 0.
|
133 |
|
134 |
## Uses
|
135 |
|
@@ -183,12 +183,12 @@ Evaluation:")
|
|
183 |
### Training Set Metrics
|
184 |
| Training set | Min | Median | Max |
|
185 |
|:-------------|:----|:--------|:----|
|
186 |
-
| Word count |
|
187 |
|
188 |
| Label | Training Sample Count |
|
189 |
|:------|:----------------------|
|
190 |
-
| 0 |
|
191 |
-
| 1 |
|
192 |
|
193 |
### Training Hyperparameters
|
194 |
- batch_size: (16, 16)
|
@@ -212,18 +212,24 @@ Evaluation:")
|
|
212 |
### Training Results
|
213 |
| Epoch | Step | Training Loss | Validation Loss |
|
214 |
|:------:|:----:|:-------------:|:---------------:|
|
215 |
-
| 0.
|
216 |
-
| 0.
|
217 |
-
| 0.
|
218 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
|
220 |
### Framework Versions
|
221 |
- Python: 3.10.14
|
222 |
- SetFit: 1.1.0
|
223 |
-
- Sentence Transformers: 3.1.
|
224 |
- Transformers: 4.44.0
|
225 |
-
- PyTorch: 2.4.
|
226 |
-
- Datasets:
|
227 |
- Tokenizers: 0.19.1
|
228 |
|
229 |
## Citation
|
|
|
87 |
split: test
|
88 |
metrics:
|
89 |
- type: accuracy
|
90 |
+
value: 0.88
|
91 |
name: Accuracy
|
92 |
---
|
93 |
|
|
|
119 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
120 |
|
121 |
### Model Labels
|
122 |
+
| Label | Examples |
|
123 |
+
|:------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
124 |
+
| 1 | <ul><li>'Reasoning:\nThe answer correctly identifies Joan Gaspart as the individual who resigned from the presidency of Barcelona after the team\'s poor showing in the 2003 season. This is directly supported by the document, which explicitly states that "club president Joan Gaspart resigned, his position having been made completely untenable by such a disastrous season on top of the club\'s overall decline in fortunes since he became president three years prior." The answer is concise and directly relevant to the question without including any extraneous information.\n\nEvaluation:'</li><li>"Reasoning:\nThe provided answer directly addresses the question of why it is recommended to hire a professional residential electrician like O'Hara Electric for electrical work in your house. The answer highlights key points such as the hazards of working with electricity, the potential for injury, and the long-term implications of improperly done electrical work. It also mentions the risk involved even in seemingly simple tasks like smoke detector installation and emphasizes the benefits of having the job done correctly the first time by a professional. The details arewell-supported by the document.\n\nEvaluation:"</li><li>'Reasoning:\nThe answer "The title of Aerosmith\'s 1987 comeback album was \'Permanent Vacation\'" is directly supported by the provided document. The document explicitly states, "Aerosmith\'s comeback album Permanent Vacation (1987) would begin a decade long revival of their popularity." The answer is directly related to the question asked and does not deviate into unrelated topics, ensuring conciseness and relevance.\n\nEvaluation:'</li></ul> |
|
125 |
+
| 0 | <ul><li>'Reasoning:\nThe answer provides a well-supported response that aligns directly with the content presented in the document. It addresses various strategies to combat smoking cravings, such as identifying and avoiding triggers, using distractions, and engaging in alternative activities. Specific triggers, like daily routines and social situations, are described in both the answer and the document. Additionally, the advice on using chewing licorice root and engaging in smoke-free activities is related to the suggestions given in the document. The answer is clear, concise, and stays relevant to the question throughout.\n\nFinal Evaluation: \nEvaluation:'</li><li>"Reasoning:\nThe provided answer accurately captures the challenges Amy Bloom faces when starting a significant writing project, as detailed in the document. Notably, it mentions the difficulty of getting started, the need to clear mental space, and to recalibrate her daily life, which are all points grounded in the text. The answer also covers her becoming less involved in everyday life and spending less time on domestic concerns, which aligns well with the provided passage. However, the part about traveling to a remote island with no internet access is not mentioned in the document and appears to be fabricated, which detracts from the answer's context grounding.\n\nFinal Result:"</li><li>'Reasoning:\nThe provided answer incorrectly states the price and location of the 6 bedroom detached house. According to the document, the 6 bedroom detached house is for sale at a price of £950,000 and is located at Willow Drive, Twyford, Reading, Berkshire, RG10. The answer gives a different priceand an incorrect location.\n\nFinal Evaluation:'</li></ul> |
|
126 |
|
127 |
## Evaluation
|
128 |
|
129 |
### Metrics
|
130 |
| Label | Accuracy |
|
131 |
|:--------|:---------|
|
132 |
+
| **all** | 0.88 |
|
133 |
|
134 |
## Uses
|
135 |
|
|
|
183 |
### Training Set Metrics
|
184 |
| Training set | Min | Median | Max |
|
185 |
|:-------------|:----|:--------|:----|
|
186 |
+
| Word count | 33 | 76.9045 | 176 |
|
187 |
|
188 |
| Label | Training Sample Count |
|
189 |
|:------|:----------------------|
|
190 |
+
| 0 | 95 |
|
191 |
+
| 1 | 104 |
|
192 |
|
193 |
### Training Hyperparameters
|
194 |
- batch_size: (16, 16)
|
|
|
212 |
### Training Results
|
213 |
| Epoch | Step | Training Loss | Validation Loss |
|
214 |
|:------:|:----:|:-------------:|:---------------:|
|
215 |
+
| 0.0020 | 1 | 0.2375 | - |
|
216 |
+
| 0.1004 | 50 | 0.2548 | - |
|
217 |
+
| 0.2008 | 100 | 0.2339 | - |
|
218 |
+
| 0.3012 | 150 | 0.0973 | - |
|
219 |
+
| 0.4016 | 200 | 0.0347 | - |
|
220 |
+
| 0.5020 | 250 | 0.0125 | - |
|
221 |
+
| 0.6024 | 300 | 0.0058 | - |
|
222 |
+
| 0.7028 | 350 | 0.004 | - |
|
223 |
+
| 0.8032 | 400 | 0.0033 | - |
|
224 |
+
| 0.9036 | 450 | 0.0023 | - |
|
225 |
|
226 |
### Framework Versions
|
227 |
- Python: 3.10.14
|
228 |
- SetFit: 1.1.0
|
229 |
+
- Sentence Transformers: 3.1.1
|
230 |
- Transformers: 4.44.0
|
231 |
+
- PyTorch: 2.4.0+cu121
|
232 |
+
- Datasets: 3.0.0
|
233 |
- Tokenizers: 0.19.1
|
234 |
|
235 |
## Citation
|
config_sentence_transformers.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"__version__": {
|
3 |
-
"sentence_transformers": "3.1.
|
4 |
"transformers": "4.44.0",
|
5 |
-
"pytorch": "2.4.
|
6 |
},
|
7 |
"prompts": {},
|
8 |
"default_prompt_name": null,
|
|
|
1 |
{
|
2 |
"__version__": {
|
3 |
+
"sentence_transformers": "3.1.1",
|
4 |
"transformers": "4.44.0",
|
5 |
+
"pytorch": "2.4.0+cu121"
|
6 |
},
|
7 |
"prompts": {},
|
8 |
"default_prompt_name": null,
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 437951328
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6dba08c7ab2d819ea194d586aa90d391d26c1988c9b3964cd4eb0688657724f4
|
3 |
size 437951328
|
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:c8f3639129184be415f0a8841f273bfd5957b94e9b4973a71a8122cee2ce8718
|
3 |
size 7007
|