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

  • Log In
  • Sign Up

michaelfeil
/
stsb-roberta-base-v2

Sentence Similarity
sentence-transformers
PyTorch
Transformers
roberta-custom
feature-extraction
custom_code
Model card Files Files and versions
xet
Community

Instructions to use michaelfeil/stsb-roberta-base-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use michaelfeil/stsb-roberta-base-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("michaelfeil/stsb-roberta-base-v2", trust_remote_code=True)
    
    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 michaelfeil/stsb-roberta-base-v2 with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("michaelfeil/stsb-roberta-base-v2", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
stsb-roberta-base-v2
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
michaelfeil's picture
michaelfeil
Update README.md
31e3573 verified over 2 years ago
  • 1_Pooling
    Upload 14 files over 2 years ago
  • .gitattributes
    1.09 kB
    Upload 14 files over 2 years ago
  • README.md
    568 Bytes
    Update README.md over 2 years ago
  • config.json
    837 Bytes
    Upload 14 files over 2 years ago
  • config_sentence_transformers.json
    122 Bytes
    Upload 14 files over 2 years ago
  • merges.txt
    456 kB
    Upload 14 files over 2 years ago
  • modeling_roberta.py
    6.19 kB
    Upload 14 files over 2 years ago
  • modules.json
    229 Bytes
    Upload 14 files over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    499 MB
    xet
    Upload 14 files over 2 years ago
  • sentence_bert_config.json
    52 Bytes
    Upload 14 files over 2 years ago
  • special_tokens_map.json
    239 Bytes
    Upload 14 files over 2 years ago
  • tokenizer.json
    1.36 MB
    Upload 14 files over 2 years ago
  • tokenizer_config.json
    1.11 kB
    Upload 14 files over 2 years ago
  • vocab.json
    798 kB
    Upload 14 files over 2 years ago