/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
3,7 млрд
Размер весов
8 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Mecellem-Qwen3-4B-TR
Библиотека
sentence-transformers
Опубликована
16 янв 2026

Mursit-Embed-Qwen3-4B-TR

ЭмбеддингиТекст → embedding5 профессий

Модель создаёт эмбеддинги турецких текстов для семантического поиска, сравнения и извлечения юридических документов.

117скачиваний за 30 дней2лайкавеса обновлены23 янв 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Mursit-Embed-Qwen3-4B-TR — модель эмбеддингов NewMind AI для семантического поиска и извлечения информации на турецком языке, включая юридические документы. Она создана на основе дообученной модели Mecellem-Qwen3-4B-TR с преобразованием декодера Qwen3 в двунаправленный энкодер: удалена языковая голова, применяются двунаправленное внимание и mean pooling. Размер модели — 3,7 млрд параметров, размерность эмбеддинга — 2560; в README максимальная длина последовательности указана как 1024 токена, тогда как метаданные указывают контекст 40960 токенов. Доступны веса Safetensors и формат ONNX; лицензия Apache-2.0.

Модель предназначена для получения векторных представлений текстов, семантического поиска, сопоставления текстов и извлечения релевантных фрагментов из турецких документов. В README приведены результаты турецкого бенчмарка MTEB и юридического поиска: качество заметно различается между поиском по договорам, нормативным актам и судебным решениям. Это специализированная модель для турецкого языка; метаданные также отмечают английский. Показатели бенчмарка не гарантируют аналогичного качества на других языках, наборах данных или задачах.

Сценарии применения

  • семантический поиск по турецким документам
  • поиск релевантных турецких юридических текстов
  • извлечение условий из договоров по запросу
  • поиск нормативных актов и судебных решений
  • сравнение смысловой близости турецких фраз

Ограничения

Качество различается по видам юридического поиска: приведённые результаты слабее для нормативных актов и судебных решений, чем для договоров. README указывает максимальную длину 1024 токена, а метаданные — контекст 40960 токенов; это расхождение требует проверки при настройке обработки длинных текстов.

Для каких профессий подходит5

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Mursit-Embed-Qwen3-4B-TR

GitHub HuggingFace Space License

Model Description

Mursit-Embed-Qwen3-4B-TR is a Turkish embedding model converted from decoder-only architecture through decoder-to-encoder conversion. The model is based on Mecellem-Qwen3-4B-TR (continual pre-trained decoder model) and adapted for Turkish legal retrieval tasks.

Model Type: CLM-Embedding (Decoder-to-Encoder Converted)
Parameters: 4B
Base Model: newmindai/Mecellem-Qwen3-4B-TR
Embedding Dimension: 2,560
Max Sequence Length: 1,024 tokens

Architecture Conversion

The model underwent decoder-to-encoder conversion with the following modifications:

  1. Removal of Language Modeling Head: The autoregressive lm_head layer was removed
  2. Bidirectional Attention: Causal attention mask replaced with bidirectional attention
  3. Mean Pooling: Fixed-size representations extracted using mean pooling over all token positions
  4. Identity Projection: Projection layer initialized to maintain 2,560-dimensional embedding output

Training Details

Post-training for Embeddings:

  • Dataset: MS MARCO-TR (920,106 triplets)
  • Loss Function: CachedGISTEmbedLoss with BGE-M3 guide model (568M parameters)
  • Training Framework: Sentence Transformers
  • Optimizer: AdamW
  • Learning Rate: 5×10⁻⁶
  • Per-GPU Batch Size: 2
  • Gradient Accumulation: 16
  • Effective Batch Size: 128
  • Max Sequence Length: 1,024 tokens
  • Hardware: 4× H100 GPUs (single node, NVLink interconnect)
    • System: MareNostrum 5 ACC partition at Barcelona Supercomputing Center (BSC)
    • Node Configuration: Single node with 4× NVIDIA Hopper H100 64GB GPUs, 80 CPU cores, 512GB DDR5 memory
    • GPU Interconnect: NVLink for intra-node GPU communication (4 GPUs connected via NVLink)

