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

  • Log In
  • Sign Up

firqaaa
/
indo-sentence-bert-base

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

Instructions to use firqaaa/indo-sentence-bert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use firqaaa/indo-sentence-bert-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("firqaaa/indo-sentence-bert-base")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use firqaaa/indo-sentence-bert-base with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("firqaaa/indo-sentence-bert-base")
    model = AutoModel.from_pretrained("firqaaa/indo-sentence-bert-base")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
indo-sentence-bert-base
499 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 56 commits
firqaaa's picture
firqaaa
Update README.md
af8d649 verified about 2 years ago
  • 1_Pooling
    Upload 1_Pooling with huggingface_hub over 3 years ago
  • .gitattributes
    1.38 kB
    initial commit over 3 years ago
  • README.md
    4.88 kB
    Update README.md about 2 years ago
  • config.json
    1.1 kB
    Upload config.json over 3 years ago
  • config_sentence_transformers.json
    118 Bytes
    Upload config_sentence_transformers.json over 3 years ago
  • modules.json
    229 Bytes
    Upload modules.json over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    498 MB
    xet
    Upload pytorch_model.bin over 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Upload sentence_bert_config.json over 3 years ago
  • special_tokens_map.json
    125 Bytes
    Upload special_tokens_map.json over 3 years ago
  • tokenizer.json
    709 kB
    Upload tokenizer.json over 3 years ago
  • tokenizer_config.json
    551 Bytes
    Upload tokenizer_config.json over 3 years ago
  • vocab.txt
    229 kB
    Upload vocab.txt over 3 years ago