CoolFace
Modelpublic

Vedant988/finetuned-paraphrase-multilingual-mpnet-base-v2

sourceHugging Faceupdated 15d agoView on Hugging Face
0likes20downloads
Model Card

SetFit with sentence-transformers/paraphrase-multilingual-mpnet-base-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-multilingual-mpnet-base-v2 as the Sentence Transformer embedding model. A SetFitHead 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
DeliveryDelayor_Status<ul><li>"@AmazonHelp @115850 I ordered this book Z38194916, Curse of yesterday, in Sep. It hasn't been delivered yet. Frustrated by your service."</li><li>"@AmazonHelp just gone to use Amazon prime and won't deliver until Friday 6th October?"</li><li>"I'm missing out on my lunch break because the ETA keeps jumping from 12:00 to 1:30. Where is it?"</li></ul>
ReturnandRefund_Status<ul><li>'I order tons of books from @115821 and never had a problem. Until today. Dirty, pages bent, and their supposed to be new. #amreading'</li><li>'I reported an unauthorized charge and my bank did a chargeback. Do I still need to mail the return to you?'</li><li>"The driver took the wrong item back with him, but the app still says 'return pending'. Do I get my cash back today?"</li></ul>
AppandDigital_Troubleshooting<ul><li>'@115821 Hi, hope you can help. Can I order something in amazon MX to be deliver in Mexico with my amazon US account?'</li><li>'@AmazonHelp I just got a new @152505 E65-E3 4K HDR tv and have been trying to find The Grand Tour in 4K, but each time it only shows 1080. Any way to find it in 4k? I am able to see a few Amazon original movies in 4K but no grand tour.'</li><li>'@10008 I installed the new Appstore on my Galaxy Tab S3, but it never moves past the "Continue" button on the front screen, no matter how many times I tap it, or Force Stop the app. Any suggestions would be greatly appreciated. Thanks!'</li></ul>
ProductorStock_Inquiry<ul><li>'@116618 hey will mr robot S3 will also be available on Wednesday on prime videos India? Eagerly waiting for this.'</li><li>"Hey @119625 when does 'shameless' season 8 release in India on prime video?"</li><li>'The package arrived damaged last time, so I want to know what kind of protective material this glass vase ships in before I buy.'</li></ul>
DriverBehavioror_Location<ul><li>'The app crashed and when it reopened, the driver was just gone from the map and my order was marked complete. Nothing is here.'</li><li>'So today, the @115821 delivery man decided to throw my package FROM his truck window TO the top of the trunk of my car (WTF), and the best troll was that 1 min later, I could read "The package was left in a secure location. The delivery was signed by Adrien Domoison" .. LOL NOP! https://t.co/mArNiZ8kq1'</li><li>"I was double billed for this order, AND the driver wouldn't let me grab the bag until I showed him my ID for a non-alcohol order."</li></ul>
UnauthorizedChargeor_Billing<ul><li>'@AmazonHelp My prime has expired. Have ordered echo which comes with prime. Should I wait for delivery in November or renew prime now?'</li><li>'@AmazonHelp when will I be charged for my order? When it ships?'</li><li>'@AmazonHelp hi I placed an order yesterday and the money has not left my bank account?'</li></ul>
Order_Cancellation<ul><li>'I accidentally used the wrong promo code. Can you void this transaction so I can redo it?'</li><li>"The driver is circling my neighborhood for 30 mins and my food is cold. Pull the plug on this, I don't want it."</li><li>'ah shit i forgot to cancel a game on amazon'</li></ul>
AccountAccessand_Security<ul><li>'@AmazonHelp last week I asked your supp team for explanation why two factor Auth is on my account when I have have not asked for it. Noreply'</li><li>'@115850 My prime membership is going to expire on Nov 16. Can I buy membership before expiration date?'</li><li>"@115830 can someone help with an email I have received for an order confirmation I didn't place? Not sure if it's fraud email"</li></ul>
IncorrectorMissing_Item<ul><li>'You know when you order Chicago PD from @115821 and the box set comes and the discs play Chicago Fire because same #disappointment'</li><li>'The delivery was an hour late, and to top it off, you guys forgot my garlic bread.'</li><li>'so I think amazon have mixed up my order with someone else’s, hope my gym resistance bands look cute on their xmas tree 🎅🏼🎅🏼 https://t.co/sO3bQdQmGt'</li></ul>
PURGE<ul><li>'@115821 well done amazon! I’ve just identified a fraud on my account &amp; your advisor was reassuring &amp; sorted it all out! Great customer service 👍🏻'</li><li>'@115821 broke family&amp; friends trust.Ordered a product month ago,return/refund requested on same month, but still waiting for pickup &amp; refund https://t.co/noCu65cIeB'</li><li>'Hey @115821 you lost my package, offered a replacement, and then told me a replacement isn’t possible. What gives?!?!'</li></ul>
PromotionsandCashback<ul><li>'@AmazonHelp\nWhere Amazon announce quiz contest winners?'</li><li>"I'm trying to reset my password to use the birthday coupon before it expires at midnight tonight!"</li><li>'@AmazonHelp I received a $15 promotional credit for purchasing gift cards, but I cannot figure out how to apply it. I received an email confirming this, but when I click the link to learn more about it, I am directed to the below screen. Can I get some help with this? https://t.co/rtSc1TCml3'</li></ul>
DamagedItemor_Packaging<ul><li>'Is the manufacturer aware that their packaging fails in transit 90% of the time? Look at these photos of the torn box.'</li><li>'@115830 SURELY a smaller box would be more appropriate for a clothes prop!!! #waste #costtheearth https://t.co/QAoza8NHZy'</li><li>'The outer shipping box was in perfect condition, but the sealed toy inside had a broken leg snapped off.'</li></ul>

Evaluation

Metrics

LabelAccuracy
all0.5427

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("setfit_model_id")
# Run inference
preds = model("HOW CAN I BE MAD AMAZON ISN'T WORKING WHEN  THEY DO THIS TO ME!?? https://t.co/wNulUddRxp")

<!--

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 count121.212757
LabelTraining Sample Count
AccountAccessand_Security111
AppandDigital_Troubleshooting110
DamagedItemor_Packaging111
DeliveryDelayor_Status110
DriverBehavioror_Location110
IncorrectorMissing_Item111
Order_Cancellation110
PURGE110
ProductorStock_Inquiry111
PromotionsandCashback111
ReturnandRefund_Status111
UnauthorizedChargeor_Billing110

Training Hyperparameters

  • —batch_size: (32, 32)
  • —num_epochs: (1, 1)
  • —max_steps: -1
  • —sampling_strategy: oversampling
  • —num_iterations: 5
  • —bodylearningrate: (1e-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
  • —evaluation_strategy: steps
  • —evalmaxsteps: -1
  • —loadbestmodelatend: True

Training Results

EpochStepTraining LossValidation Loss
0.004810.2208-
0.2404500.22190.1969
0.48081000.19450.1778
0.72121500.17920.1676
0.96152000.16190.1645

Framework Versions

  • —Python: 3.12.13
  • —SetFit: 1.2.0
  • —Sentence Transformers: 5.4.1
  • —Transformers: 5.0.0
  • —PyTorch: 2.10.0+cu128
  • —Datasets: 5.0.0
  • —Tokenizers: 0.22.2

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