/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
co-condenser-marco
Библиотека
sentence-transformers
Опубликована
18 июн 2025

splade-cocondenser-msmarco-margin-mse-minilm-small

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

Англоязычный SPLADE-кодировщик преобразует запросы и документы в разреженные векторы для семантического поиска и извлечения текстов.

121скачиваний за 30 дней0лайковвеса обновлены18 июн 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SPLADE Sparse Encoder — англоязычная модель на базе BERT, дообученная авторами репозитория tomaarsen от Luyu/co-condenser-marco на датасете MS MARCO с помощью Sentence Transformers. Она преобразует предложения и абзацы в разреженные векторы размерности 30 522 и предназначена для семантического поиска и разреженного извлечения документов; релевантность оценивается скалярным произведением векторов. Модель принимает последовательности длиной до 512 токенов и использует BertForMaskedLM с max pooling и активацией ReLU.

Модель подходит для поиска документов по запросам и ранжирования кандидатов в англоязычных поисковых системах. В README приведены оценки на наборах NanoMSMARCO, NanoNFCorpus и NanoNQ. Модель распространяется по лицензии Apache-2.0. Она ориентирована на английский язык и разреженный поиск; результаты зависят от корпуса и поисковой настройки.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

CoCondenser trained on MS MARCO

This is a SPLADE Sparse Encoder model finetuned from Luyu/co-condenser-marco on the msmarco dataset using the sentence-transformers library. It maps sentences & paragraphs to a 30522-dimensional sparse vector space and can be used for semantic search and sparse retrieval.

Model Details

Model Description

  • Model Type: SPLADE Sparse Encoder
  • Base model: Luyu/co-condenser-marco
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 30522 dimensions
  • Similarity Function: Dot Product
  • Training Dataset:
  • Language: en
  • License: apache-2.0

Model Sources

Full Model Architecture

SparseEncoder(
  (0): MLMTransformer({'max_seq_length': 512, 'do_lower_case': False}) with MLMTransformer model: BertForMaskedLM 
  (1): SpladePooling({'pooling_strategy': 'max', 'activation_function': 'relu', 'word_embedding_dimension': 30522})
)

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 SparseEncoder

# Download from the 🤗 Hub
model = SparseEncoder("tomaarsen/splade-cocondenser-msmarco-margin-mse-minilm-small")
# Run inference
queries = [
    "how much would dreamers cost the taxpayers",
]
documents = [
    'Plus, the CBO said the Dreamers would bring an additional 80,000 immigrants to the U.S., adding to the liability. In total, the immigrants and their families would cost taxpayers $26.8 billion, but only pay back $.9 billion in taxes, the CBO said. The analysis found that roughly 3.25 million undocumented immigrants are eligible for Dreamer status, while only 2 million would apply and only 1.6 million would be accepted over the next decade.',
    'Playing Chicken with the $18 Trillion U.S. Economy: The full cost of the last government shutdown two years ago was staggering â\x80\x93 it delivered a $24 billion blow to the U.S. economy and taxpayers. Now we may be about to repeat government shutdown history on Dec. 11.',
    'Sustain is defined as to support something or to endure a trial or hardship. 1  An example of sustain is for a foundation to support the house. 2  An example of sustain is to survive days without food or water.',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 30522] [3, 30522]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[27.1439, 12.7876,  0.6402]])

Evaluation

Metrics

Sparse Information Retrieval

MetricNanoMSMARCONanoNFCorpusNanoNQ
dot_accuracy@10.480.40.5
dot_accuracy@30.620.580.74
dot_accuracy@50.760.640.76
dot_accuracy@100.90.680.82
dot_precision@10.480.40.5
dot_precision@30.20670.37330.2533
dot_precision@50.1520.3280.156
dot_precision@100.090.2740.09
dot_recall@10.480.04180.46
dot_recall@30.620.09620.69
dot_recall@50.760.11740.7
dot_recall@100.90.14240.79
dot_ndcg@100.66850.34110.6444
dot_mrr@100.59740.50520.617
dot_map@1000.60110.15320.5955
query_active_dims57.0850.4654.1
query_sparsity_ratio0.99810.99830.9982
corpus_active_dims187.3189331.6617211.6348
corpus_sparsity_ratio0.99390.98910.9931

Sparse Nano BEIR

  • Dataset: NanoBEIR_mean
  • Evaluated with SparseNanoBEIREvaluator with these parameters:
    {
        "dataset_names": [
            "msmarco",
            "nfcorpus",
            "nq"
        ]
    }
    
MetricValue
dot_accuracy@10.46
dot_accuracy@30.6467
dot_accuracy@50.72
dot_accuracy@100.8
dot_precision@10.46
dot_precision@30.2778
dot_precision@50.212
dot_precision@100.1513
dot_recall@10.3273
dot_recall@30.4687
dot_recall@50.5258
dot_recall@100.6108
dot_ndcg@100.5513
dot_mrr@100.5732
dot_map@1000.4499
query_active_dims53.88
query_sparsity_ratio0.9982
corpus_active_dims229.4242
corpus_sparsity_ratio0.9925

