CoolFace
Modelpublic

mann2107/BCMPIIRAB_MiniLM_ALLNewV2

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes8downloads
Model Card

SetFit with sentence-transformers/all-MiniLM-L6-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/all-MiniLM-L6-v2 as the Sentence Transformer embedding model. A LogisticRegression 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 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("mann2107/BCMPIIRAB_MiniLM_ALLNewV2")
# Run inference
preds = model("Thank you for your email. Please go ahead and issue. Please invoice in KES")

<!--

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 count125.6577136
LabelTraining Sample Count
024
124
224
324
424
524
624
724
824
924
1024
1124
1224
1324

Training Hyperparameters

  • —batch_size: (8, 8)
  • —num_epochs: (5, 5)
  • —max_steps: -1
  • —sampling_strategy: oversampling
  • —num_iterations: 68
  • —bodylearningrate: (1.44030579311381e-05, 1.44030579311381e-05)
  • —headlearningrate: 0.01
  • —loss: CosineSimilarityLoss
  • —distancemetric: cosinedistance
  • —margin: 0.25
  • —endtoend: False
  • —use_amp: False
  • —warmup_proportion: 0.1
  • —max_length: 512
  • —seed: 42
  • —evalmaxsteps: -1
  • —loadbestmodelatend: True

Training Results

