CoolFace
Modelpublic

faodl/20250909_model_g20_multilabel_MiniLM-L12-all-labels-artificial-governance-v03

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes6downloads
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/20250909_model_g20_multilabel_MiniLM-L12-all-labels-artificial-governance-v03")
# Run inference
preds = model("The program mainly aims at 
the construction of rural roads, capacity building of local bodies, and 
awareness raising activities.")

<!--

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

Training Hyperparameters

  • —batch_size: (32, 32)
  • —num_epochs: (1, 1)
  • —max_steps: -1
  • —sampling_strategy: oversampling
  • —num_iterations: 50
  • —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.000010.1864-
0.0020500.1899-
0.00391000.1866-
0.00591500.1816-
0.00782000.1783-
0.00982500.1743-
0.01173000.1685-
0.01373500.1613-
0.01564000.1533-
0.01764500.1393-
0.01965000.1403-
0.02155500.1276-
0.02356000.1153-
0.02546500.1155-
0.02747000.1074-
0.02937500.1092-
0.03138000.1014-
0.03328500.1005-
0.03529000.0983-
0.03729500.0951-
0.039110000.0935-
0.041110500.0987-
0.043011000.0936-
0.045011500.092-
0.046912000.093-
0.048912500.0843-
0.050813000.0859-
0.052813500.0863-
0.000110.0762-
0.0039500.0869-
0.000110.0506-
0.0039500.084-
0.00781000.0841-
0.01171500.0796-
0.01562000.0821-
0.01962500.0797-
0.02353000.0861-
0.02743500.0827-
0.03134000.0723-
0.03524500.0715-
0.03915000.0762-
0.04305500.0642-
0.04696000.07-
0.05086500.0738-
0.05487000.0684-
0.05877500.0679-
0.06268000.0697-
0.06658500.0651-
0.07049000.0668-
0.07439500.0656-
0.078210000.0654-
0.082110500.0567-
0.086011000.0636-
0.089911500.0625-
0.093912000.0614-
0.097812500.0619-
0.101713000.0641-
0.105613500.0574-
0.109514000.0585-
0.113414500.0575-
0.117315000.052-
0.121215500.0506-
0.125116000.0537-
0.129116500.0505-
0.133017000.0476-
0.136917500.0515-
0.140818000.0464-
0.144718500.0484-
0.148619000.0459-
0.152519500.0474-
0.156420000.0453-
0.160320500.0467-
0.164321000.0455-
0.168221500.0419-
0.172122000.0473-
0.176022500.0435-
0.179923000.0454-
0.183823500.0403-
0.187724000.04-
0.191624500.041-
0.195525000.0389-
0.199525500.0396-
0.203426000.0438-
0.207326500.0375-
0.211227000.0361-
0.215127500.0423-
0.219028000.0377-
0.222928500.0375-
0.226829000.0368-
0.230729500.0386-
0.234630000.0366-
0.238630500.0316-
0.242531000.0337-
0.246431500.0337-
0.250332000.0404-
0.254232500.0307-
0.258133000.0347-
0.262033500.0329-
0.265934000.0296-
0.269834500.0339-
0.273835000.0369-
0.277735500.0312-
0.281636000.035-
0.285536500.0325-
0.289437000.0307-
0.293337500.0323-
0.297238000.0288-
0.301138500.0263-
0.305039000.0337-
0.309039500.0332-
0.312940000.0257-
0.316840500.0262-
0.320741000.0324-
0.324641500.0309-
0.328542000.0264-
0.332442500.0307-
0.336343000.0257-
0.340243500.0264-
0.344244000.0271-
0.348144500.0255-
0.352045000.0249-
0.355945500.0263-
0.359846000.0234-
0.363746500.0245-
0.367647000.0287-
0.371547500.0284-
0.375448000.0242-
0.379448500.0256-
0.383349000.025-
0.387249500.0209-
0.391150000.0245-
0.395050500.0271-
0.398951000.0274-
0.402851500.026-
0.406752000.0245-
0.410652500.027-
0.414553000.0266-
0.418553500.0288-
0.422454000.0217-
0.426354500.0228-
0.430255000.0199-
0.434155500.0254-
0.438056000.0181-
0.441956500.0235-
0.445857000.0247-
0.449757500.024-
0.453758000.0239-
0.457658500.0259-
0.461559000.0209-
0.465459500.021-
0.469360000.0227-
0.473260500.0265-
0.477161000.0255-
0.481061500.0227-
0.484962000.0229-
0.488962500.0231-
0.492863000.0248-
0.496763500.0198-
0.500664000.0217-
0.504564500.0246-
0.508465000.0209-
0.512365500.0206-
0.516266000.0214-
0.520166500.0222-
0.524167000.0185-
0.528067500.0188-
0.531968000.0214-
0.535868500.0248-
0.539769000.0212-
0.543669500.0201-
0.547570000.0201-
0.551470500.0248-
0.555371000.022-
0.559271500.0181-
0.563272000.0194-
0.567172500.0211-
0.571073000.0202-
0.574973500.022-
0.578874000.0238-
0.582774500.019-
0.586675000.0165-
0.590575500.0191-
0.594476000.023-
0.598476500.0187-
0.602377000.0254-
0.606277500.0213-
0.610178000.0259-
0.614078500.0225-
0.617979000.0207-
0.621879500.0166-
0.625780000.0215-
0.629680500.0176-
0.633681000.02-
0.637581500.0208-
0.641482000.0186-
0.645382500.0179-
0.649283000.0173-
0.653183500.0216-
0.657084000.0212-
0.660984500.0213-
0.664885000.0191-
0.668885500.0212-
0.672786000.0184-
0.676686500.0202-
0.680587000.0215-
0.684487500.0163-
0.688388000.018-
0.692288500.0178-
0.696189000.0175-
0.700089500.0155-
0.703990000.0201-
0.707990500.0168-
0.711891000.0194-
0.715791500.0191-
0.719692000.0183-
0.723592500.0181-
0.727493000.0191-
0.731393500.0179-
0.735294000.0218-
0.739194500.0178-
0.743195000.0175-
0.747095500.0168-
0.750996000.0192-
0.754896500.0183-
0.758797000.0167-
0.762697500.0189-
0.766598000.021-
0.770498500.0176-
0.774399000.0177-
0.778399500.0169-
0.7822100000.0191-
0.7861100500.0147-
0.7900101000.0192-
0.7939101500.0174-
0.7978102000.017-
0.8017102500.0155-
0.8056103000.0179-
0.8095103500.0192-
0.8135104000.0153-
0.8174104500.0195-
0.8213105000.0196-
0.8252105500.0192-
0.8291106000.0148-
0.8330106500.0175-
0.8369107000.0146-
0.8408107500.0178-
0.8447108000.015-
0.8487108500.0192-
0.8526109000.0163-
0.8565109500.0168-
0.8604110000.0163-
0.8643110500.0148-
0.8682111000.0161-
0.8721111500.0189-
0.8760112000.0196-
0.8799112500.0138-
0.8838113000.0164-
0.8878113500.0156-
0.8917114000.0149-
0.8956114500.0177-
0.8995115000.0183-
0.9034115500.0157-
0.9073116000.018-
0.9112116500.0127-
0.9151117000.0165-
0.9190117500.0181-
0.9230118000.0157-
0.9269118500.0157-
0.9308119000.0159-
0.9347119500.0125-
0.9386120000.0175-
0.9425120500.018-
0.9464121000.0181-
0.9503121500.0173-
0.9542122000.0182-
0.9582122500.0189-
0.9621123000.0124-
0.9660123500.0175-
0.9699124000.0139-
0.9738124500.0161-
0.9777125000.0168-
0.9816125500.019-
0.9855126000.0195-
0.9894126500.0184-
0.9934127000.0148-
0.9973127500.0172-

Framework Versions

  • —Python: 3.12.11
  • —SetFit: 1.1.3
  • —Sentence Transformers: 5.1.0
  • —Transformers: 4.56.1
  • —PyTorch: 2.8.0+cu126
  • —Datasets: 4.0.0
  • —Tokenizers: 0.22.0

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