Downloads · 30 days
652
75% of all-time downloads
Yigit-Karaman/turkish_focused-multilingual-e5-small
turkish_focused-multilingual-e5-small is a feature extraction model from Yigit-Karaman. Use it when you need embeddings to search or compare text. It is set up for sentence-transformers.
This is a domain adapted embedding model based on intfloat/multilingual-e5-small. It has been fine-tuned using Low-Rank Adaptation (LoRA) to significantly boost Turkish-language retrieval and cross-lingual alignment w…
Downloads · 30 days
652
75% of all-time downloads
All-time downloads
867
Public
Parameters
118M
2.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors471 MB · 96%
From the Hugging Face model README
This is a domain adapted embedding model based on intfloat/multilingual-e5-small. It has been fine-tuned using Low-Rank Adaptation (LoRA) to significantly boost Turkish-language retrieval and cross-lingual alignment while strictly preserving the base model's English scientific and factoid retrieval capabilities.
To avoid catastrophic forgetting of pre-trained weights, this model utilizes Low-Rank Adaptation (LoRA) via PEFT. Only the attention matrices (query, key, value, dense) were adapted, keeping base representations stable.
intfloat/multilingual-e5-smallThe model was trained on a balanced ~300k-pair corpus designed to blend general QA, instruction-following, and specialized Turkish retrieval:
rajpurkar/squadyahma/alpaca-cleaneddatabricks/databricks-dolly-15kboun-tabi/squad_trmerve/turkish_instructionsatasoglu/databricks-dolly-15k-trtrmteb/turkish_embedding_model_training_dataAhiskaAI/Ahiska-Turkish-Language-Dataset (passages paired with synthetic queries generated via gpt-5.6-luna and local LLM inference)NumanKaanKaratas/turkish-sentences (passages paired with synthetic queries generated via gpt-5.6-luna and local LLM inference)Evaluated across 11 tasks comparing the merged LoRA model against the original intfloat/multilingual-e5-small base:
| Task | base_e5 | my_custom_e5_lora | Delta |
|---|---|---|---|
| BelebeleRetrieval | 0.7632 | 0.8262 | +0.0630 |
| STS17 | 0.6133 | 0.6563 | +0.0430 |
| STS22.v2 | 0.6428 | 0.6734 | +0.0306 |
| MKQARetrieval | 0.0938 | 0.1039 | +0.0101 |
| TurkishMovieSentiment | 0.6827 | 0.6810 | -0.0017 |
| TurHistQuadRetrieval | 0.4329 | 0.4310 | -0.0019 |
| STSBenchmark | 0.8359 | 0.8329 | -0.0030 |
| XQuADRetrieval | 0.9755 | 0.9668 | -0.0087 |
| NFCorpus | 0.3050 | 0.2908 | -0.0142 |
| TurkishProductSentiment | 0.5873 | 0.5679 | -0.0194 |
| SciFact | 0.6694 | 0.6480 | -0.0214 |
The PEFT adapter matrices have been fused directly into the base weights (merge_and_unload()), allowing direct usage via sentence-transformers without needing peft:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Yigit-Karaman/turkish_focused-multilingual-e5-small")
# E5 models require query/passage prefixes
query = "query: Bilgi erişimi modellerinde LoRA nasıl çalışır?"
doc = "passage: Düşük dereceli uyarlama (LoRA), temel ağırlıkları dondurup dikkat katmanlarına eğitilebilir matrisler ekleyerek çalışır."
embeddings = model.encode([query, doc], normalize_embeddings=True)
similarity = embeddings[0] @ embeddings[1]
print(f"Cosine Similarity: {similarity:.4f}")