/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
bge-base-en-v1.5
Библиотека
sentence-transformers
Опубликована
10 сен 2026

bge-base-financial-matryoshka-2

ЭмбеддингиТекст → embedding

Англоязычная модель эмбеддингов на базе BGE, дообученная для семантического поиска и сопоставления финансовых текстов.

28скачиваний за 30 дней0лайковвеса обновлены10 сен 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

iammayur создал эту англоязычную модель Sentence Transformer, дообученную на базе BAAI/bge-base-en-v1.5 для текстов финансовой тематики. Она преобразует предложения и абзацы в плотные эмбеддинги размерностью 768 с нормализацией и косинусным сходством; контекст ограничен 512 токенами. Модель поддерживает семантический поиск и сравнение текстов, а также может применяться для поиска перефразировок, кластеризации и классификации. Matryoshka-обучение позволяет усекать вектор до 512, 256, 128 или 64 измерений с сохранением пригодности для поиска.

Модель предназначена, в частности, для сопоставления финансовых вопросов с фрагментами отчетов и поиска релевантных финансовых документов. В README приведены оценки retrieval на наборе dim_768: cosine_accuracy@1 — 0,6957, @3 — 0,8271, @5 — 0,8714; результаты зависят от набора данных и настроек применения. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

Открыть на Hugging Face

BGE base Financial Matryoshka

This is a sentence-transformers model finetuned from BAAI/bge-base-en-v1.5 on the json dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: BAAI/bge-base-en-v1.5
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
  • Supported Modality: Text
  • Training Dataset:
    • json
  • Language: en
  • License: apache-2.0

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': 'BertModel'})
  (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'cls', 'include_prompt': True})
  (2): Normalize({})
)

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("iammayur/bge-base-financial-matryoshka-2")
# Run inference
queries = [
    'Free cash flow less equipment finance leases and principal repayments of all other finance leases and financing obligations totaled -$12,786 million for the year 2022.',
]
documents = [
    'What was the free cash flow less equipment finance leases and principal repayments of all other finance leases and financing obligations for the year 2022?',
    'What percentage of the total annual net trade sales did the sales returns reserve represent for the company during each of the fiscal years 2023, 2022, and 2021?',
    'What acquisitions did the Life Insurance segment include in 2023?',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 768] [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.9391, 0.1428, 0.1692]])

Evaluation

Metrics

Information Retrieval

MetricValue
cosine_accuracy@10.6957
cosine_accuracy@30.8271
cosine_accuracy@50.8714
cosine_accuracy@100.9086
cosine_precision@10.6957
cosine_precision@30.2757
cosine_precision@50.1743
cosine_precision@100.0909
cosine_recall@10.6957
cosine_recall@30.8271
cosine_recall@50.8714
cosine_recall@100.9086
cosine_ndcg@100.8049
cosine_mrr@100.7715
cosine_map@1000.7749

Information Retrieval

MetricValue
cosine_accuracy@10.6957
cosine_accuracy@30.8271
cosine_accuracy@50.8643
cosine_accuracy@100.91
cosine_precision@10.6957
cosine_precision@30.2757
cosine_precision@50.1729
cosine_precision@100.091
cosine_recall@10.6957
cosine_recall@30.8271
cosine_recall@50.8643
cosine_recall@100.91
cosine_ndcg@100.8047
cosine_mrr@100.7708
cosine_map@1000.7742

Information Retrieval

MetricValue
cosine_accuracy@10.7043
cosine_accuracy@30.8157
cosine_accuracy@50.8657
cosine_accuracy@100.91
cosine_precision@10.7043
cosine_precision@30.2719
cosine_precision@50.1731
cosine_precision@100.091
cosine_recall@10.7043
cosine_recall@30.8157
cosine_recall@50.8657
cosine_recall@100.91
cosine_ndcg@100.8054
cosine_mrr@100.7722
cosine_map@1000.7753

Information Retrieval

MetricValue
cosine_accuracy@10.6914
cosine_accuracy@30.8086
cosine_accuracy@50.8543
cosine_accuracy@100.8986
cosine_precision@10.6914
cosine_precision@30.2695
cosine_precision@50.1709
cosine_precision@100.0899
cosine_recall@10.6914
cosine_recall@30.8086
cosine_recall@50.8543
cosine_recall@100.8986
cosine_ndcg@100.7946
cosine_mrr@100.7614
cosine_map@1000.7651

