/ Модель

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

Контекст
8 194 токена
Параметры
659 млн
Архитектура
xlm-roberta · dense
Базовая модель
bge-m3
Библиотека
sentence-transformers
Опубликована
30 июн 2025

RAG_enhance

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

Дообученная на BAAI/bge-m3 модель Sentence Transformers создаёт текстовые эмбеддинги для семантического поиска и сравнения предложений и документов.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

irene93/RAG_enhance — дообученная на BAAI/bge-m3 модель Sentence Transformers для преобразования предложений и абзацев в плотные векторные представления. Она использует трансформер XLM-RoBERTa с усреднением токенов при пулинге и формирует векторы размерностью 1024; сходство текстов оценивается косинусной мерой. Максимальная длина последовательности — 8192 токена.

Модель предназначена для семантического поиска и сравнения текстов, поиска перефразировок, кластеризации и классификации текстов. В README приведена оценка на задаче информационного поиска: точность cosine_accuracy@1 составляет 0,3454, @3 — 0,6057, @5 — 0,7223. Обучающая выборка содержит 23 404 пары предложений и абзацев.

Модель принимает текст и выдаёт векторные представления; метаданные указывают поддержку эмбеддингов, а базовая BGE-M3 описана как многоязычная. Лицензия в предоставленных данных не указана.

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

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

Ограничения

README приводит метрики только для оценки информационного поиска, поэтому качество на других задачах по этим данным оценить нельзя. Лицензия и поддерживаемые языки конкретной версии не приведены.

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

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

Открыть на Hugging Face

SentenceTransformer based on BAAI/bge-m3

