CoolFace
Modelpublic

faodl/model_cca_multilabel_mpnet-65max-data-augmented-v03

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

SetFit with sentence-transformers/paraphrase-multilingual-mpnet-base-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-multilingual-mpnet-base-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 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_mpnet-65max-data-augmented-v03")
# Run inference
preds = model("Financing windows will be created to de-risk early-stage bioenergy ventures, including blended finance and concessional lending.")

<!--

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 count147.2721947

Training Hyperparameters

  • batch_size: (8, 8)
  • num_epochs: (2, 2)
  • max_steps: -1
  • sampling_strategy: oversampling
  • num_iterations: 10
  • 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.3187-
0.0032500.2107-
0.00651000.2079-
0.00971500.2015-
0.01302000.2011-
0.01622500.1917-
0.01943000.187-
0.02273500.1892-
0.02594000.1726-
0.02914500.1776-
0.03245000.1685-
0.03565500.176-
0.03896000.1646-
0.04216500.1689-
0.04537000.1577-
0.04867500.1466-
0.05188000.1534-
0.05518500.1606-
0.05839000.149-
0.06159500.1414-
0.064810000.1357-
0.068010500.1483-
0.071311000.1302-
0.074511500.14-
0.077712000.1479-
0.081012500.1496-
0.084213000.1308-
0.087413500.1509-
0.090714000.15-
0.093914500.1516-
0.097215000.1319-
0.100415500.1349-
0.103616000.1398-
0.106916500.1276-
0.110117000.1309-
0.113417500.1408-
0.116618000.1416-
0.119818500.1371-
0.123119000.1266-
0.126319500.1257-
0.129620000.1337-
0.132820500.1475-
0.136021000.1412-
0.139321500.1412-
0.142522000.1281-
0.145722500.1293-
0.149023000.1186-
0.152223500.142-
0.155524000.1327-
0.158724500.1356-
0.161925000.1357-
0.165225500.1235-
0.168426000.1448-
0.171726500.1274-
0.174927000.1138-
0.178127500.13-
0.181428000.1231-
0.184628500.1258-
0.187829000.1148-
0.191129500.1249-
0.194330000.1281-
0.197630500.1239-
0.200831000.1205-
0.204031500.1265-
0.207332000.1371-
0.210532500.1285-
0.213833000.1365-
0.217033500.1344-
0.220234000.1329-
0.223534500.1393-
0.226735000.1313-
0.230035500.1141-
0.233236000.1255-
0.236436500.1239-
0.239737000.1215-
0.242937500.1208-
0.246138000.1339-
0.249438500.1298-
0.252639000.1275-
0.255939500.126-
0.259140000.1106-
0.262340500.1301-
0.265641000.1066-
0.268841500.1309-
0.272142000.1205-
0.275342500.1371-
0.278543000.1215-
0.281843500.1204-
0.285044000.1183-
0.288244500.1189-
0.291545000.1129-
0.294745500.115-
0.298046000.1152-
0.301246500.1122-
0.304447000.1217-
0.307747500.103-
0.310948000.1203-
0.314248500.1253-
0.317449000.1123-
0.320649500.1262-
0.323950000.1115-
0.327150500.1219-
0.330451000.1185-
0.333651500.1242-
0.336852000.123-
0.340152500.1055-
0.343353000.116-
0.346553500.1173-
0.349854000.1116-
0.353054500.1173-
0.356355000.107-
0.359555500.1052-
0.362756000.1119-
0.366056500.1116-
0.369257000.1153-
0.372557500.1039-
0.375758000.1187-
0.378958500.1106-
0.382259000.111-
0.385459500.1018-
0.388760000.1065-
0.391960500.1044-
0.395161000.1037-
0.398461500.0991-
0.401662000.0984-
0.404862500.1058-
0.408163000.0954-
0.411363500.0883-
0.414664000.1077-
0.417864500.1134-
0.421065000.1079-
0.424365500.0996-
0.427566000.1045-
0.430866500.1151-
0.434067000.1062-
0.437267500.1077-
0.440568000.1133-
0.443768500.1096-
0.446969000.1017-
0.450269500.0972-
0.453470000.0955-
0.456770500.0986-
0.459971000.0942-
0.463171500.1093-
0.466472000.0908-
0.469672500.1165-
0.472973000.0979-
0.476173500.0915-
0.479374000.0824-
0.482674500.0988-
0.485875000.112-
0.489175500.0997-
0.492376000.1013-
0.495576500.1119-
0.498877000.1087-
0.502077500.1037-
0.505278000.0995-
0.508578500.0913-
0.511779000.1006-
0.515079500.0916-
0.518280000.0861-
0.521480500.1135-
0.524781000.0956-
0.527981500.1007-
0.531282000.0898-
0.534482500.1079-
0.537683000.093-
0.540983500.0957-
0.544184000.0945-
0.547484500.0929-
0.550685000.0933-
0.553885500.0948-
0.557186000.0793-
0.560386500.0888-
0.563587000.0835-
0.566887500.0809-
0.570088000.1069-
0.573388500.0885-
0.576589000.089-
0.579789500.1028-
0.583090000.0842-
0.586290500.0946-
0.589591000.0989-
0.592791500.0827-
0.595992000.0798-
0.599292500.0855-
0.602493000.091-
0.605693500.0905-
0.608994000.0844-
0.612194500.0783-
0.615495000.0838-
0.618695500.0992-
0.621896000.0954-
0.625196500.0817-
0.628397000.0895-
0.631697500.0818-
0.634898000.0806-
0.638098500.0895-
0.641399000.0925-
0.644599500.0865-
0.6478100000.0881-
0.6510100500.0804-
0.6542101000.0951-
0.6575101500.0998-
0.6607102000.0892-
0.6639102500.0824-
0.6672103000.0856-
0.6704103500.0821-
0.6737104000.0949-
0.6769104500.0918-
0.6801105000.0868-
0.6834105500.0922-
0.6866106000.0845-
0.6899106500.0752-
0.6931107000.0904-
0.6963107500.0837-
0.6996108000.0846-
0.7028108500.0904-
0.7061109000.0819-
0.7093109500.0851-
0.7125110000.0755-
0.7158110500.0856-
0.7190111000.0978-
0.7222111500.0764-
0.7255112000.0837-
0.7287112500.0896-
0.7320113000.0878-
0.7352113500.0799-
0.7384114000.0819-
0.7417114500.0864-
0.7449115000.085-
0.7482115500.092-
0.7514116000.08-
0.7546116500.0828-
0.7579117000.078-
0.7611117500.0787-
0.7643118000.0818-
0.7676118500.0872-
0.7708119000.0857-
0.7741119500.0891-
0.7773120000.0731-
0.7805120500.0881-
0.7838121000.0735-
0.7870121500.0825-
0.7903122000.0799-
0.7935122500.0783-
0.7967123000.081-
0.8000123500.0847-
0.8032124000.0851-
0.8065124500.0783-
0.8097125000.0634-
0.8129125500.0767-
0.8162126000.0836-
0.8194126500.0871-
0.8226127000.0787-
0.8259127500.0755-
0.8291128000.0787-
0.8324128500.0764-
0.8356129000.077-
0.8388129500.0821-
0.8421130000.0756-
0.8453130500.0798-
0.8486131000.0699-
0.8518131500.0823-
0.8550132000.0783-
0.8583132500.078-
0.8615133000.0742-
0.8647133500.078-
0.8680134000.0835-
0.8712134500.0719-
0.8745135000.0774-
0.8777135500.0855-
0.8809136000.0873-
0.8842136500.084-
0.8874137000.0853-
0.8907137500.0833-
0.8939138000.0811-
0.8971138500.0727-
0.9004139000.0677-
0.9036139500.0666-
0.9069140000.0764-
0.9101140500.0729-
0.9133141000.0781-
0.9166141500.0917-
0.9198142000.0878-
0.9230142500.0734-
0.9263143000.0825-
0.9295143500.0799-
0.9328144000.0817-
0.9360144500.0757-
0.9392145000.0755-
0.9425145500.062-
0.9457146000.0829-
0.9490146500.0718-
0.9522147000.0776-
0.9554147500.0744-
0.9587148000.0881-
0.9619148500.0813-
0.9652149000.0673-
0.9684149500.0819-
0.9716150000.0566-
0.9749150500.0849-
0.9781151000.0736-
0.9813151500.0661-
0.9846152000.0731-
0.9878152500.0779-
0.9911153000.0723-
0.9943153500.0606-
0.9975154000.0801-
1.0008154500.0675-
1.0040155000.0743-
1.0073155500.0655-
1.0105156000.0594-
1.0137156500.0642-
1.0170157000.059-
1.0202157500.0628-
1.0234158000.0569-
1.0267158500.0725-
1.0299159000.0744-
1.0332159500.056-
1.0364160000.0754-
1.0396160500.0694-
1.0429161000.057-
1.0461161500.0706-
1.0494162000.0675-
1.0526162500.0679-
1.0558163000.0745-
1.0591163500.0539-
1.0623164000.0708-
1.0656164500.0629-
1.0688165000.0699-
1.0720165500.0706-
1.0753166000.0717-
1.0785166500.0676-
1.0817167000.0619-
1.0850167500.07-
1.0882168000.0569-
1.0915168500.0615-
1.0947169000.0646-
1.0979169500.0651-
1.1012170000.072-
1.1044170500.0693-
1.1077171000.0681-
1.1109171500.0509-
1.1141172000.0604-
1.1174172500.0723-
1.1206173000.0726-
1.1239173500.062-
1.1271174000.0608-
1.1303174500.0649-
1.1336175000.0631-
1.1368175500.0623-
1.1400176000.0707-
1.1433176500.0708-
1.1465177000.0736-
1.1498177500.0674-
1.1530178000.0759-
1.1562178500.0614-
1.1595179000.0626-
1.1627179500.0741-
1.1660180000.065-
1.1692180500.069-
1.1724181000.0749-
1.1757181500.0554-
1.1789182000.068-
1.1821182500.0676-
1.1854183000.067-
1.1886183500.0682-
1.1919184000.0546-
1.1951184500.068-
1.1983185000.0633-
1.2016185500.0627-
1.2048186000.0608-
1.2081186500.0625-
1.2113187000.0652-
1.2145187500.0555-
1.2178188000.0615-
1.2210188500.0599-
1.2243189000.0664-
1.2275189500.0653-
1.2307190000.0481-
1.2340190500.055-
1.2372191000.0681-
1.2404191500.0589-
1.2437192000.0774-
1.2469192500.0624-
1.2502193000.0609-
1.2534193500.0545-
1.2566194000.0546-
1.2599194500.087-
1.2631195000.061-
1.2664195500.068-
1.2696196000.0708-
1.2728196500.0651-
1.2761197000.0713-
1.2793197500.0646-
1.2825198000.0559-
1.2858198500.0486-
1.2890199000.0583-
1.2923199500.0549-
1.2955200000.073-
1.2987200500.0633-
1.3020201000.072-
1.3052201500.0623-
1.3085202000.0725-
1.3117202500.0629-
1.3149203000.0614-
1.3182203500.0607-
1.3214204000.0624-
1.3247204500.0627-
1.3279205000.0602-
1.3311205500.062-
1.3344206000.066-
1.3376206500.0596-
1.3408207000.0517-
1.3441207500.057-
1.3473208000.0584-
1.3506208500.0576-
1.3538209000.0667-
1.3570209500.0672-
1.3603210000.0641-
1.3635210500.0545-
1.3668211000.0609-
1.3700211500.0639-
1.3732212000.0612-
1.3765212500.0623-
1.3797213000.0645-
1.3830213500.0676-
1.3862214000.0704-
1.3894214500.0569-
1.3927215000.066-
1.3959215500.0632-
1.3991216000.0682-
1.4024216500.0694-
1.4056217000.0713-
1.4089217500.0508-
1.4121218000.0613-
1.4153218500.0512-
1.4186219000.0481-
1.4218219500.0578-
1.4251220000.0553-
1.4283220500.0599-
1.4315221000.0626-
1.4348221500.0577-
1.4380222000.0611-
1.4412222500.0579-
1.4445223000.0678-
1.4477223500.0627-
1.4510224000.0582-
1.4542224500.0613-
1.4574225000.0584-
1.4607225500.0586-
1.4639226000.0589-
1.4672226500.0535-
1.4704227000.0526-
1.4736227500.0599-
1.4769228000.0549-
1.4801228500.0598-
1.4834229000.0584-
1.4866229500.0657-
1.4898230000.056-
1.4931230500.061-
1.4963231000.0567-
1.4995231500.0604-
1.5028232000.053-
1.5060232500.0577-
1.5093233000.0552-
1.5125233500.0675-
1.5157234000.0698-
1.5190234500.0577-
1.5222235000.0518-
1.5255235500.0552-
1.5287236000.0606-
1.5319236500.0598-
1.5352237000.0586-
1.5384237500.0562-
1.5417238000.0571-
1.5449238500.0525-
1.5481239000.0619-
1.5514239500.0558-
1.5546240000.0651-
1.5578240500.0595-
1.5611241000.0669-
1.5643241500.0576-
1.5676242000.0498-
1.5708242500.0613-
1.5740243000.0544-
1.5773243500.0566-
1.5805244000.0613-
1.5838244500.0597-
1.5870245000.0525-
1.5902245500.0537-
1.5935246000.0613-
1.5967246500.0446-
1.5999247000.0597-
1.6032247500.0601-
1.6064248000.0521-
1.6097248500.0584-
1.6129249000.0591-
1.6161249500.0593-
1.6194250000.0562-
1.6226250500.0586-
1.6259251000.0593-
1.6291251500.0615-
1.6323252000.0492-
1.6356252500.0573-
1.6388253000.0631-
1.6421253500.0444-
1.6453254000.0587-
1.6485254500.0601-
1.6518255000.0565-
1.6550255500.0654-
1.6582256000.0558-
1.6615256500.0537-
1.6647257000.0504-
1.6680257500.0549-
1.6712258000.0517-
1.6744258500.0621-
1.6777259000.0468-
1.6809259500.059-
1.6842260000.0607-
1.6874260500.0616-
1.6906261000.0536-
1.6939261500.0619-
1.6971262000.0615-
1.7003262500.0497-
1.7036263000.0595-
1.7068263500.0563-
1.7101264000.0572-
1.7133264500.0525-
1.7165265000.0592-
1.7198265500.0645-
1.7230266000.0586-
1.7263266500.0511-
1.7295267000.0508-
1.7327267500.0572-
1.7360268000.0466-
1.7392268500.0532-
1.7425269000.0546-
1.7457269500.0594-
1.7489270000.0544-
1.7522270500.0543-
1.7554271000.0588-
1.7586271500.0552-
1.7619272000.0529-
1.7651272500.0558-
1.7684273000.0491-
1.7716273500.0669-
1.7748274000.056-
1.7781274500.0553-
1.7813275000.0565-
1.7846275500.063-
1.7878276000.0548-
1.7910276500.0541-
1.7943277000.0469-
1.7975277500.0493-
1.8008278000.0644-
1.8040278500.0557-
1.8072279000.0582-
1.8105279500.0517-
1.8137280000.0564-
1.8169280500.0591-
1.8202281000.0545-
1.8234281500.0486-
1.8267282000.0568-
1.8299282500.0461-
1.8331283000.0622-
1.8364283500.0499-
1.8396284000.0634-
1.8429284500.0584-
1.8461285000.0648-
1.8493285500.0628-
1.8526286000.057-
1.8558286500.0528-
1.8590287000.0521-
1.8623287500.0527-
1.8655288000.0457-
1.8688288500.0505-
1.8720289000.0508-
1.8752289500.0595-
1.8785290000.0558-
1.8817290500.0521-
1.8850291000.0475-
1.8882291500.054-
1.8914292000.0497-
1.8947292500.0637-
1.8979293000.0484-
1.9012293500.0649-
1.9044294000.0643-
1.9076294500.0484-
1.9109295000.0531-
1.9141295500.0527-
1.9173296000.0617-
1.9206296500.0469-
1.9238297000.0615-
1.9271297500.055-
1.9303298000.055-
1.9335298500.0658-
1.9368299000.0483-
1.9400299500.0559-
1.9433300000.0481-
1.9465300500.0719-
1.9497301000.0589-
1.9530301500.0498-
1.9562302000.049-
1.9595302500.0456-
1.9627303000.0551-
1.9659303500.0415-
1.9692304000.0607-
1.9724304500.0521-
1.9756305000.0545-
1.9789305500.0544-
1.9821306000.0535-
1.9854306500.0637-
1.9886307000.0555-
1.9918307500.0472-
1.9951308000.0544-
1.9983308500.0592-

Framework Versions

  • Python: 3.12.12
  • SetFit: 1.1.3
  • Sentence Transformers: 5.1.2
  • 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. -->