How to use TencentBAC/Conan-embedding-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("TencentBAC/Conan-embedding-v1") 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]
my PC have no GPUs...
可以,无非就是慢而已,我3900XT大概每秒处理两个请求,4060TI能到50~60之间
· Sign up or log in to comment