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

  • Log In
  • Sign Up

pulkitmehtawork
/
sparse-distilbert-base-uncased-python-code-lightening

Feature Extraction
sentence-transformers
Safetensors
English
distilbert
sparse-encoder
sparse
splade
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use pulkitmehtawork/sparse-distilbert-base-uncased-python-code-lightening with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use pulkitmehtawork/sparse-distilbert-base-uncased-python-code-lightening with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("pulkitmehtawork/sparse-distilbert-base-uncased-python-code-lightening")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
sparse-distilbert-base-uncased-python-code-lightening / 1_SpladePooling
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
pulkitmehtawork's picture
pulkitmehtawork
Add new SparseEncoder model
b6d36f0 verified 10 months ago
  • config.json
    107 Bytes
    Add new SparseEncoder model 10 months ago