Performance on MTEB-Turkish Benchmark

The following visualization shows the model's performance compared to other Turkish language models:

Model Performance Comparison

Model Performance Comparison: Legal Score vs. MTEB Score. CLM-Embedding models (orange squares) show competitive performance on general Turkish tasks.

This model was evaluated on the comprehensive MTEB-Turkish benchmark, which includes 17 tasks across 5 task types. The benchmark evaluates models on general Turkish NLP tasks as well as domain-specific legal retrieval tasks.

Comprehensive Benchmark Results

The following table presents comprehensive evaluation results across all models evaluated on the MTEB-Turkish benchmark. This model's results are highlighted in italics.

ModelMTEBLegalCls.Clus.PairRet.STSCont.Reg.CaseParamsType
embeddinggemma-300m65.4250.6377.7445.0580.0255.0669.2283.9739.5628.38307MEmb.
bge-m362.8751.1675.3535.8678.8854.4269.8386.0838.0929.3567MEmb.
Mursit-Embed-Qwen3-1.7B-TR56.8434.7668.4642.2259.6750.163.7770.2217.9416.111.7BCLM-E.
Mursit-Large-TR-Retrieval56.8746.5667.7241.1559.7851.6964.0181.7832.6725.24403MEmb.
Mursit-Base-TR-Retrieval55.8647.5266.2539.7561.3150.0761.980.434.128.07155MEmb.
Mursit-Embed-Qwen3-4B-TR53.6537.067.2936.6858.3651.1254.7769.2524.2117.564BCLM-E.
----------------------------------------------------------------------------------
bert-base-turkish-uncased46.2324.9468.0533.8160.4432.0136.8552.4712.0510.29110MMLM
turkish-large-bert-cased45.319.1267.4334.2460.1128.6836.0447.575.933.85337MMLM
bert-base-turkish-cased45.1724.4166.3935.2860.0530.5233.6254.0310.139.07110MMLM
BERTurk-Legal42.0232.6360.6126.2459.5125.837.9461.415.5120.99184MMLM
Mursit-Large41.7523.7162.9525.3458.0427.435.0142.7411.2917.1403MMLM
turkish-base-bert-uncased44.6827.5866.2230.2358.8431.436.7456.613.3912.74110MMLM
Mursit-Base40.2317.9359.7825.4858.6520.8236.4536.07.410.4155MMLM
mmBERT-base39.6512.1561.8426.7759.2515.8334.5634.451.330.68306MMLM
TabiBERT37.7711.559.6325.7558.1914.9630.3232.021.860.63148MMLM
ModernBERT-base23.82.9939.062.0153.952.121.917.920.620.43149MMLM
ModernBERT-large23.742.4439.443.953.731.819.856.120.620.59394MMLM

Column abbreviations: MTEB = mean performance across task types; Legal = weighted average of Contracts, Regulation, Caselaw; Classification = accuracy on Turkish classification tasks; Clustering = V-measure on clustering tasks; Pair Classification = average precision on pair classification tasks like NLI; Retrieval = nDCG@10 on information retrieval tasks; Semantic Textual Similarity = Spearman correlation; Contracts = nDCG@10 on legal contract retrieval; Regulation = nDCG@10 on regulatory text retrieval; Caselaw = nDCG@10 on case law retrieval; Number of Parameters = number of model parameters; Model Type = model type (Embedding, CLM-Embedding, Masked Language Model). Bold values indicate the highest score in each column.

Key Findings:

  • The model achieves competitive MTEB Score (53.65) on general Turkish tasks
  • Shows improved Legal Score (37.00) compared to the 1.7B variant, indicating that larger models benefit from decoder-to-encoder conversion | Semantic Textual Similarity | Spearman Correlation | 54.77 |

Legal Domain Performance

TaskMetricScore
Contracts RetrievalnDCG@1069.25
Regulation RetrievalnDCG@1024.21
Caselaw RetrievalnDCG@1017.56

Note: This larger model shows even greater degradation compared to the 1.7B variant, suggesting that increased model capacity alone does not compensate for the architectural mismatch between autoregressive generation and bidirectional embedding tasks.

