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

sparse-encoder-testing
/
inference-free-splade-bert-tiny-nq

Feature Extraction
sentence-transformers
Safetensors
English
sparse-encoder
sparse
asymmetric
inference-free
splade
Generated from Trainer
dataset_size:99000
loss:SpladeLoss
loss:SparseMultipleNegativesRankingLoss
loss:FlopsLoss
Eval Results (legacy)
Model card Files Files and versions
xet
Community
1

Instructions to use sparse-encoder-testing/inference-free-splade-bert-tiny-nq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sparse-encoder-testing/inference-free-splade-bert-tiny-nq with sentence-transformers:

    from sentence_transformers import SparseEncoder
    
    model = SparseEncoder("sparse-encoder-testing/inference-free-splade-bert-tiny-nq")
    
    queries = ["Which planet is known as the Red Planet?"]
    documents = [
    	"Venus is often called Earth's twin because of its similar size and proximity.",
    	"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
    	"Jupiter, the largest planet in our solar system, has a prominent red spot.",
    ]
    
    query_embeddings = model.encode_query(queries)
    document_embeddings = model.encode_document(documents)
    
    similarities = model.similarity(query_embeddings, document_embeddings)
    print(similarities)
  • Notebooks
  • Google Colab
  • Kaggle
inference-free-splade-bert-tiny-nq
19.7 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
arthurbresnu's picture
arthurbresnu
Fix models to be up to date with the changes
73496a3 over 1 year ago
  • document_0_MLMTransformer
    Add new SparseEncoder model over 1 year ago
  • document_1_SpladePooling
    Add new SparseEncoder model over 1 year ago
  • query_0_SparseStaticEmbedding
    Fix models to be up to date with the changes over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    46.4 kB
    Fix models to be up to date with the changes over 1 year ago
  • config_sentence_transformers.json
    292 Bytes
    Add new SparseEncoder model over 1 year ago
  • modules.json
    115 Bytes
    Fix models to be up to date with the changes over 1 year ago
  • router_config.json
    685 Bytes
    Fix models to be up to date with the changes over 1 year ago
  • train_script.py
    3.82 kB
    Fix models to be up to date with the changes over 1 year ago