CoolFace
Modelpublic

weizhou03/nomic-embed-text-v1.5

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes277downloads
Model Card

SetFit with nomic-ai/nomic-embed-text-v1.5

This is a SetFit model that can be used for Text Classification. This SetFit model uses nomic-ai/nomic-embed-text-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: nomic-ai/nomic-embed-text-v1.5
  • Classification head: a LogisticRegression instance
  • Maximum Sequence Length: 8192 tokens
  • Number of Classes: 63 classes <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Model Labels

LabelExamples
0<ul><li>'Add a corporate presentation background'</li><li>'Insert a modern icon set for the design'</li><li>'Add a mountain landscape background to the page'</li></ul>
1<ul><li>'Show me some background options for my design'</li><li>'I need some icon suggestions for this layout'</li><li>'Find me some shape options for this design'</li></ul>
2<ul><li>'Add a social media handle'</li><li>'Insert a promotional message'</li><li>"Add a heading that says 'Welcome'"</li></ul>
3<ul><li>'Align the footer elements'</li><li>'Align everything to the bottom'</li><li>'Center the logo and title'</li></ul>
4<ul><li>'Make the image slide from left'</li><li>'Make the image bounce in'</li><li>'Add a fade-in animation to the text'</li></ul>
5<ul><li>'Make the page rotate in'</li><li>'Add a zoom-out effect to the entire page'</li><li>'Make everything fade in gradually'</li></ul>
6<ul><li>'Change the color of the car to red'</li><li>'Remove the unwanted text overlay'</li><li>'Remove the sunglasses and add regular glasses'</li></ul>
7<ul><li>'Remove the unnecessary decoration'</li><li>'Remove the temporary shape'</li><li>'Delete the broken image'</li></ul>
8<ul><li>'How do I group elements together?'</li><li>'What text formatting options are there?'</li><li>'What are the available filter effects?'</li></ul>
9<ul><li>'Place the decorations around the title'</li><li>'Distribute the text around the focal point'</li><li>'Arrange the icons in a circle around the logo'</li></ul>
10<ul><li>'Make a copy for editing'</li><li>'Create a similar page'</li><li>'Make a backup of this page'</li></ul>
11<ul><li>'Copy the image and make it smaller'</li><li>'Duplicate the text and change the color'</li><li>'Duplicate the logo and flip it'</li></ul>
12<ul><li>'Copy the icon to the next slide'</li><li>'Duplicate the button to page 5'</li><li>'Copy the text to the last page'</li></ul>
13<ul><li>'Fix the typographic errors'</li><li>'Fix the letter spacing'</li><li>'Improve the paragraph spacing'</li></ul>
14<ul><li>'Mirror the logo vertically'</li><li>'Mirror the icon horizontally'</li><li>'Flip the image right to left'</li></ul>
15<ul><li>'Make an image of a cozy coffee shop'</li><li>'Make an image of a modern office space'</li><li>'Make an image of a magical forest'</li></ul>
16<ul><li>'Create a card for a birthday party'</li><li>'Create a dark-themed social media post for tech news'</li><li>'Generate an Instagram post for a birthday'</li></ul>
17<ul><li>'Group the navigation elements'</li><li>'Group the header elements'</li><li>'Group the decorative elements'</li></ul>
18<ul><li>'Move the element to the bottom left'</li><li>'Move the text to the middle'</li><li>'Position the logo in the corner'</li></ul>
19<ul><li>'Apply a cool blue filter'</li><li>'Add a dreamy effect'</li><li>'Apply a cinematic filter'</li></ul>
20<ul><li>'Find me some background images'</li><li>'Suggest some visual elements'</li><li>'Find me overlay effects'</li></ul>
21<ul><li>'Redo the filter effect'</li><li>'Bring back the deleted element'</li><li>'Bring back the deleted shape'</li></ul>
22<ul><li>'Make the object stand alone'</li><li>'Remove the background from the icon'</li><li>'Remove the background from the photo'</li></ul>
23<ul><li>'Remove the distracting element'</li><li>'Delete the watermark'</li><li>'Remove the old building'</li></ul>
24<ul><li>'Replace the image with a better one'</li><li>'Change the background to a different scene'</li><li>'Replace the overlay with a gradient'</li></ul>
25<ul><li>'Replace the menu items'</li><li>'Replace the title'</li><li>'Change the button text'</li></ul>
26<ul><li>'Restore the original brightness'</li><li>'Reset the image to its initial state'</li><li>'Restore the original colors'</li></ul>
27<ul><li>'Reduce the shape size'</li><li>'Increase the image size'</li><li>'Reduce the button size'</li></ul>
28<ul><li>'Make the page portrait orientation'</li><li>'Change to business card size'</li><li>'Make the page wider'</li></ul>
29<ul><li>'Rotate the element 60 degrees'</li><li>'Rotate the image clockwise'</li><li>'Turn the logo 270 degrees'</li></ul>
30<ul><li>'Scatter the flowers around the border'</li><li>'Distribute the shapes randomly'</li><li>'Scatter the stars around the title'</li></ul>
31<ul><li>'Select the main image'</li><li>'Choose the heading text'</li><li>'Select the logo element'</li></ul>
32<ul><li>'Make the background transparent'</li><li>'Change to a neutral background'</li><li>'Change to a light gray background'</li></ul>
33<ul><li>'Change the blend mode to exclusion'</li><li>'Set the blend mode to soft light'</li><li>'Set the blend mode to darken'</li></ul>
34<ul><li>'Add a depth of field blur'</li><li>'Blur the entire image'</li><li>'Add a motion blur effect'</li></ul>
35<ul><li>'Change the border width'</li><li>'Add a colored border'</li><li>'Add a gradient border'</li></ul>
36<ul><li>'Brighten the dark areas'</li><li>'Make the photo more illuminated'</li><li>'Make the image more brilliant'</li></ul>
37<ul><li>'Put the decoration behind'</li><li>'Move the icon to the top'</li><li>'Put the shape behind the text'</li></ul>
38<ul><li>'Make the image more striking'</li><li>'Enhance the contrast'</li><li>'Increase the visual clarity'</li></ul>
39<ul><li>'Make the image elliptical'</li><li>'Make the image circular'</li><li>'Make the image diamond-shaped'</li></ul>
40<ul><li>'Add a colored drop shadow'</li><li>'Create a realistic shadow'</li><li>'Create a soft drop shadow'</li></ul>
41<ul><li>'Fill the shape with orange'</li><li>'Change the color to teal'</li><li>'Fill the element with brown'</li></ul>
42<ul><li>'Make the subtitle larger'</li><li>'Make the description smaller'</li><li>'Make the label smaller'</li></ul>
43<ul><li>'Make the text italic only'</li><li>'Make the text emphasized'</li><li>'Make the text bold only'</li></ul>
44<ul><li>'Use a playful font'</li><li>'Use a professional font'</li><li>'Change to a modern sans-serif font'</li></ul>
45<ul><li>'Increase the highlight clarity'</li><li>'Increase the highlight intensity'</li><li>'Enhance the bright spots'</li></ul>
46<ul><li>'Make the photo cover the background'</li><li>'Set the picture as full background'</li><li>'Make the photo cover the entire page'</li></ul>
47<ul><li>'Spread out the letters in the heading'</li><li>'Make the letters closer together in the text'</li><li>'Tighten the letter spacing in the caption'</li></ul>
48<ul><li>'Add more line height'</li><li>'Make the text more readable'</li><li>'Reduce the line height'</li></ul>
49<ul><li>'Make the text more transparent'</li><li>'Reduce the opacity of the overlay'</li><li>'Make the element semi-transparent'</li></ul>
50<ul><li>'Make the sections closer'</li><li>'Make the paragraphs closer together'</li><li>'Reduce the paragraph spacing'</li></ul>
51<ul><li>'Make the colors more vivid'</li><li>'Increase the color intensity'</li><li>'Increase the color richness'</li></ul>
52<ul><li>'Darken the shadow regions'</li><li>'Darken the shadow tones'</li><li>'Enhance the shadow details'</li></ul>
53<ul><li>'Make the details more sharp'</li><li>'Increase the image resolution'</li><li>'Increase the detail sharpness'</li></ul>
54<ul><li>'Center the title text'</li><li>'Center the logo text'</li><li>'Justify the paragraph text'</li></ul>
55<ul><li>'Create a text container'</li><li>'Create a border around the text'</li><li>'Add a gradient background to the text'</li></ul>
56<ul><li>'Create curved text layout'</li><li>'Make the text flow in an arc'</li><li>'Make the text follow a path'</li></ul>
57<ul><li>'Make the text into bullet points'</li><li>'Make the text into a list with bullets'</li><li>'Create an organized list from the text'</li></ul>
58<ul><li>'Create a shadow behind the heading'</li><li>'Add a dramatic text shadow'</li><li>'Add a soft glow effect'</li></ul>
59<ul><li>'Increase the warm color cast'</li><li>'Make the image more yellow'</li><li>'Add warm undertones to the photo'</li></ul>
60<ul><li>'Open the image upload tool'</li><li>'Show me the file browser'</li><li>'Open the upload window'</li></ul>
61<ul><li>'Go back to the previous state'</li><li>'Undo the text edit'</li><li>'Revert the color change'</li></ul>
62<ul><li>'Ungroup the selected items'</li><li>'Break up the grouped objects'</li><li>'Ungroup the merged elements'</li></ul>