Training Details

Training Dataset

msmarco

  • Dataset: msmarco at 9e329ed
  • Size: 90,000 training samples
  • Columns: score, query, positive, and negative
  • Approximate statistics based on the first 1000 samples:
    scorequerypositivenegative
    typefloatstringstringstring
    detailsmin: -1.28mean: 13.47max: 22.27min: 4 tokensmean: 8.97 tokensmax: 21 tokensmin: 19 tokensmean: 81.41 tokensmax: 220 tokensmin: 17 tokensmean: 76.39 tokensmax: 195 tokens
  • Samples:
    scorequerypositivenegative
    13.85562777519226what is a reflective journal?A reflective journal is a tool that students are encouraged to use to help them understand not just what they have learned while studying but also how they learned it by reflecting on the learning experience itself.The point is that this approach believes that literature can be used to illuminate some truth about something which is not literature. The difference between this approach and the didactic approach is that didactic approach considers author as a teacher, while the reflective approach considers him or her an observer.
    12.178914229075115original footloose releaseFootloose (2011 film) Footloose is a 2011 American musical dance film directed by Craig Brewer. It is a remake of the 1984 film of the same name and stars Kenny Wormald, Julianne Hough, Andie MacDowell, and Dennis Quaid. The film follows a young man who moves from Boston to a small southern town and protests the town's ban against dancing.In the 2001 re-release of Thriller they added the second verse of the rap which was recorded but not included on the original here is the second verse by Vincent Price (I heard a 3rd was written but never recorded) The demons squeal in sheer delight. It's you they spy, so plump, so right.
    19.897210280100506time of day blood pressureDay Time Blood Pressure. For most people, your body's blood pressure rises during the morning hours and reaches its highest point around midday. This is because your body is preset to increase its functions for anticipated daily activity. Your body reaches its lowest blood pressure at bedtime, between 8 p.m. and 2 a.m.labetalol is used alone or together with other medicines to treat high blood pressure hypertension high blood pressure adds to the workload of the heart and arteriesif it continues for a long time the heart and arteries may not function properlyabetalol is used alone or together with other medicines to treat high blood pressure hypertension high blood pressure adds to the workload of the heart and arteries
  • Loss: SpladeLoss with these parameters:
    {
        "loss": "SparseMarginMSELoss",
        "lambda_corpus": 0.08,
        "lambda_query": 0.1
    }
    

Evaluation Dataset

