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

  • Log In
  • Sign Up

mrp
/
SCT_BERT_Small

Sentence Similarity
sentence-transformers
PyTorch
Transformers
English
feature-extraction
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • sentence-transformers

    How to use mrp/SCT_BERT_Small with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("mrp/SCT_BERT_Small")
    
    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]
  • Transformers

    How to use mrp/SCT_BERT_Small with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("mrp/SCT_BERT_Small", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
SCT_BERT_Small / eval
26.3 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
mrp's picture
mrp
add model
90142a9 over 2 years ago
  • similarity_evaluation_sts-dev_results.csv
    26.3 kB
    add model over 2 years ago