CoolFace
Modelpublic

Netta1994/setfit_baai_wikisum_gpt-4o_cot-few_shot_remove_final_evaluation_e1_1726757655.403782

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

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

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

Model Sources

Model Labels

LabelExamples
0<ul><li>"The answer is largely accurate and addresses the steps for petting a bearded dragon, such as using 1 or 2 fingers to stroke its head and picking it up if it's relaxed. However, it includes a section about using a specific perfume or scent to make the dragon comfortable, which is incorrect and can be overwhelming to the animal. The answer overall provides useful advice and follows guidelines from the document, but this misinformation about using scents is problematic.\n\nEvaluation:\nThe answer contains misinformation that isn't supported by the document and could be harmful.\nThe final evaluation:"</li><li>'The answer is factually incorrect and lacks alignment with the provided document. The document explicitly details the following identifying characteristics of a funnel spider: dark brown or black body, a hard and shiny carapace, large downward-pointing fangs, visible spinnerets, and an average size between 1 to 5 cm. The document also mentions that these spiders are found only in Australia and prefer moist, cool, and sheltered areas. Furthermore, the document specifies the differences between male and female funnel spiders. \n\nHowever, the answer lists traits like a light brown or gray body and legs covered with a thick, bright layer of hair, which directly contradicts the descriptions given in the document. It also mentions a "soft, dull carapace" which is incorrect according to the provided information. Additionally, it introduces irrelevant and incorrect details like the "3 small, non-poisonous fangs" which are contrary to the document\'s information about the funnel spider\'s large, poisonous fangs.\n\nDue to these contradictions and inaccuracies, the answer is not grounded in the document.\n\nFinal evaluation:'</li><li>'Evaluation:\nThe answer provided correctly addresses the question by confirming that Luis Figo left Barcelona to join Real Madrid, which is corroborated by the document.\n\nFinal Evaluation:'</li></ul>
1<ul><li>'The answer is well-grounded in the document and provides detailed, relevant information on how to hold a note while singing. It addresses several key points mentioned in the document, such as proper breathing techniques, posture, engaging specific muscles, and releasing air gradually. The information aligns with the steps and recommendations given in the document, ensuring that all major aspects are covered.\n\nFinal evaluation:'</li><li>'The answer effectively addresses the question by providing advice on how to stop feeling empty and is correctly grounded in the document. The suggestions, such as journaling, trying new things, and making new friends, align with the recommendations within the document. Additionally, it elaborates on specific strategies, like altering routines and engaging in social activities, which are supported by the information in the document.\n\nFinal evaluation:'</li><li>'The answer provided is grounded in the document and correctly explains the process of air-drying curly hair. It highlights important steps such as using hands to squeeze out excess water, applying leave-in conditioner, detangling with a wide-tooth comb, using styling products, and lifting the roots. The details match those provided in the document, making the answer consistent and accurate.\n\nFinal evaluation:'</li></ul>

Evaluation

Metrics

LabelAccuracy
all0.9054

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("Netta1994/setfit_baai_wikisum_gpt-4o_cot-few_shot_remove_final_evaluation_e1_1726757655.403782")
# Run inference
preds = model("The answer provides comprehensive information for identifying a funnel spider, including details about their physical characteristics such as body color, carapace, fangs, size, spinnerets, and distinctions between males and females. The document confirms all these points, making the answer well-grounded and accurate.

Final evaluation:")

<!--

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 count2591.5714242
LabelTraining Sample Count
033
137

Training Hyperparameters

  • —batch_size: (16, 16)
  • —num_epochs: (1, 1)
  • —max_steps: -1
  • —sampling_strategy: oversampling
  • —num_iterations: 20
  • —bodylearningrate: (2e-05, 2e-05)
  • —headlearningrate: 2e-05
  • —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.005710.2266-
0.2857500.2062-
0.57141000.0339-
0.85711500.0039-

Framework Versions

  • —Python: 3.10.14
  • —SetFit: 1.1.0
  • —Sentence Transformers: 3.1.0
  • —Transformers: 4.44.0
  • —PyTorch: 2.4.1+cu121
  • —Datasets: 2.19.2
  • —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. -->