CoolFace
Modelpublic

beethogedeon/reform-sent-Qwen3-0.6B

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes7downloads
Model Card

SetFit with Qwen/Qwen3-Embedding-0.6B

This is a SetFit model that can be used for Text Classification. This SetFit model uses Qwen/Qwen3-Embedding-0.6B 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: Qwen/Qwen3-Embedding-0.6B
  • —Classification head: a LogisticRegression instance
  • —Maximum Sequence Length: 32768 tokens
  • —Number of Classes: 5 classes <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Model Labels

LabelExamples
Moderate negative<ul><li>'1:21PM Growth downgrade due to slowdown in Eurozone\n\nGrowth is projected to slow in advanced economies to 2.0% in 2019 and 1.7% in 2020, and tick down to 4.5% in 2019 before improving to 4.9% in emerging markets and developing economies.'</li><li>'Informally, they say any likely credit impact is manageable, and that they are constructive on what the new finance minister and central bank governor can do in combination with the IMF, though they mention the IMF option should have been explored much sooner.'</li><li>'22 Aug 2012 09:22 EDT DJ \nIMF Sees Greek Recession Continuing to 2015 - Sources\n\n22 Aug 2012 09:22 EDT DJ \nIMF Sees Greek Economic Recovery in 2016 - Sources\n\n22'</li></ul>
Strong negative<ul><li>'Over time, it has become a crucial source of financial support for Argentina when it faces cash shortages.'</li><li>'The Soviet leadership was forced to liberalize to rescue the economy.'</li><li>'Going forward, the exchange rate adjustment rate will be carefully calibrated to facilitate the achievement of reserve accumulation and inflation reduction objectives, while real interest rates will remain at appropriately positive levels to continue to support demand for peso assets," said the head of the Fund.'</li></ul>
Moderate positive<ul><li>'To recap, we suspect Trump’s proposed curbs on immigration and new tariffs would be stagflationary.'</li><li>'"\n\nShe said the government\'s primary focus under Prime Minister Narendra Modi is achieving \'Viksit Bharat\' by 2047.'</li><li>'Debt trades at stress values with high implied default probabilities.'</li></ul>
Neutral<ul><li>'[ID:nLDE74Q11E]\n\nJuncker on Thursday warned European countries could not be counted on to step up and fill the gap left by the IMF if it decided against releasing its portion of the June aid tranche.'</li><li>'Thursday afternoon, the euro was at $1.3558 from $1.3703 late Wednesday, according to EBS via CQG.'</li><li>'She said good governance must be embedded into the legal system of Malaysia because that would be the best way to make sure it would survive the passing of time and the change of authorities over the course of time.'</li></ul>
Strong positive<ul><li>'It is a huge success, because when the discussions first started four years ago, the amount was around $200 million, and now we have managed to raise it to $500 million.'</li><li>"More than fear, the economic policy of today's government inspires curiosity and criticism of its recharged populism."</li><li>'Dar said the government would generate additional resources to meet the flood expenditure requirements before seeking help from the international community.'</li></ul>

Evaluation

Metrics

LabelAccuracy
all0.3025

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("beethogedeon/reform-sent-Qwen3-0.6B")
# Run inference
preds = model("The IMF needs \"to remain very attentive\" over trade, says Ms Lagarde.")

<!--

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 count324.2946116
LabelTraining Sample Count
Moderate negative100
Moderate positive99
Neutral100
Strong negative100
Strong positive100

Training Hyperparameters

  • —batch_size: (8, 2)
  • —num_epochs: (1, 16)
  • —max_steps: 500
  • —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.00810.2758-
0.4500.2592-
0.81000.2532-
1.21500.2179-
1.62000.1754-
2.02500.14-
2.43000.069-
2.83500.028-
3.24000.0034-
3.64500.0013-
4.05000.0005-

Framework Versions

  • —Python: 3.11.5
  • —SetFit: 1.1.3
  • —Sentence Transformers: 5.1.2
  • —Transformers: 4.53.3
  • —PyTorch: 2.7.0
  • —Datasets: 4.1.0
  • —Tokenizers: 0.21.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. -->