/ Модель

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

Контекст
7 999 токенов
Параметры
31,9 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
ettin-encoder-32m
Библиотека
sentence-transformers
Опубликована
6 мая 2026

ettin-encoder-32m-nq

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

Компактная англоязычная модель ModernBERT, превращающая запросы и тексты в эмбеддинги для семантического поиска и сопоставления.

113скачиваний за 30 дней0лайковвеса обновлены6 мая 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tomaarsen/ettin-encoder-32m-nq — англоязычная модель Sentence Transformers, дообученная на наборе Natural Questions на основе jhu-clsp/ettin-encoder-32m. Она использует архитектуру ModernBERT с mean pooling и преобразует текстовые запросы, предложения и абзацы в плотные эмбеддинги размерности 384; сходство между векторами можно оценивать косинусной мерой. Модель предназначена прежде всего для поиска релевантных текстов по запросу и семантического сопоставления в системах информационного поиска.

В README указана максимальная длина последовательности 256 токенов. Метаданные сообщают 31,9 млн параметров и контекст до 7999 токенов; для практического использования следует учитывать ограничение длины, заявленное конфигурацией Sentence Transformers. Модель принимает и выдаёт текстовые представления в виде векторов, обучена на английских вопросах и ответах. Лицензия — MIT.

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

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

Ограничения

Модель обучалась на английском наборе Natural Questions и рассчитана на английский текст; качество для других языков не подтверждено. README задаёт максимальную длину последовательности 256 токенов, поэтому длинные тексты требуют разбиения.

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

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

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

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

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

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

Открыть на Hugging Face

Ettin-encoder-32m fine-tuned on Natural Questions

This is a sentence-transformers model finetuned from jhu-clsp/ettin-encoder-32m on the natural-questions dataset. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for retrieval.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: jhu-clsp/ettin-encoder-32m
  • Maximum Sequence Length: 256 tokens
  • Output Dimensionality: 384 dimensions
  • Similarity Function: Cosine Similarity
  • Supported Modality: Text
  • Training Dataset:
  • Language: en
  • License: mit

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'ModernBertModel'})
  (1): Pooling({'embedding_dimension': 384, 'pooling_mode': 'mean', 'include_prompt': True})
)

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("tomaarsen/ettin-encoder-32m-nq")
# Run inference
queries = [
    'where does the last name francisco come from',
]
documents = [
    'Francisco Francisco is the Spanish and Portuguese form of the masculine given name Franciscus (corresponding to English Francis).',
    'Book of Esther The Book of Esther, also known in Hebrew as "the Scroll" (Megillah), is a book in the third section (Ketuvim, "Writings") of the Jewish Tanakh (the Hebrew Bible) and in the Christian Old Testament. It is one of the five Scrolls (Megillot) in the Hebrew Bible. It relates the story of a Hebrew woman in Persia, born as Hadassah but known as Esther, who becomes queen of Persia and thwarts a genocide of her people. The story forms the core of the Jewish festival of Purim, during which it is read aloud twice: once in the evening and again the following morning. The books of Esther and Song of Songs are the only books in the Hebrew Bible that do not explicitly mention God.[2]',
    'Times Square Times Square is a major commercial intersection, tourist destination, entertainment center and neighborhood in the Midtown Manhattan section of New York City at the junction of Broadway and Seventh Avenue. It stretches from West 42nd to West 47th Streets.[1] Brightly adorned with billboards and advertisements, Times Square is sometimes referred to as "The Crossroads of the World",[2] "The Center of the Universe",[3] "the heart of The Great White Way",[4][5][6] and the "heart of the world".[7] One of the world\'s busiest pedestrian areas,[8] it is also the hub of the Broadway Theater District[9] and a major center of the world\'s entertainment industry.[10] Times Square is one of the world\'s most visited tourist attractions, drawing an estimated 50 million visitors annually.[11] Approximately 330,000 people pass through Times Square daily,[12] many of them tourists,[13] while over 460,000 pedestrians walk through Times Square on its busiest days.[7]',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 384] [3, 384]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[ 0.7318, -0.1705,  0.1582]])

Evaluation

Metrics

Information Retrieval

  • Datasets: NanoClimateFEVER, NanoDBPedia, NanoFEVER, NanoFiQA2018, NanoHotpotQA, NanoMSMARCO, NanoNFCorpus, NanoNQ, NanoQuoraRetrieval, NanoSCIDOCS, NanoArguAna, NanoSciFact and NanoTouche2020
  • Evaluated with InformationRetrievalEvaluator
