Team Ai
Modelpublic

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

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 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-v02")
# Run inference
preds = model("Mechanization investment will be integrated with soil health and water management programs, ensuring appropriate machinery selection to avoid soil compaction and water wastage.")

<!--

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

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.2114-
0.0045500.2069-
0.00911000.2029-
0.01361500.2025-
0.01812000.1984-
0.02262500.1848-
0.02723000.1784-
0.03173500.176-
0.03624000.1743-
0.04084500.1579-
0.04535000.149-
0.04985500.1532-
0.05436000.1551-
0.05896500.1483-
0.06347000.1474-
0.06797500.1444-
0.07258000.1363-
0.07708500.1269-
0.08159000.1541-
0.08619500.1256-
0.090610000.1457-
0.095110500.131-
0.099611000.1224-
0.104211500.1357-
0.108712000.1341-
0.113212500.1371-
0.117813000.1305-
0.122313500.1165-
0.126814000.1191-
0.131314500.1247-
0.135915000.1209-
0.140415500.129-
0.144916000.1161-
0.149516500.1215-
0.154017000.1213-
0.158517500.1193-
0.163018000.1126-
0.167618500.1253-
0.172119000.1135-
0.176619500.1032-
0.181220000.0998-
0.185720500.116-
0.190221000.1088-
0.194721500.104-
0.199322000.1139-
0.203822500.1084-
0.208323000.1043-
0.212923500.1149-
0.217424000.1022-
0.221924500.1106-
0.226425000.1028-
0.231025500.0986-
0.235526000.0965-
0.240026500.1047-
0.244627000.1007-
0.249127500.0979-
0.253628000.0967-
0.258228500.0999-
0.262729000.1025-
0.267229500.0938-
0.271730000.0923-
0.276330500.0885-
0.280831000.0953-
0.285331500.0931-
0.289932000.095-
0.294432500.0945-
0.298933000.0919-
0.303433500.0975-
0.308034000.0906-
0.312534500.0977-
0.317035000.0952-
0.321635500.0851-
0.326136000.0883-
0.330636500.0852-
0.335137000.082-
0.339737500.0901-
0.344238000.0778-
0.348738500.0819-
0.353339000.0804-
0.357839500.083-
0.362340000.0855-
0.366840500.0828-
0.371441000.0899-
0.375941500.0875-
0.380442000.0816-
0.385042500.09-
0.389543000.0782-
0.394043500.0831-
0.398644000.0795-
0.403144500.0807-
0.407645000.0809-
0.412145500.0763-
0.416746000.08-
0.421246500.0731-
0.425747000.0759-
0.430347500.0758-
0.434848000.0791-
0.439348500.0731-
0.443849000.0774-
0.448449500.0781-
0.452950000.0783-
0.457450500.0852-
0.462051000.0771-
0.466551500.0813-
0.471052000.0795-
0.475552500.0725-
0.480153000.0751-
0.484653500.0756-
0.489154000.0715-
0.493754500.0643-
0.498255000.0675-
0.502755500.0769-
0.507256000.0761-
0.511856500.0739-
0.516357000.0716-
0.520857500.0706-
0.525458000.0719-
0.529958500.0721-
0.534459000.068-
0.538959500.0626-
0.543560000.0679-
0.548060500.0713-
0.552561000.0692-
0.557161500.0728-
0.561662000.0622-
0.566162500.0686-
0.570763000.073-
0.575263500.0563-
0.579764000.0621-
0.584264500.0699-
0.588865000.0691-
0.593365500.0676-
0.597866000.0621-
0.602466500.0693-
0.606967000.0708-
0.611467500.0672-
0.615968000.0728-
0.620568500.0629-
0.62569000.0694-
0.629569500.063-
0.634170000.0591-
0.638670500.0663-
0.643171000.0722-
0.647671500.0576-
0.652272000.0604-
0.656772500.0632-
0.661273000.0709-
0.665873500.0649-
0.670374000.0611-
0.674874500.0597-
0.679375000.0712-
0.683975500.0668-
0.688476000.0664-
0.692976500.0664-
0.697577000.0622-
0.702077500.0601-
0.706578000.0582-
0.711178500.0622-
0.715679000.0648-
0.720179500.064-
0.724680000.0624-
0.729280500.0622-
0.733781000.0596-
0.738281500.0633-
0.742882000.0532-
0.747382500.0565-
0.751883000.0724-
0.756383500.0559-
0.760984000.064-
0.765484500.0603-
0.769985000.059-
0.774585500.0543-
0.779086000.0568-
0.783586500.0638-
0.788087000.0578-
0.792687500.0692-
0.797188000.0608-
0.801688500.0652-
0.806289000.061-
0.810789500.0581-
0.815290000.0627-
0.819790500.0656-
0.824391000.0579-
0.828891500.0626-
0.833392000.0587-
0.837992500.0625-
0.842493000.051-
0.846993500.0553-
0.851494000.0507-
0.856094500.0521-
0.860595000.0548-
0.865095500.0536-
0.869696000.0517-
0.874196500.0569-
0.878697000.0572-
0.883297500.0553-
0.887798000.0567-
0.892298500.0594-
0.896799000.0598-
0.901399500.0548-
0.9058100000.0563-
0.9103100500.0466-
0.9149101000.0561-
0.9194101500.0533-
0.9239102000.0569-
0.9284102500.0484-
0.9330103000.0563-
0.9375103500.0597-
0.9420104000.0556-
0.9466104500.0542-
0.9511105000.0528-
0.9556105500.0652-
0.9601106000.0541-
0.9647106500.0581-
0.9692107000.0529-
0.9737107500.0497-
0.9783108000.0591-
0.9828108500.055-
0.9873109000.0464-
0.9918109500.0529-
0.9964110000.0562-
1.0009110500.0508-
1.0054111000.0447-
1.0100111500.0493-
1.0145112000.0526-
1.0190112500.0476-
1.0236113000.0469-
1.0281113500.0465-
1.0326114000.0484-
1.0371114500.0492-
1.0417115000.0518-
1.0462115500.0554-
1.0507116000.0533-
1.0553116500.0558-
1.0598117000.0517-
1.0643117500.0536-
1.0688118000.051-
1.0734118500.0512-
1.0779119000.0531-
1.0824119500.0496-
1.0870120000.0471-
1.0915120500.0492-
1.0960121000.0444-
1.1005121500.0441-
1.1051122000.053-
1.1096122500.048-
1.1141123000.044-
1.1187123500.0482-
1.1232124000.0486-
1.1277124500.0475-
1.1322125000.0484-
1.1368125500.0512-
1.1413126000.0534-
1.1458126500.0532-
1.1504127000.0422-
1.1549127500.0487-
1.1594128000.0489-
1.1639128500.0558-
1.1685129000.0506-
1.1730129500.0497-
1.1775130000.0593-
1.1821130500.0476-
1.1866131000.0435-
1.1911131500.0553-
1.1957132000.0527-
1.2002132500.0535-
1.2047133000.0469-
1.2092133500.054-
1.2138134000.0476-
1.2183134500.0507-
1.2228135000.0497-
1.2274135500.0519-
1.2319136000.0444-
1.2364136500.0516-
1.2409137000.0494-
1.2455137500.0425-
1.25138000.0487-
1.2545138500.0509-
1.2591139000.0523-
1.2636139500.0446-
1.2681140000.0478-
1.2726140500.0439-
1.2772141000.0518-
1.2817141500.0505-
1.2862142000.0497-
1.2908142500.0554-
1.2953143000.0482-
1.2998143500.0427-
1.3043144000.05-
1.3089144500.0477-
1.3134145000.0463-
1.3179145500.0448-
1.3225146000.045-
1.3270146500.0437-
1.3315147000.0467-
1.3361147500.0435-
1.3406148000.043-
1.3451148500.0486-
1.3496149000.049-
1.3542149500.0471-
1.3587150000.0455-
1.3632150500.0428-
1.3678151000.0425-
1.3723151500.0465-
1.3768152000.0452-
1.3813152500.0487-
1.3859153000.045-
1.3904153500.0431-
1.3949154000.0512-
1.3995154500.0411-
1.4040155000.0495-
1.4085155500.0406-
1.4130156000.0445-
1.4176156500.0496-
1.4221157000.0497-
1.4266157500.0466-
1.4312158000.0479-
1.4357158500.0448-
1.4402159000.0453-
1.4447159500.0486-
1.4493160000.0519-
1.4538160500.06-
1.4583161000.045-
1.4629161500.0421-
1.4674162000.0501-
1.4719162500.0525-
1.4764163000.0444-
1.4810163500.0422-
1.4855164000.0428-
1.4900164500.0398-
1.4946165000.0412-
1.4991165500.0482-
1.5036166000.046-
1.5082166500.0502-
1.5127167000.048-
1.5172167500.0447-
1.5217168000.0419-
1.5263168500.0429-
1.5308169000.0533-
1.5353169500.0482-
1.5399170000.0519-
1.5444170500.0503-
1.5489171000.0432-
1.5534171500.0388-
1.5580172000.0537-
1.5625172500.0477-
1.5670173000.0444-
1.5716173500.0407-
1.5761174000.0463-
1.5806174500.0417-
1.5851175000.0403-
1.5897175500.0481-
1.5942176000.0485-
1.5987176500.0462-
1.6033177000.0383-
1.6078177500.0429-
1.6123178000.0413-
1.6168178500.0421-
1.6214179000.0409-
1.6259179500.0436-
1.6304180000.0468-
1.6350180500.0446-
1.6395181000.0389-
1.6440181500.0443-
1.6486182000.0489-
1.6531182500.0489-
1.6576183000.0498-
1.6621183500.044-
1.6667184000.0392-
1.6712184500.0441-
1.6757185000.0429-
1.6803185500.0369-
1.6848186000.0409-
1.6893186500.0496-
1.6938187000.052-
1.6984187500.0377-
1.7029188000.0403-
1.7074188500.0473-
1.7120189000.0474-
1.7165189500.0447-
1.7210190000.0498-
1.7255190500.0427-
1.7301191000.0454-
1.7346191500.0478-
1.7391192000.0438-
1.7437192500.0378-
1.7482193000.0442-
1.7527193500.0453-
1.7572194000.0407-
1.7618194500.0487-
1.7663195000.0408-
1.7708195500.0444-
1.7754196000.0426-
1.7799196500.044-
1.7844197000.04-
1.7889197500.0484-
1.7935198000.0478-
1.7980198500.0495-
1.8025199000.037-
1.8071199500.0472-
1.8116200000.0411-
1.8161200500.0368-
1.8207201000.042-
1.8252201500.0359-
1.8297202000.0452-
1.8342202500.0504-
1.8388203000.0513-
1.8433203500.048-
1.8478204000.0497-
1.8524204500.0408-
1.8569205000.0448-
1.8614205500.0411-
1.8659206000.0401-
1.8705206500.0445-
1.875207000.0468-
1.8795207500.0488-
1.8841208000.0401-
1.8886208500.0408-
1.8931209000.0384-
1.8976209500.0496-
1.9022210000.0436-
1.9067210500.0434-
1.9112211000.041-
1.9158211500.0452-
1.9203212000.0454-
1.9248212500.0447-
1.9293213000.0476-
1.9339213500.0399-
1.9384214000.0397-
1.9429214500.0399-
1.9475215000.0462-
1.9520215500.0452-
1.9565216000.046-
1.9611216500.0368-
1.9656217000.043-
1.9701217500.0413-
1.9746218000.0459-
1.9792218500.0442-
1.9837219000.0381-
1.9882219500.0411-
1.9928220000.0519-
1.9973220500.0445-

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