CoolFace
Modelpublic

sumtxt/paraphrase-MiniLM-L3-v2_immig

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes43downloads
Model Card

paraphrase-MiniLM-L3-v2_immig

This SetFit model was trained on 48 title-abstracts samples (24 per class) to differeniate between published studies related to immigration/migration research and those that are not.

Evaluation

Metrics

LabelAccuracyPrecisionRecallF1
all0.98120.99340.98680.9901

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

model = SetFitModel.from_pretrained("mmarbach/paraphrase-MiniLM-L3-v2_immig")
preds = model("TITLE: ...  ABSTRACT: ....")

Training Details

Training Set Metrics

Training setMinMedianMax
Word count97155.6458262
LabelTraining Sample Count
immigration_topic24
other_topic24

Training Hyperparameters

  • batch_size: (16, 16)
  • num_epochs: (4, 4)
  • max_steps: -1
  • sampling_strategy: oversampling
  • bodylearningrate: (2e-05, 1e-05)
  • headlearningrate: 0.01
  • 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.013310.288-
0.6667500.1935-
1.075-0.0980
1.33331000.0472-
2.01500.01180.0767
2.66672000.0057-
3.0225-0.0719
3.33332500.0047-
4.03000.00390.0718

Framework Versions

  • Python: 3.12.11
  • SetFit: 1.1.2
  • Sentence Transformers: 5.0.0
  • Transformers: 4.53.0
  • PyTorch: 2.7.1
  • Datasets: 3.6.0
  • Tokenizers: 0.21.2