SetFit with sentence-transformers/paraphrase-mpnet-base-v2
0
3 commits
2 linked in READMEs
updated Aug 16, 2024
This is a SetFit model trained on the fancyzhx/ag_news dataset that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-mpnet-base-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.
The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| Sports |
|
| Business |
|
| World |
|
| Sci/Tech |
|
| Label | Accuracy |
|---|---|
| all | 0.7676 |
First install the SetFit library:
pip install setfit
Then you can load this model and run inference.
from setfit import SetFitModel
# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("setfit_model_id")
# Run inference
preds = model("Wal-Mart says weekly traffic rose Wal-Mart said Saturday that higher shopper traffic in the past week raised its comparable-store sales above the previous year. Free!")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 22 | 39.625 | 66 |
| Label | Training Sample Count |
|---|---|
| World | 27 |
| Sports | 14 |
| Business | 23 |
| Sci/Tech | 8 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0043 | 1 | 0.4132 | - |
| 0.2174 | 50 | 0.1877 | - |
| 0.4348 | 100 | 0.0342 | - |
| 0.6522 | 150 | 0.0009 | - |
| 0.8696 | 200 | 0.0005 | - |
| 1.0 | 230 | - | 0.154 |
| 1.0870 | 250 | 0.0003 | - |
| 1.3043 | 300 | 0.0003 | - |
| 1.5217 | 350 | 0.0002 | - |
| 1.7391 | 400 | 0.0001 | - |
| 1.9565 | 450 | 0.0002 | - |
| 2.0 | 460 | - | 0.1504 |
| 2.1739 | 500 | 0.0002 | - |
| 2.3913 | 550 | 0.0001 | - |
| 2.6087 | 600 | 0.0001 | - |
| 2.8261 | 650 | 0.0001 | - |
| 3.0 | 690 | - | 0.1545 |
| 3.0435 | 700 | 0.0001 | - |
| 3.2609 | 750 | 0.0001 | - |
| 3.4783 | 800 | 0.0001 | - |
| 3.6957 | 850 | 0.0001 | - |
| 3.9130 | 900 | 0.0001 | - |
| 4.0 | 920 | - | 0.1537 |
| 4.1304 | 950 | 0.0 | - |
| 4.3478 | 1000 | 0.0 | - |
| 4.5652 | 1050 | 0.0001 | - |
| 4.7826 | 1100 | 0.0 | - |
| 5.0 | 1150 | 0.0 | 0.1534 |
@article{https://doi.org/10.48550/arxiv.2209.11055,
doi = {10.48550/ARXIV.2209.11055},
url = {https://arxiv.org/abs/2209.11055},
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Efficient Few-Shot Learning Without Prompts},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}
SetFit with sentence-transformers/paraphrase-mpnet-base-v2
0
3 commits
2 linked in READMEs
updated Aug 16, 2024
This is a SetFit model trained on the fancyzhx/ag_news dataset that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-mpnet-base-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.
The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| Sports |
|
| Business |
|
| World |
|
| Sci/Tech |
|
| Label | Accuracy |
|---|---|
| all | 0.7676 |
First install the SetFit library:
pip install setfit
Then you can load this model and run inference.
from setfit import SetFitModel
# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("setfit_model_id")
# Run inference
preds = model("Wal-Mart says weekly traffic rose Wal-Mart said Saturday that higher shopper traffic in the past week raised its comparable-store sales above the previous year. Free!")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 22 | 39.625 | 66 |
| Label | Training Sample Count |
|---|---|
| World | 27 |
| Sports | 14 |
| Business | 23 |
| Sci/Tech | 8 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0043 | 1 | 0.4132 | - |
| 0.2174 | 50 | 0.1877 | - |
| 0.4348 | 100 | 0.0342 | - |
| 0.6522 | 150 | 0.0009 | - |
| 0.8696 | 200 | 0.0005 | - |
| 1.0 | 230 | - | 0.154 |
| 1.0870 | 250 | 0.0003 | - |
| 1.3043 | 300 | 0.0003 | - |
| 1.5217 | 350 | 0.0002 | - |
| 1.7391 | 400 | 0.0001 | - |
| 1.9565 | 450 | 0.0002 | - |
| 2.0 | 460 | - | 0.1504 |
| 2.1739 | 500 | 0.0002 | - |
| 2.3913 | 550 | 0.0001 | - |
| 2.6087 | 600 | 0.0001 | - |
| 2.8261 | 650 | 0.0001 | - |
| 3.0 | 690 | - | 0.1545 |
| 3.0435 | 700 | 0.0001 | - |
| 3.2609 | 750 | 0.0001 | - |
| 3.4783 | 800 | 0.0001 | - |
| 3.6957 | 850 | 0.0001 | - |
| 3.9130 | 900 | 0.0001 | - |
| 4.0 | 920 | - | 0.1537 |
| 4.1304 | 950 | 0.0 | - |
| 4.3478 | 1000 | 0.0 | - |
| 4.5652 | 1050 | 0.0001 | - |
| 4.7826 | 1100 | 0.0 | - |
| 5.0 | 1150 | 0.0 | 0.1534 |
@article{https://doi.org/10.48550/arxiv.2209.11055,
doi = {10.48550/ARXIV.2209.11055},
url = {https://arxiv.org/abs/2209.11055},
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Efficient Few-Shot Learning Without Prompts},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}