Views
No views yet
pip install setfit1from setfit import SetFitModel
2
3# Download from the 🤗 Hub
4model = SetFitModel.from_pretrained("dannymartin/setfit")
5# Run inference
6preds = model("Recipe: Green Beans and Pears
7Description: Make and share this Green Beans and Pears recipe from Food.com.
8Ingredients: 1 lb green beans, trimmed and cut into 2 inch pieces 2 -3 pears, peeled,cored,and cut thickly
9Instructions: steam together for 6 minutes, until beans are tender.
10or just cover with water and boil.
11then drain.
12cool and puree.
13")| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 34 | 197.2989 | 617 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0025 | 1 | 0.2725 | - |
| 1.0 | 394 | 0.0714 | - |
1@article{https://doi.org/10.48550/arxiv.2209.11055,
2 doi = {10.48550/ARXIV.2209.11055},
3 url = {https://arxiv.org/abs/2209.11055},
4 author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
5 keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
6 title = {Efficient Few-Shot Learning Without Prompts},
7 publisher = {arXiv},
8 year = {2022},
9 copyright = {Creative Commons Attribution 4.0 International}
10}