--- base_model: nomic-ai/modernbert-embed-base library_name: setfit metrics: - accuracy pipeline_tag: text-classification tags: - setfit - sentence-transformers - text-classification - generated_from_setfit_trainer widget: - text: 'green might want to hang onto that ski mask , as robbery may be the only way to pay for his next project . ' - text: 'even horror fans will most likely not find what they ''re seeking with trouble every day ; the movie lacks both thrills and humor . ' - text: 'the acting , costumes , music , cinematography and sound are all astounding given the production ''s austere locales . ' - text: 'byler reveals his characters in a way that intrigues and even fascinates us , and he never reduces the situation to simple melodrama . ' - text: 'a sequence of ridiculous shoot - ''em - up scenes . ' inference: true co2_eq_emissions: emissions: 3.166930971100679 source: codecarbon training_type: fine-tuning on_cloud: false cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K ram_total_size: 31.777088165283203 hours_used: 0.023 hardware_used: 1 x NVIDIA GeForce RTX 3090 model-index: - name: SetFit with nomic-ai/modernbert-embed-base results: - task: type: text-classification name: Text Classification dataset: name: Unknown type: unknown split: test metrics: - type: accuracy value: 0.8976683937823834 name: Accuracy --- # SetFit with nomic-ai/modernbert-embed-base This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [nomic-ai/modernbert-embed-base](https://huggingface.co/nomic-ai/modernbert-embed-base) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification. The model has been trained using an efficient few-shot learning technique that involves: 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning. 2. Training a classification head with features from the fine-tuned Sentence Transformer. ## Model Details ### Model Description - **Model Type:** SetFit - **Sentence Transformer body:** [nomic-ai/modernbert-embed-base](https://huggingface.co/nomic-ai/modernbert-embed-base) - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance - **Maximum Sequence Length:** 8192 tokens - **Number of Classes:** 2 classes ### Model Sources - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit) - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055) - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit) ### Model Labels | Label | Examples | |:---------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | negative |