This is a
sentence-transformers
model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
이 모델은
bongsoo/mdistilbertV2.1
MLM 모델을
sentencebert로 만든 후,추가적으로 STS Tearch-student 증류 학습 시켜 만든 모델 입니다.
vocab: 152,537 개
(기존 119,548 vocab 에 32,989 신규 vocab 추가)
from sentence_transformers import SentenceTransformer
sentences = ["서울은 한국이 수도이다", "The capital of Korea is Seoul"]
model = SentenceTransformer('bongsoo/moco-sentencedistilbertV2.1')
embeddings = model.encode(sentences)
print(embeddings)
# sklearn 을 이용하여 cosine_scores를 구함# => 입력값 embeddings 은 (1,768) 처럼 2D 여야 함.from sklearn.metrics.pairwise import paired_cosine_distances, paired_euclidean_distances, paired_manhattan_distances
cosine_scores = 1 - (paired_cosine_distances(embeddings[0].reshape(1,-1), embeddings[1].reshape(1,-1)))
print(f'*cosine_score:{cosine_scores[0]}')
Without
sentence-transformers
, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
Runs of bongsoo moco-sentencedistilbertV2.1 on huggingface.co
132
Total runs
1
24-hour runs
9
3-day runs
17
7-day runs
41
30-day runs
More Information About moco-sentencedistilbertV2.1 huggingface.co Model
moco-sentencedistilbertV2.1 huggingface.co
moco-sentencedistilbertV2.1 huggingface.co is an AI model on huggingface.co that provides moco-sentencedistilbertV2.1's model effect (), which can be used instantly with this bongsoo moco-sentencedistilbertV2.1 model. huggingface.co supports a free trial of the moco-sentencedistilbertV2.1 model, and also provides paid use of the moco-sentencedistilbertV2.1. Support call moco-sentencedistilbertV2.1 model through api, including Node.js, Python, http.
moco-sentencedistilbertV2.1 huggingface.co is an online trial and call api platform, which integrates moco-sentencedistilbertV2.1's modeling effects, including api services, and provides a free online trial of moco-sentencedistilbertV2.1, you can try moco-sentencedistilbertV2.1 online for free by clicking the link below.
bongsoo moco-sentencedistilbertV2.1 online free url in huggingface.co:
moco-sentencedistilbertV2.1 is an open source model from GitHub that offers a free installation service, and any user can find moco-sentencedistilbertV2.1 on GitHub to install. At the same time, huggingface.co provides the effect of moco-sentencedistilbertV2.1 install, users can directly use moco-sentencedistilbertV2.1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
moco-sentencedistilbertV2.1 install url in huggingface.co: