CoolFace
Modelpublic

research-dump/bge-small-en-v1.5_wikipedia_gr_stance_prediction_en

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

SetFit with BAAI/bge-small-en-v1.5

This is a SetFit model that can be used for Text Classification. This SetFit model uses BAAI/bge-small-en-v1.5 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 Type: SetFit
  • —Sentence Transformer body: BAAI/bge-small-en-v1.5
  • —Classification head: a LogisticRegression instance
  • —Maximum Sequence Length: 512 tokens
  • —Number of Classes: 4 classes <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Model Labels

LabelExamples
2<ul><li>"this stub article, though short, is considerably more than a just dictionary definition. I don't see how applies"</li><li>"I'm not aware of any specific policies that cover obscure ethnic foods, but there seem to be enough results on http://books.google.com/books?&q=%22Rumbledethumps Google Books and http://news.google.com/archivesearch?q=%22Rumbledethumps&cf=all Google News to satisfy "</li><li>'"I most certainly did not remove an AfD tag, which I would never do. I removed aPROD, which any editor is allowed to do for any good reason. ""PROD must only be used if no opposition is to be expected. The article is marked for seven days; if nobody objects, it is deleted. The first objection kills the PROD."" Opposition can certainly be expected when the article survived an AfD in 2008. I added two sources to the article yesterday. Rather than a brief mention, one of these, http://books.google.com/books?id=mKcFPL4Vn0IC&pg=PA32&dq=%22Sue+Snell%22&hl=en&sa=X&ei=hGG9UffJIoXkrAHDvYGwCA&ved=0CFQQ6AEwCA#v=onepage&q=%22Sue%20Snell%22&f=false Hollywood\'s Stephen King spends two full pages 31-33 in a detailed literary analysis of the character. Reasonable people can differ about whether the coverage I pointed out is significant enough. However, there are other sources that I have not yet had the opportunity to add to the article, and it is worth noting that this fictional character has appeared in a best-selling novel, two Hollywood films, a TV movie and a musical play that was performed in New York and London. The character is also in a film in production now. I believe that the character meets theGeneral notability guideline"'</li></ul>
1<ul><li>'fails .... which guideline is most appropriate here? '</li><li>'There is sufficient to support and simple , bit I totally agree with NOM, '</li><li>'fails and , as no independent sources seem to exist about them'</li></ul>
0<ul><li>"Having looked at the wikiproject Football's list of fully professional leagues I'am convinced also that Jogurneys claim that this article passes . Therefore I shall change my decsion to '''keep"</li><li>'References on this article and on Comic Valkyrie indicate there is enough coverage of that magazine to make itnotable. Recognizing that notability is not inherited, nonetheless when a company produces a notable product it strongly suggests that the company is notable in some way. Reserving my !vote pending checking whether any of the magazine references also discuss in some way the company as well'</li><li>"tagged for cleanup and verification. Article reads like complete adcruft, needs to be wikified, given a more encyclopedic tone, and the claims verified/sourced. It's also scraping crystalball clause IMO, as a beta of something that won't definitely be popular software when it comes out, or that has been widely adopted in beta. I could go either way on inclusion/deletion"</li></ul>
3<ul><li>'obviously if no content can be derived from reliable sources because nothing has happened yet. Merge to Sporting Clube de Portugal per . –&nbsp'</li><li>'to Vancouver School Board per precedent as stated at '</li><li>"rescuable'' content to police aircraft, the list of incidents involving paragliders where police attended is and probably unredeemable. Current article title not salvageable though"</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("research-dump/bge-small-en-v1.5_wikipedia_gr_stance_prediction_en")
# Run inference
preds = model("Meets . &mdash")

<!--

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 count235.91244
LabelTraining Sample Count
07
164
225
34

Training Hyperparameters

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

Training Results

EpochStepTraining LossValidation Loss
0.00210.2329-
1.05000.1660.2258
2.010000.020.2638
3.015000.00680.2447
4.020000.00420.2561
5.025000.00360.2562

Framework Versions

  • —Python: 3.10.12
  • —SetFit: 1.1.1
  • —Sentence Transformers: 3.3.1
  • —Transformers: 4.48.2
  • —PyTorch: 2.2.1+cu121
  • —Datasets: 2.21.0
  • —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. -->