How to use phamduyphuong251/test-deploy-dify with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("phamduyphuong251/test-deploy-dify") 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]
How to use phamduyphuong251/test-deploy-dify with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("phamduyphuong251/test-deploy-dify") model = AutoModel.from_pretrained("phamduyphuong251/test-deploy-dify")
The community tab is the place to discuss and collaborate with the HF community!