Evaluation

Metrics

LabelAccuracy
all0.6240

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("Position the text at the top")

<!--

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 count35.224312
LabelTraining Sample Count
015
115
215
315
415
515
615
715
815
915
1015
1115
1215
1315
1415
1515
1615
1715
1815
1915
2015
2115
2215
2315
2415
2515
2615
2715
2815
2915
3015
3115
3215
3315
3415
3515
3615
3715
3815
3915
4015
4115
4215
4315
4415
4515
4615
4715
4815
4915
5015
5115
5215
5315
5415
5515
5615
5715
5815
5915
6015
6115
6215

Training Hyperparameters

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

Training Results

EpochStepTraining LossValidation Loss
0.000110.1774-
0.0036500.1629-
0.00731000.1464-
0.01091500.1147-
0.01462000.0798-
0.01822500.0552-
0.02183000.0391-
0.02553500.0271-
0.02914000.0272-
0.03284500.018-
0.03645000.015-
0.04005500.0136-
0.04376000.012-
0.04736500.0105-
0.05107000.0094-
0.05467500.0087-
0.05838000.0061-
0.06198500.0078-
0.06559000.0068-
0.06929500.0066-
0.072810000.0053-
0.076510500.0057-
0.080111000.0065-
0.083711500.0054-
0.087412000.0058-
0.091012500.006-
0.094713000.0048-
0.098313500.0038-
0.101914000.0034-
0.105614500.0037-
0.109215000.006-
0.112915500.0047-
0.116516000.0042-
0.120116500.0038-
0.123817000.0036-
0.127417500.0049-
0.131118000.0019-
0.134718500.003-
0.138419000.003-
0.142019500.0024-
0.145620000.0023-
0.149320500.002-
0.152921000.0033-
0.156621500.0032-
0.160222000.0048-
0.163822500.004-
0.167523000.0032-
0.171123500.0033-
0.174824000.0036-
0.178424500.0031-
0.182025000.0024-
0.185725500.0016-
0.189326000.0024-
0.193026500.0034-
0.196627000.0022-
0.200227500.0021-
0.203928000.0022-
0.207528500.0012-
0.211229000.0022-
0.214829500.001-
0.218530000.0007-
0.222130500.0011-
0.225731000.0008-
0.229431500.0008-
0.233032000.0016-
0.236732500.0026-
0.240333000.0018-
0.243933500.0021-
0.247634000.001-
0.251234500.002-
0.254935000.0017-
0.258535500.0011-
0.262136000.0007-
0.265836500.0019-
0.269437000.0023-
0.273137500.0022-
0.276738000.0015-
0.280338500.0016-
0.284039000.0017-
0.287639500.0041-
0.291340000.0028-
0.294940500.0032-
0.298641000.004-
0.302241500.0025-
0.305842000.0026-
0.309542500.0024-
0.313143000.0015-
0.316843500.0013-
0.320444000.0026-
0.324044500.0017-
0.327745000.0015-
0.331345500.0013-
0.335046000.0012-
0.338646500.0009-
0.342247000.0008-
0.345947500.0009-
0.349548000.0005-
0.353248500.0005-
0.356849000.001-
0.360449500.0005-
0.364150000.0003-
0.367750500.0011-
0.371451000.0006-
0.375051500.0007-
0.378652000.0006-
0.382352500.0007-
0.385953000.0005-
0.389653500.001-
0.393254000.0006-
0.396954500.0011-
0.400555000.0009-
0.404155500.001-
0.407856000.001-
0.411456500.0011-
0.415157000.0007-
0.418757500.0008-
0.422358000.0009-
0.426058500.0004-
0.429659000.0007-
0.433359500.0005-
0.436960000.0011-
0.440560500.0007-
0.444261000.0007-
0.447861500.0003-
0.451562000.0004-
0.455162500.0006-
0.458763000.0003-
0.462463500.001-
0.466064000.0006-
0.469764500.0009-
0.473365000.0008-
0.477065500.0009-
0.480666000.0005-
0.484266500.0009-
0.487967000.0009-
0.491567500.0012-
0.495268000.0004-
0.498868500.0005-
0.502469000.0009-
0.506169500.0014-
0.509770000.0005-
0.513470500.0007-
0.517071000.0009-
0.520671500.0011-
0.524372000.001-
0.527972500.0021-
0.531673000.0015-
0.535273500.001-
0.538874000.001-
0.542574500.0018-
0.546175000.0009-
0.549875500.0008-
0.553476000.0004-
0.557176500.0007-
0.560777000.0009-
0.564377500.0011-
0.568078000.0006-
0.571678500.0016-
0.575379000.0016-
0.578979500.0009-
0.582580000.0017-
0.586280500.0017-
0.589881000.001-
0.593581500.001-
0.597182000.0005-
0.600782500.0008-
0.604483000.0003-
0.608083500.0005-
0.611784000.0006-
0.615384500.0006-
0.618985000.0007-
0.622685500.0006-
0.626286000.0007-
0.629986500.0008-
0.633587000.0005-
0.637287500.001-
0.640888000.0011-
0.644488500.0008-
0.648189000.0008-
0.651789500.0007-
0.655490000.0006-
0.659090500.0008-
0.662691000.0004-
0.666391500.0007-
0.669992000.0007-
0.673692500.0002-
0.677293000.0007-
0.680893500.0007-
0.684594000.0006-
0.688194500.0007-
0.691895000.0009-
0.695495500.0007-
0.699096000.0006-
0.702796500.0009-
0.706397000.0005-
0.710097500.0006-
0.713698000.001-
0.717398500.0004-
0.720999000.0006-
0.724599500.0006-
0.7282100000.0003-
0.7318100500.0009-
0.7355101000.0006-
0.7391101500.0011-
0.7427102000.0008-
0.7464102500.0006-
0.7500103000.0008-
0.7537103500.0006-
0.7573104000.0005-
0.7609104500.0008-
0.7646105000.0007-
0.7682105500.0005-
0.7719106000.0007-
0.7755106500.0011-
0.7791107000.0011-
0.7828107500.0008-
0.7864108000.0003-
0.7901108500.0006-
0.7937109000.0009-
0.7973109500.0006-
0.8010110000.0008-
0.8046110500.0005-
0.8083111000.0014-
0.8119111500.0007-
0.8156112000.0004-
0.8192112500.001-
0.8228113000.0005-
0.8265113500.0003-
0.8301114000.0005-
0.8338114500.0003-
0.8374115000.0004-
0.8410115500.0006-
0.8447116000.0006-
0.8483116500.0006-
0.8520117000.0005-
0.8556117500.0008-
0.8592118000.0009-
0.8629118500.0007-
0.8665119000.0012-
0.8702119500.0003-
0.8738120000.0006-
0.8774120500.0007-
0.8811121000.0008-
0.8847121500.0003-
0.8884122000.0006-
0.8920122500.0006-
0.8957123000.0004-
0.8993123500.0005-
0.9029124000.0005-
0.9066124500.0006-
0.9102125000.0004-
0.9139125500.0005-
0.9175126000.0003-
0.9211126500.0004-
0.9248127000.0005-
0.9284127500.0006-
0.9321128000.0004-
0.9357128500.0005-
0.9393129000.0005-
0.9430129500.0011-
0.9466130000.0004-
0.9503130500.0007-
0.9539131000.0005-
0.9575131500.0006-
0.9612132000.0005-
0.9648132500.0007-
0.9685133000.0007-
0.9721133500.0004-
0.9758134000.0005-
0.9794134500.0005-
0.9830135000.0004-
0.9867135500.0006-
0.9903136000.0004-
0.9940136500.0007-
0.9976137000.0007-

Framework Versions

  • Python: 3.12.11
  • SetFit: 1.1.3
  • Sentence Transformers: 5.1.0
  • Transformers: 4.54.1
  • PyTorch: 2.7.1
  • Datasets: 4.0.0
  • Tokenizers: 0.21.4

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. -->