CoolFace
Modelpublic

IIS-NLP/sigma-cls

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes16downloads
Model Card

SetFit with NovaSearch/stellaen400M_v5

This is a SetFit model that can be used for Text Classification. This SetFit model uses NovaSearch/stella_en_400M_v5 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 Type: SetFit
  • Sentence Transformer body: NovaSearch/stella_en_400M_v5
  • Classification head: a SetFitHead instance
  • Maximum Sequence Length: 512 tokens
  • Number of Classes: 7 classes <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Model Labels

LabelExamples
Extraction<ul><li>"Please convert the following to a list of unique names of persons mentioned in the article.\n\nHere's the article:\nBut a hotly contested primary is likely to drag the eventual nominee to the right, even on issues that could otherwise favor his party. Mr. DeSantis, widely seen as Mr. Trump’s most serious challenger, signed a ban on abortion in his state after six weeks, a threshold before many women know they are pregnant.\n\nAnd at some point, Republicans’ drive against transgender people and their fixation on social issues may appear to be bullying — or simply far afield from real issues in the lives of swing voters, said Ms. Caprara, the chief of staff for the Illinois governor.\n\n“There’s this toxic soup between abortion, guns, gay rights, library books, African American history,” she said. “It just comes across to people as, ‘Who are these people?’”\n\nThe biggest issue, however, may be the storm cloud on the horizon that may or may not burst — the economy. In 2020, Mr. Biden became one of the few presidential candidates in modern history to have triumphed over the candidate who was more trusted on the economy in polls."</li><li>"What did the writer say they were probably going to upgrade to?\n\nI've owned almost every nexus and pixel device from google. I still have my nexus 6p lying around somewhere.\nI'm actually pretty happy with my pixel 6p. The battery life is good, the performance is excellent, no issues with the fp sensor, and contrary to other opinions, I quite like android 13.\nI've only had the phone overheat once and that was when it was super hot and humid outside and I was using walking directions with the gps on.\nThe modem isn't the best, but i've never been left without a signal and most of the time I'm close to wifi so its not a huge issue for me.\nI'll probably upgrade to the pixel 7 pro if it has some meaningful improvements to the 6p."</li><li>"What is the name of the boys' dog? \n\nMike Brady (Robert Reed), a widowed architect with three sons—Greg (Barry Williams), Peter (Christopher Knight), and Bobby (Mike Lookinland)—marries Carol Martin (Florence Henderson), who herself has three daughters: Marcia (Maureen McCormick), Jan (Eve Plumb), and Cindy (Susan Olsen). Carol and her daughters take the Brady surname. Included in the blended family are Mike's live-in housekeeper, Alice Nelson (Ann B. Davis), and the boys' dog, Tiger. (In the pilot episode, the girls also have a pet: a cat named Fluffy. Fluffy never appears in any other episodes.) The setting is a large two-story house designed by Mike, located in a Los Angeles suburb.[4] The show never addressed what happened to Carol's first husband.[5]"</li></ul>
Math<ul><li>'Given that the four-digit number \\( N \\) is a perfect square, and each digit of \\( N \\) is less than 7. If each digit is increased by 3, the resulting four-digit number is still a perfect square. Find \\( N \\).'</li><li>'Given $f(x) = ax^5 + bx^3 + cx + 8$, and $f(-2) = 10$, then $f(2) = \\boxed{ }$\n\nA: $-2$\n\nB: $-6$\n\nC: $6$\n\nD: $8$'</li><li>'Find the seventh term of the geometric sequence with first term $3$ and second term $\\frac{2}{5}$.'</li></ul>
Brainstorming<ul><li>'Is this quote inspiring? Give me the words and phrases that make you think it is or is not inspiring. \n\nQuote: “The best way to not feel hopeless is to get up and do something. Don’t wait for good things to happen to you. If you go out and make some good things happen, you will fill the world with hope, you will fill yourself with hope.”'</li><li>'How can I manage my time effectively while balancing school and work?'</li><li>'Why did the Hood Canal Bridge sink in Washington in 1979?'</li></ul>
Factual QA<ul><li>'Who was the first host of Top Chef?'</li><li>'In the 2016 World Rugby Nations Cup, what was the final score of the match between Namibia and Emerging Italy?'</li><li>"What is the full name of Vic Clapham's great-grandson who completed the Comrades Marathon from 2012 to 2015?"</li></ul>
Generation<ul><li>'Imagine you are a highly experienced spaceship engineer, and someone is asking your opinion on the most efficient design for a newly proposed interstellar spacecraft. Provide a brief overview of essential features for such a vessel.'</li><li>'Create a dialogue between two people who have completely opposite political views, but must find a way to work together.'</li><li>'Your response should contain at least 5 sentences. Include keywords [love, happiness, joy] in the response. In your response, the word "joy" should appear at least 3 times.\n\nHow can I express my feelings of joy and happiness to someone I love?'</li></ul>
Coding<ul><li>'Your friend Claire has dragged you along to a speedcubing event that is happening in Eindhoven. These events are all about solving the Rubik’s cube and similar twisty puzzles as quickly as possible. The attendants of the event can enter into various competitions based on the type and size of the puzzle, and there are even special competitions where the puzzles need to be solved one-handed or blindfolded. \n\nClaire is competing in the most popular competition: speedsolving the $3\\times 3\\times 3$ Rubik’s cube, pictured on the right. Each contestant needs to solve the cube five times, each time with a different random scramble. After all solves are completed, the best and the worst times are discarded and the final score is the average of the remaining three times. The contestant with the smallest final score wins.\n\nClaire has done well in the competition so far and is among the contenders for the overall victory. All the other contestants have already finished their five solves, but Claire has one solve remaining. By looking at the final scores of the other contestants, she has deduced her own target final score. As long as her final score is less than or equal to this target score, she will be declared the overall winner. Is it possible for her to win the competition, and if so, what is the worst time she can have on her last solve in order to do so?\n\n-----Input-----\nThe input consists of:\n - One line with four real numbers $t1$, $t2$, $t3$ and $t4$, the times Claire got on her first four solves.\n - One line with a real number $t$, Claire’s target final score, the worst final score she can have in order to be declared the overall winner.\n\nEach number is between $1$ and $20$, inclusive, and is given with exactly two decimal places.\n\n-----Output-----\nIf it is not possible for Claire to win the event, output “impossible”. If she will win regardless of the time she gets on her last solve, output “infinite”. Otherwise, output the worst time she can have on her last solve in order to be declared the overall winner. Output the number to exactly two decimal places.\n\n-----Examples-----\nSample Input 1:\n6.38 7.20 6.95 8.11\n7.53\nSample Output 1:\ninfinite\n\nSample Input 2:\n6.38 7.20 6.95 8.11\n6.99\nSample Output 2:\n6.82'</li><li>"Problem :\n\nBajirao is on a date with his girlfriend Avni. It is a romantic night and they are\nplaying a game of words. \n\nThe rule of this game is that if Bajirao says a word such that no adjacent letters occurring in the word are same then he gets a kiss from her otherwise he gets a slap.\n\nInput :\n\nThe first line consists of T the number of test cases. The next T lines are such that each line consists of a single word spoken by Bajirao.\n\nOutput\n\nFor every test case, on a new line print 'KISS' if Bajirao gets a kiss and 'SLAP' if Bajirao gets a slap.\n\nConstraints :\n\n1 ≤ T ≤ 100\n\n2 ≤ Length of Word spoken by Bajirao ≤ 100\n\nThe input word will comprise only of lower case English alphabets (a-z).\n\nProblem Setter : Shreyans\n\nProblem Tester : Sandeep\n\nProblem Statement : Ravi\n\n(By IIT Kgp HackerEarth Programming Club)\n\nSAMPLE INPUT\n2\nremember\noccurring\n\nSAMPLE OUTPUT\nKISS\nSLAP"</li><li>'Using the Arduino IDE, create an .ino sketch that creates an MQTT broker for the MKR WIFI 1010'</li></ul>
Reasoning<ul><li>'Silver dollar pancakes are a variety that is smaller than traditional pancakes. Silver dollars are a type of American coin.\n\nAre some types of pancakes named after coins?'</li><li>'Most successful companies are related to good management. Enterprise management generally includes two aspects, namely management and management, of which management is more important. To do a good job of management, you need a variety of Managing talent also requires leaders to make the most of their role.\n\nIt follows from this:.\n\n1. A well-managed company will succeed.\n2. With good management talent, good management is guaranteed.\n3. Poorly managed companies will eventually fail in market competition.\n4. Leaders should pay attention to the role of subordinates.'</li><li>'The survey shows that the biggest difficulty in youth entrepreneurship is funding.64.2% of people believe that lack of sufficient funds is the main difficulty. Many people are unwilling to borrow or raise funds despite lack of funds, which reflects that many entrepreneurs are starting a business. There is a conservative mentality in the process. Another prominent difficulty is the excessive competition of peers, accounting for 26.9%. During the survey, it was found that the field of youth entrepreneurship is more concentrated, such as the college student group is more inclined to e-commerce, computer technology support, etc. Young farmers are more willing to engage in the planting and breeding industries that they are more familiar with. This kind of homogeneous entrepreneurship will inevitably lead to excessive competition while forming a scale effect.\n\nThe following statement is consistent with the original?\n\n1. Insufficient funding is a major factor in the failure of youth entrepreneurship.\n2. Inadequate financial services support for young entrepreneurs.\n3. Homogeneous entrepreneurship reflects the conservative mindset of entrepreneurs.\n4. The field of youth entrepreneurship is concentrated in certain fixed industries.'</li></ul>

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("What is an SRE? Use only Korean in your response and provide a title wrapped in double angular brackets, such as <<SRE>>. Use the keywords 'indicator', 'objective' and 'management'.")

