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

spacemanidol
/
esci-mpnet-crossencoder

Sentence Similarity
sentence-transformers
PyTorch
mpnet
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
2

Instructions to use spacemanidol/esci-mpnet-crossencoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use spacemanidol/esci-mpnet-crossencoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("spacemanidol/esci-mpnet-crossencoder")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
esci-mpnet-crossencoder
439 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
3v324v23's picture
3v324v23
updates
3debf49 almost 4 years ago
  • 1_Pooling
    adding modes almost 4 years ago
  • eval
    adding modes almost 4 years ago
  • .gitattributes
    1.34 kB
    initial commit almost 4 years ago
  • README.md
    2.35 kB
    updates almost 4 years ago
  • config.json
    655 Bytes
    updates almost 4 years ago
  • config_sentence_transformers.json
    116 Bytes
    updates almost 4 years ago
  • modules.json
    349 Bytes
    updates almost 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict",
    • "torch.LongStorage",
    • "torch.FloatStorage"

    What is a pickle import?

    438 MB
    xet
    updates almost 4 years ago
  • sentence_bert_config.json
    53 Bytes
    updates almost 4 years ago
  • special_tokens_map.json
    280 Bytes
    adding modes almost 4 years ago
  • tokenizer.json
    711 kB
    updates almost 4 years ago
  • tokenizer_config.json
    455 Bytes
    updates almost 4 years ago
  • vocab.txt
    232 kB
    adding modes almost 4 years ago