/ Модель

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

Контекст
512 токенов
Параметры
138 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
turkish_embedding_model_fine_tuned
Библиотека
transformers
Опубликована
20 окт 2026

turkish-embedding-gooaq-tr-1305k-full-siamese-distill-e5

Сходство предложенийТекст → score3 профессии
46скачиваний за 30 дней0лайковвеса обновлены20 окт 2026

Описание модели

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

Турецкая BERT-модель эмбеддингов для семантического поиска и ранжирования ответов на вопросы.

Это модель эмбеддингов для поиска ответов на вопросы на турецком языке, разработанная sfidan42 на основе selmanbaysan/turkish_embedding_model_fine_tuned. Она использует сиамский BERT-энкодер: вопрос и ответ кодируются отдельно с общими весами, после чего их векторы сравниваются по косинусному сходству. Модель дообучена на 1 292 329 турецких парах «вопрос—ответ» из машинного перевода GooAQ-TR и дистиллирована по ранжированию ответов от multilingual-e5-large.

Основной сценарий — семантический поиск и ранжирование ответов для турецких вопросов, например в FAQ или системах поиска знаний. Размер в метаданных — 137,8 млн параметров; контекст модели — 512 токенов, однако по README входы длиннее 128 токенов обрезаются. На валидационной выборке GooAQ-TR модель показала nDCG@10 0,9015, MRR@10 0,8820 и Recall@10 0,9614; эти показатели относятся к описанным наборам данных и не гарантируют аналогичные результаты на других корпусах.

Модель поддерживает турецкий язык и распространяется по лицензии Apache-2.0. Её качество может снижаться из-за ошибок машинного перевода обучающих данных и смещения GooAQ в сторону вопросов из англоязычного поиска и американских реалий.

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

  • поиск ответов на турецкие вопросы в базе знаний
  • ранжирование ответов для турецкой FAQ-системы
  • подбор релевантных документов по турецкому запросу
  • сопоставление турецкого вопроса с подходящим ответом

Ограничения

Обучающие пары получены машинным переводом, и часть переводов может менять исходный смысл. Модель обучалась на GooAQ, ориентированном на англоязычный поиск и содержащем американские реалии; входы длиннее 128 токенов обрезаются.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

Turkish embedding: GooAQ-TR 1305k, Siamese encoder, full fine-tuning, distilled from multilingual-e5-large

A fully fine-tuned copy of selmanbaysan/turkish_embedding_model_fine_tuned, trained for Turkish question → answer retrieval on 1,292,329 question–answer pairs of GooAQ-TR, a Turkish machine translation of Google's GooAQ, by distillation from intfloat/multilingual-e5-large: it learned to rank answers as that model ranks them.

ArchitectureSiamese encoder: one fully trained copy of the base model, which encodes questions and answers separately
Base modelselmanbaysan/turkish_embedding_model_fine_tuned, all weights trained
Trained parametersall 110,617,344
Embeddingmean of the last hidden states over the non-padding tokens, 768 dimensions
Similaritycosine
Input length128 tokens
Training data1,292,329 GooAQ-TR pairs; 13,054 more held out for validation
Checkpointepoch 2 of 2: the best validation nDCG@10, and the last epoch

Usage

import torch
from transformers import AutoModel, AutoTokenizer

repo = "sfidan42/turkish-embedding-gooaq-tr-1305k-full-siamese-distill-e5"
tokenizer = AutoTokenizer.from_pretrained(repo)
encoder = AutoModel.from_pretrained(repo).eval()

def embed(model, texts):
    batch = tokenizer(texts, padding=True, truncation=True, max_length=128, return_tensors="pt")
    with torch.no_grad():
        hidden = model(**batch).last_hidden_state
    mask = batch["attention_mask"].unsqueeze(-1).to(hidden.dtype)
    return torch.nn.functional.normalize((hidden * mask).sum(1) / mask.sum(1), dim=-1)

questions = embed(encoder, ["Kediler neden mırlar?"])
answers = embed(encoder, [
    "Kediler çoğunlukla rahat ve mutlu olduklarında mırlar; mırlama stres ya da ağrı anında da duyulabilir.",
    "Köpekler, kurtlardan evcilleştirilmiş memelilerdir.",
])
print(questions @ answers.T)  # cosine similarities; the first answer should score higher

Inputs longer than 128 tokens are cut, as in training.

Architecture

Siamese encoder. One copy of the base model encodes both questions and answers, each text on its own, so both sides share their weights. All 110,617,344 weights were trained. An embedding is the mean of the last hidden states over the non-padding tokens, and a question and an answer are compared by cosine similarity.

Training data: GooAQ-TR

  1. Source. GooAQ (Khashabi et al., 2021, "GooAQ: Open Question Answering with Diverse Answer Types"; Apache-2.0): 5,030,530 English questions from Google's autocomplete, each with the answer box Google showed for it.
  2. English pool. Written snippet answers only (2,703,889); English questions only; no cut-off answers; answers of at least 5 words (2,652,889); then one question per distinct answer, because GooAQ maps many near-identical questions to one snippet, and two of them in one batch would make a correct answer a negative: 1,353,533 pairs.
  3. Translation with Hy-MT2-30B-A3B (Tencent, Apache-2.0). Each question was translated with its answer as background, using the model's context-aware prompt; when that output looked wrong (template text, an extra line, or more than 1.3 times the length of the question translated alone), the question translated alone was kept. Answers were translated alone. The translator was chosen in two blind reviews (60 items, then 300 questions) against GPT-4.1, MiLMMT-46 12B and HY-MT1.5.
  4. This model's sample. All 68 translation shards held 1,353,533 pairs. Dropped: 0 with an empty translation, 3 cut off at the token limit, 13,723 whose answer translation was flagged as odd (template text, an extra line, or more than three times the source's length), 0 that repeat a text of the evaluation FAQ sets, and 34,424 whose Turkish question or answer duplicates another pair's. All 1,305,383 remaining pairs were used, in random order (seed 20261010): 1,292,329 for training and 13,054 (1%) for validation. 76,956 of their questions (5.9%) come from the plain translation.