Information Retrieval

MetricValue
cosine_accuracy@10.66
cosine_accuracy@30.7814
cosine_accuracy@50.8329
cosine_accuracy@100.88
cosine_precision@10.66
cosine_precision@30.2605
cosine_precision@50.1666
cosine_precision@100.088
cosine_recall@10.66
cosine_recall@30.7814
cosine_recall@50.8329
cosine_recall@100.88
cosine_ndcg@100.7686
cosine_mrr@100.7331
cosine_map@1000.7374

Training Details

Training Dataset

json

  • Dataset: json
  • Size: 6,300 training samples
  • Columns: positive and anchor
  • Approximate statistics based on the first 100 samples:
    positiveanchor
    typestringstring
    modalitytexttext
    detailsmin: 16 tokensmean: 45.67 tokensmax: 158 tokensmin: 10 tokensmean: 20.35 tokensmax: 32 tokens
  • Samples:
    positiveanchor
    The FIFO gross margin rates in 2022 and 2021 were 21.86% and 22.15% respectively.What were the FIFO gross margin rates in 2022 and 2021?
    See Note 14 to the consolidated financial statements in Item 8 of this Annual Report for a description of legal proceedings.What item in the Annual Report contains detailed descriptions of legal proceedings?
    Palantir Technologies Inc. reported cash and cash equivalents amounting to $831,047 as of December 31, 2023.What was the total amount of cash and cash equivalents reported by Palantir Technologies Inc. as of December 31, 2023?
  • Loss: MatryoshkaLoss with these parameters:
    {
        "loss": "MultipleNegativesRankingLoss",
        "matryoshka_dims": [
            768,
            512,
            256,
            128,
            64
        ],
        "matryoshka_weights": [
            1,
            1,
            1,
            1,
            1
        ],
        "n_dims_per_step": -1
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 16
  • num_train_epochs: 4
  • learning_rate: 2e-05
  • lr_scheduler_type: cosine
  • warmup_steps: 0.1
  • gradient_accumulation_steps: 16
  • bf16: True
  • per_device_eval_batch_size: 16
  • load_best_model_at_end: True
  • batch_sampler: no_duplicates

All Hyperparameters

  • per_device_train_batch_size: 16
  • num_train_epochs: 4
  • max_steps: -1
  • learning_rate: 2e-05
  • lr_scheduler_type: cosine
  • lr_scheduler_kwargs: None
  • warmup_steps: 0.1
  • optim: adamw_torch_fused
  • optim_args: None
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • optim_target_modules: None
  • gradient_accumulation_steps: 16
  • 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: 16
  • 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: 42
  • 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
  • dataloader_multiprocessing_context: None
  • dataloader_in_order: True
  • 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: None
  • fsdp_config: None
  • deepspeed: None
  • debug: []
  • skip_memory_metrics: True
  • do_predict: False
  • resume_from_checkpoint: None
  • local_rank: -1
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}
  • warmup_ratio: None

Training Logs

EpochStepTraining Lossdim_768_cosine_ndcg@10dim_512_cosine_ndcg@10dim_256_cosine_ndcg@10dim_128_cosine_ndcg@10dim_64_cosine_ndcg@10
0.4061101.0490-----
0.8122200.4851-----
1.025-0.79320.79750.79390.78210.7480
1.2030300.3594-----
1.6091400.3157-----
2.0500.22830.80200.80410.80320.79180.7668
2.4061600.2206-----
2.8122700.1971-----
3.075-0.80300.80500.80430.79250.7694
3.2030800.2084-----
3.6091900.2103-----
4.01000.20480.80490.80470.80540.79460.7686
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 45.5 minutes

Framework Versions

  • Python: 3.13.15
  • Sentence Transformers: 5.7.0
  • Transformers: 5.16.1
  • PyTorch: 2.11.0+cu128
  • Accelerate: 1.14.0
  • Datasets: 4.8.5
  • Tokenizers: 0.23.1

Additional Resources

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

MatryoshkaLoss

@misc{kusupati2024matryoshka,
    title={Matryoshka Representation Learning},
    author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
    year={2024},
    eprint={2205.13147},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

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…

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

0 моделей