Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

cyberbabooshka
/
MNLP_M3_document_encoder

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:1760
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use cyberbabooshka/MNLP_M3_document_encoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("cyberbabooshka/MNLP_M3_document_encoder")
    
    sentences = [
        "What is the relationship between the x- and y-coordinates in a linear relationship, and how can this relationship be represented visually on a graph?",
        "\"A linear relationship is a relationship between variables such that when plotted on a coordinate plane, the points lie on a line.\" Additionally, \"You can think of a line, then, as a collection of an infinite number of individual points that share the same mathematical relationship.\"",
        "\"A 'model' is a situation-specific description of a phenomenon based on a theory, that allows us to make a specific prediction.\" and \"In physics, it is particularly important to distinguish between these two terms. A model provides an immediate understanding of something based on a theory.\"",
        "\"Use capital letters to denote sets, $A,B, C, X, Y$ etc. [...] if you stick with these conventions people reading your work (including the person marking your exams) will know — 'Oh $A$ is that set they are talking about' and '$a$ is an element of that set.'\""
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
MNLP_M3_document_encoder
1.34 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
cyberbabooshka's picture
cyberbabooshka
Copied from source repo
9494b71 verified 11 months ago
  • 1_Pooling
    Copied from source repo 11 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago
  • README.md
    62.8 kB
    Copied from source repo 11 months ago
  • config.json
    620 Bytes
    Copied from source repo 11 months ago
  • config_sentence_transformers.json
    205 Bytes
    Copied from source repo 11 months ago
  • model.safetensors
    1.34 GB
    xet
    Copied from source repo 11 months ago
  • modules.json
    229 Bytes
    Copied from source repo 11 months ago
  • sentence_bert_config.json
    53 Bytes
    Copied from source repo 11 months ago
  • special_tokens_map.json
    695 Bytes
    Copied from source repo 11 months ago
  • tokenizer.json
    712 kB
    Copied from source repo 11 months ago
  • tokenizer_config.json
    1.46 kB
    Copied from source repo 11 months ago
  • vocab.txt
    232 kB
    Copied from source repo 11 months ago