Update model ke versi terbaru 3a88e11
Little Coder commited on
How to use lilcoderi/cv-matcher-model with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("lilcoderi/cv-matcher-model")
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]How to use lilcoderi/cv-matcher-model with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("lilcoderi/cv-matcher-model")
model = AutoModel.from_pretrained("lilcoderi/cv-matcher-model")