CoolFace
Modelpublic

vishwa1004/chatbot_theme_map

sourceHugging Faceupdated 20d agoView on Hugging Face
0likes84downloads
Model Card

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

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-mpnet-base-v2 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
Movement<ul><li>'Fellowship network connecting volunteers working across the education sector.'</li><li>'Champion program recruiting teachers to advocate for policy change.'</li><li>'Field-building initiative connecting practitioners across different states.'</li></ul>
Foundational Learning<ul><li>'Basic numeracy worksheets designed for early primary students struggling with number recognition.'</li><li>'Bridge course materials to help out-of-school children catch up on basic reading and arithmetic.'</li><li>'A remedial reading intervention for grade 3 students performing below grade level.'</li></ul>
School Governance<ul><li>'Feedback mechanism for teachers to raise concerns with school leadership.'</li><li>'Checklist for school leaders to conduct internal accountability reviews.'</li><li>'Guide to preparing an annual school budget and expenditure tracker.'</li></ul>
Teaching and Learning Practises<ul><li>'Teacher motivation and wellbeing program addressing professional burnout.'</li><li>'Subject-specific teaching resources for secondary-level science and social studies.'</li><li>'Skill-readiness workshops integrated into regular classroom teaching.'</li></ul>
System Thinking<ul><li>'Landscape study of foundational learning interventions across a state.'</li><li>'Framework guiding how a state education department should allocate its annual budget across districts.'</li><li>'Logical framework for a multi-year systemic education reform programme.'</li></ul>
Community Engagement<ul><li>'Materials for training SMC members on their responsibilities and rights.'</li><li>"How can we get more parents involved in their child's schooling?"</li><li>'Parent workshop materials on supporting reading practice at home.'</li></ul>
Child Rights<ul><li>'Guidelines for staff on mandatory reporting of suspected child abuse.'</li><li>'Advocacy material addressing child labour and the right to education.'</li><li>"Workshop materials on children's participation rights in decision-making."</li></ul>
Inclusion<ul><li>'Guide for adapting worksheets for a child with dyslexia in a mainstream classroom.'</li><li>'Support model for first-generation learners from Scheduled Tribe communities.'</li><li>'Infrastructure accessibility guide for schools serving children with physical disabilities.'</li></ul>

Evaluation

Metrics

LabelAccuracy
all0.9

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("Support program for migrant children transitioning into new schools.")

<!--

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 count710.372916
LabelTraining Sample Count
Child Rights13
Community Engagement14
Foundational Learning15
Inclusion13
Movement14
School Governance19
System Thinking16
Teaching and Learning Practises14

Training Hyperparameters

  • batch_size: (16, 16)
  • num_epochs: (4, 4)
  • max_steps: -1
  • sampling_strategy: oversampling
  • num_iterations: 20
  • bodylearningrate: (2e-05, 2e-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: epoch
  • evalmaxsteps: -1
  • loadbestmodelatend: False

Training Results

EpochStepTraining LossValidation Loss
0.003410.1985-
0.1695500.1709-
0.33901000.1086-
0.50851500.0267-
0.67802000.0041-
0.84752500.0016-
1.0295-0.0386
1.01693000.0011-
1.18643500.0008-
1.35594000.0006-
1.52544500.0006-
1.69495000.0005-
1.86445500.0005-
2.0590-0.0377
2.03396000.0004-
2.20346500.0004-
2.37297000.0004-
2.54247500.0004-
2.71198000.0003-
2.88148500.0003-
3.0885-0.0370
3.05089000.0003-
3.22039500.0003-
3.389810000.0003-
3.559310500.0003-
3.728811000.0003-
3.898311500.0003-
4.01180-0.0372

Framework Versions

  • Python: 3.10.12
  • SetFit: 1.1.3
  • Sentence Transformers: 3.0.1
  • Transformers: 4.44.2
  • PyTorch: 2.13.0
  • Datasets: 2.20.0
  • Tokenizers: 0.19.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. -->