CoolFace
Modelpublic

faodl/20250908_model_g20_multilabel_MiniLM-L12-all-labels-v02

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/20250908_model_g20_multilabel_MiniLM-L12-all-labels-v02")
# Run inference
preds = model("Housing and Community Amenities 
 

133.")

<!--

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

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.1893-
0.0049500.1854-
0.00971000.1714-
0.01461500.1562-
0.01952000.1268-
0.02432500.1247-
0.02923000.1087-
0.03413500.0932-
0.03894000.0996-
0.04384500.0978-
0.04865000.0816-
0.05355500.1022-
0.05846000.0771-
0.06326500.0859-
0.06817000.0742-
0.07307500.0758-
0.07788000.0861-
0.08278500.0787-
0.08769000.0784-
0.09249500.0698-
0.097310000.0703-
0.102210500.0722-
0.107011000.0755-
0.111911500.0596-
0.116812000.0647-
0.121612500.0686-
0.126513000.0725-
0.131313500.0702-
0.136214000.0625-
0.141114500.067-
0.145915000.0624-
0.150815500.0618-
0.155716000.062-
0.160516500.0745-
0.165417000.0619-
0.170317500.0469-
0.175118000.0573-
0.180018500.0583-
0.184919000.055-
0.189719500.0648-
0.194620000.0697-
0.199520500.0632-
0.204321000.052-
0.209221500.0563-
0.214022000.0437-
0.218922500.0487-
0.223823000.0499-
0.228623500.0509-
0.233524000.0536-
0.238424500.0473-
0.243225000.0553-
0.248125500.0615-
0.253026000.0638-
0.257826500.0524-
0.262727000.0473-
0.267627500.0555-
0.272428000.0506-
0.277328500.0451-
0.282229000.0547-
0.287029500.0478-
0.291930000.0476-
0.296830500.0378-
0.301631000.0482-
0.306531500.046-
0.311332000.0347-
0.316232500.0448-
0.321133000.0465-
0.325933500.0468-
0.330834000.0569-
0.335734500.0399-
0.340535000.0487-
0.345435500.0456-
0.350336000.0456-
0.355136500.0447-
0.360037000.0379-
0.364937500.0441-
0.369738000.0417-
0.374638500.0421-
0.379539000.0409-
0.384339500.0393-
0.389240000.0469-
0.394040500.0356-
0.398941000.0319-
0.403841500.0462-
0.408642000.0335-
0.413542500.0364-
0.418443000.0352-
0.423243500.032-
0.428144000.0417-
0.433044500.0322-
0.437845000.0284-
0.442745500.0347-
0.447646000.0379-
0.452446500.0358-
0.457347000.0306-
0.462247500.0365-
0.467048000.0352-
0.471948500.0326-
0.476749000.0388-
0.481649500.032-
0.486550000.0361-
0.491350500.0336-
0.496251000.0373-
0.501151500.0336-
0.505952000.0317-
0.510852500.0309-
0.515753000.0334-
0.520553500.0364-
0.525454000.0265-
0.530354500.0335-
0.535155000.0368-
0.540055500.0318-
0.544956000.0394-
0.549756500.0312-
0.554657000.0359-
0.559457500.0332-
0.564358000.0368-
0.569258500.0298-
0.574059000.0385-
0.578959500.0317-
0.583860000.0269-
0.588660500.0264-
0.593561000.0336-
0.598461500.0388-
0.603262000.0254-
0.608162500.0366-
0.613063000.0328-
0.617863500.031-
0.622764000.03-
0.627664500.0313-
0.632465000.029-
0.637365500.0267-
0.642166000.0319-
0.647066500.022-
0.651967000.0247-
0.656767500.0335-
0.661668000.0289-
0.666568500.0314-
0.671369000.03-
0.676269500.026-
0.681170000.025-
0.685970500.0266-
0.690871000.0317-
0.695771500.0309-
0.700572000.0278-
0.705472500.0291-
0.710373000.0325-
0.715173500.0312-
0.720074000.0242-
0.724874500.0243-
0.729775000.02-
0.734675500.0312-
0.739476000.0265-
0.744376500.0276-
0.749277000.0272-
0.754077500.0367-
0.758978000.0242-
0.763878500.025-
0.768679000.0284-
0.773579500.031-
0.778480000.0305-
0.783280500.031-
0.788181000.028-
0.793081500.0261-
0.797882000.0276-
0.802782500.0276-
0.807683000.0256-
0.812483500.026-
0.817384000.0187-
0.822184500.0242-
0.827085000.0281-
0.831985500.0245-
0.836786000.0262-
0.841686500.0269-
0.846587000.0294-
0.851387500.0224-
0.856288000.0231-
0.861188500.0268-
0.865989000.0227-
0.870889500.0339-
0.875790000.0229-
0.880590500.0228-
0.885491000.028-
0.890391500.0167-
0.895192000.0242-
0.900092500.0261-
0.904893000.0324-
0.909793500.024-
0.914694000.0259-
0.919494500.0237-
0.924395000.0193-
0.929295500.0259-
0.934096000.0293-
0.938996500.0224-
0.943897000.0228-
0.948697500.0229-
0.953598000.0231-
0.958498500.0242-
0.963299000.0249-
0.968199500.0297-
0.9730100000.0268-
0.9778100500.0252-
0.9827101000.0204-
0.9875101500.0177-
0.9924102000.0254-
0.9973102500.0298-

Framework Versions

  • —Python: 3.12.11
  • —SetFit: 1.1.3
  • —Sentence Transformers: 5.1.0
  • —Transformers: 4.56.0
  • —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. -->