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

Stergios-Konstantinidis
/
MNLP_M3_document_encoder

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

Instructions to use Stergios-Konstantinidis/MNLP_M3_document_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Stergios-Konstantinidis/MNLP_M3_document_encoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Stergios-Konstantinidis/MNLP_M3_document_encoder")
    
    sentences = [
        "Question: who sang on the street where you live in my fair lady, Answer: On the Street Where You Live \"On the Street Where You Live\" is a song with music by Frederick Loewe and lyrics by Alan Jay Lerner, from the 1956 Broadway musical, My Fair Lady.[1] It is sung in the musical by the character Freddy Eynsford-Hill, who was portrayed by John Michael King in the original production. In the 1964 film version, it was sung by Bill Shirley, dubbing for actor Jeremy Brett.",
        "Question: who sang on the street where you live in my fair lady, Answer: On the Street Where You Live \"On the Street Where You Live\" is a song with music by Frederick Loewe and lyrics by Alan Jay Lerner, from the 1956 Broadway musical, My Fair Lady.[1] It is sung in the musical by the character Freddy Eynsford-Hill, who was portrayed by John Michael King in the original production. In the 1964 film version, it was sung by Bill Shirley, dubbing for actor Jeremy Brett.",
        "Question: who sings the song middle finger in the air, Answer: Middle Finger (song) \"Middle Finger\" is a song by American synthpop band Cobra Starship. The track was written and produced by Norwegian production team Stargate and features Pittsburgh rapper Mac Miller. It was released as the third promotional single from their fourth studio album, \"Night Shades\" and later as the second official single.",
        "[{'from': 'human', 'value': 'How can you use the x-intercepts and vertex of a quadratic equation to sketch its graph accurately?'}, {'from': 'gpt', 'value': 'To sketch the graph of a quadratic equation using the x-intercepts and vertex:\\n\\n1. Find the x-intercepts: Set y = 0 in the equation and solve for x. The x-intercepts are the points where the graph crosses the x-axis.\\n2. Find the vertex: Convert the equation into vertex form: y = a(x-h)^2 + k, where (h,k) is the vertex.\\n3. Plot the x-intercepts and vertex: Mark these points on the graph.\\n4. Determine the shape of the parabola: If a > 0, the parabola opens upwards. If a < 0, it opens downwards.\\n5. Sketch the parabola: Draw a smooth curve through the x-intercepts and vertex, following the shape determined in step 4.\\n\\nBy following these steps, you can accurately sketch the graph of a quadratic equation using its x-intercepts and vertex.'}]"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
MNLP_M3_document_encoder
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Stergios-Konstantinidis's picture
Stergios-Konstantinidis
Add new SentenceTransformer model
785e680 verified 11 months ago
  • 1_Pooling
    Add new SentenceTransformer model 11 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago
  • README.md
    37.2 kB
    Add new SentenceTransformer model 11 months ago
  • config.json
    618 Bytes
    Add new SentenceTransformer model 11 months ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model 11 months ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model 11 months ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model 11 months ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model 11 months ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model 11 months ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model 11 months ago
  • tokenizer_config.json
    1.41 kB
    Add new SentenceTransformer model 11 months ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model 11 months ago