msmarco

  • Dataset: msmarco at 9e329ed
  • Size: 10,000 evaluation samples
  • Columns: score, query, positive, and negative
  • Approximate statistics based on the first 1000 samples:
    scorequerypositivenegative
    typefloatstringstringstring
    detailsmin: -2.25mean: 13.3max: 22.52min: 4 tokensmean: 9.31 tokensmax: 40 tokensmin: 17 tokensmean: 79.88 tokensmax: 227 tokensmin: 18 tokensmean: 77.64 tokensmax: 250 tokens
  • Samples:
    scorequerypositivenegative
    11.338554302851358victor cruz dance salsa in the super bowlThe popular former Giant — who helped lead the team to a Super Bowl title in the 2011 season — ... Victor Cruz performed his first salsa dance in Chicago. The popular former Giant — who helped lead the team to a Super Bowl title in the 2011 season — caught a 2-yard touchdown pass from Mitch Trubisky in the Bears’ 24-17 preseason loss to the Broncos on Thursday night.Victor Cruz, Giants hammer out deal. Receiver Victor Cruz on Monday signed a six-year contract through the 2018 season with the New York Giants. The contract is worth $46 million and pays him $15.625 million fully guaranteed the first two seasons, a source said.
    18.167373975118what is the phone number for robloxim calling roblox hq and the roblox number is 888 858 2569 or if u live in canada its 1888 858 2569 subscibe to us (waffleman514 and twitterelgo) and join our youtube group on our profile Category[edit] Create A New Place. This is where you define where your game will be published. 1 Go to Roblox.com and login. 2 Click My ROBLOX and then click Places. 3 Click Create Game Place. 4 Fill out the form. 5 Name is the name of the game.
    17.668365399042766can you freeze cream soupWith a modest investment in time and effort, you can make your own cream of mushroom soup and freeze it for later use. This leaves you firmly in control of the soup's ingredients and enables you to portion the soup in quantities that make sense for you.I purchased 1.5 lbs of 3 large boneless, skinless chicken breasts. I am cooking them in a crockpot with 1 can of cream of mushroom soup, 1 can cream of chicken soup, 1 can of water and some canned mushrooms...the chicken is all at the bottom. About how long will it take the chicken to cook completely if I set my... show more I purchased 1.5 lbs of 3 large boneless, skinless chicken breasts.
  • Loss: SpladeLoss with these parameters:
    {
        "loss": "SparseMarginMSELoss",
        "lambda_corpus": 0.08,
        "lambda_query": 0.1
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 16
  • per_device_eval_batch_size: 16
  • learning_rate: 2e-05
  • num_train_epochs: 1
  • warmup_ratio: 0.1
  • fp16: True
  • load_best_model_at_end: True
  • batch_sampler: no_duplicates

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 16
  • per_device_eval_batch_size: 16
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 2e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1.0
  • num_train_epochs: 1
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.1
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • use_ipex: False
  • bf16: False
  • fp16: True
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: True
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: None
  • hub_always_push: False
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • include_for_metrics: []
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: False
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • use_liger_kernel: False
  • eval_use_gather_object: False
  • average_tokens_across_devices: False
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepTraining LossValidation LossNanoMSMARCO_dot_ndcg@10NanoNFCorpus_dot_ndcg@10NanoNQ_dot_ndcg@10NanoBEIR_mean_dot_ndcg@10
0.0178100795934.08-----
0.035620013561.4538-----
0.0533300118.2925-----
0.071140061.485-----
0.088950044.650338.62760.51260.27010.58290.4552
0.106760038.3666-----
0.124470035.2046-----
0.142280033.2246-----
0.1690031.5866-----
0.1778100029.391438.90040.58490.31400.60090.4999
0.1956110028.9009-----
0.2133120029.5258-----
0.2311130027.7958-----
0.2489140027.0228-----
0.2667150025.095322.51320.60900.33770.61660.5211
0.2844160025.4396-----
0.3022170022.53-----
0.32180024.0084-----
0.3378190023.5741-----
0.3556200023.14122.67750.64080.35600.59840.5317
0.3733210022.0953-----
0.3911220022.2789-----
0.4089230020.9582-----
0.4267240019.1969-----
0.4444250021.04728.32450.62090.34870.62600.5319
0.4622260020.7531-----
0.48270019.8115-----
0.4978280018.6278-----
0.5156290019.3731-----
0.5333300018.450220.31910.63900.35060.60870.5328
0.5511310018.4525-----
0.5689320017.0456-----
0.5867330017.256-----
0.6044340017.6203-----
0.6222350018.772117.79830.66850.34110.64440.5513
0.64360016.7819-----
0.6578370018.6132-----
0.6756380015.5466-----
0.6933390017.7706-----
0.7111400016.661215.75650.67270.35190.61590.5468
0.7289410016.4755-----
0.7467420016.9832-----
0.7644430014.9855-----
0.7822440014.6835-----
0.8450017.072518.04950.66520.34300.64230.5502
0.8178460015.8136-----
0.8356470015.6528-----
0.8533480015.5791-----
0.8711490015.1496-----
0.8889500014.746116.49180.63730.33530.64030.5376
0.9067510016.3102-----
0.9244520014.5521-----
0.9422530014.4375-----
0.96540015.2282-----
0.9778550014.473815.44390.64260.33850.63340.5382
0.9956560014.6468-----
-1-1--0.66850.34110.64440.5513
  • The bold row denotes the saved checkpoint.

Environmental Impact

Carbon emissions were measured using CodeCarbon.

  • Energy Consumed: 0.216 kWh
  • Carbon Emitted: 0.084 kg of CO2
  • Hours Used: 0.609 hours

Training Hardware

  • On Cloud: No
  • GPU Model: 1 x NVIDIA GeForce RTX 3090
  • CPU Model: 13th Gen Intel(R) Core(TM) i7-13700K
  • RAM Size: 31.78 GB

Framework Versions

  • Python: 3.11.6
  • Sentence Transformers: 4.2.0.dev0
  • Transformers: 4.52.4
  • PyTorch: 2.6.0+cu124
  • Accelerate: 1.5.1
  • Datasets: 2.21.0
  • Tokenizers: 0.21.1

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",
}

SpladeLoss

@misc{formal2022distillationhardnegativesampling,
      title={From Distillation to Hard Negative Sampling: Making Sparse Neural IR Models More Effective},
      author={Thibault Formal and Carlos Lassance and Benjamin Piwowarski and Stéphane Clinchant},
      year={2022},
      eprint={2205.04733},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2205.04733},
}

SparseMarginMSELoss

@misc{hofstätter2021improving,
    title={Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillation},
    author={Sebastian Hofstätter and Sophia Althammer and Michael Schröder and Mete Sertkan and Allan Hanbury},
    year={2021},
    eprint={2010.02666},
    archivePrefix={arXiv},
    primaryClass={cs.IR}
}

FlopsLoss

@article{paria2020minimizing,
    title={Minimizing flops to learn efficient sparse representations},
    author={Paria, Biswajit and Yeh, Chih-Kuan and Yen, Ian EH and Xu, Ning and Ravikumar, Pradeep and P{'o}czos, Barnab{'a}s},
    journal={arXiv preprint arXiv:2004.05665},
    year={2020}
    }

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForMaskedLM
Ревизия весов
6f59451

0 моделей