Team Ai
Modelpublic

faodl/model_cca_multilabel_MiniLM-L12-75max-data-augmented-v03

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes15downloads
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 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-75max-data-augmented-v03")
# Run inference
preds = model("Develop cross-cutting gender, youth, and disability considerations in market infrastructure planning.")

<!--

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 count146.8162951

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.2621-
0.0028500.2218-
0.00561000.2242-
0.00841500.2169-
0.01122000.2096-
0.01402500.2046-
0.01683000.1913-
0.01973500.1954-
0.02254000.1884-
0.02534500.1936-
0.02815000.192-
0.03095500.1829-
0.03376000.1939-
0.03656500.1765-
0.03937000.1784-
0.04217500.1718-
0.04498000.1808-
0.04778500.1677-
0.05059000.1644-
0.05349500.1632-
0.056210000.176-
0.059010500.1711-
0.061811000.166-
0.064611500.1542-
0.067412000.1598-
0.070212500.1422-
0.073013000.1605-
0.075813500.1638-
0.078614000.1408-
0.081414500.147-
0.084215000.1483-
0.087115500.1717-
0.089916000.1593-
0.092716500.1566-
0.095517000.1552-
0.098317500.1467-
0.101118000.1531-
0.103918500.1352-
0.106719000.1544-
0.109519500.1485-
0.112320000.1302-
0.115120500.1456-
0.117921000.1413-
0.120821500.1489-
0.123622000.1492-
0.126422500.1458-
0.129223000.1313-
0.132023500.1492-
0.134824000.1424-
0.137624500.1356-
0.140425000.1453-
0.143225500.155-
0.146026000.1442-
0.148826500.1394-
0.151627000.152-
0.154527500.1264-
0.157328000.1508-
0.160128500.1362-
0.162929000.1369-
0.165729500.1279-
0.168530000.1384-
0.171330500.1291-
0.174131000.1309-
0.176931500.1312-
0.179732000.1434-
0.182532500.1374-
0.185333000.141-
0.188133500.1288-
0.191034000.1268-
0.193834500.1494-
0.196635000.1422-
0.199435500.1338-
0.202236000.1312-
0.205036500.1278-
0.207837000.1221-
0.210637500.1352-
0.213438000.131-
0.216238500.1332-
0.219039000.1268-
0.221839500.1239-
0.224740000.1319-
0.227540500.1274-
0.230341000.1364-
0.233141500.1224-
0.235942000.1371-
0.238742500.1321-
0.241543000.1307-
0.244343500.1254-
0.247144000.1241-
0.249944500.1303-
0.252745000.1323-
0.255545500.1209-
0.258446000.1264-
0.261246500.1328-
0.264047000.1344-
0.266847500.1263-
0.269648000.1117-
0.272448500.1351-
0.275249000.1271-
0.278049500.1242-
0.280850000.1299-
0.283650500.1194-
0.286451000.128-
0.289251500.148-
0.292152000.1151-
0.294952500.1123-
0.297753000.1263-
0.300553500.1195-
0.303354000.13-
0.306154500.1089-
0.308955000.1302-
0.311755500.1212-
0.314556000.1165-
0.317356500.1275-
0.320157000.113-
0.322957500.1128-
0.325858000.1063-
0.328658500.1301-
0.331459000.1217-
0.334259500.117-
0.337060000.124-
0.339860500.1234-
0.342661000.1098-
0.345461500.0997-
0.348262000.1225-
0.351062500.1148-
0.353863000.1246-
0.356663500.117-
0.359464000.124-
0.362364500.1231-
0.365165000.1146-
0.367965500.1281-
0.370766000.1205-
0.373566500.1154-
0.376367000.1095-
0.379167500.1267-
0.381968000.1167-
0.384768500.0973-
0.387569000.0991-
0.390369500.1137-
0.393170000.105-
0.396070500.1131-
0.398871000.1197-
0.401671500.1055-
0.404472000.1057-
0.407272500.1242-
0.410073000.126-
0.412873500.0909-
0.415674000.1154-
0.418474500.1104-
0.421275000.108-
0.424075500.1187-
0.426876000.1092-
0.429776500.09-
0.432577000.108-
0.435377500.0974-
0.438178000.1043-
0.440978500.1088-
0.443779000.1026-
0.446579500.1093-
0.449380000.1067-
0.452180500.1195-
0.454981000.1009-
0.457781500.1045-
0.460582000.0992-
0.463482500.1108-
0.466283000.1034-
0.469083500.1126-
0.471884000.1117-
0.474684500.0948-
0.477485000.1068-
0.480285500.1128-
0.483086000.113-
0.485886500.1016-
0.488687000.1042-
0.491487500.102-
0.494288000.1069-
0.497188500.096-
0.499989000.0929-
0.502789500.1114-
0.505590000.0962-
0.508390500.1013-
0.511191000.1068-
0.513991500.103-
0.516792000.0991-
0.519592500.0933-
0.522393000.1008-
0.525193500.0943-
0.527994000.1088-
0.530794500.1025-
0.533695000.1044-
0.536495500.0978-
0.539296000.1039-
0.542096500.096-
0.544897000.0867-
0.547697500.1082-
0.550498000.0937-
0.553298500.0958-
0.556099000.0985-
0.558899500.0898-
0.5616100000.0937-
0.5644100500.0999-
0.5673101000.0917-
0.5701101500.0947-
0.5729102000.0962-
0.5757102500.0991-
0.5785103000.0863-
0.5813103500.1043-
0.5841104000.0979-
0.5869104500.091-
0.5897105000.0952-
0.5925105500.1068-
0.5953106000.0986-
0.5981106500.0943-
0.6010107000.0985-
0.6038107500.1058-
0.6066108000.0815-
0.6094108500.1051-
0.6122109000.0937-
0.6150109500.0813-
0.6178110000.0903-
0.6206110500.1062-
0.6234111000.0948-
0.6262111500.0954-
0.6290112000.0982-
0.6318112500.0907-
0.6347113000.0905-
0.6375113500.0926-
0.6403114000.0965-
0.6431114500.0939-
0.6459115000.0979-
0.6487115500.0869-
0.6515116000.0999-
0.6543116500.0793-
0.6571117000.0911-
0.6599117500.0914-
0.6627118000.0832-
0.6655118500.0972-
0.6684119000.0852-
0.6712119500.101-
0.6740120000.0987-
0.6768120500.0905-
0.6796121000.0867-
0.6824121500.0811-
0.6852122000.0795-
0.6880122500.0936-
0.6908123000.0888-
0.6936123500.0876-
0.6964124000.1076-
0.6992124500.0961-
0.7020125000.0937-
0.7049125500.0921-
0.7077126000.095-
0.7105126500.1013-
0.7133127000.0896-
0.7161127500.1058-
0.7189128000.0883-
0.7217128500.0814-
0.7245129000.0889-
0.7273129500.0965-
0.7301130000.098-
0.7329130500.093-
0.7357131000.0965-
0.7386131500.0791-
0.7414132000.0891-
0.7442132500.0814-
0.7470133000.0969-
0.7498133500.0871-
0.7526134000.0899-
0.7554134500.0992-
0.7582135000.0768-
0.7610135500.0894-
0.7638136000.0842-
0.7666136500.0763-
0.7694137000.0897-
0.7723137500.0919-
0.7751138000.0811-
0.7779138500.0818-
0.7807139000.076-
0.7835139500.0833-
0.7863140000.0888-
0.7891140500.0859-
0.7919141000.0983-
0.7947141500.079-
0.7975142000.0902-
0.8003142500.1025-
0.8031143000.081-
0.8060143500.0805-
0.8088144000.089-
0.8116144500.1018-
0.8144145000.0947-
0.8172145500.0816-
0.8200146000.0888-
0.8228146500.0878-
0.8256147000.0924-
0.8284147500.0802-
0.8312148000.0784-
0.8340148500.0781-
0.8368149000.0816-
0.8397149500.0813-
0.8425150000.0854-
0.8453150500.0984-
0.8481151000.0917-
0.8509151500.0829-
0.8537152000.0825-
0.8565152500.0854-
0.8593153000.094-
0.8621153500.0792-
0.8649154000.0824-
0.8677154500.0875-
0.8705155000.0834-
0.8734155500.0875-
0.8762156000.0878-
0.8790156500.1021-
0.8818157000.0748-
0.8846157500.0902-
0.8874158000.0925-
0.8902158500.0875-
0.8930159000.0779-
0.8958159500.0926-
0.8986160000.0761-
0.9014160500.0849-
0.9042161000.1001-
0.9070161500.0732-
0.9099162000.0765-
0.9127162500.0813-
0.9155163000.0937-
0.9183163500.0723-
0.9211164000.0805-
0.9239164500.0868-
0.9267165000.0792-
0.9295165500.0842-
0.9323166000.0797-
0.9351166500.1016-
0.9379167000.0748-
0.9407167500.0815-
0.9436168000.0696-
0.9464168500.0777-
0.9492169000.0833-
0.9520169500.0692-
0.9548170000.0648-
0.9576170500.0859-
0.9604171000.0832-
0.9632171500.0817-
0.9660172000.0771-
0.9688172500.075-
0.9716173000.0844-
0.9744173500.0807-
0.9773174000.082-
0.9801174500.0824-
0.9829175000.0874-
0.9857175500.0796-
0.9885176000.0772-
0.9913176500.0881-
0.9941177000.0703-
0.9969177500.0644-
0.9997178000.0779-
1.0025178500.0772-
1.0053179000.07-
1.0081179500.0775-
1.0110180000.0652-
1.0138180500.0718-
1.0166181000.0726-
1.0194181500.0792-
1.0222182000.076-
1.0250182500.0845-
1.0278183000.0648-
1.0306183500.0787-
1.0334184000.0707-
1.0362184500.0701-
1.0390185000.0741-
1.0418185500.0638-
1.0447186000.071-
1.0475186500.0836-
1.0503187000.0693-
1.0531187500.056-
1.0559188000.0821-
1.0587188500.0738-
1.0615189000.0793-
1.0643189500.0739-
1.0671190000.0839-
1.0699190500.0789-
1.0727191000.0752-
1.0755191500.0783-
1.0783192000.0697-
1.0812192500.0759-
1.0840193000.0727-
1.0868193500.0742-
1.0896194000.0668-
1.0924194500.0838-
1.0952195000.0738-
1.0980195500.0869-
1.1008196000.072-
1.1036196500.068-
1.1064197000.0738-
1.1092197500.07-
1.1120198000.0685-
1.1149198500.0728-
1.1177199000.0715-
1.1205199500.0749-
1.1233200000.0743-
1.1261200500.0699-
1.1289201000.0814-
1.1317201500.0754-
1.1345202000.0633-
1.1373202500.0842-
1.1401203000.0693-
1.1429203500.0775-
1.1457204000.0658-
1.1486204500.0747-
1.1514205000.0606-
1.1542205500.0673-
1.1570206000.0679-
1.1598206500.0783-
1.1626207000.0728-
1.1654207500.0787-
1.1682208000.0688-
1.1710208500.0693-
1.1738209000.0717-
1.1766209500.0765-
1.1794210000.0702-
1.1823210500.0743-
1.1851211000.0813-
1.1879211500.0649-
1.1907212000.0799-
1.1935212500.0695-
1.1963213000.0747-
1.1991213500.0685-
1.2019214000.0703-
1.2047214500.063-
1.2075215000.0745-
1.2103215500.0815-
1.2131216000.0739-
1.2160216500.0646-
1.2188217000.0758-
1.2216217500.0711-
1.2244218000.069-
1.2272218500.0679-
1.2300219000.0765-
1.2328219500.0801-
1.2356220000.0765-
1.2384220500.0718-
1.2412221000.0619-
1.2440221500.0683-
1.2468222000.061-
1.2496222500.0813-
1.2525223000.0732-
1.2553223500.0757-
1.2581224000.0591-
1.2609224500.0574-
1.2637225000.0729-
1.2665225500.0682-
1.2693226000.0679-
1.2721226500.0732-
1.2749227000.0801-
1.2777227500.0682-
1.2805228000.0642-
1.2833228500.0563-
1.2862229000.0652-
1.2890229500.0723-
1.2918230000.0692-
1.2946230500.0673-
1.2974231000.0778-
1.3002231500.0615-
1.3030232000.0673-
1.3058232500.0739-
1.3086233000.0755-
1.3114233500.0682-
1.3142234000.0645-
1.3170234500.0701-
1.3199235000.0673-
1.3227235500.0767-
1.3255236000.071-
1.3283236500.0712-
1.3311237000.0628-
1.3339237500.0664-
1.3367238000.0639-
1.3395238500.0537-
1.3423239000.061-
1.3451239500.0728-
1.3479240000.0589-
1.3507240500.0677-
1.3536241000.0773-
1.3564241500.0716-
1.3592242000.0765-
1.3620242500.0665-
1.3648243000.0824-
1.3676243500.0673-
1.3704244000.0678-
1.3732244500.0617-
1.3760245000.0779-
1.3788245500.0701-
1.3816246000.0691-
1.3844246500.071-
1.3873247000.0741-
1.3901247500.073-
1.3929248000.0516-
1.3957248500.0683-
1.3985249000.0595-
1.4013249500.0621-
1.4041250000.064-
1.4069250500.0642-
1.4097251000.0702-
1.4125251500.0736-
1.4153252000.0656-
1.4181252500.0687-
1.4209253000.0635-
1.4238253500.0748-
1.4266254000.0728-
1.4294254500.0616-
1.4322255000.0695-
1.4350255500.062-
1.4378256000.0651-
1.4406256500.0676-
1.4434257000.0677-
1.4462257500.0668-
1.4490258000.0567-
1.4518258500.0661-
1.4546259000.0695-
1.4575259500.0692-
1.4603260000.0823-
1.4631260500.069-
1.4659261000.0648-
1.4687261500.0661-
1.4715262000.0705-
1.4743262500.0622-
1.4771263000.0734-
1.4799263500.0649-
1.4827264000.0667-
1.4855264500.0692-
1.4883265000.0661-
1.4912265500.0731-
1.4940266000.0775-
1.4968266500.0706-
1.4996267000.0652-
1.5024267500.0669-
1.5052268000.0709-
1.5080268500.0614-
1.5108269000.0708-
1.5136269500.0578-
1.5164270000.0756-
1.5192270500.0609-
1.5220271000.0602-
1.5249271500.0656-
1.5277272000.0669-
1.5305272500.086-
1.5333273000.068-
1.5361273500.0648-
1.5389274000.0735-
1.5417274500.0744-
1.5445275000.0697-
1.5473275500.0788-
1.5501276000.0566-
1.5529276500.0759-
1.5557277000.0773-
1.5586277500.0553-
1.5614278000.0744-
1.5642278500.0581-
1.5670279000.0742-
1.5698279500.0662-
1.5726280000.065-
1.5754280500.0686-
1.5782281000.0581-
1.5810281500.0585-
1.5838282000.0621-
1.5866282500.0638-
1.5894283000.0674-
1.5922283500.0693-
1.5951284000.07-
1.5979284500.0756-
1.6007285000.0584-
1.6035285500.0731-
1.6063286000.0737-
1.6091286500.0579-
1.6119287000.0677-
1.6147287500.0648-
1.6175288000.0662-
1.6203288500.0725-
1.6231289000.0648-
1.6259289500.0691-
1.6288290000.0647-
1.6316290500.0597-
1.6344291000.07-
1.6372291500.0754-
1.6400292000.0564-
1.6428292500.0591-
1.6456293000.084-
1.6484293500.0651-
1.6512294000.0709-
1.6540294500.0774-
1.6568295000.0598-
1.6596295500.0746-
1.6625296000.075-
1.6653296500.0567-
1.6681297000.0667-
1.6709297500.0581-
1.6737298000.0747-
1.6765298500.0649-
1.6793299000.055-
1.6821299500.0543-
1.6849300000.0794-
1.6877300500.0736-
1.6905301000.0576-
1.6933301500.0635-
1.6962302000.0626-
1.6990302500.0631-
1.7018303000.0688-
1.7046303500.0617-
1.7074304000.0653-
1.7102304500.0643-
1.7130305000.0694-
1.7158305500.0776-
1.7186306000.0683-
1.7214306500.0619-
1.7242307000.0582-
1.7270307500.0597-
1.7299308000.0621-
1.7327308500.0575-
1.7355309000.0604-
1.7383309500.0795-
1.7411310000.0559-
1.7439310500.0587-
1.7467311000.0758-
1.7495311500.0592-
1.7523312000.0676-
1.7551312500.0666-
1.7579313000.0568-
1.7607313500.0652-
1.7635314000.0571-
1.7664314500.0581-
1.7692315000.0482-
1.7720315500.0714-
1.7748316000.0623-
1.7776316500.0615-
1.7804317000.0566-
1.7832317500.0548-
1.7860318000.0608-
1.7888318500.0602-
1.7916319000.0556-
1.7944319500.0613-
1.7972320000.0631-
1.8001320500.0621-
1.8029321000.0591-
1.8057321500.0525-
1.8085322000.0658-
1.8113322500.0634-
1.8141323000.0604-
1.8169323500.0698-
1.8197324000.056-
1.8225324500.0591-
1.8253325000.0698-
1.8281325500.0653-
1.8309326000.0649-
1.8338326500.0687-
1.8366327000.0602-
1.8394327500.056-
1.8422328000.0661-
1.8450328500.058-
1.8478329000.0535-
1.8506329500.0585-
1.8534330000.0534-
1.8562330500.0688-
1.8590331000.0628-
1.8618331500.0604-
1.8646332000.0756-
1.8675332500.0602-
1.8703333000.0768-
1.8731333500.0625-
1.8759334000.058-
1.8787334500.06-
1.8815335000.0532-
1.8843335500.0712-
1.8871336000.0635-
1.8899336500.0747-
1.8927337000.0599-
1.8955337500.0609-
1.8983338000.0563-
1.9012338500.0667-
1.9040339000.0616-
1.9068339500.0587-
1.9096340000.0581-
1.9124340500.0692-
1.9152341000.0579-
1.9180341500.0578-
1.9208342000.0668-
1.9236342500.0586-
1.9264343000.0552-
1.9292343500.0612-
1.9320344000.0588-
1.9348344500.0765-
1.9377345000.0633-
1.9405345500.0622-
1.9433346000.0662-
1.9461346500.0664-
1.9489347000.0737-
1.9517347500.0636-
1.9545348000.0667-
1.9573348500.066-
1.9601349000.0634-
1.9629349500.0611-
1.9657350000.0614-
1.9685350500.0636-
1.9714351000.0555-
1.9742351500.0504-
1.9770352000.0663-
1.9798352500.0706-
1.9826353000.0774-
1.9854353500.0637-
1.9882354000.058-
1.9910354500.0604-
1.9938355000.0584-
1.9966355500.0721-
1.9994356000.053-

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