MetricNanoClimateFEVERNanoDBPediaNanoFEVERNanoFiQA2018NanoHotpotQANanoMSMARCONanoNFCorpusNanoNQNanoQuoraRetrievalNanoSCIDOCSNanoArguAnaNanoSciFactNanoTouche2020
cosine_accuracy@10.260.460.380.380.560.20.240.30.740.260.220.380.3673
cosine_accuracy@30.380.70.640.50.70.40.30.540.860.480.560.50.8367
cosine_accuracy@50.620.740.720.520.70.620.40.560.980.540.680.580.9592
cosine_accuracy@100.680.80.780.60.720.720.520.660.980.620.80.620.9796
cosine_precision@10.260.460.380.380.560.20.240.30.740.260.220.380.3673
cosine_precision@30.14670.42670.21330.20.28670.13330.19330.180.34670.21330.18670.17330.4626
cosine_precision@50.140.360.1480.1440.1760.1240.1680.1120.2440.1680.1360.1240.449
cosine_precision@100.0860.3260.080.0840.1020.0720.1360.0660.1320.1240.080.0680.3551
cosine_recall@10.1390.05310.380.15590.280.20.02020.290.6540.05470.220.3550.028
cosine_recall@30.18730.10820.620.28460.430.40.05150.510.8220.13170.560.480.1006
cosine_recall@50.29230.12980.710.31440.440.620.05690.530.94270.17270.680.5550.1566
cosine_recall@100.35230.20530.770.39610.510.720.07330.620.970.25370.80.590.2313
cosine_ndcg@100.29150.39640.58040.33430.48370.43970.17270.45980.85470.24090.5080.48050.392
cosine_mrr@100.38020.58690.52190.45490.62620.35130.30.42220.82230.38630.41420.45710.601
cosine_map@1000.23510.26840.52080.27250.41720.36240.06550.41520.81360.18080.42020.44840.2906

Nano BEIR

  • Dataset: NanoBEIR_mean
  • Evaluated with NanoBEIREvaluator with these parameters:
    {
        "dataset_names": [
            "climatefever",
            "dbpedia",
            "fever",
            "fiqa2018",
            "hotpotqa",
            "msmarco",
            "nfcorpus",
            "nq",
            "quoraretrieval",
            "scidocs",
            "arguana",
            "scifact",
            "touche2020"
        ],
        "dataset_id": "sentence-transformers/NanoBEIR-en"
    }
    
MetricValue
cosine_accuracy@10.3652
cosine_accuracy@30.569
cosine_accuracy@50.663
cosine_accuracy@100.7292
cosine_precision@10.3652
cosine_precision@30.2433
cosine_precision@50.1918
cosine_precision@100.1316
cosine_recall@10.2177
cosine_recall@30.3604
cosine_recall@50.4308
cosine_recall@100.4994
cosine_ndcg@100.4334
cosine_mrr@100.4865
cosine_map@1000.3624

Training Details

Training Dataset

natural-questions

  • Dataset: natural-questions at f9e894e
  • Size: 99,231 training samples
  • Columns: query and answer
  • Approximate statistics based on the first 100 samples:
    queryanswer
    typestringstring
    modalitytexttext
    detailsmin: 10 tokensmean: 12.59 tokensmax: 20 tokensmin: 25 tokensmean: 137.11 tokensmax: 256 tokens
  • Samples:
    queryanswer
    who is required to report according to the hmdaHome Mortgage Disclosure Act US financial institutions must report HMDA data to their regulator if they meet certain criteria, such as having assets above a specific threshold. The criteria is different for depository and non-depository institutions and are available on the FFIEC website.[4] In 2012, there were 7,400 institutions that reported a total of 18.7 million HMDA records.[5]
    what is the definition of endoplasmic reticulum in biologyEndoplasmic reticulum The endoplasmic reticulum (ER) is a type of organelle in eukaryotic cells that forms an interconnected network of flattened, membrane-enclosed sacs or tube-like structures known as cisternae. The membranes of the ER are continuous with the outer nuclear membrane. The endoplasmic reticulum occurs in most types of eukaryotic cells, but is absent from red blood cells and spermatozoa. There are two types of endoplasmic reticulum: rough and smooth. The outer (cytosolic) face of the rough endoplasmic reticulum is studded with ribosomes that are the sites of protein synthesis. The rough endoplasmic reticulum is especially prominent in cells such as hepatocytes. The smooth endoplasmic reticulum lacks ribosomes and functions in lipid manufacture and metabolism, the production of steroid hormones, and detoxification.[1] The smooth ER is especially abundant in mammalian liver and gonad cells. The lacy membranes of the endoplasmic reticulum were first seen in 1945 using elect...
    what does the ski mean in polish namesPolish name Since the High Middle Ages, Polish-sounding surnames ending with the masculine -ski suffix, including -cki and -dzki, and the corresponding feminine suffix -ska/-cka/-dzka were associated with the nobility (Polish szlachta), which alone, in the early years, had such suffix distinctions.[1] They are widely popular today.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim",
        "gather_across_devices": false,
        "directions": [
            "query_to_doc"
        ],
        "partition_mode": "joint",
        "hardness_mode": null,
        "hardness_strength": 0.0
    }
    