<!--

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 count3110.89768430
LabelTraining Sample Count
Brainstorming250
Coding253
Extraction250
Factual QA255
Generation250
Math250
Reasoning250

Training Hyperparameters

  • batch_size: (16, 2)
  • num_epochs: (1, 15)
  • max_steps: 500
  • sampling_strategy: oversampling
  • bodylearningrate: (2e-05, 1e-05)
  • headlearningrate: 0.0001
  • loss: CosineSimilarityLoss
  • distancemetric: cosinedistance
  • margin: 0.25
  • endtoend: True
  • use_amp: False
  • warmup_proportion: 0.1
  • l2_weight: 0.01
  • seed: 42
  • runname: stellaen400Mv5
  • evaluation_strategy: no
  • evalmaxsteps: -1
  • loadbestmodelatend: False

Training Results

EpochStepTraining LossValidation Loss
0.00210.2869-
0.00420.1469-
0.00630.2431-
0.00840.3568-
0.0150.2769-
0.01260.2425-
0.01470.2001-
0.01680.2825-
0.01890.2433-
0.02100.3096-
0.022110.2856-
0.024120.265-
0.026130.2476-
0.028140.1764-
0.03150.1491-
0.032160.3051-
0.034170.2445-
0.036180.249-
0.038190.1981-
0.04200.1892-
0.042210.1933-
0.044220.2331-
0.046230.2145-
0.048240.1708-
0.05250.2272-
0.052260.1714-
0.054270.2138-
0.056280.2178-
0.058290.1346-
0.06300.1939-
0.062310.1632-
0.064320.1934-
0.066330.1897-
0.068340.1558-
0.07350.1568-
0.072360.1116-
0.074370.1609-
0.076380.1294-
0.078390.1511-
0.08400.1654-
0.082410.1542-
0.084420.0887-
0.086430.0811-
0.088440.0991-
0.09450.0845-
0.092460.0875-
0.094470.0338-
0.096480.0945-
0.098490.0477-
0.1500.0696-
0.102510.136-
0.104520.099-
0.106530.0371-
0.108540.0513-
0.11550.0484-
0.112560.0194-
0.114570.0601-
0.116580.1149-
0.118590.0836-
0.12600.0865-
0.122610.0659-
0.124620.0849-
0.126630.0963-
0.128640.07-
0.13650.0233-
0.132660.1248-
0.134670.0561-
0.136680.0851-
0.138690.0638-
0.14700.0498-
0.142710.0311-
0.144720.1374-
0.146730.0502-
0.148740.0605-
0.15750.0137-
0.152760.065-
0.154770.0846-
0.156780.0347-
0.158790.0517-
0.16800.1447-
0.162810.0609-
0.164820.1423-
0.166830.0917-
0.168840.226-
0.17850.0595-
0.172860.0588-
0.174870.0228-
0.176880.0925-
0.178890.0595-
0.18900.044-
0.182910.0244-
0.184920.0939-
0.186930.0794-
0.188940.0501-
0.19950.1363-
0.192960.0502-
0.194970.0498-
0.196980.0562-
0.198990.0657-
0.21000.0397-
0.2021010.0305-
0.2041020.0559-
0.2061030.0871-
0.2081040.063-
0.211050.0143-
0.2121060.0706-
0.2141070.0627-
0.2161080.1047-
0.2181090.0487-
0.221100.0086-
0.2221110.0562-
0.2241120.0101-
0.2261130.0235-
0.2281140.0511-
0.231150.0295-
0.2321160.0549-
0.2341170.0554-
0.2361180.0301-
0.2381190.0152-
0.241200.0234-
0.2421210.01-
0.2441220.0372-
0.2461230.0085-
0.2481240.0205-
0.251250.0117-
0.2521260.0039-
0.2541270.0178-
0.2561280.0276-
0.2581290.0592-
0.261300.0143-
0.2621310.0667-
0.2641320.0059-
0.2661330.0767-
0.2681340.0088-
0.271350.0034-
0.2721360.0031-
0.2741370.0151-
0.2761380.0072-
0.2781390.0033-
0.281400.0188-
0.2821410.0069-
0.2841420.1552-
0.2861430.0618-
0.2881440.0043-
0.291450.0209-
0.2921460.0094-
0.2941470.0191-
0.2961480.0119-
0.2981490.0012-
0.31500.0014-
0.3021510.0121-
0.3041520.0018-
0.3061530.0792-
0.3081540.0027-
0.311550.0035-
0.3121560.0009-
0.3141570.0014-
0.3161580.0068-
0.3181590.0025-
0.321600.003-
0.3221610.0116-
0.3241620.0009-
0.3261630.0404-
0.3281640.0022-
0.331650.0011-
0.3321660.0122-
0.3341670.0006-
0.3361680.0138-
0.3381690.0101-
0.341700.0019-
0.3421710.0033-
0.3441720.0035-
0.3461730.007-
0.3481740.0008-
0.351750.002-
0.3521760.0006-
0.3541770.001-
0.3561780.0011-
0.3581790.0057-
0.361800.0003-
0.3621810.001-
0.3641820.0007-
0.3661830.0016-
0.3681840.0018-
0.371850.001-
0.3721860.0009-
0.3741870.0057-
0.3761880.0008-
0.3781890.0182-
0.381900.0005-
0.3821910.053-
0.3841920.0012-
0.3861930.0158-
0.3881940.0043-
0.391950.0074-
0.3921960.0013-
0.3941970.0016-
0.3961980.0021-
0.3981990.0007-
0.42000.002-
0.4022010.0004-
0.4042020.0008-
0.4062030.0002-
0.4082040.0026-
0.412050.0012-
0.4122060.0004-
0.4142070.0017-
0.4162080.0038-
0.4182090.0008-
0.422100.0008-
0.4222110.0007-
0.4242120.0577-
0.4262130.0013-
0.4282140.0005-
0.432150.0015-
0.4322160.0006-
0.4342170.0005-
0.4362180.0017-
0.4382190.001-
0.442200.0002-
0.4422210.0005-
0.4442220.003-
0.4462230.0007-
0.4482240.0002-
0.452250.001-
0.4522260.0006-
0.4542270.001-
0.4562280.0506-
0.4582290.0005-
0.462300.0009-
0.4622310.0015-
0.4642320.0003-
0.4662330.0004-
0.4682340.001-
0.472350.0004-
0.4722360.0007-
0.4742370.0014-
0.4762380.0003-
0.4782390.0004-
0.482400.0007-
0.4822410.0002-
0.4842420.0006-
0.4862430.0003-
0.4882440.0004-
0.492450.0587-
0.4922460.0003-
0.4942470.0007-
0.4962480.0013-
0.4982490.0507-
0.52500.0002-
0.5022510.0004-
0.5042520.0003-
0.5062530.0004-
0.5082540.0002-
0.512550.0003-
0.5122560.0096-
0.5142570.0002-
0.5162580.0003-
0.5182590.0003-
0.522600.0013-
0.5222610.0004-
0.5242620.0004-
0.5262630.0007-
0.5282640.0006-
0.532650.0003-
0.5322660.0023-
0.5342670.0008-
0.5362680.0002-
0.5382690.0018-
0.542700.0002-
0.5422710.0007-
0.5442720.0001-
0.5462730.0004-
0.5482740.0618-
0.552750.0192-
0.5522760.0009-
0.5542770.0142-
0.5562780.0014-
0.5582790.0006-
0.562800.0565-
0.5622810.0006-
0.5642820.0233-
0.5662830.0004-
0.5682840.0116-
0.572850.0002-
0.5722860.0032-
0.5742870.0001-
0.5762880.0003-
0.5782890.0004-
0.582900.0003-
0.5822910.0003-
0.5842920.0003-
0.5862930.0012-
0.5882940.0021-
0.592950.0002-
0.5922960.0003-
0.5942970.0022-
0.5962980.0005-
0.5982990.0005-
0.63000.0024-
0.6023010.0008-
0.6043020.0003-
0.6063030.0022-
0.6083040.0069-
0.613050.0009-
0.6123060.0144-
0.6143070.0004-
0.6163080.0006-
0.6183090.0006-
0.623100.0261-
0.6223110.0002-
0.6243120.0003-
0.6263130.0003-
0.6283140.0007-
0.633150.0603-
0.6323160.0002-
0.6343170.0003-
0.6363180.0007-
0.6383190.0006-
0.643200.0002-
0.6423210.0016-
0.6443220.0003-
0.6463230.0003-
0.6483240.0002-
0.653250.0006-
0.6523260.0006-
0.6543270.0006-
0.6563280.0002-
0.6583290.0004-
0.663300.0002-
0.6623310.0002-
0.6643320.0001-
0.6663330.0466-
0.6683340.0002-
0.673350.0003-
0.6723360.0005-
0.6743370.0013-
0.6763380.0002-
0.6783390.0004-
0.683400.0573-
0.6823410.0001-
0.6843420.0002-
0.6863430.0002-
0.6883440.0009-
0.693450.024-
0.6923460.0003-
0.6943470.0011-
0.6963480.0002-
0.6983490.0191-
0.73500.0001-
0.7023510.0002-
0.7043520.0009-
0.7063530.0004-
0.7083540.0001-
0.713550.0-
0.7123560.0002-
0.7143570.0002-
0.7163580.0009-
0.7183590.0005-
0.723600.0013-
0.7223610.0046-
0.7243620.0001-
0.7263630.0005-
0.7283640.0002-
0.733650.0017-
0.7323660.0332-
0.7343670.0004-
0.7363680.0203-
0.7383690.0003-
0.743700.0001-
0.7423710.0003-
0.7443720.0004-
0.7463730.0133-
0.7483740.0009-
0.753750.0017-
0.7523760.0016-
0.7543770.0022-
0.7563780.0015-
0.7583790.0004-
0.763800.0002-
0.7623810.0001-
0.7643820.0004-
0.7663830.0001-
0.7683840.0012-
0.773850.0005-
0.7723860.0018-
0.7743870.032-
0.7763880.0002-
0.7783890.0001-
0.783900.0019-
0.7823910.001-
0.7843920.0003-
0.7863930.0001-
0.7883940.0005-
0.793950.0016-
0.7923960.0005-
0.7943970.0018-
0.7963980.0007-
0.7983990.0002-
0.84000.0004-
0.8024010.0002-
0.8044020.001-
0.8064030.0001-
0.8084040.0002-
0.814050.0002-
0.8124060.0004-
0.8144070.0003-
0.8164080.0001-
0.8184090.0004-
0.824100.001-
0.8224110.0005-
0.8244120.0001-
0.8264130.0002-
0.8284140.0001-
0.834150.0004-
0.8324160.0002-
0.8344170.0002-
0.8364180.0001-
0.8384190.0002-
0.844200.0011-
0.8424210.0002-
0.8444220.0003-
0.8464230.0002-
0.8484240.0004-
0.854250.0002-
0.8524260.0002-
0.8544270.0501-
0.8564280.0001-
0.8584290.0002-
0.864300.0004-
0.8624310.0003-
0.8644320.0001-
0.8664330.0001-
0.8684340.0001-
0.874350.0002-
0.8724360.0008-
0.8744370.0001-
0.8764380.0002-
0.8784390.0002-
0.884400.0004-
0.8824410.0002-
0.8844420.0002-
0.8864430.0001-
0.8884440.0006-
0.894450.0002-
0.8924460.0003-
0.8944470.0002-
0.8964480.0011-
0.8984490.0002-
0.94500.0004-
0.9024510.0001-
0.9044520.0009-
0.9064530.0001-
0.9084540.0003-
0.914550.0006-
0.9124560.0028-
0.9144570.0002-
0.9164580.0001-
0.9184590.0002-
0.924600.0002-
0.9224610.0004-
0.9244620.0001-
0.9264630.0001-
0.9284640.0001-
0.934650.002-
0.9324660.0003-
0.9344670.0006-
0.9364680.0001-
0.9384690.0002-
0.944700.0002-
0.9424710.0001-
0.9444720.0002-
0.9464730.0003-
0.9484740.0003-
0.954750.001-
0.9524760.0002-
0.9544770.0001-
0.9564780.0003-
0.9584790.0002-
0.964800.0487-
0.9624810.0002-
0.9644820.0004-
0.9664830.0002-
0.9684840.0001-
0.974850.0003-
0.9724860.0002-
0.9744870.0003-
0.9764880.0088-
0.9784890.0003-
0.984900.0011-
0.9824910.0003-
0.9844920.0001-
0.9864930.0001-
0.9884940.0003-
0.994950.0002-
0.9924960.0004-
0.9944970.0003-
0.9964980.0001-
0.9984990.0002-
1.05000.0002-

Framework Versions

  • Python: 3.11.3
  • SetFit: 1.2.0.dev0
  • Sentence Transformers: 3.4.1
  • Transformers: 4.49.0
  • PyTorch: 2.6.0+cu124
  • Datasets: 3.3.2
  • Tokenizers: 0.21.0

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