Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

GPTasty
/
TastyRecipesEmbedder

Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:121408
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use GPTasty/TastyRecipesEmbedder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use GPTasty/TastyRecipesEmbedder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("GPTasty/TastyRecipesEmbedder")
    
    sentences = [
        "NAME: Baked Beans\n\nCATEGORY: Beans\n\nKEYWORDS: < 60 Mins, Easy, Inexpensive\n\nTOOLS: pan\n\nINGREDIENTS: ground beef, bell pepper, onion, brown sugar, lemon juice, ketchup, barbecue sauce\n\nINSTRUCTIONS: \nCook you bell pepper and onion in with your ground beef. Drain grease.\nIn a casserole mix all other ingredients.\nPut in over for 20 minutes.",
        "NAME: Hearty White Bean Bake\n\nCATEGORY: Beans\n\nKEYWORDS: < 60 Mins, Easy, Inexpensive, One-Pot\n\nTOOLS: pan\n\nINGREDIENTS: ground turkey, poblano pepper, shallot, maple syrup, apple cider vinegar, chili sauce, smoked paprika, cannellini beans\n\nINSTRUCTIONS:\nCook the poblano pepper and shallot with the ground turkey until the turkey is browned. Drain any excess grease.\nIn the same pan, combine the cooked turkey mixture with maple syrup, apple cider vinegar, chili sauce, smoked paprika, and cannellini beans.\nMix well and bake in the oven for 25 minutes, or until heated through and bubbly.",
        "NAME: Spicy Southwest Seasoning Mix\nCATEGORY: < 15 Mins\nKEYWORDS: No Cook, Easy, Spice Mix\nTOOLS: Small jar\nINGREDIENTS: onion powder, chili powder, smoked paprika, seasoning salt, cayenne pepper, black pepper\nINSTRUCTIONS: Add all ingredients into a small jar. Secure the lid tightly. Shake well until thoroughly combined.",
        "NAME: Rosé Sangria\n\nCATEGORY: Beverages\n\nKEYWORDS: Citrus, Berries, < 4 Hours, Easy, Refreshing\n\nTOOLS: large punch bowl, wooden spoon\n\nINGREDIENTS: limes, raspberries, sugar, rosé wine, brandy, strawberry slices\n\nINSTRUCTIONS:\nPlace lime slices and raspberries in a large punch bowl.\nPour sugar over slices and berries and with a wooden spoon lightly mash together until sugar dissolves and the fruit begins to break down.\nStir in rosé wine and brandy.\nAdd strawberry slices.\nRefrigerate at least 2 hours or up to 10.\nAdd ice cubes and sparkling water just before serving."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
TastyRecipesEmbedder
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
baiges's picture
baiges
Update fine-tuned Sentence Transformer model
7e1d01f verified about 1 year ago
  • 1_Pooling
    Update fine-tuned Sentence Transformer model about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    37.1 kB
    Update fine-tuned Sentence Transformer model about 1 year ago
  • config.json
    551 Bytes
    Update fine-tuned Sentence Transformer model about 1 year ago
  • config_sentence_transformers.json
    199 Bytes
    Update fine-tuned Sentence Transformer model about 1 year ago
  • model.safetensors
    438 MB
    xet
    Update fine-tuned Sentence Transformer model about 1 year ago
  • modules.json
    349 Bytes
    Update fine-tuned Sentence Transformer model about 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Update fine-tuned Sentence Transformer model about 1 year ago
  • special_tokens_map.json
    964 Bytes
    Update fine-tuned Sentence Transformer model about 1 year ago
  • tokenizer.json
    711 kB
    Update fine-tuned Sentence Transformer model about 1 year ago
  • tokenizer_config.json
    1.62 kB
    Update fine-tuned Sentence Transformer model about 1 year ago
  • vocab.txt
    232 kB
    Update fine-tuned Sentence Transformer model about 1 year ago