Evaluation Dataset

natural-questions

  • Dataset: natural-questions at f9e894e
  • Size: 1,000 evaluation samples
  • Columns: query and answer
  • Approximate statistics based on the first 100 samples:
    queryanswer
    typestringstring
    modalitytexttext
    detailsmin: 10 tokensmean: 12.38 tokensmax: 21 tokensmin: 28 tokensmean: 135.85 tokensmax: 256 tokens
  • Samples:
    queryanswer
    difference between russian blue and british blue catRussian Blue The coat is known as a "double coat", with the undercoat being soft, downy and equal in length to the guard hairs, which are an even blue with silver tips. However, the tail may have a few very dull, almost unnoticeable stripes. The coat is described as thick, plush and soft to the touch. The feeling is softer than the softest silk. The silver tips give the coat a shimmering appearance. Its eyes are almost always a dark and vivid green. Any white patches of fur or yellow eyes in adulthood are seen as flaws in show cats.[3] Russian Blues should not be confused with British Blues (which are not a distinct breed, but rather a British Shorthair with a blue coat as the British Shorthair breed itself comes in a wide variety of colors and patterns), nor the Chartreux or Korat which are two other naturally occurring breeds of blue cats, although they have similar traits.
    who played the little girl on mrs doubtfireMara Wilson Mara Elizabeth Wilson[2] (born July 24, 1987) is an American writer and former child actress. She is known for playing Natalie Hillard in Mrs. Doubtfire (1993), Susan Walker in Miracle on 34th Street (1994), Matilda Wormwood in Matilda (1996) and Lily Stone in Thomas and the Magic Railroad (2000). Since retiring from film acting, Wilson has focused on writing.
    what year did the movie the sound of music come outThe Sound of Music (film) The film was released on March 2, 1965 in the United States, initially as a limited roadshow theatrical release. Although critical response to the film was widely mixed, the film was a major commercial success, becoming the number one box office movie after four weeks, and the highest-grossing film of 1965. By November 1966, The Sound of Music had become the highest-grossing film of all-time—surpassing Gone with the Wind—and held that distinction for five years. The film was just as popular throughout the world, breaking previous box-office records in twenty-nine countries. Following an initial theatrical release that lasted four and a half years, and two successful re-releases, the film sold 283 million admissions worldwide and earned a total worldwide gross of $286,000,000.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim",
        "gather_across_devices": false,
        "directions": [
            "query_to_doc"
        ],
        "partition_mode": "joint",
        "hardness_mode": null,
        "hardness_strength": 0.0
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 128
  • num_train_epochs: 1
  • learning_rate: 2e-05
  • warmup_steps: 0.1
  • weight_decay: 0.01
  • bf16: True
  • per_device_eval_batch_size: 128
  • load_best_model_at_end: True
  • seed: 12
  • batch_sampler: no_duplicates

