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

  • Log In
  • Sign Up

gszabo
/
sent_bert2

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

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

  • Libraries
  • sentence-transformers

    How to use gszabo/sent_bert2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("gszabo/sent_bert2")
    
    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 gszabo/sent_bert2 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("gszabo/sent_bert2")
    model = AutoModel.from_pretrained("gszabo/sent_bert2")
  • Notebooks
  • Google Colab
  • Kaggle
sent_bert2
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
gszabo's picture
gszabo
Add new SentenceTransformer model.
5589ad3 about 3 years ago
  • 1_Pooling
    Add new SentenceTransformer model. about 3 years ago
  • .gitattributes
    1.63 kB
    Add new SentenceTransformer model. about 3 years ago
  • README.md
    3.8 kB
    Add new SentenceTransformer model. about 3 years ago
  • config.json
    743 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
    229 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • pytorch_model.bin
    471 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
    280 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • tokenizer.json
    17.1 MB
    xet
    Add new SentenceTransformer model. about 3 years ago
  • tokenizer_config.json
    491 Bytes
    Add new SentenceTransformer model. about 3 years ago
  • unigram.json
    14.8 MB
    xet
    Add new SentenceTransformer model. about 3 years ago