Usage

Installation

pip install sentence-transformers

Basic Usage

from sentence_transformers import SentenceTransformer

# Load model
model = SentenceTransformer("newmindai/Mursit-Embed-Qwen3-4B-TR")

# Encode sentences
sentences = [
    "Türk hukuk sistemi medeni hukuk geleneğine dayanır",
    "Anayasa Türkiye Cumhuriyeti'nin temel hukuk belgesidir"
]

embeddings = model.encode(sentences)
print(embeddings.shape)  # (2, 2560)

ONNX Model Inference

This script demonstrates how to use the ONNX model from Hugging Face for text embedding generation.

Exporting Model to ONNX

To export the model to ONNX format, use the optimum-cli command:

optimum-cli export onnx \
  -m newmindai/Mursit-Embed-Qwen3-4B-TR \
  --task feature-extraction \
  onnx/MursitEmbedQwen3-4b

This will create the model.onnx file (and model.onnx_data if the model is large) in the specified output directory.

Installation

pip install onnxruntime-gpu transformers huggingface_hub numpy

Usage

from huggingface_hub import snapshot_download
import onnxruntime as ort
from transformers import AutoTokenizer
import os

repo_id = "newmindai/Mursit-Embed-Qwen3-4B-TR"

local_dir = snapshot_download(
    repo_id=repo_id,
    allow_patterns=["model.onnx", "model.onnx_data"]
)

onnx_path = os.path.join(local_dir, "model.onnx")

tokenizer = AutoTokenizer.from_pretrained(repo_id)

sess = ort.InferenceSession(
    onnx_path,
    providers=["CUDAExecutionProvider", "CPUExecutionProvider"]
)

texts = ["This is a test"]
inputs = tokenizer(
    texts,
    padding=True,
    truncation=True,
    return_tensors="np"
)

ort_inputs = {k: v for k, v in inputs.items()}

# Inference
outputs = sess.run(None, ort_inputs)

# Sentence embedding (last output)
sentence_embedding = outputs[-1]

print("Shape:", sentence_embedding.shape)
print("Providers:", sess.get_providers())
print(sentence_embedding[0][:10])

Features

  • Automatic GPU/CPU selection: Uses CUDA if available, otherwise falls back to CPU
  • Hugging Face integration: Downloads model files directly from Hugging Face Hub
  • Simple API: Easy-to-use interface for text embedding generation

Use Cases

  • Semantic search in Turkish documents
  • Information retrieval tasks
  • Text similarity and matching
  • Question answering systems

Acknowledgments

This work was supported by the EuroHPC Joint Undertaking through project etur46 with access to the MareNostrum 5 supercomputer, hosted by Barcelona Supercomputing Center (BSC), Spain. MareNostrum 5 is owned by EuroHPC JU and operated by BSC. We are grateful to the BSC support team for their assistance with job scheduling, environment configuration, and technical guidance throughout the project.

The numerical calculations reported in this work were fully/partially performed at TÜBİTAK ULAKBİM, High Performance and Grid Computing Center (TRUBA resources). The authors gratefully acknowledge the know-how provided by the MINERVA Support for expert guidance and collaboration opportunities in HPC-AI integration.

References

If you use this model, please cite our paper:

@article{mecellem2026,
  title={Mecellem Models: Turkish Models Trained from Scratch and Continually Pre-trained for the Legal Domain},
  author={Uğur, Özgür and Göksu, Mahmut and Çimen, Mahmut and Yılmaz, Musa and Şavirdi, Esra and Demir, Alp Talha and Güllüce, Rumeysa and Çetin, İclal and Sağbaş, Ömer Can},
  journal={arXiv preprint arXiv:2601.16018},
  year={2026},
  month={January},
  url={https://arxiv.org/abs/2601.16018},
  doi={10.48550/arXiv.2601.16018},
  eprint={2601.16018},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}

Base Model References

@article{qwen2024,
  title={Qwen3: A Large Language Model Series},
  author={Qwen Team},
  journal={arXiv preprint arXiv:2409.00000},
  year={2024}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · sentence-transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
4d4b1e0

0 моделей