EpochStepTraining LossValidation Loss
0.000210.2917-
0.0088500.2434-
0.01751000.2053-
0.02631500.1789-
0.03502000.2249-
0.04382500.1773-
0.05253000.1648-
0.06133500.2617-
0.07004000.1342-
0.07884500.1064-
0.08755000.1273-
0.09635500.1248-
0.10506000.2013-
0.11386500.1979-
0.12257000.1631-
0.13137500.1079-
0.14018000.0858-
0.14888500.0999-
0.15769000.0638-
0.16639500.1287-
0.175110000.1408-
0.183810500.1902-
0.192611000.0648-
0.201311500.1383-
0.210112000.0609-
0.218812500.0865-
0.227613000.1069-
0.236313500.051-
0.245114000.0692-
0.253914500.123-
0.262615000.0758-
0.271415500.0835-
0.280116000.0523-
0.288916500.0946-
0.297617000.0445-
0.306417500.0248-
0.315118000.0373-
0.323918500.0248-
0.332619000.0446-
0.341419500.0142-
0.350120000.023-
0.358920500.0119-
0.367621000.0383-
0.376421500.0188-
0.385222000.0204-
0.393922500.0109-
0.402723000.0273-
0.411423500.0216-
0.420224000.0073-
0.428924500.0338-
0.437725000.0047-
0.446425500.0096-
0.455226000.0069-
0.463926500.0078-
0.472727000.0122-
0.481427500.0578-
0.490228000.0074-
0.498928500.0103-
0.507729000.0092-
0.516529500.004-
0.525230000.0061-
0.534030500.0214-
0.542731000.0048-
0.551531500.0036-
0.560232000.0041-
0.569032500.0151-
0.577733000.0042-
0.586533500.0029-
0.595234000.0021-
0.604034500.0018-
0.612735000.0058-
0.621535500.0011-
0.630336000.0078-
0.639036500.0011-
0.647837000.0017-
0.656537500.0022-
0.665338000.0016-
0.674038500.002-
0.682839000.0023-
0.691539500.0011-
0.700340000.0012-
0.709040500.0007-
0.717841000.0021-
0.726541500.0019-
0.735342000.002-
0.744042500.0018-
0.752843000.0029-
0.761643500.0015-
0.770344000.0022-
0.779144500.0012-
0.787845000.0007-
0.796645500.0015-
0.805346000.0011-
0.814146500.0016-
0.822847000.0009-
0.831647500.0007-
0.840348000.0011-
0.849148500.001-
0.857849000.0008-
0.866649500.0014-
0.875450000.0022-
0.884150500.0012-
0.892951000.0007-
0.901651500.0014-
0.910452000.0007-
0.919152500.0012-
0.927953000.0011-
0.936653500.0012-
0.945454000.0029-
0.954154500.001-
0.962955000.0011-
0.971655500.0004-
0.980456000.0009-
0.989156500.0004-
0.997957000.003-
1.05712-0.0459
1.006757500.0014-
1.015458000.0008-
1.024258500.0009-
1.032959000.0007-
1.041759500.0007-
1.050460000.0006-
1.059260500.0008-
1.067961000.0006-
1.076761500.0006-
1.085462000.0007-
1.094262500.0025-
1.102963000.0006-
1.111763500.0009-
1.120464000.0009-
1.129264500.0009-
1.138065000.0006-
1.146765500.0004-
1.155566000.0014-
1.164266500.0029-
1.173067000.0004-
1.181767500.0027-
1.190568000.0003-
1.199268500.0003-
1.208069000.0006-
1.216769500.0015-
1.225570000.0005-
1.234270500.0005-
1.243071000.0016-
1.251871500.0005-
1.260572000.0003-
1.269372500.0006-
1.278073000.0007-
1.286873500.0004-
1.295574000.0007-
1.304374500.0007-
1.313075000.0007-
1.321875500.0003-
1.330576000.0002-
1.339376500.0002-
1.348077000.0005-
1.356877500.0014-
1.365578000.0012-
1.374378500.0002-
1.383179000.0002-
1.391879500.0003-
1.400680000.0005-
1.409380500.0006-
1.418181000.0003-
1.426881500.0009-
1.435682000.0004-
1.444382500.0002-
1.453183000.0004-
1.461883500.0008-
1.470684000.0002-
1.479384500.0004-
1.488185000.0006-
1.496885500.0011-
1.505686000.0003-
1.514486500.0003-
1.523187000.0004-
1.531987500.0004-
1.540688000.0002-
1.549488500.0007-
1.558189000.0003-
1.566989500.0002-
1.575690000.0007-
1.584490500.0005-
1.593191000.0005-
1.601991500.0011-
1.610692000.0004-
1.619492500.0004-
1.628293000.0003-
1.636993500.0002-
1.645794000.0003-
1.654494500.0006-
1.663295000.0004-
1.671995500.0004-
1.680796000.0006-
1.689496500.0001-
1.698297000.0002-
1.706997500.0004-
1.715798000.0004-
1.724498500.0001-
1.733299000.0004-
1.741999500.0004-
1.7507100000.0006-
1.7595100500.0003-
1.7682101000.0002-
1.7770101500.0004-
1.7857102000.0004-
1.7945102500.0002-
1.8032103000.0008-
1.8120103500.0004-
1.8207104000.0005-
1.8295104500.0004-
1.8382105000.0001-
1.8470105500.0003-
1.8557106000.0003-
1.8645106500.0005-
1.8732107000.0005-
1.8820107500.0003-
1.8908108000.0001-
1.8995108500.0002-
1.9083109000.0001-
1.9170109500.0003-
1.9258110000.0005-
1.9345110500.0003-
1.9433111000.0004-
1.9520111500.0007-
1.9608112000.0002-
1.9695112500.0003-
1.9783113000.0001-
1.9870113500.0001-
1.9958114000.0002-
2.011424-0.042
2.0046114500.0003-
2.0133115000.0002-
2.0221115500.0002-
2.0308116000.0002-
2.0396116500.0003-
2.0483117000.0003-
2.0571117500.0002-
2.0658118000.0002-
2.0746118500.0002-
2.0833119000.0002-
2.0921119500.0001-
2.1008120000.0003-
2.1096120500.0005-
2.1183121000.0002-
2.1271121500.0003-
2.1359122000.0002-
2.1446122500.0003-
2.1534123000.0003-
2.1621123500.0001-
2.1709124000.0002-
2.1796124500.0002-
2.1884125000.0002-
2.1971125500.0002-
2.2059126000.0001-
2.2146126500.0002-
2.2234127000.0003-
2.2321127500.0003-
2.2409128000.0004-
2.2496128500.0002-
2.2584129000.0002-
2.2672129500.0003-
2.2759130000.0002-
2.2847130500.0002-
2.2934131000.0002-
2.3022131500.0001-
2.3109132000.0002-
2.3197132500.0001-
2.3284133000.0002-
2.3372133500.0003-
2.3459134000.0002-
2.3547134500.0001-
2.3634135000.0002-
2.3722135500.0001-
2.3810136000.0006-
2.3897136500.0001-
2.3985137000.0002-
2.4072137500.0002-
2.4160138000.0004-
2.4247138500.0001-
2.4335139000.0003-
2.4422139500.0001-
2.4510140000.0001-
2.4597140500.0001-
2.4685141000.0005-
2.4772141500.0002-
2.4860142000.0001-
2.4947142500.0003-
2.5035143000.0005-
2.5123143500.0002-
2.5210144000.0002-
2.5298144500.0003-
2.5385145000.0001-
2.5473145500.0001-
2.5560146000.0002-
2.5648146500.0002-
2.5735147000.0001-
2.5823147500.0001-
2.5910148000.0001-
2.5998148500.0003-
2.6085149000.0002-
2.6173149500.0001-
2.6261150000.0001-
2.6348150500.0001-
2.6436151000.0001-
2.6523151500.0002-
2.6611152000.0001-
2.6698152500.0002-
2.6786153000.0002-
2.6873153500.0002-
2.6961154000.0002-
2.7048154500.0002-
2.7136155000.0001-
2.7223155500.0002-
2.7311156000.0002-
2.7398156500.0003-
2.7486157000.0002-
2.7574157500.0001-
2.7661158000.0002-
2.7749158500.0002-
2.7836159000.0003-
2.7924159500.0004-
2.8011160000.0007-
2.8099160500.0001-
2.8186161000.0001-
2.8274161500.0002-
2.8361162000.0002-
2.8449162500.0001-
2.8536163000.0001-
2.8624163500.0002-
2.8711164000.0002-
2.8799164500.0001-
2.8887165000.0002-
2.8974165500.0002-
2.9062166000.0001-
2.9149166500.0001-
2.9237167000.0001-
2.9324167500.0003-
2.9412168000.0002-
2.9499168500.0003-
2.9587169000.0001-
2.9674169500.0002-
2.9762170000.0001-
2.9849170500.0001-
2.9937171000.0001-
3.017136-0.0419
3.0025171500.0002-
3.0112172000.0002-
3.0200172500.0003-
3.0287173000.0001-
3.0375173500.0002-
3.0462174000.0001-
3.0550174500.0002-
3.0637175000.0002-
3.0725175500.0002-
3.0812176000.0001-
3.0900176500.0001-
3.0987177000.0001-
3.1075177500.0001-
3.1162178000.0001-
3.125178500.0001-
3.1338179000.0002-
3.1425179500.0001-
3.1513180000.0003-
3.1600180500.0001-
3.1688181000.0001-
3.1775181500.0001-
3.1863182000.0002-
3.1950182500.0002-
3.2038183000.0001-
3.2125183500.0001-
3.2213184000.0001-
3.2300184500.0002-
3.2388185000.0001-
3.2475185500.0002-
3.2563186000.0001-
3.2651186500.0002-
3.2738187000.0001-
3.2826187500.0001-
3.2913188000.0001-
3.3001188500.0001-
3.3088189000.0003-
3.3176189500.0002-
3.3263190000.0001-
3.3351190500.0003-
3.3438191000.0001-
3.3526191500.0001-
3.3613192000.0001-
3.3701192500.0001-
3.3789193000.0001-
3.3876193500.0002-
3.3964194000.0001-
3.4051194500.0001-
3.4139195000.0001-
3.4226195500.0001-
3.4314196000.0001-
3.4401196500.0001-
3.4489197000.0002-
3.4576197500.0001-
3.4664198000.0001-
3.4751198500.0001-
3.4839199000.0001-
3.4926199500.0001-
3.5014200000.0001-
3.5102200500.0002-
3.5189201000.0003-
3.5277201500.0001-
3.5364202000.0002-
3.5452202500.0001-
3.5539203000.0001-
3.5627203500.0001-
3.5714204000.0004-
3.5802204500.0001-
3.5889205000.0001-
3.5977205500.0001-
3.6064206000.0002-
3.6152206500.0001-
3.6239207000.0001-
3.6327207500.0-
3.6415208000.0002-
3.6502208500.0001-
3.6590209000.0001-
3.6677209500.0002-
3.6765210000.0001-
3.6852210500.0001-
3.6940211000.0001-
3.7027211500.0002-
3.7115212000.0004-
3.7202212500.0001-
3.7290213000.0002-
3.7377213500.0001-
3.7465214000.0004-
3.7553214500.0002-
3.7640215000.0001-
3.7728215500.0001-
3.7815216000.0001-
3.7903216500.0001-
3.7990217000.0001-
3.8078217500.0001-
3.8165218000.0-
3.8253218500.0-
3.8340219000.0001-
3.8428219500.0003-
3.8515220000.0001-
3.8603220500.0001-
3.8690221000.0002-
3.8778221500.0001-
3.8866222000.0003-
3.8953222500.0001-
3.9041223000.0-
3.9128223500.0001-
3.9216224000.0002-
3.9303224500.0001-
3.9391225000.0001-
3.9478225500.0-
3.9566226000.0003-
3.9653226500.0001-
3.9741227000.0001-
3.9828227500.0001-
3.9916228000.0002-
4.022848-0.0419
4.0004228500.0-
4.0091229000.0001-
4.0179229500.0001-
4.0266230000.0001-
4.0354230500.0001-
4.0441231000.0002-
4.0529231500.0001-
4.0616232000.0001-
4.0704232500.0002-
4.0791233000.0-
4.0879233500.0001-
4.0966234000.0001-
4.1054234500.0001-
4.1141235000.0001-
4.1229235500.0002-
4.1317236000.0001-
4.1404236500.0001-
4.1492237000.0001-
4.1579237500.0002-
4.1667238000.0002-
4.1754238500.0001-
4.1842239000.0001-
4.1929239500.0001-
4.2017240000.0001-
4.2104240500.0001-
4.2192241000.0001-
4.2279241500.0-
4.2367242000.0001-
4.2454242500.0001-
4.2542243000.0003-
4.2630243500.0-
4.2717244000.0001-
4.2805244500.0-
4.2892245000.0001-
4.2980245500.0001-
4.3067246000.0002-
4.3155246500.0-
4.3242247000.0001-
4.3330247500.0001-
4.3417248000.0001-
4.3505248500.0001-
4.3592249000.0001-
4.3680249500.0-
4.3768250000.0002-
4.3855250500.0001-
4.3943251000.0001-
4.4030251500.0001-
4.4118252000.0001-
4.4205252500.0001-
4.4293253000.0002-
4.4380253500.0002-
4.4468254000.0001-
4.4555254500.0001-
4.4643255000.0001-
4.4730255500.0001-
4.4818256000.0001-
4.4905256500.0001-
4.4993257000.0001-
4.5081257500.0001-
4.5168258000.0001-
4.5256258500.0001-
4.5343259000.0001-
4.5431259500.0001-
4.5518260000.0-
4.5606260500.0-
4.5693261000.0001-
4.5781261500.0001-
4.5868262000.0001-
4.5956262500.0001-
4.6043263000.0001-
4.6131263500.0001-
4.6218264000.0002-
4.6306264500.0001-
4.6394265000.0001-
4.6481265500.0001-
4.6569266000.0001-
4.6656266500.0-
4.6744267000.0002-
4.6831267500.0-
4.6919268000.0001-
4.7006268500.0002-
4.7094269000.0002-
4.7181269500.0001-
4.7269270000.0001-
4.7356270500.0001-
4.7444271000.0-
4.7532271500.0001-
4.7619272000.0001-
4.7707272500.0001-
4.7794273000.0-
4.7882273500.0001-
4.7969274000.0001-
4.8057274500.0002-
4.8144275000.0-
4.8232275500.0001-
4.8319276000.0001-
4.8407276500.0001-
4.8494277000.0-
4.8582277500.0001-
4.8669278000.0001-
4.8757278500.0001-
4.8845279000.0001-
4.8932279500.0001-
4.9020280000.0001-
4.9107280500.0001-
4.9195281000.0-
4.9282281500.0001-
4.9370282000.0001-
4.9457282500.0001-
4.9545283000.0001-
4.9632283500.0001-
4.9720284000.0001-
4.9807284500.0001-
4.9895285000.0002-
4.9982285500.0-
5.028560-0.0425
  • —The bold row denotes the saved checkpoint.

Framework Versions

  • —Python: 3.10.12
  • —SetFit: 1.1.0.dev0
  • —Sentence Transformers: 3.0.1
  • —Transformers: 4.42.4
  • —PyTorch: 2.3.1+cu121
  • —Datasets: 2.20.0
  • —Tokenizers: 0.19.1

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