/ Модель

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

Контекст
8 192 токена
Параметры
315 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
modernbert-ja-310m
Библиотека
sentence-transformers
Опубликована
3 окт 2026

Sazanami-Embed-310m

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

Японский bi-encoder, который кодирует запросы и документы в векторы для семантического поиска и ранжирования по сходству.

108скачиваний за 30 дней0лайковвеса обновлены9 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Sazanami-Embed-310m — японская модель для поиска по смыслу, разработанная mahiyama и дообученная на базе sbintuitions/modernbert-ja-310m. Это bi-encoder: Transformer формирует представление запроса и документа, затем mean pooling сводит каждое к одному вектору размерности 768. Релевантность оценивается косинусным сходством; модель рассчитана на плотный поиск и может обрабатывать последовательности длиной до 8192 токенов.

Модель предназначена для японского семантического поиска по документам и парам вопрос–ответ. Она обучена на наборах данных для поиска и извлечения информации, а её одно-векторное представление позволяет сравнивать запросы и документы через векторное сходство. По сравнению с родственными моделями Sazanami с несколькими векторами, она представляет документ одним вектором.

Веса опубликованы в формате safetensors, библиотека — sentence-transformers; лицензия — MIT. Модель ориентирована на японский язык. В README не приведены численные результаты оценки качества; как одно-векторный энкодер, она не сохраняет отдельные векторы токенов для позднего взаимодействия.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

Sazanami-Embed-310m

English | 日本語

A Japanese single-vector retrieval model (bi-encoder) trained from sbintuitions/modernbert-ja-310m. It encodes queries and documents each into a single 768-dimensional vector, and compares them with cosine similarity. It can process up to 8,192 tokens.

This model is paired with the late-interaction model Sazanami-ColBERT-310m, built with the same initialization, training data, and loss. Because the only difference is how many vectors represent a document, multi-vector and single-vector representations can be compared without changing any other condition.

1. Model Overview

PropertyValue
Base modelsbintuitions/modernbert-ja-310m
ArchitectureTransformer → mean pooling (including prefix tokens)
ParametersAbout 315M
Vector dimensions768
Number of vectors per document1
Maximum input length8,192 tokens (default stored in the model; training was conducted with 512 tokens)
Scoring functionCosine similarity
Prefix検索クエリ: ("search query: ") for queries, 検索文書: ("search document: ") for documents
TokenizerSentencePiece (uses the ModernBERT-Ja vocabulary as-is)
Main frameworksentence-transformers (SentenceTransformer)
Mixed precision during trainingbf16

Related Models

All four models were trained from sbintuitions/modernbert-ja-310m on the same training data. What differs is how many vectors represent a single document. This model is a single-vector model, trained under the same conditions for comparison with the three multi-vector models.

ModelVectors per documentWhen to choose
Sazanami-ColBERT-310mSame as the number of non-padding tokens in the textHighest accuracy when searching for long documents among many candidates
Sazanami-AGC-310mUp to 32When you want to reduce storage size
Sazanami-MetaEmbed-310mUp to 64 (the number used can be reduced)When you want faster similarity computation
Sazanami-Embed-310m (this model)1 (768 dimensions)When you want to minimize storage size and computational cost

2. Usage

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("mahiyama/Sazanami-Embed-310m")

# Queries: "Where can I get a certificate of residence?", "I want to know the enrollment procedure for National Health Insurance"
queries = [
    "住民票はどこで取れますか",
    "国民健康保険の加入手続きを知りたい",
]
# Documents: on obtaining a certificate of residence, National Health Insurance enrollment, and oversized garbage collection
documents = [
    "住民票の写しは、市区町村の窓口またはコンビニ交付サービスで取得できます。",
    "国民健康保険の加入手続きは、転入や退職から 14 日以内に市区町村の窓口で行ってください。",
    "粗大ごみの収集は、事前の申し込みが必要です。",
]

# Prefixes are stored in the model, so do not add them to the text yourself
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)

# Scored with cosine similarity according to the stored settings
scores = model.similarity(query_embeddings, document_embeddings)
print(scores)

3. Training

Base Model

The model is initialized with sbintuitions/modernbert-ja-310m. It has undergone only masked language modeling pre-training and has not been trained for retrieval. The architecture simply adds mean pooling to this Transformer, with no additional projection layer.

Training Data

Two formats were used: n-tuples, pairing one query with one positive and five negatives, and pairs, pairing queries with only a positive.

SourceFormatCount
mahiyama/auto-wiki-qan-tuples100,000
mahiyama/mqa-jan-tuples100,000
mahiyama/mmarco-jan-tuples50,000
mahiyama/civicqa-ja (non-public)n-tuples43,382
mahiyama/quiz-no-morin-tuples13,422
mahiyama/quiz-worksn-tuples12,502
mahiyama/amagasaki-qnan-tuples11,069
mahiyama/miracl-retrievaln-tuples4,603
mahiyama/mrtydin-tuples3,602
mahiyama/anlp-meeting-retrieval (title-abs)n-tuples1,926
mahiyama/anlp-meeting-retrieval (title-intro)n-tuples1,952
mahiyama/civicqa-ja (non-public)pairs28,653
mahiyama/amagasaki-qnapairs7,323
mahiyama/kosodate-faq-pairs-japairs595
Total379,029

mahiyama/civicqa-ja consists of questions and answers collected from FAQs published by Japanese government agencies and local governments. It is currently non-public.

Data used for evaluation was excluded from training. JaGovFaqs-22k was not used in training at all. Rows where the query after NFKC normalization and whitespace removal matched a query in the evaluation split of JaGovFaqs-22k, or where the positive after the same processing matched a document in that evaluation split, were excluded at each stage.

Training Procedure

For n-tuples, the sum of a contrastive loss and a distillation loss is used. Both are computed from a single score computation.

  • Contrastive loss — Cross-entropy with all documents in the batch (its own 6 candidates and documents from other rows in the same batch) as candidates. Cosine similarity is multiplied by 20 before use.
  • Distillation loss — KL divergence between the probability distribution of cosine similarities over its own 6 candidates and the probability distribution of teacher scores. The teacher temperature is 2.0.

For pairs, a contrastive loss is used with documents from other rows in the batch as negatives.

SettingValue
learning_rate2e-5
num_train_epochs1
per_device_train_batch_size64
scale (multiplier for cosine similarity)20.0
warmup_steps5% of total
weight_decay0.01
Maximum input length during training512 tokens
Stored maximum input length for inference8,192 tokens
Mixed precisionbf16
batch_samplerNO_DUPLICATES
Gradient checkpointingEnabled
Teacher temperature2.0
Random seed42

Training took about 4 hours 27 minutes (5,923 steps) on a single NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB) GPU, with peak GPU memory usage of 22.1 GB.

4. License and Training Data Restrictions

The model weights are released under the MIT License. The base model, sbintuitions/modernbert-ja-310m, is also released under the MIT License.

The training data includes a Japanese translation of MS MARCO (mahiyama/mmarco-ja). MS MARCO is released for non-commercial research purposes, and its license for commercial use is not clear. If you use this model commercially, please check the MS MARCO terms of use at your own responsibility.

Part of the training data includes questions and answers collected from FAQs published by Japanese government agencies and local governments. This data is subject to the terms of use of each source and is not redistributed in this model's repository. If you use this model, please determine the suitability for your application at your own responsibility.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ModernBertModel
Ревизия весов
87ce8fb

0 моделей