CoolFace
Modelpublic

faodl/model_cca_multilabel_MiniLM-L12-70prop-data-augmented

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes2downloads
Model Card

SetFit with sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 as the Sentence Transformer embedding model. A OneVsRestClassifier instance is used for classification.

The model has been trained using an efficient few-shot learning technique that involves:

  1. 1.Fine-tuning a Sentence Transformer with contrastive learning.
  2. 2.Training a classification head with features from the fine-tuned Sentence Transformer.

Model Details

Model Description

  • Model Type: SetFit
  • Sentence Transformer body: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
  • Classification head: a OneVsRestClassifier instance
  • Maximum Sequence Length: 128 tokens <!-- - Number of Classes: Unknown --> <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Uses

Direct Use for Inference

First install the SetFit library:

bash
pip install setfit

Then you can load this model and run inference.

python
from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("faodl/model_cca_multilabel_MiniLM-L12-70prop-data-augmented")
# Run inference
preds = model("Strengthen macro-fiscal resilience through risk-informed public investment planning, including scenario-based budgeting and contingent financing arrangements.")

<!--

Downstream Use

List how someone could finetune this model on their own dataset. -->

<!--

Out-of-Scope Use

List how the model may foreseeably be misused and address what users ought not to do with the model. -->

<!--

Bias, Risks and Limitations

What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->

<!--

Recommendations

What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->

Training Details

Training Set Metrics

Training setMinMedianMax
Word count169.0403951

Training Hyperparameters

  • batch_size: (16, 16)
  • num_epochs: (2, 2)
  • max_steps: -1
  • sampling_strategy: oversampling
  • num_iterations: 20
  • bodylearningrate: (2e-05, 2e-05)
  • headlearningrate: 2e-05
  • loss: CosineSimilarityLoss
  • distancemetric: cosinedistance
  • margin: 0.25
  • endtoend: False
  • use_amp: False
  • warmup_proportion: 0.1
  • l2_weight: 0.01
  • seed: 42
  • evalmaxsteps: -1
  • loadbestmodelatend: False

Training Results

