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

thehosy
/
vi-roberta-base-qa-embedding

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

Instructions to use thehosy/vi-roberta-base-qa-embedding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use thehosy/vi-roberta-base-qa-embedding with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("thehosy/vi-roberta-base-qa-embedding")
    
    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 thehosy/vi-roberta-base-qa-embedding with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("thehosy/vi-roberta-base-qa-embedding")
    model = AutoModel.from_pretrained("thehosy/vi-roberta-base-qa-embedding")
  • Notebooks
  • Google Colab
  • Kaggle
vi-roberta-base-qa-embedding
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
thehosy's picture
thehosy
Update README.md
c4943a7 verified almost 2 years ago
  • 1_Pooling
    Create 1_Pooling/config.json almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    4.67 kB
    Update README.md almost 2 years ago
  • config.json
    669 Bytes
    initial commit almost 2 years ago
  • config_sentence_transformers.json
    171 Bytes
    Create config_sentence_transformers.json almost 2 years ago
  • merges.txt
    512 kB
    initial commit almost 2 years ago
  • model.safetensors
    497 MB
    xet
    initial commit almost 2 years ago
  • modules.json
    229 Bytes
    Create modules.json almost 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Create sentence_bert_config.json almost 2 years ago
  • special_tokens_map.json
    964 Bytes
    initial commit almost 2 years ago
  • tokenizer.json
    2.22 MB
    initial commit almost 2 years ago
  • tokenizer_config.json
    1.41 kB
    Update tokenizer_config.json almost 2 years ago
  • vocab.json
    854 kB
    initial commit almost 2 years ago