Sentence Similarity
PyTorch
Safetensors
sentence-transformers
Transformers
Vietnamese
generic
roberta
feature-extraction
Instructions to use bkai-foundation-models/vietnamese-bi-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use bkai-foundation-models/vietnamese-bi-encoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bkai-foundation-models/vietnamese-bi-encoder") sentences = [ "Làm thế nào Đại học Bách khoa Hà Nội thu hút sinh viên quốc tế?", "Đại học Bách khoa Hà Nội đã phát triển các chương trình đào tạo bằng tiếng Anh để làm cho việc học tại đây dễ dàng hơn cho sinh viên quốc tế.", "Môi trường học tập đa dạng và sự hỗ trợ đầy đủ cho sinh viên quốc tế tại Đại học Bách khoa Hà Nội giúp họ thích nghi nhanh chóng.", "Hà Nội có khí hậu mát mẻ vào mùa thu.", "Các món ăn ở Hà Nội rất ngon và đa dạng." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [5, 5] - Transformers
How to use bkai-foundation-models/vietnamese-bi-encoder with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("bkai-foundation-models/vietnamese-bi-encoder") model = AutoModel.from_pretrained("bkai-foundation-models/vietnamese-bi-encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Bump version support
84f9d9a
-
Update README.md
Verified signature008efe7
-
Update README.md
746d60b
-
Update README.md
f268298
-
Update README.md
dfb7bc5
-
Update README.md
bc7a1e5 -
Update README.md
b54e8b2 -
Update README.md
e0f651c -
Update README.md
41c7cee -
Update README.md
665f923 -
Update README.md
e8ffa22 -
Update README.md
26d93a5 -
add word segmentation before tokenization
c1d85a2
-
Add new SentenceTransformer model.
Pham Tien Son45f8ce2
-
Update README.md
fdc4696 -
Update example
6824a0c -
Update Readme.md
442d7fc -
Update model name
0f68f5f -
Add new SentenceTransformer model.
Pham Tien Son91e43e3 -
initial commit
Pham Tien Son09ee953