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

  • Log In
  • Sign Up

danthepol
/
MNLP_M3_document_encoder

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

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

  • Libraries
  • sentence-transformers

    How to use danthepol/MNLP_M3_document_encoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("danthepol/MNLP_M3_document_encoder")
    
    sentences = [
        "A certain junior class has 1000 students and a certain senior class has 900 students. Among these students, there are 60 siblings pairs each consisting of 1 junior and 1 senior. If 1 student is to be selected at random from each class, what is the probability that the 2 students selected will be a sibling pair?",
        "Let's see Pick 60/1000 first Then we can only pick 1 other pair from the 800 So total will be 60 / 900 *1000 Simplify and you get 2/30000",
        "To maximize number of hot dogs with 300$ Total number of hot dogs bought in 250-pack = 22.95*13 =298.35$ Amount remaining = 300 - 298.35 = 1.65$ This amount is too less to buy any 8- pack . Greatest number of hot dogs one can buy with 300 $ = 250*13 = 3250",
        "artificial leg"
    ]
    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
danthepol's picture
danthepol
Add new SentenceTransformer model
aaf9507 verified 11 months ago
  • 1_Pooling
    Add new SentenceTransformer model 11 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago
  • README.md
    22.7 kB
    Add new SentenceTransformer model 11 months ago
  • config.json
    696 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
    52 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.46 kB
    Add new SentenceTransformer model 11 months ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model 11 months ago