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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Shipmaster1
/
minilm-youtube-adapter

Sentence Similarity
PEFT
Safetensors
sentence-transformers
feature-extraction
Generated from Trainer
dataset_size:2016
loss:MultipleNegativesRankingLoss
Model card Files Files and versions
xet
Community

Instructions to use Shipmaster1/minilm-youtube-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use Shipmaster1/minilm-youtube-adapter with PEFT:

    from peft import PeftModel
    from transformers import AutoModel
    
    base_model = AutoModel.from_pretrained("sentence-transformers/all-MiniLM-L6-v2")
    model = PeftModel.from_pretrained(base_model, "Shipmaster1/minilm-youtube-adapter")
  • sentence-transformers

    How to use Shipmaster1/minilm-youtube-adapter with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Shipmaster1/minilm-youtube-adapter")
    
    sentences = [
        "What are some benefits of having a standard like MCP in place for applications leveraging context and context learning, especially in terms of making investment decisions easier for the higher-level executive team?",
        "Venus back in the 70s, but it got stuck in Earth's orbit and has been on a crash course ever since. But Ready says you shouldn't be worried about it hitting you. the the hope is that most of it will burn down in the earth's atmosphere and then even if something makes it down, it'll fall in the ocean",
        "project so I know that Vibe coding is kind of like it's about disassociating from you know needing to think about these things but there is still an excit an exciting viby part of like what do I want my project to look like what do I want my starting point to to be what stack do I want to these",
        "investment from your higher level exec team a little bit easier knowing that there's a standard on the horizon here. uh MCP really provides those standard rules for applications that are leveraging context and context learning etc etc remember we got stateful means it's aware of previous stuff that"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
minilm-youtube-adapter
1.27 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Shipmaster1's picture
Shipmaster1
Upload folder using huggingface_hub
316f881 verified over 1 year ago
  • 1_Pooling
    Upload folder using huggingface_hub over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    18.5 kB
    Upload folder using huggingface_hub over 1 year ago
  • adapter_config.json
    799 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • adapter_model.safetensors
    298 kB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • modules.json
    229 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • special_tokens_map.json
    695 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer.json
    712 kB
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer_config.json
    1.46 kB
    Upload folder using huggingface_hub over 1 year ago
  • vocab.txt
    232 kB
    Upload folder using huggingface_hub over 1 year ago