/ Модель

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

Контекст
512 токенов
Параметры
124 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
paraphrase-multilingual-MiniLM-L12-v2
Библиотека
transformers
Опубликована
9 ноя 2026

python-tr-en-retriever

ЭмбеддингиТекст → embedding7 профессий
176скачиваний за 30 дней0лайковвеса обновлены9 ноя 2026

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

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

Дообученный многоязычный энкодер для семантического поиска и сопоставления фрагментов технической документации на английском и турецком языках.

rezanicgil/python-tr-en-retriever — текстовый энкодер, дообученный автором модели на базе sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 для поиска соответствующих друг другу фрагментов документации Python на английском и турецком языках. Для адаптации последнего блока трансформера использовались 1 027 пар фрагментов из 34 файлов и контрастивное обучение с симметричной функцией потерь. Модель формирует векторные представления текста; архитектура — плотная BERT-модель, размер — 124,3 млн параметров, максимальный контекст — 512 токенов. Доступны веса в форматах ONNX и Safetensors.

Модель подходит для двуязычного семантического поиска и ранжирования текстовых фрагментов. В оценке на отложенных файлах документации Python она несколько раз чаще находила соответствующий перевод, чем базовая модель. Также проверялись поиск фрагментов резюме по требованиям вакансии и поиск переводов технических сообщений Git, но эти результаты ограничены описанными наборами и условиями экспериментов. В частности, проверка по резюме не оценивает пригодность кандидатов или результаты найма. Карточка указывает лицензию Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Python documentation retriever for Turkish and English

This encoder retrieves parallel passages from Python documentation. We adapted the final transformer block of multilingual MiniLM on 1,027 pairs from 34 documentation files. Each batch used the other translations in the batch as negatives. We trained for one epoch with a symmetric contrastive loss.

First result matches the targetBaseAdapted
English query against 721 Turkish translations669/721674/721
Turkish query against 721 English translations684/721688/721
Job condition against 30 fictional CV passages5/105/10

The documentation evaluation uses ten held-out files. The base model's pretraining may include related material. In the separate CV diagnostic the target passage appeared in the first three for nine of ten conditions with either encoder. All ten target ranks stayed the same. The evaluation covers one training run and author-assigned CV targets. Applicant suitability and hiring outcomes were not measured.

The same ten job conditions were also tested in four translated job/CV language combinations. In Turkish/Turkish retrieval, one target moved from fourth to third and another from first to second. In Turkish/English retrieval, one target moved from fifth to sixth. The two English-query views kept all ten original ranks within each view.

Try a requirement against your own CV

In the public Space, choose Fine-tuned research encoder (118 MB) to download the quantized model into your browser. CV passages are ranked on your device. Quantization can change which passages appear in the first three. The browser uses ONNX weights pinned to revision 813078062d92ba7d57487fd97b14af3acd620522. Float and quantized ranks on 40 language views

For Transformers.js 2.17.2, the Space loads the compatible tokenizer from Xenova/paraphrase-multilingual-MiniLM-L12-v2 at 2c4055b12046f11709e9df2c122e59ffbdc2f900. It preserves word starts and the final separator when truncating to 128 tokens. The Space's tokenizer matched the Python token IDs on 80 distinct bilingual inputs and one long input. Browser implementation

In the Job Radar checkout, use a text PDF or a UTF-8 TXT file. The command downloads the pinned encoder on first use and processes the CV locally. It prints up to three passages with page references. For an interactive review of multiple requirements, use --posting job.txt in place of the quoted requirement. Local review CLI

python scripts/review_cv.py my-cv.pdf "Diagnose slow SQL queries using execution plans." --encoder fine-tuned

External whole-document ranking

We tested all 1,759 held-out CV/job pairs in an English-language external dataset. Within each CV, we compared pairs of jobs with different source labels and counted how often the model placed the higher-labelled job first. Ties earned half credit. The table gives each eligible CV or job equal weight.

MethodRank jobs for one CV (275 CVs)Rank CVs for one job (61 jobs)
CV's mean training label50.00%66.13%
TF-IDF cosine56.18%62.12%
Base encoder63.25%66.18%
Adapted encoder64.58%65.11%

All 71 test job descriptions were unseen in the external training split. Of 477 distinct test CVs, 476 also appeared in training. The dataset provides whole-document labels with undocumented reviewer provenance. These results measure agreement with its ordering. They cannot establish evidence for an individual job requirement. Pinned dataset · Audit and label-level results

import torch
from transformers import AutoModel, AutoTokenizer

repo = "rezanicgil/python-tr-en-retriever"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModel.from_pretrained(repo).eval()
texts = ["Look up values by key.", "Değerleri anahtara göre ara."]
tokens = tokenizer(texts, padding=True, truncation=True, max_length=128, return_tensors="pt")
with torch.inference_mode():
    mask = tokens.attention_mask.unsqueeze(-1)
    pooled = (model(**tokens).last_hidden_state * mask).sum(1) / mask.sum(1)
    vectors = torch.nn.functional.normalize(pooled)
    print((vectors[0] @ vectors[1]).item())

Training code · Per-condition ranks and split details · Python Turkish translators and source texts

External Git translation retrieval

Git’s Turkish localization catalog supplied 3,039 distinct evaluation pairs. Each message was retrieved against the entire opposite-language pool. The checkpoint and base model were frozen. Top-three retrieval rose from 2,151 to 2,204 in English-to-Turkish search and from 2,165 to 2,190 in Turkish-to-English search. The task tests exact technical translation retrieval. The separate job-condition experiments describe the model’s behavior on CV passages. Source index · Scores and pairwise changes

Reproduce this checkpoint

The repository includes a CPU training recipe and an independent checker. In a clean Windows checkout with a new Python 3.13 virtual environment, the trainer reconstructed the published dataset indexes and produced a byte-identical model.safetensors file. Every field in the archived evaluation report also matched. The base model came from the local Hugging Face cache. This checks reproducibility on that environment. Training commands · Hashes and versions

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей