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

SamTheMar
/
STM_emb

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

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

  • Libraries
  • sentence-transformers

    How to use SamTheMar/STM_emb with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("SamTheMar/STM_emb")
    
    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
STM_emb
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
SamTheMar's picture
SamTheMar
Add new SentenceTransformer model.
5e11d16 about 3 years ago
  • 1_Pooling
    Add new SentenceTransformer model. about 3 years ago
  • 2_Dense
    Add new SentenceTransformer model. about 3 years ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model. about 3 years ago
  • README.md
    2.56 kB
    Add new SentenceTransformer model. about 3 years ago
  • config.json
    594 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • modules.json
    341 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    539 MB
    xet
    Add new SentenceTransformer model. about 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • special_tokens_map.json
    125 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • tokenizer.json
    2.92 MB
    Add new SentenceTransformer model. about 3 years ago
  • tokenizer_config.json
    391 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • vocab.txt
    996 kB
    Add new SentenceTransformer model. about 3 years ago