CoolFace
Modelpublic

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

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")
# 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.71321753

Training Hyperparameters

  • —batch_size: (16, 16)
  • —num_epochs: (1, 1)
  • —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.1818-
0.0049500.1822-
0.00981000.1742-
0.01471500.1597-
0.01962000.1255-
0.02452500.1152-
0.02943000.1069-
0.03433500.0993-
0.03914000.0945-
0.04404500.0799-
0.04895000.0922-
0.05385500.083-
0.05876000.082-
0.06366500.0801-
0.06857000.0803-
0.07347500.0808-
0.07838000.0864-
0.08328500.0778-
0.08819000.0709-
0.09309500.0698-
0.097910000.0726-
0.102810500.0594-
0.107711000.0734-
0.112511500.0767-
0.117412000.0607-
0.122312500.0711-
0.127213000.08-
0.132113500.0677-
0.137014000.0577-
0.141914500.059-
0.146815000.0587-
0.151715500.0586-
0.156616000.0581-
0.161516500.0555-
0.166417000.0588-
0.171317500.0602-
0.176218000.0664-
0.181118500.0623-
0.185919000.0518-
0.190819500.061-
0.195720000.057-
0.200620500.052-
0.205521000.0551-
0.210421500.0501-
0.215322000.0516-
0.220222500.0435-
0.225123000.0667-
0.230023500.0524-
0.234924000.0607-
0.239824500.0515-
0.244725000.047-
0.249625500.0467-
0.254526000.0531-
0.259326500.0474-
0.264227000.0499-
0.269127500.0477-
0.274028000.0464-
0.278928500.0421-
0.283829000.0436-
0.288729500.0614-
0.293630000.0363-
0.298530500.0443-
0.303431000.0487-
0.308331500.0459-
0.313232000.0422-
0.318132500.0384-
0.323033000.0395-
0.327933500.0445-
0.332734000.0424-
0.337634500.0383-
0.342535000.0459-
0.347435500.0365-
0.352336000.0407-
0.357236500.0352-
0.362137000.0491-
0.367037500.0446-
0.371938000.0319-
0.376838500.0461-
0.381739000.04-
0.386639500.0416-
0.391540000.0402-
0.396440500.0417-
0.401341000.0342-
0.406141500.0374-
0.411042000.0292-
0.415942500.0414-
0.420843000.0351-
0.425743500.0441-
0.430644000.0377-
0.435544500.0426-
0.440445000.0305-
0.445345500.0445-
0.450246000.0446-
0.455146500.0396-
0.460047000.0332-
0.464947500.0312-
0.469848000.0355-
0.474748500.033-
0.479549000.0406-
0.484449500.0351-
0.489350000.0292-
0.494250500.0304-
0.499151000.0313-
0.504051500.0317-
0.508952000.0332-
0.513852500.0314-
0.518753000.0305-
0.523653500.0368-
0.528554000.0317-
0.533454500.0346-
0.538355000.0373-
0.543255500.0308-
0.548156000.0409-
0.552956500.0333-
0.557857000.0345-
0.562757500.0346-
0.567658000.0387-
0.572558500.0331-
0.577459000.0317-
0.582359500.0314-
0.587260000.0357-
0.592160500.0347-
0.597061000.0325-
0.601961500.0246-
0.606862000.0301-
0.611762500.0303-
0.616663000.0259-
0.621563500.0276-
0.626364000.0358-
0.631264500.03-
0.636165000.029-
0.641065500.0292-
0.645966000.0248-
0.650866500.0308-
0.655767000.0234-
0.660667500.0278-
0.665568000.0262-
0.670468500.0287-
0.675369000.0274-
0.680269500.0257-
0.685170000.0298-
0.690070500.026-
0.694971000.0272-
0.699771500.0294-
0.704672000.0274-
0.709572500.0239-
0.714473000.0254-
0.719373500.0291-
0.724274000.0287-
0.729174500.0289-
0.734075000.0323-
0.738975500.0278-
0.743876000.0269-
0.748776500.0299-
0.753677000.0248-
0.758577500.0233-
0.763478000.0262-
0.768378500.0289-
0.773179000.0347-
0.778079500.0242-
0.782980000.0252-
0.787880500.0245-
0.792781000.0236-
0.797681500.0267-
0.802582000.0261-
0.807482500.0279-
0.812383000.027-
0.817283500.0224-
0.822184000.0217-
0.827084500.0247-
0.831985000.0293-
0.836885500.0265-
0.841786000.0275-
0.846586500.0286-
0.851487000.0248-
0.856387500.0286-
0.861288000.0231-
0.866188500.0267-
0.871089000.0271-
0.875989500.0189-
0.880890000.0252-
0.885790500.0306-
0.890691000.0224-
0.895591500.029-
0.900492000.0197-
0.905392500.021-
0.910293000.0221-
0.915193500.0228-
0.919994000.0243-
0.924894500.0279-
0.929795000.0205-
0.934695500.0242-
0.939596000.0299-
0.944496500.0277-
0.949397000.0233-
0.954297500.0168-
0.959198000.0212-
0.964098500.0211-
0.968999000.0242-
0.973899500.0203-
0.9787100000.0201-
0.9836100500.025-
0.9885101000.0241-
0.9933101500.0277-
0.9982102000.0241-

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