CoolFace
Modelpublic

faodl/model_cca_multilabel_mpnet-65max-full-poorf1

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes7downloads
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-full-poorf1")
# Run inference
preds = model("Build national capacity for rapid response to chemical spills and accidental releases.")

<!--

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

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.2365-
0.0029500.2043-
0.00581000.2145-
0.00871500.2015-
0.01162000.2071-
0.01452500.1914-
0.01753000.2113-
0.02043500.192-
0.02334000.1882-
0.02624500.1724-
0.02915000.1701-
0.03205500.1663-
0.03496000.1529-
0.03786500.1524-
0.04077000.1597-
0.04367500.1567-
0.04668000.1544-
0.04958500.1645-
0.05249000.1665-
0.05539500.1497-
0.058210000.1481-
0.061110500.1427-
0.064011000.1384-
0.066911500.1424-
0.069812000.1553-
0.072712500.1409-
0.075613000.1339-
0.078613500.1211-
0.081514000.1195-
0.084414500.121-
0.087315000.1444-
0.090215500.1215-
0.093116000.1355-
0.096016500.131-
0.098917000.1467-
0.101817500.133-
0.104718000.1255-
0.107718500.1343-
0.110619000.1254-
0.113519500.1345-
0.116420000.1447-
0.119320500.1157-
0.122221000.1223-
0.125121500.11-
0.128022000.1249-
0.130922500.1176-
0.133823000.1142-
0.136723500.1225-
0.139724000.1171-
0.142624500.1185-
0.145525000.1107-
0.148425500.1062-
0.151326000.1211-
0.154226500.1019-
0.157127000.111-
0.160027500.132-
0.162928000.1211-
0.165828500.1128-
0.168829000.1179-
0.171729500.1045-
0.174630000.1278-
0.177530500.1317-
0.180431000.1104-
0.183331500.1123-
0.186232000.1053-
0.189132500.1169-
0.192033000.1174-
0.194933500.1224-
0.197834000.1144-
0.200834500.0996-
0.203735000.1245-
0.206635500.1313-
0.209536000.1045-
0.212436500.1236-
0.215337000.1146-
0.218237500.1037-
0.221138000.1091-
0.224038500.0977-
0.226939000.1115-
0.229939500.1108-
0.232840000.1195-
0.235740500.1078-
0.238641000.1292-
0.241541500.0997-
0.244442000.0964-
0.247342500.1019-
0.250243000.1016-
0.253143500.1137-
0.256044000.0781-
0.258944500.1085-
0.261945000.1027-
0.264845500.0933-
0.267746000.1073-
0.270646500.0965-
0.273547000.0991-
0.276447500.0861-
0.279348000.1062-
0.282248500.1019-
0.285149000.0952-
0.288049500.1019-
0.291050000.0966-
0.293950500.1027-
0.296851000.0978-
0.299751500.0919-
0.302652000.0872-
0.305552500.0957-
0.308453000.0751-
0.311353500.0908-
0.314254000.0888-
0.317154500.0882-
0.320055000.0935-
0.323055500.0805-
0.325956000.0828-
0.328856500.081-
0.331757000.0983-
0.334657500.0908-
0.337558000.0839-
0.340458500.0788-
0.343359000.0857-
0.346259500.0874-
0.349160000.0922-
0.352160500.0874-
0.355061000.0894-
0.357961500.0881-
0.360862000.0818-
0.363762500.0712-
0.366663000.0776-
0.369563500.0661-
0.372464000.0802-
0.375364500.0879-
0.378265000.0804-
0.381165500.0875-
0.384166000.0965-
0.387066500.0696-
0.389967000.0674-
0.392867500.0876-
0.395768000.0811-
0.398668500.0848-
0.401569000.0664-
0.404469500.0819-
0.407370000.0636-
0.410270500.0723-
0.413271000.064-
0.416171500.0758-
0.419072000.0864-
0.421972500.0735-
0.424873000.0778-
0.427773500.0867-
0.430674000.0866-
0.433574500.0607-
0.436475000.0764-
0.439375500.0845-
0.442276000.0723-
0.445276500.0767-
0.448177000.074-
0.451077500.0699-
0.453978000.0755-
0.456878500.0598-
0.459779000.0733-
0.462679500.0731-
0.465580000.0811-
0.468480500.0679-
0.471381000.0708-
0.474381500.0615-
0.477282000.0652-
0.480182500.0655-
0.483083000.0642-
0.485983500.0797-
0.488884000.0652-
0.491784500.0627-
0.494685000.0468-
0.497585500.0736-
0.500486000.0757-
0.503386500.0761-
0.506387000.0666-
0.509287500.0771-
0.512188000.0677-
0.515088500.0601-
0.517989000.0638-
0.520889500.0707-
0.523790000.0738-
0.526690500.0655-
0.529591000.0596-
0.532491500.0483-
0.535492000.0701-
0.538392500.0592-
0.541293000.0617-
0.544193500.068-
0.547094000.0647-
0.549994500.0719-
0.552895000.0531-
0.555795500.057-
0.558696000.0608-
0.561596500.0723-
0.564497000.0528-
0.567497500.0719-
0.570398000.06-
0.573298500.0522-
0.576199000.0502-
0.579099500.0506-
0.5819100000.0691-
0.5848100500.0643-
0.5877101000.0644-
0.5906101500.0594-
0.5935102000.0458-
0.5965102500.0495-
0.5994103000.0664-
0.6023103500.0735-
0.6052104000.0637-
0.6081104500.0618-
0.6110105000.0529-
0.6139105500.067-
0.6168106000.0576-
0.6197106500.0554-
0.6226107000.0599-
0.6255107500.0785-
0.6285108000.056-
0.6314108500.0711-
0.6343109000.0562-
0.6372109500.0679-
0.6401110000.0589-
0.6430110500.056-
0.6459111000.0641-
0.6488111500.0557-
0.6517112000.0561-
0.6546112500.0653-
0.6576113000.0676-
0.6605113500.0533-
0.6634114000.0591-
0.6663114500.0588-
0.6692115000.0719-
0.6721115500.0481-
0.6750116000.0542-
0.6779116500.0596-
0.6808117000.0501-
0.6837117500.0572-
0.6866118000.0514-
0.6896118500.0418-
0.6925119000.0556-
0.6954119500.0479-
0.6983120000.0398-
0.7012120500.0495-
0.7041121000.0596-
0.7070121500.0387-
0.7099122000.0682-
0.7128122500.0647-
0.7157123000.0535-
0.7186123500.0478-
0.7216124000.045-
0.7245124500.0494-
0.7274125000.0551-
0.7303125500.0497-
0.7332126000.0531-
0.7361126500.0414-
0.7390127000.0576-
0.7419127500.0565-
0.7448128000.0507-
0.7477128500.0513-
0.7507129000.0342-
0.7536129500.0512-
0.7565130000.0497-
0.7594130500.0506-
0.7623131000.0458-
0.7652131500.0424-
0.7681132000.0583-
0.7710132500.0482-
0.7739133000.0562-
0.7768133500.0522-
0.7797134000.0435-
0.7827134500.052-
0.7856135000.04-
0.7885135500.0418-
0.7914136000.0619-
0.7943136500.0407-
0.7972137000.0472-
0.8001137500.0531-
0.8030138000.0487-
0.8059138500.0497-
0.8088139000.0356-
0.8118139500.0544-
0.8147140000.0429-
0.8176140500.0406-
0.8205141000.0471-
0.8234141500.0529-
0.8263142000.0388-
0.8292142500.0372-
0.8321143000.0515-
0.8350143500.0435-
0.8379144000.0428-
0.8408144500.0437-
0.8438145000.0386-
0.8467145500.0456-
0.8496146000.0544-
0.8525146500.0604-
0.8554147000.0515-
0.8583147500.0461-
0.8612148000.04-
0.8641148500.0528-
0.8670149000.0423-
0.8699149500.053-
0.8729150000.0385-
0.8758150500.0484-
0.8787151000.044-
0.8816151500.0464-
0.8845152000.045-
0.8874152500.0488-
0.8903153000.0476-
0.8932153500.0537-
0.8961154000.0433-
0.8990154500.043-
0.9019155000.0463-
0.9049155500.0367-
0.9078156000.0418-
0.9107156500.0471-
0.9136157000.0386-
0.9165157500.0436-
0.9194158000.041-
0.9223158500.044-
0.9252159000.0396-
0.9281159500.0388-
0.9310160000.0388-
0.9340160500.0414-
0.9369161000.0416-
0.9398161500.0328-
0.9427162000.0381-
0.9456162500.0426-
0.9485163000.0374-
0.9514163500.0471-
0.9543164000.0346-
0.9572164500.0418-
0.9601165000.0397-
0.9630165500.037-
0.9660166000.0303-
0.9689166500.0535-
0.9718167000.0451-
0.9747167500.0479-
0.9776168000.0419-
0.9805168500.0468-
0.9834169000.0551-
0.9863169500.0395-
0.9892170000.0312-
0.9921170500.0423-
0.9951171000.0337-
0.9980171500.0519-
1.0009172000.0393-
1.0038172500.0328-
1.0067173000.0322-
1.0096173500.0368-
1.0125174000.0465-
1.0154174500.0372-
1.0183175000.0353-
1.0212175500.0302-
1.0241176000.025-
1.0271176500.031-
1.0300177000.0345-
1.0329177500.032-
1.0358178000.0346-
1.0387178500.0375-
1.0416179000.0438-
1.0445179500.0464-
1.0474180000.0375-
1.0503180500.0305-
1.0532181000.0381-
1.0562181500.0447-
1.0591182000.0383-
1.0620182500.0319-
1.0649183000.0429-
1.0678183500.0353-
1.0707184000.0381-
1.0736184500.0421-
1.0765185000.0409-
1.0794185500.04-
1.0823186000.027-
1.0852186500.028-
1.0882187000.0392-
1.0911187500.0326-
1.0940188000.0364-
1.0969188500.0366-
1.0998189000.0354-
1.1027189500.0397-
1.1056190000.0408-
1.1085190500.0322-
1.1114191000.0286-
1.1143191500.0386-
1.1173192000.0448-
1.1202192500.0423-
1.1231193000.041-
1.1260193500.0324-
1.1289194000.039-
1.1318194500.0365-
1.1347195000.0314-
1.1376195500.035-
1.1405196000.0362-
1.1434196500.0357-
1.1463197000.0354-
1.1493197500.0309-
1.1522198000.0389-
1.1551198500.0455-
1.1580199000.0362-
1.1609199500.0318-
1.1638200000.0372-
1.1667200500.0417-
1.1696201000.0301-
1.1725201500.0391-
1.1754202000.0286-
1.1784202500.0398-
1.1813203000.0263-
1.1842203500.038-
1.1871204000.0317-
1.1900204500.0347-
1.1929205000.0353-
1.1958205500.0421-
1.1987206000.0307-
1.2016206500.0284-
1.2045207000.0324-
1.2074207500.029-
1.2104208000.027-
1.2133208500.0284-
1.2162209000.0291-
1.2191209500.0332-
1.2220210000.0312-
1.2249210500.0442-
1.2278211000.0235-
1.2307211500.0385-
1.2336212000.0292-
1.2365212500.0379-
1.2395213000.0395-
1.2424213500.0219-
1.2453214000.0295-
1.2482214500.032-
1.2511215000.0274-
1.2540215500.0273-
1.2569216000.0314-
1.2598216500.0424-
1.2627217000.0374-
1.2656217500.0232-
1.2685218000.03-
1.2715218500.0325-
1.2744219000.042-
1.2773219500.0295-
1.2802220000.0313-
1.2831220500.034-
1.2860221000.0238-
1.2889221500.034-
1.2918222000.0272-
1.2947222500.0277-
1.2976223000.0367-
1.3006223500.0327-
1.3035224000.0409-
1.3064224500.0336-
1.3093225000.0251-
1.3122225500.0307-
1.3151226000.0428-
1.3180226500.0334-
1.3209227000.0345-
1.3238227500.0413-
1.3267228000.0247-
1.3296228500.0244-
1.3326229000.035-
1.3355229500.022-
1.3384230000.0325-
1.3413230500.0306-
1.3442231000.0275-
1.3471231500.0375-
1.3500232000.034-
1.3529232500.0326-
1.3558233000.0338-
1.3587233500.0382-
1.3617234000.0249-
1.3646234500.0331-
1.3675235000.0362-
1.3704235500.0256-
1.3733236000.0376-
1.3762236500.0304-
1.3791237000.0282-
1.3820237500.0285-
1.3849238000.0388-
1.3878238500.0279-
1.3907239000.0326-
1.3937239500.0334-
1.3966240000.0336-
1.3995240500.0273-
1.4024241000.0313-
1.4053241500.0332-
1.4082242000.0244-
1.4111242500.0341-
1.4140243000.0299-
1.4169243500.0382-
1.4198244000.0289-
1.4228244500.0289-
1.4257245000.0275-
1.4286245500.0327-
1.4315246000.031-
1.4344246500.0266-
1.4373247000.0391-
1.4402247500.0378-
1.4431248000.0317-
1.4460248500.0198-
1.4489249000.0231-
1.4518249500.0271-
1.4548250000.0326-
1.4577250500.0307-
1.4606251000.0279-
1.4635251500.0287-
1.4664252000.0296-
1.4693252500.0228-
1.4722253000.0273-
1.4751253500.0345-
1.4780254000.0208-
1.4809254500.0358-
1.4839255000.0291-
1.4868255500.0384-
1.4897256000.0249-
1.4926256500.0361-
1.4955257000.0353-
1.4984257500.0243-
1.5013258000.0264-
1.5042258500.0241-
1.5071259000.0225-
1.5100259500.0238-
1.5129260000.0303-
1.5159260500.0268-
1.5188261000.0266-
1.5217261500.0262-
1.5246262000.0261-
1.5275262500.0363-
1.5304263000.0165-
1.5333263500.0244-
1.5362264000.0348-
1.5391264500.032-
1.5420265000.0367-
1.5450265500.0263-
1.5479266000.0335-
1.5508266500.0222-
1.5537267000.0406-
1.5566267500.044-
1.5595268000.0325-
1.5624268500.0227-
1.5653269000.0246-
1.5682269500.0245-
1.5711270000.0225-
1.5740270500.0256-
1.5770271000.0239-
1.5799271500.0317-
1.5828272000.0283-
1.5857272500.0237-
1.5886273000.0282-
1.5915273500.0258-
1.5944274000.024-
1.5973274500.0307-
1.6002275000.0247-
1.6031275500.0326-
1.6061276000.0257-
1.6090276500.0259-
1.6119277000.0264-
1.6148277500.0283-
1.6177278000.0218-
1.6206278500.0218-
1.6235279000.0205-
1.6264279500.0293-
1.6293280000.0194-
1.6322280500.0293-
1.6351281000.0251-
1.6381281500.0313-
1.6410282000.0274-
1.6439282500.0308-
1.6468283000.0244-
1.6497283500.0264-
1.6526284000.0278-
1.6555284500.0327-
1.6584285000.0331-
1.6613285500.0305-
1.6642286000.0309-
1.6672286500.0236-
1.6701287000.0259-
1.6730287500.0202-
1.6759288000.0272-
1.6788288500.0364-
1.6817289000.0386-
1.6846289500.0233-
1.6875290000.0265-
1.6904290500.0233-
1.6933291000.0292-
1.6962291500.0277-
1.6992292000.0237-
1.7021292500.0333-
1.7050293000.0251-
1.7079293500.0234-
1.7108294000.0177-
1.7137294500.0328-
1.7166295000.0223-
1.7195295500.0284-
1.7224296000.0261-
1.7253296500.0263-
1.7283297000.0327-
1.7312297500.0226-
1.7341298000.0313-
1.7370298500.0261-
1.7399299000.0287-
1.7428299500.0218-
1.7457300000.0209-
1.7486300500.0258-
1.7515301000.0234-
1.7544301500.0382-
1.7573302000.0326-
1.7603302500.03-
1.7632303000.0223-
1.7661303500.0335-
1.7690304000.0229-
1.7719304500.0263-
1.7748305000.0278-
1.7777305500.0229-
1.7806306000.0431-
1.7835306500.0222-
1.7864307000.0313-
1.7894307500.0326-
1.7923308000.0257-
1.7952308500.0277-
1.7981309000.0276-
1.8010309500.0245-
1.8039310000.03-
1.8068310500.0245-
1.8097311000.0299-
1.8126311500.0263-
1.8155312000.0325-
1.8184312500.0241-
1.8214313000.0199-
1.8243313500.0292-
1.8272314000.0311-
1.8301314500.0302-
1.8330315000.0232-
1.8359315500.0259-
1.8388316000.0188-
1.8417316500.0185-
1.8446317000.0231-
1.8475317500.0268-
1.8505318000.0339-
1.8534318500.0294-
1.8563319000.0352-
1.8592319500.0247-
1.8621320000.0209-
1.8650320500.034-
1.8679321000.0262-
1.8708321500.0276-
1.8737322000.0303-
1.8766322500.0274-
1.8795323000.0225-
1.8825323500.0208-
1.8854324000.0206-
1.8883324500.0247-
1.8912325000.0275-
1.8941325500.0203-
1.8970326000.0311-
1.8999326500.03-
1.9028327000.0235-
1.9057327500.0268-
1.9086328000.0264-
1.9116328500.0469-
1.9145329000.0321-
1.9174329500.0187-
1.9203330000.0172-
1.9232330500.0225-
1.9261331000.0353-
1.9290331500.0368-
1.9319332000.026-
1.9348332500.0234-
1.9377333000.0285-
1.9406333500.0184-
1.9436334000.0237-
1.9465334500.0266-
1.9494335000.0251-
1.9523335500.0214-
1.9552336000.0278-
1.9581336500.0214-
1.9610337000.0298-
1.9639337500.0207-
1.9668338000.0276-
1.9697338500.0213-
1.9727339000.0309-
1.9756339500.027-
1.9785340000.0334-
1.9814340500.0193-
1.9843341000.0254-
1.9872341500.0266-
1.9901342000.0311-
1.9930342500.0183-
1.9959343000.0193-
1.9988343500.0328-

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