Downloads · 30 days
11
10% of all-time downloads
omriel1/LLM2Vec-DictaLM2.0-mntp-unsup-simcse
LLM2Vec-DictaLM2.0-mntp-unsup-simcse is a machine learning model from omriel1. 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 mit.
This is a Hebrew encoder model achieved by applying the LLM2Vec method onto DictaLM-2.0, utilizing the HeDC4 dataset.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
112
Public
Repo size
168 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 99%
From the Hugging Face model README
This is a Hebrew encoder model achieved by applying the LLM2Vec method onto DictaLM-2.0, utilizing the HeDC4 dataset.
import torch
from llm2vec import LLM2Vec
def get_device() -> str:
if torch.backends.mps.is_available():
return "mps"
elif torch.cuda.is_available():
return "cuda"
return "cpu"
l2v = LLM2Vec.from_pretrained(
base_model_name_or_path="omriel1/LLM2Vec-DictaLM2.0-mntp",
peft_model_name_or_path="omriel1/LLM2Vec-DictaLM2.0-mntp-unsup-simcse",
device_map=get_device(),
torch_dtype=torch.bfloat16,
trust_remote_code=True
)
texts = [
"היי מה קורה?",
"הכל טוב איתך?"
]
results = l2v.encode(texts)
print(results)