CoolFace
Modelpublic

rohithbojja/FT-mDeBERTa-v3-base-mnli-xnli

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

SetFit with MoritzLaurer/mDeBERTa-v3-base-mnli-xnli

This is a SetFit model that can be used for Text Classification. This SetFit model uses MoritzLaurer/mDeBERTa-v3-base-mnli-xnli 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

Model Labels

LabelExamples
4<ul><li>'Yeh rahin wo steps jisse aap apni payment kar sakte hain.'</li><li>'Kya aap mujhe yeh batane ka tarika thoda aasan kar sakte hain?'</li><li>'Is option ke madhyam se aap apni queries kaise solve kar sakte hain, jaan lijiye.'</li></ul>
16<ul><li>'Aapke feedback ko humne dhyan mein rakha hai.'</li><li>'Yeh galti humare systems ki wajah se hui hai.'</li><li>'Mujhe is samasya ko suljhane mein zyada samay lena nahi chahiye tha.'</li></ul>
8<ul><li>'Main aapko pareshan karne ke liye maafi chahta hoon.'</li><li>'Humein is samasya ke liye maafi chahiye.'</li><li>'Mere kaam se agar aapko takleef hui ho, toh mujhe maaf kar dijiye.'</li></ul>
13<ul><li>'Mujhe yeh clarify karne ki zarurat hai ki agla step kya hai?'</li><li>'Mujhe pata karna hai ki maine jo complaint ki thi uska kya hua.'</li><li>'Mujhe bataye ki pehle kitne payments honge iss plan ke liye.'</li></ul>
15<ul><li>'Yeh features sahi hai, lekin kuch aur additional functionalities honi chahiye.'</li><li>'Product ke size ki jankari hamesha saaf honi chahiye.'</li><li>'Main chahunga ki online form aur simple ho.'</li></ul>
12<ul><li>'Mujhe product ke sath kuch samasya hai.'</li><li>'Mera phone charging nahi ho raha.'</li><li>'Mujhe courier service mein dikkat hai, report karna hai.'</li></ul>
11<ul><li>'Mujhe samajh nahi aa raha, is offer mein koi chhupi shartein toh nahi hai?'</li><li>'Kis tarah se main feedback de sakta hoon?'</li><li>'Kya koi referral program hai jo mujhe join karna chahiye?'</li></ul>
2<ul><li>'Item ke sath saathi accessories nahi mil rahe hain.'</li><li>'Aap logon ne jo samay liya, wo bilkul zyada tha.'</li><li>'Meri order delivery mein bahut der ho gayi hai.'</li></ul>
18<ul><li>'Mujhe yeh bilkul pasand nahi hai ki meri baat ignore ki gayi.'</li><li>'Kam ke liye mera dosto ka support bahut sukhdayak hai.'</li><li>'Aaj ka din kaafi udaas beete raha hai.'</li></ul>
14<ul><li>'Kya main kal ki delivery ko agle hafte reschedule kar sakta/sakti hoon?'</li><li>'Mujhe refund ke liye kya documents chahiye?'</li><li>'Kya main appointment ko dobara set kar sakta/sakti hoon?'</li></ul>
7<ul><li>'Main aapko dhanyavad dena chahta hoon, aapne meri madad ki.'</li><li>'Aapne jo kiya, uske liye aapko sabse pehle prashansha milni chahiye.'</li><li>'Aapka samay dene ke liye abhaar.'</li></ul>
3<ul><li>'Mujhe kisi event ke tickets ka status check karna hai.'</li><li>'Kya aap mujhe customer support number de sakte hain?'</li><li>'Main apne account ka balance kaise check kar sakta/sakti hoon?'</li></ul>
5<ul><li>'Alvida, tumhara din acha rahe!'</li><li>'Hello! Aaj aap kaise hain?'</li><li>'Swagat hai! Kya main aapki kuch madad kar sakta hoon?'</li></ul>
0<ul><li>'Mujhe kuch samajh nahi aa raha hai, kya mujhe thoda aur samjha sakte hain?'</li><li>'Agar main aisa karoon, to kya kuch badal jaayega? Main sure nahi hoon.'</li><li>'Yeh product ki warranty ki details clear nahi hain.'</li></ul>
6<ul><li>'Chalo, alvida bolte hain!'</li><li>'Phir se baat karte hain!'</li><li>'Adieu, aapka din shubh ho!'</li></ul>
17<ul><li>'Mere account mein login karne mein dikkat aa rahi hai, madad karein.'</li><li>'Mujhe apne account mein login karne mein madad chahiye.'</li><li>'Kya aap mujhe terms and conditions ke details de sakte hain?'</li></ul>
10<ul><li>'Main aapki baat se sehmat hoon.'</li><li>'Mujhe yeh batayein ki meri booking sahi hai na?'</li></ul>
9<ul><li>'Kya aap mujhe yeh concept aur clear kar sakte hain?'</li><li>'Mujhe yeh samajhne mein dikkat ho rahi hai, kya aap vyakhya de sakte hain?'</li></ul>
1<ul><li>'Aaj dosto ke sath waqt bitana bahut acha laga.'</li><li>'Aaj baarish me bheegna bahut refreshing tha, mujhe yeh moment pasand aaya.'</li><li>'Aapka support bahut madadgar raha.'</li></ul>

Evaluation

Metrics

LabelAccuracy
all0.32

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("rbojja/FT-mDeBERTa-v3-base-mnli-xnli")
# Run inference
preds = model("Kya aap mujhe is event ki timing bata sakte hain?")

<!--

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 count39.7615
LabelTraining Sample Count
06
13
23
35
47
53
66
78
86
92
102
115
126
135
149
159
169
173
183

Training Hyperparameters

  • —batch_size: (16, 2)
  • —num_epochs: (1, 16)
  • —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.001710.2335-
0.0853500.2514-
0.17061000.1619-
0.25601500.1124-
0.34132000.078-
0.42662500.0623-
0.51193000.0576-
0.59733500.0421-
0.68264000.0391-
0.76794500.0386-
0.85325000.0302-
0.93865500.0245-

Framework Versions

  • —Python: 3.10.16
  • —SetFit: 1.1.1
  • —Sentence Transformers: 3.3.1
  • —Transformers: 4.46.3
  • —PyTorch: 2.5.1+cpu
  • —Datasets: 3.2.0
  • —Tokenizers: 0.20.3

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