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

Ransaka
/
sinhala-roberta-sentence-transformer

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

Instructions to use Ransaka/sinhala-roberta-sentence-transformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Ransaka/sinhala-roberta-sentence-transformer with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Ransaka/sinhala-roberta-sentence-transformer")
    
    sentences = [
        "වී අස්වැන්න අඩුවී තිබෙනවා",
        "මෙවර වී අස්වැන්න සාර්ථක නැහැ",
        "පොහොර ලැබී ඇති නිසා වී වගාව සාර්ථක විය හැකිය",
        "මෙවර වී වගාව එතරම් සාර්ථක නැති බව ගොවි මහතා පැවසීය",
        "වී වගාව තරමක් සාර්ථක බව පේනවා"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [5, 5]
  • Transformers

    How to use Ransaka/sinhala-roberta-sentence-transformer with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("Ransaka/sinhala-roberta-sentence-transformer")
    model = AutoModel.from_pretrained("Ransaka/sinhala-roberta-sentence-transformer", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
sinhala-roberta-sentence-transformer
273 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 13 commits
Ransaka's picture
Ransaka
Update README.md
1751290 almost 3 years ago
  • 1_Pooling
    Upload folder using huggingface_hub almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    4.46 kB
    Update README.md almost 3 years ago
  • config.json
    675 Bytes
    Pushing sample model almost 3 years ago
  • config_sentence_transformers.json
    117 Bytes
    Pushing sample model almost 3 years ago
  • modules.json
    229 Bytes
    Pushing sample model almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    272 MB
    xet
    Pushing sample model almost 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Pushing sample model almost 3 years ago
  • special_tokens_map.json
    53 Bytes
    Pushing sample model almost 3 years ago
  • tokenizer.json
    1.09 MB
    Pushing sample model almost 3 years ago
  • tokenizer_config.json
    254 Bytes
    Pushing sample model almost 3 years ago