All Hyperparameters

  • per_device_train_batch_size: 128
  • num_train_epochs: 1
  • max_steps: -1
  • learning_rate: 2e-05
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_steps: 0.1
  • optim: adamw_torch_fused
  • optim_args: None
  • weight_decay: 0.01
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • optim_target_modules: None
  • gradient_accumulation_steps: 1
  • average_tokens_across_devices: True
  • max_grad_norm: 1.0
  • label_smoothing_factor: 0.0
  • bf16: True
  • fp16: False
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • use_liger_kernel: False
  • liger_kernel_config: None
  • use_cache: False
  • neftune_noise_alpha: None
  • torch_empty_cache_steps: None
  • auto_find_batch_size: False
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • include_num_input_tokens_seen: no
  • log_level: passive
  • log_level_replica: warning
  • disable_tqdm: False
  • project: huggingface
  • trackio_space_id: None
  • trackio_bucket_id: None
  • trackio_static_space_id: None
  • per_device_eval_batch_size: 128
  • prediction_loss_only: True
  • eval_on_start: False
  • eval_do_concat_batches: True
  • eval_use_gather_object: False
  • eval_accumulation_steps: None
  • include_for_metrics: []
  • batch_eval_metrics: False
  • save_only_model: False
  • save_on_each_node: False
  • enable_jit_checkpoint: False
  • push_to_hub: False
  • hub_private_repo: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_always_push: False
  • hub_revision: None
  • load_best_model_at_end: True
  • ignore_data_skip: False
  • restore_callback_states_from_checkpoint: False
  • full_determinism: False
  • seed: 12
  • data_seed: None
  • use_cpu: False
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • parallelism_config: None
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • dataloader_prefetch_factor: None
  • remove_unused_columns: True
  • label_names: None
  • train_sampling_strategy: random
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • ddp_static_graph: None
  • ddp_backend: None
  • ddp_timeout: 1800
  • fsdp: []
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • deepspeed: None
  • debug: []
  • skip_memory_metrics: True
  • do_predict: False
  • resume_from_checkpoint: None
  • warmup_ratio: None
  • local_rank: -1
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepTraining LossValidation LossNanoClimateFEVER_cosine_ndcg@10NanoDBPedia_cosine_ndcg@10NanoFEVER_cosine_ndcg@10NanoFiQA2018_cosine_ndcg@10NanoHotpotQA_cosine_ndcg@10NanoMSMARCO_cosine_ndcg@10NanoNFCorpus_cosine_ndcg@10NanoNQ_cosine_ndcg@10NanoQuoraRetrieval_cosine_ndcg@10NanoSCIDOCS_cosine_ndcg@10NanoArguAna_cosine_ndcg@10NanoSciFact_cosine_ndcg@10NanoTouche2020_cosine_ndcg@10NanoBEIR_mean_cosine_ndcg@10
-1-1--0.03630.10370.05750.01650.10190.03770.02540.03900.52630.04810.07140.11740.03700.0937
0.001314.5760---------------
0.0206164.5077---------------
0.0412324.1129---------------
0.0619482.8395---------------
0.0825641.6542---------------
0.100578-0.71290.21080.34640.53670.26330.44520.38540.14450.38540.80790.21030.44350.46210.37190.3857
0.1031800.8147---------------
0.1237960.5783---------------
0.14431120.4297---------------
0.16491280.4041---------------
0.18561440.3973---------------
0.2010156-0.40340.27890.39120.55620.30160.45920.46220.16960.42160.82940.23040.49710.45840.38380.4184
0.20621600.3813---------------
0.22681760.3556---------------
0.24741920.3225---------------
0.26802080.2939---------------
0.28872240.2833---------------
0.3015234-0.33010.27450.37380.56970.30420.46750.42930.17460.44600.83750.25320.49930.46660.39410.4223
0.30932400.2903---------------
0.32992560.2575---------------
0.35052720.2571---------------
0.37112880.2450---------------
0.39183040.2263---------------
0.4021312-0.27770.29950.37410.55860.30640.45290.45290.18000.43510.85000.24980.50630.46690.39180.4249
0.41243200.2897---------------
0.43303360.2230---------------
0.45363520.2332---------------
0.47423680.2267---------------
0.49483840.2091---------------
0.5026390-0.26100.30080.39670.57170.32670.47910.45780.18920.45880.84350.23760.50880.46520.40120.4336
0.51554000.2167---------------
0.53614160.2310---------------
0.55674320.1923---------------
0.57734480.2155---------------
0.59794640.2278---------------
0.6031468-0.24520.29880.39160.56810.32080.48190.43460.18040.45000.86330.24610.51670.47040.40800.4331
0.61864800.2180---------------
0.63924960.2251---------------
0.65985120.2084---------------
0.68045280.2151---------------
0.70105440.2226---------------
0.7036546-0.24000.28110.38220.56470.32450.46700.43220.17870.44810.85070.24560.50800.48770.40040.4285
0.72165600.1917---------------
0.74235760.2255---------------
0.76295920.2359---------------
0.78356080.2250---------------
0.80416240.22280.22830.29920.38550.58510.33030.47160.44430.17610.46240.85510.24460.51070.48380.39490.4341
0.82476400.2062---------------
0.84546560.2009---------------
0.86606720.1844---------------
0.88666880.1930---------------
0.9046702-0.22400.29760.39690.57330.32840.46600.44960.17620.46050.85670.24040.51150.47830.39990.4335
0.90727040.2017---------------
0.92787200.1989---------------
0.94857360.2157---------------
0.96917520.1923---------------
0.98977680.1778---------------
1.0776-0.22240.29310.39180.57570.3350.48210.44680.17330.46070.85740.24140.51130.48310.39750.4346
-1-1--0.29150.39640.58040.33430.48370.43970.17270.45980.85470.24090.50800.48050.39200.4334
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 3.9 minutes
  • Evaluation: 7.5 minutes
  • Total: 11.4 minutes

Framework Versions

  • Python: 3.11.6
  • Sentence Transformers: 5.5.0.dev0
  • Transformers: 5.6.2
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.13.0.dev0
  • Datasets: 4.8.4
  • Tokenizers: 0.22.2

Citation

BibTeX

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}

MultipleNegativesRankingLoss

@misc{oord2019representationlearningcontrastivepredictive,
      title={Representation Learning with Contrastive Predictive Coding},
      author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
      year={2019},
      eprint={1807.03748},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1807.03748},
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей