CoolFace
Modelpublic

mann2107/BCMPIIRAB_MiniLM_HTTest

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

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

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-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

Evaluation

Metrics

LabelSilhouette_Score
all0.6826

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_HTTest")
# Run inference
preds = model("Hello, Good morning, would you mind cancelling this rental car?")

<!--

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: (3, 3)
  • —max_steps: -1
  • —sampling_strategy: oversampling
  • —num_iterations: 100
  • —bodylearningrate: (3e-05, 3e-05)
  • —headlearningrate: 3e-05
  • —loss: MultipleNegativesRankingLoss
  • —distancemetric: cosinedistance
  • —margin: 0.25
  • —endtoend: False
  • —use_amp: True
  • —warmup_proportion: 0.1
  • —l2_weight: 0.01
  • —seed: 42
  • —evalmaxsteps: -1
  • —loadbestmodelatend: False

Training Results

EpochStepTraining LossValidation Loss
0.000112.5259-
0.0060502.8997-
0.01191002.8192-
0.01791502.8803-
0.02382002.635-
0.02982502.5501-
0.03573002.4468-
0.04173502.1309-
0.04764002.0439-
0.05364501.9429-
0.05955001.9344-
0.06555501.8493-
0.07146001.7907-
0.07746501.7712-
0.08337001.7349-
0.08937501.7783-
0.09528001.7022-
0.10128501.6757-
0.10719001.709-
0.11319501.6231-
0.119010001.6647-
0.12510501.7618-
0.131011001.652-
0.136911501.5564-
0.142912001.7067-
0.148812501.664-
0.154813001.7426-
0.160713501.6281-
0.166714001.6375-
0.172614501.6216-
0.178615001.5998-
0.184515501.4892-
0.190516001.556-
0.196416501.6657-
0.202417001.6113-
0.208317501.634-
0.214318001.6615-
0.220218501.5192-
0.226219001.5846-
0.232119501.5376-
0.238120001.6028-
0.244020501.5744-
0.2521001.645-
0.256021501.5432-
0.261922001.5922-
0.267922501.612-
0.273823001.6553-
0.279823501.5797-
0.285724001.5249-
0.291724501.639-
0.297625001.7246-
0.303625501.6186-
0.309526001.537-
0.315526501.5701-
0.321427001.6095-
0.327427501.5344-
0.333328001.6029-
0.339328501.6141-
0.345229001.5655-
0.351229501.5892-
0.357130001.595-
0.363130501.5068-
0.369031001.5826-
0.37531501.481-
0.381032001.6001-
0.386932501.4991-
0.392933001.605-
0.398833501.6154-
0.404834001.5516-
0.410734501.559-
0.416735001.559-
0.422635501.5725-
0.428636001.5719-
0.434536501.4918-
0.440537001.5816-
0.446437501.5017-
0.452438001.5093-
0.458338501.5705-
0.464339001.5584-
0.470239501.5328-
0.476240001.4932-
0.482140501.5907-
0.488141001.5339-
0.494041501.4954-
0.542001.5256-
0.506042501.5349-
0.511943001.5238-
0.517943501.5222-
0.523844001.6318-
0.529844501.5872-
0.535745001.4892-
0.541745501.5764-
0.547646001.6123-
0.553646501.4708-
0.559547001.5201-
0.565547501.4975-
0.571448001.5402-
0.577448501.5396-
0.583349001.5325-
0.589349501.5166-
0.595250001.5216-
0.601250501.5934-
0.607151001.5118-
0.613151501.6581-
0.619052001.4251-
0.62552501.5259-
0.631053001.4854-
0.636953501.6242-
0.642954001.5234-
0.648854501.4594-
0.654855001.5513-
0.660755501.3946-
0.666756001.4795-
0.672656501.5203-
0.678657001.5137-
0.684557501.5305-
0.690558001.4958-
0.696458501.5028-
0.702459001.419-
0.708359501.5043-
0.714360001.4512-
0.720260501.5199-
0.726261001.5097-
0.732161501.4989-
0.738162001.4632-
0.744062501.4781-
0.7563001.4592-
0.756063501.507-
0.761964001.5535-
0.767964501.3831-
0.773865001.572-
0.779865501.5461-
0.785766001.5142-
0.791766501.494-
0.797667001.5487-
0.803667501.4344-
0.809568001.5262-
0.815568501.4942-
0.821469001.54-
0.827469501.518-
0.833370001.5765-
0.839370501.5526-
0.845271001.5548-
0.851271501.3953-
0.857172001.5273-
0.863172501.4349-
0.869073001.4176-
0.87573501.5242-
0.881074001.5263-
0.886974501.5435-
0.892975001.4882-
0.898875501.4965-
0.904876001.5185-
0.910776501.5739-
0.916777001.5821-
0.922677501.6197-
0.928678001.5154-
0.934578501.5844-
0.940579001.5242-
0.946479501.488-
0.952480001.5414-
0.958380501.4829-
0.964381001.5162-
0.970281501.4136-
0.976282001.36-
0.982182501.5511-
0.988183001.4908-
0.994083501.5312-
1.084001.5008-
1.006084501.4283-
1.011985001.5027-
1.017985501.48-
1.023886001.425-
1.029886501.5233-
1.035787001.4259-
1.041787501.4355-
1.047688001.5006-
1.053688501.511-
1.059589001.3043-
1.065589501.5039-
1.071490001.4909-
1.077490501.4493-
1.083391001.4877-
1.089391501.5232-
1.095292001.6282-
1.101292501.4438-
1.107193001.5234-
1.113193501.5368-
1.119094001.5029-
1.12594501.4776-
1.131095001.4877-
1.136995501.4917-
1.142996001.4474-
1.148896501.3519-
1.154897001.5118-
1.160797501.5507-
1.166798001.4395-
1.172698501.4883-
1.178699001.4524-
1.184599501.4756-
1.1905100001.5255-
1.1964100501.4795-
1.2024101001.5277-
1.2083101501.477-
1.2143102001.4438-
1.2202102501.5517-
1.2262103001.588-
1.2321103501.5352-
1.2381104001.3697-
1.2440104501.4449-
1.25105001.4473-
1.2560105501.5566-
1.2619106001.4502-
1.2679106501.4821-
1.2738107001.4296-
1.2798107501.4801-
1.2857108001.4542-
1.2917108501.4258-
1.2976109001.4142-
1.3036109501.6023-
1.3095110001.4291-
1.3155110501.5386-
1.3214111001.4433-
1.3274111501.4218-
1.3333112001.4345-
1.3393112501.5321-
1.3452113001.5001-
1.3512113501.3381-
1.3571114001.4819-
1.3631114501.4676-
1.3690115001.5056-
1.375115501.5052-
1.3810116001.5217-
1.3869116501.391-
1.3929117001.46-
1.3988117501.5022-
1.4048118001.4579-
1.4107118501.5025-
1.4167119001.5058-
1.4226119501.5107-
1.4286120001.5327-
1.4345120501.4727-
1.4405121001.4353-
1.4464121501.42-
1.4524122001.5349-
1.4583122501.473-
1.4643123001.5228-
1.4702123501.498-
1.4762124001.4321-
1.4821124501.5058-
1.4881125001.4601-
1.4940125501.5346-
1.5126001.5985-
1.5060126501.4683-
1.5119127001.5088-
1.5179127501.5082-
1.5238128001.5784-
1.5298128501.5241-
1.5357129001.434-
1.5417129501.452-
1.5476130001.4459-
1.5536130501.4965-
1.5595131001.5313-
1.5655131501.4781-
1.5714132001.5502-
1.5774132501.4602-
1.5833133001.4477-
1.5893133501.4736-
1.5952134001.5035-
1.6012134501.4829-
1.6071135001.4941-
1.6131135501.5462-
1.6190136001.4764-
1.625136501.4838-
1.6310137001.4264-
1.6369137501.6312-
1.6429138001.4323-
1.6488138501.514-
1.6548139001.3944-
1.6607139501.4709-
1.6667140001.4268-
1.6726140501.5699-
1.6786141001.5433-
1.6845141501.431-
1.6905142001.5421-
1.6964142501.4854-
1.7024143001.4341-
1.7083143501.4321-
1.7143144001.4284-
1.7202144501.4725-
1.7262145001.5744-
1.7321145501.4892-
1.7381146001.5357-
1.7440146501.4536-
1.75147001.4861-
1.7560147501.5268-
1.7619148001.4613-
1.7679148501.4313-
1.7738149001.4522-
1.7798149501.4291-
1.7857150001.5054-
1.7917150501.495-
1.7976151001.5352-
1.8036151501.4803-
1.8095152001.3922-
1.8155152501.4879-
1.8214153001.4752-
1.8274153501.5102-
1.8333154001.4474-
1.8393154501.4939-
1.8452155001.5216-
1.8512155501.4656-
1.8571156001.5171-
1.8631156501.3437-
1.8690157001.4875-
1.875157501.4692-
1.8810158001.4804-
1.8869158501.4423-
1.8929159001.4592-
1.8988159501.5764-
1.9048160001.4083-
1.9107160501.4852-
1.9167161001.5158-
1.9226161501.4602-
1.9286162001.4465-
1.9345162501.412-
1.9405163001.483-
1.9464163501.5342-
1.9524164001.3866-
1.9583164501.4318-
1.9643165001.6241-
1.9702165501.5514-
1.9762166001.46-
1.9821166501.4069-
1.9881167001.457-
1.9940167501.4273-
2.0168001.3673-
2.0060168501.3753-
2.0119169001.4279-
2.0179169501.3897-
2.0238170001.4659-
2.0298170501.4494-
2.0357171001.4533-
2.0417171501.3735-
2.0476172001.4232-
2.0536172501.4229-
2.0595173001.4597-
2.0655173501.4825-
2.0714174001.4661-
2.0774174501.4332-
2.0833175001.5895-
2.0893175501.4824-
2.0952176001.4472-
2.1012176501.4001-
2.1071177001.4638-
2.1131177501.4651-
2.1190178001.4711-
2.125178501.4474-
2.1310179001.4544-
2.1369179501.3935-
2.1429180001.4449-
2.1488180501.4671-
2.1548181001.4169-
2.1607181501.5095-
2.1667182001.4186-
2.1726182501.4574-
2.1786183001.4448-
2.1845183501.5045-
2.1905184001.4998-
2.1964184501.3559-
2.2024185001.4862-
2.2083185501.4018-
2.2143186001.4407-
2.2202186501.5812-
2.2262187001.4268-
2.2321187501.4434-
2.2381188001.5467-
2.2440188501.4281-
2.25189001.482-
2.2560189501.5261-
2.2619190001.4152-
2.2679190501.5267-
2.2738191001.4237-
2.2798191501.5455-
2.2857192001.4679-
2.2917192501.3398-
2.2976193001.4697-
2.3036193501.4176-
2.3095194001.4661-
2.3155194501.4397-
2.3214195001.5095-
2.3274195501.4873-
2.3333196001.4312-
2.3393196501.441-
2.3452197001.4341-
2.3512197501.4229-
2.3571198001.4917-
2.3631198501.4397-
2.3690199001.4027-
2.375199501.5022-
2.3810200001.441-
2.3869200501.4392-
2.3929201001.4454-
2.3988201501.4886-
2.4048202001.4776-
2.4107202501.3946-
2.4167203001.5492-
2.4226203501.534-
2.4286204001.4011-
2.4345204501.5276-
2.4405205001.4633-
2.4464205501.4446-
2.4524206001.5005-
2.4583206501.4818-
2.4643207001.4319-
2.4702207501.4406-
2.4762208001.4496-
2.4821208501.4963-
2.4881209001.4731-
2.4940209501.4536-
2.5210001.5153-
2.5060210501.5522-
2.5119211001.3759-
2.5179211501.4285-
2.5238212001.4162-
2.5298212501.4383-
2.5357213001.4408-
2.5417213501.4009-
2.5476214001.4589-
2.5536214501.4478-
2.5595215001.4876-
2.5655215501.4206-
2.5714216001.4927-
2.5774216501.5047-
2.5833217001.3988-
2.5893217501.4714-
2.5952218001.3605-
2.6012218501.5635-
2.6071219001.4678-
2.6131219501.4618-
2.6190220001.4407-
2.625220501.5451-
2.6310221001.4844-
2.6369221501.4088-
2.6429222001.5056-
2.6488222501.4678-
2.6548223001.4262-
2.6607223501.4492-
2.6667224001.4463-
2.6726224501.3851-
2.6786225001.513-
2.6845225501.45-
2.6905226001.4382-
2.6964226501.4637-
2.7024227001.4487-
2.7083227501.4507-
2.7143228001.5065-
2.7202228501.4116-
2.7262229001.479-
2.7321229501.444-
2.7381230001.4056-
2.7440230501.3913-
2.75231001.5108-
2.7560231501.4092-
2.7619232001.4341-
2.7679232501.4274-
2.7738233001.4748-
2.7798233501.3819-
2.7857234001.5012-
2.7917234501.3594-
2.7976235001.4708-
2.8036235501.4425-
2.8095236001.3566-
2.8155236501.456-
2.8214237001.5937-
2.8274237501.3835-
2.8333238001.4137-
2.8393238501.3861-
2.8452239001.4249-
2.8512239501.3599-
2.8571240001.4789-
2.8631240501.4527-
2.8690241001.4406-
2.875241501.4301-
2.8810242001.4059-
2.8869242501.5052-
2.8929243001.4429-
2.8988243501.5183-
2.9048244001.4288-
2.9107244501.4673-
2.9167245001.4582-
2.9226245501.4792-
2.9286246001.4598-
2.9345246501.4785-
2.9405247001.4259-
2.9464247501.4877-
2.9524248001.5162-
2.9583248501.4854-
2.9643249001.3679-
2.9702249501.3985-
2.9762250001.421-
2.9821250501.5048-
2.9881251001.4618-
2.9940251501.5061-
3.0252001.3634-

Framework Versions

  • —Python: 3.12.0
  • —SetFit: 1.2.0.dev0
  • —Sentence Transformers: 3.2.1
  • —Transformers: 4.45.2
  • —PyTorch: 2.5.0+cpu
  • —Datasets: 3.0.2
  • —Tokenizers: 0.20.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. -->