CoolFace
Modelpublic

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

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes1.1kdownloads
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 MultiOutputClassifier 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 MultiOutputClassifier 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-multi-output")
# 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.000110.184-
0.0039500.1927-
0.00781000.1729-
0.01171500.1484-
0.01562000.1301-
0.01962500.1134-
0.02353000.1079-
0.02743500.1021-
0.03134000.0876-
0.03524500.0834-
0.03915000.0886-
0.04305500.0728-
0.04696000.0775-
0.05086500.0811-
0.05487000.0745-
0.05877500.0753-
0.06268000.0745-
0.06658500.07-
0.07049000.0702-
0.07439500.0707-
0.078210000.0702-
0.082110500.0607-
0.086011000.067-
0.089911500.065-
0.093912000.0659-
0.097812500.066-
0.101713000.066-
0.105613500.06-
0.109514000.0609-
0.113414500.0587-
0.117315000.0542-
0.121215500.0523-
0.125116000.0559-
0.129116500.052-
0.133017000.0487-
0.136917500.053-
0.140818000.0477-
0.144718500.0492-
0.148619000.0474-
0.152519500.0488-
0.156420000.0461-
0.160320500.0481-
0.164321000.0463-
0.168221500.0432-
0.172122000.0482-
0.176022500.0444-
0.179923000.0466-
0.183823500.0423-
0.187724000.041-
0.191624500.0422-
0.195525000.0401-
0.199525500.0405-
0.203426000.0448-
0.207326500.0387-
0.211227000.0371-
0.215127500.0429-
0.219028000.0379-
0.222928500.0384-
0.226829000.0378-
0.230729500.0392-
0.234630000.038-
0.238630500.0325-
0.242531000.0345-
0.246431500.0341-
0.250332000.0415-
0.254232500.0313-
0.258133000.0355-
0.262033500.033-
0.265934000.0308-
0.269834500.0343-
0.273835000.0379-
0.277735500.032-
0.281636000.0358-
0.285536500.0334-
0.289437000.0312-
0.293337500.0336-
0.297238000.0291-
0.301138500.0268-
0.305039000.034-
0.309039500.0337-
0.312940000.0266-
0.316840500.0269-
0.320741000.0326-
0.324641500.0317-
0.328542000.0271-
0.332442500.0313-
0.336343000.0263-
0.340243500.0267-
0.344244000.0273-
0.348144500.026-
0.352045000.0252-
0.355945500.0261-
0.359846000.0243-
0.363746500.0252-
0.367647000.0291-
0.371547500.0286-
0.375448000.0245-
0.379448500.0263-
0.383349000.0249-
0.387249500.0209-
0.391150000.0245-
0.395050500.0278-
0.398951000.0277-
0.402851500.0266-
0.406752000.0249-
0.410652500.0279-
0.414553000.027-
0.418553500.0283-
0.422454000.022-
0.426354500.0232-
0.430255000.0198-
0.434155500.0254-
0.438056000.0186-
0.441956500.0237-
0.445857000.0249-
0.449757500.0241-
0.453758000.0239-
0.457658500.0258-
0.461559000.0212-
0.465459500.0208-
0.469360000.0227-
0.473260500.0262-
0.477161000.0257-
0.481061500.0227-
0.484962000.0226-
0.488962500.0231-
0.492863000.0255-
0.496763500.0199-
0.500664000.022-
0.504564500.0253-
0.508465000.0209-
0.512365500.0207-
0.516266000.0215-
0.520166500.0225-
0.524167000.0185-
0.528067500.019-
0.531968000.0214-
0.535868500.0252-
0.539769000.0216-
0.543669500.0205-
0.547570000.0205-
0.551470500.0244-
0.555371000.0223-
0.559271500.0181-
0.563272000.0199-
0.567172500.0217-
0.571073000.0198-
0.574973500.0224-
0.578874000.0234-
0.582774500.0193-
0.586675000.0168-
0.590575500.0193-
0.594476000.0232-
0.598476500.0183-
0.602377000.0255-
0.606277500.0209-
0.610178000.0262-
0.614078500.0228-
0.617979000.0208-
0.621879500.0167-
0.625780000.0217-
0.629680500.0175-
0.633681000.0196-
0.637581500.0215-
0.641482000.0186-
0.645382500.0181-
0.649283000.0171-
0.653183500.0224-
0.657084000.0214-
0.660984500.0214-
0.664885000.0192-
0.668885500.0213-
0.672786000.0185-
0.676686500.02-
0.680587000.0218-
0.684487500.0163-
0.688388000.0183-
0.692288500.0177-
0.696189000.0178-
0.700089500.0157-
0.703990000.0201-
0.707990500.017-
0.711891000.0198-
0.715791500.0196-
0.719692000.0189-
0.723592500.018-
0.727493000.0193-
0.731393500.0179-
0.735294000.0218-
0.739194500.0186-
0.743195000.0175-
0.747095500.0168-
0.750996000.0193-
0.754896500.0183-
0.758797000.0168-
0.762697500.0194-
0.766598000.021-
0.770498500.0178-
0.774399000.018-
0.778399500.0171-
0.7822100000.0191-
0.7861100500.0147-
0.7900101000.0193-
0.7939101500.0174-
0.7978102000.0171-
0.8017102500.0156-
0.8056103000.0176-
0.8095103500.0195-
0.8135104000.0151-
0.8174104500.0192-
0.8213105000.0201-
0.8252105500.0192-
0.8291106000.015-
0.8330106500.0181-
0.8369107000.0143-
0.8408107500.0177-
0.8447108000.015-
0.8487108500.0193-
0.8526109000.0168-
0.8565109500.0169-
0.8604110000.0166-
0.8643110500.0148-
0.8682111000.0163-
0.8721111500.0189-
0.8760112000.0197-
0.8799112500.0138-
0.8838113000.0168-
0.8878113500.0153-
0.8917114000.0147-
0.8956114500.0178-
0.8995115000.0184-
0.9034115500.0158-
0.9073116000.0183-
0.9112116500.0127-
0.9151117000.0169-
0.9190117500.018-
0.9230118000.0156-
0.9269118500.0156-
0.9308119000.0162-
0.9347119500.0124-
0.9386120000.0175-
0.9425120500.0179-
0.9464121000.0182-
0.9503121500.0176-
0.9542122000.0182-
0.9582122500.0189-
0.9621123000.0125-
0.9660123500.0176-
0.9699124000.0143-
0.9738124500.0162-
0.9777125000.017-
0.9816125500.0196-
0.9855126000.0192-
0.9894126500.0184-
0.9934127000.0149-
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. -->