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

ibm-granite
/
granite-embedding-30m-sparse

Feature Extraction
sentence-transformers
PyTorch
Safetensors
English
roberta
language
granite
embeddings
sparse-encoder
sparse
splade
text-embeddings-inference
Model card Files Files and versions
xet
Community
3

Instructions to use ibm-granite/granite-embedding-30m-sparse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ibm-granite/granite-embedding-30m-sparse with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("ibm-granite/granite-embedding-30m-sparse")
    
    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]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
granite-embedding-30m-sparse
373 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 9 commits
pawasthy's picture
pawasthy
Update README.md
ad82b1f verified 9 months ago
  • 1_SpladePooling
    sentence_transformers_support (#3) 11 months ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    12.7 kB
    Update README.md 9 months ago
  • config.json
    688 Bytes
    updating _name_or_path about 1 year ago
  • config_sentence_transformers.json
    274 Bytes
    sentence_transformers_support (#3) 11 months ago
  • merges.txt
    456 kB
    Upload model files (#1) about 1 year ago
  • model.safetensors
    60.7 MB
    xet
    Upload model files (#1) about 1 year ago
  • modules.json
    274 Bytes
    sentence_transformers_support (#3) 11 months ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    310 MB
    xet
    Upload model files (#1) about 1 year ago
  • sentence_bert_config.json
    57 Bytes
    sentence_transformers_support (#3) 11 months ago
  • special_tokens_map.json
    239 Bytes
    Upload model files (#1) about 1 year ago
  • tokenizer.json
    1.36 MB
    Upload model files (#1) about 1 year ago
  • tokenizer_config.json
    1.18 kB
    Upload model files (#1) about 1 year ago
  • vocab.json
    798 kB
    Upload model files (#1) about 1 year ago
  • zero_to_fp32.py
    23.6 kB
    Upload model files (#1) about 1 year ago