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

bongsoo
/
moco-sentencebertV2.0

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

Instructions to use bongsoo/moco-sentencebertV2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use bongsoo/moco-sentencebertV2.0 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("bongsoo/moco-sentencebertV2.0")
    
    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 bongsoo/moco-sentencebertV2.0 with Transformers:

    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("bongsoo/moco-sentencebertV2.0")
    model = AutoModel.from_pretrained("bongsoo/moco-sentencebertV2.0", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
moco-sentencebertV2.0
818 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 20 commits
bongsoo's picture
bongsoo
Update README.md
c3b41d6 about 4 years ago
  • 1_Pooling
    Upload config.json about 4 years ago
  • .gitattributes
    1.38 kB
    initial commit about 4 years ago
  • README.md
    9.63 kB
    Update README.md about 4 years ago
  • config.json
    845 Bytes
    Upload config.json about 4 years ago
  • config_sentence_transformers.json
    118 Bytes
    Upload config_sentence_transformers.json about 4 years ago
  • modules.json
    229 Bytes
    Upload modules.json about 4 years ago
  • pytorch_model.bin
    813 MB
    xet
    Upload pytorch_model.bin about 4 years ago
  • sentence_bert_config.json
    53 Bytes
    Upload sentence_bert_config.json about 4 years ago
  • similarity_evaluation_sts-test_results.csv
    299 Bytes
    Upload similarity_evaluation_sts-test_results.csv about 4 years ago
  • special_tokens_map.json
    125 Bytes
    Upload special_tokens_map.json about 4 years ago
  • tokenizer.json
    3.77 MB
    Upload tokenizer.json about 4 years ago
  • tokenizer_config.json
    506 Bytes
    Upload tokenizer_config.json about 4 years ago
  • vocab.txt
    1.28 MB
    Upload vocab.txt about 4 years ago