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

menadsa
/
S-BlueBERT

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

Instructions to use menadsa/S-BlueBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use menadsa/S-BlueBERT with sentence-transformers:

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("menadsa/S-BlueBERT")
    model = AutoModel.from_pretrained("menadsa/S-BlueBERT")
  • Notebooks
  • Google Colab
  • Kaggle
S-BlueBERT
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
menadsa's picture
menadsa
Create 1_Pooling/config.json
eb92d5c about 3 years ago
  • 1_Pooling
    Create 1_Pooling/config.json about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    3.71 kB
    upload S-BlueBERT model files over 3 years ago
  • config.json
    658 Bytes
    upload S-BlueBERT model files over 3 years ago
  • config_sentence_transformers.json
    118 Bytes
    upload S-BlueBERT model files over 3 years ago
  • modules.json
    229 Bytes
    upload S-BlueBERT model files over 3 years ago
  • pytorch_model.bin
    438 MB
    xet
    upload S-BlueBERT model files over 3 years ago
  • sentence_bert_config.json
    53 Bytes
    upload S-BlueBERT model files over 3 years ago
  • special_tokens_map.json
    112 Bytes
    upload S-BlueBERT model files over 3 years ago
  • tokenizer.json
    712 kB
    upload S-BlueBERT model files over 3 years ago
  • tokenizer_config.json
    379 Bytes
    upload S-BlueBERT model files over 3 years ago
  • vocab.txt
    232 kB
    upload S-BlueBERT model files over 3 years ago