Sentence Similarity
sentence-transformers
Safetensors
Arabic
English
new
feature-extraction
Generated from Trainer
dataset_size:34436
loss:MatryoshkaLoss
loss:CoSENTLoss
custom_code
text-embeddings-inference
Instructions to use AhmedZaky1/DIMI-embedding-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AhmedZaky1/DIMI-embedding-v4 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AhmedZaky1/DIMI-embedding-v4", trust_remote_code=True) sentences = [ "الرجل يركب حصاناً", "رجل يُبث الجبن الممزق على البيتزا" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [2, 2] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!