Coverage. All 68 shards of the full run were translated, so the sample is drawn from the whole pool, and its question types are in their pool proportions:

First wordThis sampleWhole pool
what28.0%28.1%
how16.9%17.1%
are15.7%15.6%
is14.3%14.1%
can4.9%4.9%
do3.6%3.6%
does1.3%1.3%
why3.5%3.5%
who1.6%1.6%
where1.3%1.3%
when1.1%1.1%
which0.7%0.7%
digit1.1%1.1%

Training

Lossdistillation from intfloat/multilingual-e5-large: for each question, the KL divergence from the teacher's softmax over the batch's 128 answers (cosine similarity, temperature 0.01) to this model's (cosine similarity, temperature 0.1). The answers are the 64 questions' own answers and one hard negative per question, drawn at every step from the 30 training answers the teacher finds closest to it. The teacher reads "query:" and "passage:" prefixes; this model reads no prefix
Batch64 pairs, plus 64 hard negatives
OptimizerAdamW, learning rate 2e-5 at its peak: linear warmup over 20,193 steps (1 epoch), then linear decay to 0 at step 40,386; gradient clipping at 1.0
Epochs2 (40,386 steps); the checkpoint on main has the best validation nDCG@10
Precisionbf16 autocast, loss in fp32
Seed0
HardwareNVIDIA RTX PRO 6000 Blackwell Server Edition, 1 h 34 min including the evaluation after every epoch

Evaluation

GooAQ-TR validation. The 13,054 held-out pairs; each question ranks all 13,054 answers by cosine similarity.

ModelnDCG@10MRR@10Recall@10
This model (epoch 2)0.90150.88200.9614
Selmanbaysan base, no fine-tuning0.85480.82970.9322
BAAI/bge-m30.91420.89610.9695
intfloat/multilingual-e5-large0.92960.91400.9767
OpenAI text-embedding-3-small0.84990.82270.9342
OpenAI text-embedding-3-large0.94140.92670.9855

Turkish FAQ benchmark. 2,528 questions from the FAQ pages of Turkish institutions (not yet public), each with its own answer, another answer of the same institution and an answer from another domain. The score is the original (Harrell) C-Index: the share of the three answer pairs a model puts in the right order, ties counting one half; chance is 0.5. Differences are this model's (main) minus the other model's, over the same questions, with a bootstrap 95% interval and a sign-flip permutation p, Holm-adjusted across the comparisons.

ModelC-IndexThis model minus it [95% CI]p (Holm)
This model (epoch 2)0.9357
Selmanbaysan base, no fine-tuning0.9266+0.0091 [+0.0045, +0.0138]< 0.001
BAAI/bge-m30.9244+0.0112 [+0.0055, +0.0167]< 0.001
intfloat/multilingual-e5-large0.9211+0.0145 [+0.0088, +0.0200]< 0.001
OpenAI text-embedding-3-small0.9222+0.0134 [+0.0079, +0.0193]< 0.001
OpenAI text-embedding-3-large0.9370-0.0013 [-0.0065, +0.0040]0.662

Turkish FAQ retrieval. The same 2,528 questions; each ranks all 2,528 answers of the benchmark by cosine similarity, and nDCG@10 scores the rank of its own answer.

ModelnDCG@10
This model (epoch 2)0.7329
Selmanbaysan base, no fine-tuning0.6981
intfloat/multilingual-e5-large0.8007
BAAI/bge-m30.7878
OpenAI text-embedding-3-large0.7957
OpenAI text-embedding-3-small0.6782
GooAQ-TR LoRA dual encoder, InfoNCE on the same pairs0.7204
GooAQ-TR LoRA Siamese encoder, InfoNCE on the same pairs0.7213

This model and the base model read 128 tokens; the other models read their own maximum length. All models are compared by cosine similarity.

EpochTraining lossnDCG@10MRR@10Recall@10FAQ C-Index
base0.85480.82970.93220.9266
10.33590.89000.86970.95250.9353
2 (main)0.25140.90150.88200.96140.9357

The FAQ column only tracks the benchmark; the checkpoint on main was chosen on validation.

Limitations

  • The training data is machine-translated. In a blind review of 300 questions, the translation procedure changed the meaning of 9 (GPT-4.1: 7); the fallback threshold was set on the same questions, so the true rate may be slightly higher.
  • GooAQ comes from English Google search: 9.6% of the pool is flagged as US-specific (it names US states, dollar prices or the US), and many answers use US units.
  • The multilingual-E5 report lists GooAQ, in English, among the teacher's training data, so the teacher may rank GooAQ-TR pairs better than new text.
  • Inputs are cut at 128 tokens.

License

Apache-2.0, the license of GooAQ and of Hy-MT2-30B-A3B. The teacher, intfloat/multilingual-e5-large, is MIT-licensed.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertModel
Ревизия весов
8801982

0 моделей