This is a sentence-transformers model finetuned from BAAI/bge-m3. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: BAAI/bge-m3
  • Maximum Sequence Length: 8192 tokens
  • Output Dimensionality: 1024 dimensions
  • Similarity Function: Cosine Similarity

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: XLMRobertaModel 
  (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, '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("sentence_transformers_model_id")
# Run inference
sentences = [
    "What factors are contributing to pressure on Apple's market share in China?",
    "The company forecast low-to-mid single-digit\nrevenue growth, in line with muted expectations. In China, Apple posted $16 billion in revenue, slightly\nabove forecasts, though competition from Huawei and slower AI\nrollout continue to pressure market share. If losses hold, Apple is on track to shed more than $150\nbillion in market value, while a bullish outlook from Microsoft\n<MSFT.O> earlier this week has helped the Windows-maker become\nthe world's most valuable company.",
    'With recent\nexchange rate fluctuations adding to the uncertainty, we are\ntaking a more cautious outlook for the near future." While Washington and Beijing on Monday agreed to slash\ntariffs for at least 90 days, the cheer over the temporary truce\nwas tempered by caution given a more permanent trade deal needs\nto be struck, while higher tariffs overall could still weigh on\nthe global economy. Most of the iPhones Foxconn makes for Apple are assembled in\nChina.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

Evaluation

Metrics

Information Retrieval

MetricValue
cosine_accuracy@10.3454
cosine_accuracy@30.6057
cosine_accuracy@50.7223
cosine_accuracy@100.8465
cosine_precision@10.3454
cosine_precision@30.2019
cosine_precision@50.1445
cosine_precision@100.0847
cosine_recall@10.3454
cosine_recall@30.6057
cosine_recall@50.7223
cosine_recall@100.8465
cosine_ndcg@100.5859
cosine_mrr@100.5034
cosine_map@1000.5105

Training Details

Training Dataset

Unnamed Dataset

  • Size: 23,404 training samples
  • Columns: sentence_0 and sentence_1
  • Approximate statistics based on the first 1000 samples:
    sentence_0sentence_1
    typestringstring
    detailsmin: 10 tokensmean: 24.88 tokensmax: 53 tokensmin: 10 tokensmean: 257.76 tokensmax: 8022 tokens
  • Samples:
    sentence_0sentence_1
    By approximately what percentage did Meta's shares increase in after-hours trading following the announcement of its results?Its sharesjumped around 7% in after-hours trade on the news of the results. Meanwhile,Meta beat estimates with $42 billion in revenue last quarter. It's also saidits daily active users across Facebook, Instagram, and the rest of itsservices rose 6% year-on-year, marking welcome news for advertisers.
    How have drugmakers responded to proposed tariffs on imported pharmaceutical products during the Commerce Department's investigation?The move triggered a 21-day public comment period as part of the investigation led by the Commerce Department. Drugmakers see the probe as a chance to show theadministration that high tariffs would hinder their efforts toswiftly ramp up U.S. production, and to propose alternatives,said Ted Murphy, a trade lawyer at law firm Sidley Austin, whichis advising companies on their submissions to the CommerceDepartment. Drugmakers have also lobbied Trump to phase in tariffs onimported pharmaceutical products in hopes of reducing the stingfrom the charges.
    Which South American companies currently use the company's regional services, and what growth expectations does Estevez have for the area?The company already has 36 regions and 114 availabilityzones worldwide used by companies such as Netflix, GeneralElectric and Sony for storage, networking and remote security. Chilean retailer Cencosud, online retail giant MercadoLibre,and mining companies already use the company's other regionalservices, it said. Amazon's first-quarter cloud revenue and income forecastcame in below estimates last Thursday, but Estevez said he'sexpecting strong growth in Chile and across the region.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim"
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 3
  • per_device_eval_batch_size: 3
  • num_train_epochs: 2
  • multi_dataset_batch_sampler: round_robin

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 3
  • per_device_eval_batch_size: 3
  • 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: 5e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1
  • num_train_epochs: 2
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • 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: False
  • 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: False
  • 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
  • hub_revision: None
  • 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
  • liger_kernel_config: None
  • eval_use_gather_object: False
  • average_tokens_across_devices: False
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: round_robin

Training Logs

EpochStepTraining Losscosine_ndcg@10
0.019250-0.5170
0.0384100-0.5279
0.0577150-0.5324
0.0769200-0.5336
0.0961250-0.5456
0.1153300-0.5535
0.1346350-0.5507
0.1538400-0.5532
0.1730450-0.5591
0.19225000.20910.5693
0.2115550-0.5666
0.2307600-0.5669
0.2499650-0.5668
0.2691700-0.5636
0.2884750-0.5650
0.3076800-0.5636
0.3268850-0.5677
0.3460900-0.5686
0.3652950-0.5678
0.384510000.05460.5624
0.40371050-0.5659
0.42291100-0.5687
0.44211150-0.5704
0.46141200-0.5695
0.48061250-0.5702
0.49981300-0.5582
0.51901350-0.5703
0.53831400-0.5688
0.55751450-0.5722
0.576715000.05290.5673
0.59591550-0.5669
0.61511600-0.5597
0.63441650-0.5666
0.65361700-0.5626
0.67281750-0.5627
0.69201800-0.5641
0.71131850-0.5572
0.73051900-0.5632
0.74971950-0.5733
0.768920000.04780.5644
0.78822050-0.5658
0.80742100-0.5608
0.82662150-0.5687
0.84582200-0.5728
0.86512250-0.5581
0.88432300-0.5612
0.90352350-0.5616
0.92272400-0.5650
0.94192450-0.5626
0.961225000.04820.5665
0.98042550-0.5668
0.99962600-0.5552
1.02601-0.5556
1.01882650-0.5681
1.03812700-0.5620
1.05732750-0.5639
1.07652800-0.5646
1.09572850-0.5714
1.11502900-0.5748
1.13422950-0.5739
1.153430000.0330.5630
1.17263050-0.5655
1.19183100-0.5711
1.21113150-0.5680
1.23033200-0.5742
1.24953250-0.5714
1.26873300-0.5657
1.28803350-0.5636
1.30723400-0.5701
1.32643450-0.5720
1.345635000.02760.5733
1.36493550-0.5738
1.38413600-0.5743
1.40333650-0.5702
1.42253700-0.5732
1.44183750-0.5705
1.46103800-0.5774
1.48023850-0.5735
1.49943900-0.5781
1.51863950-0.5691
1.537940000.02660.5729
1.55714050-0.5712
1.57634100-0.5685
1.59554150-0.5711
1.61484200-0.5712
1.63404250-0.5716
1.65324300-0.5762
1.67244350-0.5813
1.69174400-0.5822
1.71094450-0.5805
1.730145000.03370.5789
1.74934550-0.5745
1.76864600-0.5752
1.78784650-0.5780
1.80704700-0.5815
1.82624750-0.5833
1.84544800-0.5809
1.86474850-0.5711
1.88394900-0.5716
1.90314950-0.5816
1.922350000.02990.5815
1.94165050-0.5816
1.96085100-0.5847
1.98005150-0.5831
1.99925200-0.5847
2.05202-0.5859

Framework Versions

  • Python: 3.10.12
  • Sentence Transformers: 3.4.1
  • Transformers: 4.53.0
  • PyTorch: 2.2.0+cu121
  • Accelerate: 1.8.1
  • Datasets: 3.6.0
  • Tokenizers: 0.21.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{henderson2017efficient,
    title={Efficient Natural Language Response Suggestion for Smart Reply},
    author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
    year={2017},
    eprint={1705.00652},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
XLMRobertaModel
Ревизия весов
5791e02

0 моделей