Downloads · 30 days
170
24% of all-time downloads
Whyteeeee/paraphrase-multilingual-MiniLM-L12-v2.gguf
paraphrase-multilingual-MiniLM-L12-v2.gguf is a machine learning model from Whyteeeee. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
170
24% of all-time downloads
All-time downloads
698
Public
Repo size
7.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf1.7 GB · 100%
From the Hugging Face model README
import torch
from llama_cpp import Llama
from sentence_transformers import SentenceTransformer
from scipy.spatial.distance import cosine
model = SentenceTransformer(
"paraphrase-multilingual-MiniLM-L12-v2",
model_kwargs={"torch_dtype": torch.float16}
)
llm = Llama.from_pretrained(
"mykor/paraphrase-multilingual-MiniLM-L12-v2.gguf",
filename="paraphrase-multilingual-MiniLM-L12-118M-v2-F16.gguf",
embedding=True,
verbose=False,
)
text = "움츠러든 어깨를 따라서 다시 저물어가는 오늘의 끝 밤이 조용히 나를 안으면 무너져가는 날 잊어버릴 수 있어"
embed1 = model.encode(text)
embed2 = llm.embed(text)
print(cosine(embed1, embed2))
0.005355771841081269