EpochStepTraining LossValidation Loss
0.000110.2247-
0.0065500.2105-
0.01301000.1984-
0.01951500.1899-
0.02602000.1916-
0.03252500.1769-
0.03903000.1679-
0.04553500.1677-
0.05204000.1591-
0.05854500.1521-
0.06505000.1522-
0.07155500.1497-
0.07806000.1494-
0.08456500.1457-
0.09107000.1503-
0.09757500.1328-
0.10408000.1251-
0.11058500.1395-
0.11709000.1298-
0.12359500.1221-
0.130010000.1313-
0.136510500.1267-
0.142911000.1367-
0.149411500.1324-
0.155912000.1201-
0.162412500.1244-
0.168913000.1231-
0.175413500.1214-
0.181914000.1098-
0.188414500.1152-
0.194915000.1149-
0.201415500.1185-
0.207916000.1123-
0.214416500.1092-
0.220917000.1097-
0.227417500.1159-
0.233918000.1076-
0.240418500.114-
0.246919000.1055-
0.253419500.1033-
0.259920000.1016-
0.266420500.1004-
0.272921000.0973-
0.279421500.1051-
0.285922000.0954-
0.292422500.0998-
0.298923000.0984-
0.305423500.0906-
0.311924000.0939-
0.318424500.1023-
0.324925000.0983-
0.331425500.0952-
0.337926000.099-
0.344426500.0994-
0.350927000.0975-
0.357427500.0871-
0.363928000.0969-
0.370428500.0845-
0.376929000.1007-
0.383429500.0887-
0.389930000.0807-
0.396430500.0859-
0.402931000.0826-
0.409431500.0784-
0.415932000.0851-
0.422432500.0834-
0.428833000.0922-
0.435333500.0862-
0.441834000.0856-
0.448334500.0848-
0.454835000.0735-
0.461335500.0752-
0.467836000.0881-
0.474336500.0836-
0.480837000.0808-
0.487337500.0963-
0.493838000.0816-
0.500338500.0809-
0.506839000.0833-
0.513339500.0852-
0.519840000.0788-
0.526340500.0742-
0.532841000.0693-
0.539341500.0856-
0.545842000.072-
0.552342500.0805-
0.558843000.0741-
0.565343500.0845-
0.571844000.0753-
0.578344500.0814-
0.584845000.0691-
0.591345500.0823-
0.597846000.0847-
0.604346500.0714-
0.610847000.0879-
0.617347500.0711-
0.623848000.0697-
0.630348500.0741-
0.636849000.0771-
0.643349500.0837-
0.649850000.0743-
0.656350500.0755-
0.662851000.0739-
0.669351500.0816-
0.675852000.0782-
0.682352500.0755-
0.688853000.0712-
0.695353500.0639-
0.701854000.0694-
0.708354500.0806-
0.714755000.071-
0.721255500.0707-
0.727756000.0751-
0.734256500.0724-
0.740757000.0688-
0.747257500.067-
0.753758000.0718-
0.760258500.0681-
0.766759000.0694-
0.773259500.0693-
0.779760000.0731-
0.786260500.0626-
0.792761000.0691-
0.799261500.0711-
0.805762000.0627-
0.812262500.0726-
0.818763000.068-
0.825263500.0766-
0.831764000.0617-
0.838264500.0671-
0.844765000.0645-
0.851265500.0722-
0.857766000.0751-
0.864266500.0591-
0.870767000.0664-
0.877267500.0735-
0.883768000.0709-
0.890268500.0632-
0.896769000.0679-
0.903269500.0596-
0.909770000.0676-
0.916270500.066-
0.922771000.069-
0.929271500.0615-
0.935772000.0579-
0.942272500.0576-
0.948773000.0558-
0.955273500.0556-
0.961774000.0637-
0.968274500.0615-
0.974775000.0677-
0.981275500.0584-
0.987776000.0661-
0.994276500.0583-
1.000677000.0639-
1.007177500.0598-
1.013678000.0586-
1.020178500.055-
1.026679000.0636-
1.033179500.0623-
1.039680000.0661-
1.046180500.0633-
1.052681000.056-
1.059181500.0555-
1.065682000.0608-
1.072182500.0491-
1.078683000.0592-
1.085183500.0645-
1.091684000.0553-
1.098184500.0547-
1.104685000.0494-
1.111185500.0594-
1.117686000.058-
1.124186500.0589-
1.130687000.0552-
1.137187500.0554-
1.143688000.0566-
1.150188500.0558-
1.156689000.0596-
1.163189500.0551-
1.169690000.061-
1.176190500.0689-
1.182691000.0565-
1.189191500.0581-
1.195692000.0606-
1.202192500.057-
1.208693000.0577-
1.215193500.0629-
1.221694000.0592-
1.228194500.0547-
1.234695000.0606-
1.241195500.0588-
1.247696000.0581-
1.254196500.0624-
1.260697000.0589-
1.267197500.0646-
1.273698000.0559-
1.280198500.0594-
1.286599000.0586-
1.293099500.0552-
1.2995100000.0513-
1.3060100500.0565-
1.3125101000.0626-
1.3190101500.0483-
1.3255102000.0643-
1.3320102500.0524-
1.3385103000.0559-
1.3450103500.0589-
1.3515104000.0562-
1.3580104500.0592-
1.3645105000.047-
1.3710105500.0531-
1.3775106000.0506-
1.3840106500.0579-
1.3905107000.0569-
1.3970107500.0579-
1.4035108000.0504-
1.4100108500.0547-
1.4165109000.0497-
1.4230109500.0533-
1.4295110000.0488-
1.4360110500.0537-
1.4425111000.0544-
1.4490111500.0548-
1.4555112000.0475-
1.4620112500.0519-
1.4685113000.0568-
1.4750113500.0567-
1.4815114000.0473-
1.4880114500.0535-
1.4945115000.0531-
1.5010115500.0567-
1.5075116000.0529-
1.5140116500.0544-
1.5205117000.0612-
1.5270117500.055-
1.5335118000.0474-
1.5400118500.0572-
1.5465119000.0484-
1.5530119500.0553-
1.5595120000.0519-
1.5660120500.0565-
1.5724121000.0466-
1.5789121500.0502-
1.5854122000.0525-
1.5919122500.054-
1.5984123000.0556-
1.6049123500.0515-
1.6114124000.0476-
1.6179124500.0579-
1.6244125000.0567-
1.6309125500.0551-
1.6374126000.0518-
1.6439126500.0508-
1.6504127000.0503-
1.6569127500.0484-
1.6634128000.0531-
1.6699128500.0553-
1.6764129000.0588-
1.6829129500.0547-
1.6894130000.0587-
1.6959130500.0562-
1.7024131000.0558-
1.7089131500.0559-
1.7154132000.0547-
1.7219132500.059-
1.7284133000.053-
1.7349133500.0532-
1.7414134000.0552-
1.7479134500.0443-
1.7544135000.058-
1.7609135500.0503-
1.7674136000.0499-
1.7739136500.0478-
1.7804137000.0569-
1.7869137500.052-
1.7934138000.0458-
1.7999138500.0551-
1.8064139000.0567-
1.8129139500.0511-
1.8194140000.0546-
1.8259140500.058-
1.8324141000.0539-
1.8389141500.0544-
1.8454142000.061-
1.8519142500.0521-
1.8583143000.046-
1.8648143500.0494-
1.8713144000.0604-
1.8778144500.0543-
1.8843145000.0522-
1.8908145500.0533-
1.8973146000.0469-
1.9038146500.0525-
1.9103147000.0516-
1.9168147500.0485-
1.9233148000.0601-
1.9298148500.0487-
1.9363149000.0496-
1.9428149500.0529-
1.9493150000.054-
1.9558150500.0431-
1.9623151000.0449-
1.9688151500.0602-
1.9753152000.0447-
1.9818152500.0506-
1.9883153000.0503-
1.9948153500.0515-

Framework Versions

  • Python: 3.12.12
  • SetFit: 1.1.3
  • Sentence Transformers: 5.1.1
  • Transformers: 4.57.1
  • PyTorch: 2.8.0+cu126
  • Datasets: 4.0.0
  • Tokenizers: 0.22.1

Citation

BibTeX

bibtex
@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}
}

<!--

Glossary

Clearly define terms in order to be accessible across audiences. -->

<!--

Model Card Authors

Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->

<!--

Model Card Contact

Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->