/ Модель

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

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

legal-bert-base-uncased-new

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

Англоязычная Sentence Transformers-модель на базе Legal-BERT для создания эмбеддингов и семантического поиска по юридическим текстам.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

IoannisKat1/legal-bert-base-uncased-new — англоязычная модель Sentence Transformers, дообученная разработчиком на базе nlpaueb/legal-bert-base-uncased для получения эмбеддингов юридических предложений и документов. Архитектура состоит из BERT-энкодера и mean pooling; модель отображает текст в плотные векторы размерности 768, сравниваемые по косинусному сходству. Максимальная длина входа — 512 токенов.

Модель предназначена для поиска и сопоставления юридических текстов по смыслу. Её можно применять для семантического поиска, оценки сходства предложений, поиска перефразировок и кластеризации; README также упоминает классификацию текста. В карточке приведены результаты поиска по наборам разной размерности эмбеддингов и указан обучающий набор из 391 пары anchor-positive.

Модель рассчитана на английский язык и использует лицензию Apache-2.0. Результаты оценки приведены для конкретного набора данных, а обучающая выборка невелика; качество на иных юридических корпусах и языках может отличаться. Входная последовательность ограничена 512 токенами.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

legal-bert-base-uncased

This is a sentence-transformers model finetuned from nlpaueb/legal-bert-base-uncased. It maps sentences & paragraphs to a 768-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: nlpaueb/legal-bert-base-uncased
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
  • Language: en
  • License: apache-2.0

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
  (1): Pooling({'word_embedding_dimension': 768, '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 may impede authorities in the discharge of their responsibilities under Union law?',
    'The objectives and principles of Directive 95/46/EC remain sound, but it has not prevented fragmentation in the implementation of data protection across the Union, legal uncertainty or a widespread public perception that there are significant risks to the protection of natural persons, in particular with regard to online activity. Differences in the level of protection of the rights and freedoms of natural persons, in particular the right to the protection of personal data, with regard to the processing of personal data in the Member States may prevent the free flow of personal data throughout the Union. Those differences may therefore constitute an obstacle to the pursuit of economic activities at the level of the Union, distort competition and impede authorities in the discharge of their responsibilities under Union law. Such a difference in levels of protection is due to the existence of differences in the implementation and application of Directive 95/46/EC.',
    'This Regulation is without prejudice to international agreements concluded between the Union and third countries regulating the transfer of personal data including appropriate safeguards for the data subjects. Member States may conclude international agreements which involve the transfer of personal data to third countries or international organisations, as far as such agreements do not affect this Regulation or any other provisions of Union law and include an appropriate level of protection for the fundamental rights of the data subjects.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.7482, 0.4027],
#         [0.7482, 1.0000, 0.4551],
#         [0.4027, 0.4551, 1.0000]])

Evaluation

Metrics

Information Retrieval

MetricValue
cosine_accuracy@10.2945
cosine_accuracy@30.299
cosine_accuracy@50.3291
cosine_accuracy@100.3611
cosine_precision@10.2945
cosine_precision@30.2941
cosine_precision@50.2903
cosine_precision@100.2743
cosine_recall@10.0303
cosine_recall@30.0883
cosine_recall@50.1355
cosine_recall@100.2141
cosine_ndcg@100.3187
cosine_mrr@100.3059
cosine_map@1000.3756

Information Retrieval

MetricValue
cosine_accuracy@10.2913
cosine_accuracy@30.2951
cosine_accuracy@50.3188
cosine_accuracy@100.3553
cosine_precision@10.2913
cosine_precision@30.2904
cosine_precision@50.2851
cosine_precision@100.2681
cosine_recall@10.0304
cosine_recall@30.0883
cosine_recall@50.1341
cosine_recall@100.2091
cosine_ndcg@100.3126
cosine_mrr@100.3018
cosine_map@1000.3699

Information Retrieval

MetricValue
cosine_accuracy@10.2913
cosine_accuracy@30.2951
cosine_accuracy@50.3169
cosine_accuracy@100.3419
cosine_precision@10.2913
cosine_precision@30.2909
cosine_precision@50.286
cosine_precision@100.2652
cosine_recall@10.0293
cosine_recall@30.0858
cosine_recall@50.1321
cosine_recall@100.2058
cosine_ndcg@100.3091
cosine_mrr@100.2998
cosine_map@1000.3618

Information Retrieval

MetricValue
cosine_accuracy@10.2804
cosine_accuracy@30.2843
cosine_accuracy@50.3041
cosine_accuracy@100.3265
cosine_precision@10.2804
cosine_precision@30.2796
cosine_precision@50.2743
cosine_precision@100.2528
cosine_recall@10.0289
cosine_recall@30.084
cosine_recall@50.1279
cosine_recall@100.1954
cosine_ndcg@100.2965
cosine_mrr@100.2883
cosine_map@1000.3458

Information Retrieval

MetricValue
cosine_accuracy@10.2625
cosine_accuracy@30.265
cosine_accuracy@50.2862
cosine_accuracy@100.3067
cosine_precision@10.2625
cosine_precision@30.261
cosine_precision@50.2563
cosine_precision@100.2385
cosine_recall@10.0264
cosine_recall@30.0763
cosine_recall@50.1163
cosine_recall@100.1798
cosine_ndcg@100.2782
cosine_mrr@100.27
cosine_map@1000.3246

Training Details

Training Dataset

Unnamed Dataset

  • Size: 391 training samples
  • Columns: anchor and positive
  • Approximate statistics based on the first 391 samples:
    anchorpositive
    typestringstring
    detailsmin: 7 tokensmean: 15.08 tokensmax: 29 tokensmin: 25 tokensmean: 358.31 tokensmax: 512 tokens
  • Samples:
    anchorpositive
    On what date did the act occur?Court (Civil/Criminal): Civil Provisions: Directive 2015/366, Law 4537/2018 Time of the act: 31.08.2022 Outcome (not guilty, guilty): Partially accepts the claim. Reasoning: The Athens Peace Court ordered the bank to return the amount that was withdrawn from the plaintiffs' account and to pay additional compensation for the moral damage they suffered. Facts: The case concerns plaintiffs who fell victim to electronic fraud via phishing, resulting in the withdrawal of money from their bank account. The plaintiffs claimed that the bank did not take the necessary security measures to protect their accounts and sought compensation for the financial loss and moral damage they suffered. The court determined that the bank is responsible for the loss of the money, as it did not prove that the transactions were authorized by the plaintiffs. Furthermore, the court recognized that the bank's refusal to return the funds constitutes an infringement of the plaintiffs' personal rights, as it...
    For what purposes can more specific rules be provided regarding the employment context?1.Member States may, by law or by collective agreements, provide for more specific rules to ensure the protection of the rights and freedoms in respect of the processing of employees' personal data in the employment context, in particular for the purposes of the recruitment, the performance of the contract of employment, including discharge of obligations laid down by law or by collective agreements, management, planning and organisation of work, equality and diversity in the workplace, health and safety at work, protection of employer's or customer's property and for the purposes of the exercise and enjoyment, on an individual or collective basis, of rights and benefits related to employment, and for the purpose of the termination of the employment relationship.2.Those rules shall include suitable and specific measures to safeguard the data subject's human dignity, legitimate interests and fundamental rights, with particular regard to the transparency of processing, the transfer of p...
    On which date were transactions detailed in the provided text conducted?Court (Civil/Criminal): CivilProvisions:Time of commission of the act:Outcome (not guilty, guilty):Rationale:Facts:The plaintiff holds credit card number ............ with the defendant banking corporation. Based on the application for alternative networks dated 19/7/2015 with number ......... submitted at a branch of the defendant, he was granted access to the electronic banking service (e-banking) to conduct banking transactions (debit, credit, updates, payments) remotely. On 30/11/2020, the plaintiff fell victim to electronic fraud through the "phishing" method, whereby an unknown perpetrator managed to withdraw a total amount of €3,121.75 from the aforementioned credit card. Specifically, the plaintiff received an email at 1:35 PM on 29/11/2020 from sender ...... with address ........, informing him that due to an impending system change, he needed to verify the mobile phone number linked to the credit card, urging him to complete the verification...
  • 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

  • eval_strategy: epoch
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • gradient_accumulation_steps: 2
  • learning_rate: 2e-05
  • num_train_epochs: 20
  • lr_scheduler_type: cosine
  • warmup_ratio: 0.1
  • bf16: True
  • load_best_model_at_end: True
  • optim: adamw_torch_fused
  • batch_sampler: no_duplicates

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: epoch
  • prediction_loss_only: True
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 2
  • 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: 20
  • max_steps: -1
  • lr_scheduler_type: cosine
  • 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: True
  • 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: 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}
  • tp_size: 0
  • 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_fused
  • 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 Lossdim_768_cosine_ndcg@10dim_512_cosine_ndcg@10dim_256_cosine_ndcg@10dim_128_cosine_ndcg@10dim_64_cosine_ndcg@10
0.010217.1696-----
0.020425.5986-----
0.030637.0556-----
0.040843.6816-----
0.051052.7039-----
0.061264.2351-----
0.071474.2931-----
0.081687.8564-----
0.091895.2709-----
0.1020102.8151-----
0.1122114.8541-----
0.1224124.5369-----
0.1327133.4808-----
0.1429142.8361-----
0.1531153.2782-----
0.1633163.1139-----
0.1735178.5683-----
0.1837182.9852-----
0.1939197.1109-----
0.2041204.5516-----
0.2143215.421-----
0.2245225.0981-----
0.2347235.6382-----
0.2449246.2661-----
0.2551252.7698-----
0.2653264.0075-----
0.2755277.6512-----
0.2857284.7715-----
0.2959294.6595-----
0.3061304.795-----
0.3163314.8058-----
0.3265324.8049-----
0.3367336.2773-----
0.3469343.3515-----
0.3571353.2643-----
0.3673363.5992-----
0.3776373.8876-----
0.38783811.1147-----
0.3980395.3685-----
0.4082404.4782-----
0.4184412.3301-----
0.4286425.3515-----
0.4388434.2881-----
0.4490445.8402-----
0.4592454.4051-----
0.4694463.7015-----
0.4796473.8899-----
0.4898486.1056-----
0.5495.0372-----
0.5102503.5458-----
0.5204515.2707-----
0.5306525.3742-----
0.5408534.952-----
0.5510541.8328-----
0.5612553.1727-----
0.5714563.0359-----
0.5816572.7896-----
0.5918582.6978-----
0.6020592.5506-----
0.6122603.8039-----
0.6224612.893-----
0.6327623.5782-----
0.6429634.1546-----
0.6531647.4876-----
0.6633652.2801-----
0.6735665.4241-----
0.6837675.5202-----
0.6939683.6768-----
0.7041693.0628-----
0.7143705.0465-----
0.7245713.7249-----
0.7347723.3501-----
0.7449733.2268-----
0.7551743.1353-----
0.7653754.0545-----
0.7755761.4042-----
0.7857770.929-----
0.7959782.7907-----
0.8061794.691-----
0.8163801.4842-----
0.8265812.9783-----
0.8367823.0866-----
0.8469831.1731-----
0.8571840.5525-----
0.8673852.5626-----
0.8776861.0867-----
0.8878871.3064-----
0.8980883.0336-----
0.9082898.6704-----
0.9184902.0829-----
0.9286910.9734-----
0.9388924.8751-----
0.9490931.7869-----
0.9592942.261-----
0.9694950.8735-----
0.9796962.0015-----
0.9898978.3582-----
1.0982.75640.23050.23200.24280.22970.1815
1.0102994.9172-----
1.02041002.3303-----
1.03061012.7368-----
1.04081022.0585-----
1.05101032.8806-----
1.06121041.3272-----
1.07141050.9525-----
1.08161060.3944-----
1.09181070.5496-----
1.10201084.0204-----
1.11221090.7699-----
1.12241101.573-----
1.13271112.2908-----
1.14291122.2194-----
1.15311135.5098-----
1.16331141.4926-----
1.17351150.5118-----
1.18371160.352-----
1.19391171.8558-----
1.20411183.5846-----
1.21431193.2194-----
1.22451200.463-----
1.23471210.0158-----
1.24491220.373-----
1.25511238.6146-----
1.26531243.335-----
1.27551250.3582-----
1.28571260.9795-----
1.29591270.1047-----
1.30611280.0824-----
1.31631299.3996-----
1.32651300.3556-----
1.33671314.8549-----
1.34691322.2411-----
1.35711338.3107-----
1.36731340.7372-----
1.37761350.5628-----
1.38781361.1153-----
1.39801371.3439-----
1.40821381.8474-----
1.41841392.622-----
1.42861400.609-----
1.43881411.6592-----
1.44901422.3689-----
1.45921430.9918-----
1.46941443.2973-----
1.47961455.0454-----
1.48981463.5016-----
1.51470.0423-----
1.51021480.3454-----
1.52041495.5514-----
1.53061509.9022-----
1.54081510.2767-----
1.55101520.5092-----
1.56121530.2002-----
1.57141540.4579-----
1.58161550.0617-----
1.59181560.7426-----
1.60201572.8018-----
1.61221580.5183-----
1.62241594.9833-----
1.63271600.6326-----
1.64291611.5892-----
1.65311626.4426-----
1.66331634.3646-----
1.67351647.2462-----
1.68371651.6232-----
1.69391660.0539-----
1.70411675.1647-----
1.71431680.239-----
1.72451696.1138-----
1.73471701.6571-----
1.74491710.2895-----
1.75511720.2621-----
1.76531730.0144-----
1.77551740.0988-----
1.78571750.025-----
1.79591762.7099-----
1.80611773.878-----
1.81631782.0187-----
1.826517926.4641-----
1.83671803.9726-----
1.84691811.9337-----
1.85711821.6689-----
1.86731832.8942-----
1.87761840.4883-----
1.88781850.0029-----
1.89801860.2828-----
1.90821871.4594-----
1.91841880.0992-----
1.92861890.9195-----
1.93881904.6248-----
1.94901910.0364-----
1.95921920.8291-----
1.96941935.1303-----
1.97961940.3142-----
1.98981950.182-----
2.01960.00190.29380.28530.28930.27190.2200
2.01021973.262-----
2.02041980.0092-----
2.03061990.3517-----
2.04082000.0116-----
2.05102010.0846-----
2.06122020.0027-----
2.07142032.1304-----
2.08162041.1392-----
2.09182050.2868-----
2.10202065.8102-----
2.11222070.0089-----
2.12242080.191-----
2.13272090.0439-----
2.142921011.698-----
2.15312110.2859-----
2.16332120.0321-----
2.17352130.0025-----
2.18372140.5854-----
2.19392155.8049-----
2.20412162.782-----
2.21432170.3969-----
2.22452180.8192-----
2.23472190.0015-----
2.24492205.6306-----
2.255122112.1614-----
2.26532222.142-----
2.27552230.3337-----
2.28572241.502-----
2.29592250.0516-----
2.30612260.0015-----
2.31632270.005-----
2.32652282.7072-----
2.33672290.0176-----
2.34692300.2738-----
2.35712312.1149-----
2.36732325.956-----
2.37762330.6448-----
2.38782340.1135-----
2.39802350.0345-----
2.40822362.4979-----
2.41842370.6361-----
2.42862380.3688-----
2.43882397.7828-----
2.44902404.2094-----
2.45922410.1711-----
2.46942420.0468-----
2.47962430.0016-----
2.48982440.5277-----
2.52450.0386-----
2.510224610.168-----
2.52042476.9855-----
2.53062487.1669-----
2.54082490.8908-----
2.55102501.839-----
2.56122510.0424-----
2.57142522.5308-----
2.58162530.6599-----
2.59182540.0395-----
2.60202550.1428-----
2.61222563.4492-----
2.62242574.8398-----
2.63272580.0124-----
2.64292590.0069-----
2.65312600.2163-----
2.66332614.8929-----
2.67352620.0561-----
2.68372630.1611-----
2.69392641.3758-----
2.70412653.2582-----
2.714326618.0246-----
2.72452670.0016-----
2.73472682.5819-----
2.74492690.4953-----
2.75512700.1712-----
2.76532710.0173-----
2.77552729.0557-----
2.78572730.0104-----
2.79592741.2539-----
2.80612750.0-----
2.81632760.0692-----
2.82652770.0416-----
2.83672781.4689-----
2.84692797.7806-----
2.85712800.0189-----
2.86732811.6739-----
2.87762820.0527-----
2.88782833.8894-----
2.89802844.7123-----
2.90822850.6912-----
2.91842860.2394-----
2.92862871.1657-----
2.93882880.0046-----
2.94902890.0011-----
2.95922900.0098-----
2.96942910.4745-----
2.97962920.964-----
2.98982930.0369-----
3.02940.01790.28780.28200.27700.26250.2361
3.01022953.7066-----
3.02042960.0002-----
3.03062970.042-----
3.04082989.0249-----
3.05102991.1905-----
3.06123000.1012-----
3.07143010.0468-----
3.08163020.002-----
3.09183030.0003-----
3.10203040.093-----
3.11223052.4288-----
3.12243062.7864-----
3.13273070.1523-----
3.14293080.004-----
3.153130912.1307-----
3.16333100.0162-----
3.17353110.0012-----
3.18373121.4673-----
3.19393130.0212-----
3.20413140.0026-----
3.21433154.5828-----
3.22453160.0001-----
3.23473170.0708-----
3.24493180.3905-----
3.25513190.0472-----
3.26533200.6012-----
3.27553210.0233-----
3.28573222.4017-----
3.29593230.0008-----
3.30613240.09-----
3.31633250.6235-----
3.32653260.0004-----
3.33673270.0036-----
3.34693280.0573-----
3.35713291.7098-----
3.36733300.0395-----
3.37763310.0052-----
3.38783320.0095-----
3.39803337.6863-----
3.40823340.1564-----
3.41843350.0134-----
3.42863360.0212-----
3.43883370.0004-----
3.44903380.0001-----
3.45923390.0808-----
3.46943400.0006-----
3.47963410.4523-----
3.48983420.3906-----
3.53430.0364-----
3.51023440.055-----
3.52043450.1381-----
3.53063462.0386-----
3.54083470.0003-----
3.55103480.119-----
3.56123490.0003-----
3.57143500.0165-----
3.58163516.8156-----
3.59183521.5111-----
3.60203530.0001-----
3.61223541.5603-----
3.62243550.5631-----
3.63273560.238-----
3.64293570.1564-----
3.65313580.0211-----
3.66333590.0516-----
3.67353600.0184-----
3.68373610.0944-----
3.69393620.0242-----
3.70413638.1297-----
3.71433640.025-----
3.72453650.0041-----
3.73473660.0012-----
3.74493673.6937-----
3.75513680.1472-----
3.76533691.8883-----
3.77553700.0229-----
3.78573711.1389-----
3.79593720.276-----
3.80613730.2737-----
3.81633740.0002-----
3.82653750.0959-----
3.83673760.1988-----
3.84693770.0002-----
3.85713780.4024-----
3.86733790.0025-----
3.87763800.0077-----
3.88783812.5045-----
3.89803820.0271-----
3.90823831.1894-----
3.91843841.2235-----
3.92863852.7343-----
3.93883860.503-----
3.94903870.0885-----
3.95923880.0001-----
3.96943890.6582-----
3.97963900.0002-----
3.98983910.0041-----
4.03920.00010.31580.31660.30720.28760.2621
4.01023936.4082-----
4.02043940.0927-----
4.03063954.3878-----
4.04083960.0233-----
4.05103970.0001-----
4.06123980.0006-----
4.07143990.0001-----
4.08164000.0006-----
4.09184010.0132-----
4.10204020.0265-----
4.11224033.4777-----
4.12244040.0022-----
4.13274050.0001-----
4.14294060.0007-----
4.15314070.0055-----
4.16334080.0002-----
4.17354090.0316-----
4.18374100.0479-----
4.19394110.0004-----
4.20414120.0019-----
4.21434130.1181-----
4.22454140.1845-----
4.23474150.0001-----
4.24494165.1701-----
4.25514170.049-----
4.26534180.077-----
4.27554194.0434-----
4.28574204.7865-----
4.29594210.8345-----
4.30614226.5911-----
4.31634230.0784-----
4.32654240.005-----
4.33674250.0003-----
4.34694261.6826-----
4.35714270.1201-----
4.36734280.0016-----
4.37764290.011-----
4.38784300.001-----
4.39804310.0008-----
4.40824320.0127-----
4.41844330.4294-----
4.42864340.0054-----
4.43884350.0-----
4.44904360.8544-----
4.45924374.1478-----
4.46944380.261-----
4.47964390.0-----
4.48984400.4865-----
4.54410.0084-----
4.51024420.2217-----
4.52044430.7317-----
4.53064440.0415-----
4.54084450.0008-----
4.55104460.0004-----
4.56124470.4987-----
4.57144480.0141-----
4.58164490.2476-----
4.59184500.0463-----
4.60204510.0011-----
4.61224520.0155-----
4.62244530.0068-----
4.63274540.0009-----
4.64294550.3858-----
4.65314560.6687-----
4.66334576.9477-----
4.67354580.9326-----
4.68374590.0208-----
4.69394600.058-----
4.70414610.0307-----
4.71434620.0-----
4.724546323.8009-----
4.73474640.0001-----
4.74494653.4537-----
4.75514664.185-----
4.76534671.3744-----
4.77554680.4893-----
4.78574690.0023-----
4.79594700.0163-----
4.80614710.001-----
4.81634720.0-----
4.82654730.0074-----
4.83674740.0006-----
4.84694750.0011-----
4.85714761.6108-----
4.86734770.1876-----
4.87764780.0262-----
4.88784790.1159-----
4.89804800.5904-----
4.90824810.0002-----
4.91844822.7912-----
4.92864832.9303-----
4.93884840.0127-----
4.94904852.9811-----
4.95924860.0252-----
4.96944870.0522-----
4.97964880.2255-----
4.98984890.1411-----
5.04900.07110.31970.31400.30320.29370.2607
5.01024910.012-----
5.02044920.0008-----
5.03064930.0028-----
5.04084941.8711-----
5.05104950.0761-----
5.06124960.1384-----
5.07144970.11-----
5.08164980.001-----
5.09184990.0005-----
5.10205000.8153-----
5.11225010.0-----
5.12245020.0057-----
5.13275030.0104-----
5.14295040.0001-----
5.15315050.0026-----
5.16335060.0015-----
5.17355070.0022-----
5.18375080.0052-----
5.19395090.0362-----
5.20415106.6671-----
5.21435110.8716-----
5.22455120.0141-----
5.23475130.0-----
5.24495140.0217-----
5.25515150.0001-----
5.26535160.0-----
5.27555170.0258-----
5.28575180.0001-----
5.29595190.0092-----
5.30615200.001-----
5.31635210.0174-----
5.32655220.2128-----
5.33675230.0222-----
5.34695240.0084-----
5.35715250.0005-----
5.36735260.0164-----
5.37765270.004-----
5.38785280.0154-----
5.39805290.0002-----
5.40825300.0178-----
5.41845310.0-----
5.42865322.6306-----
5.43885330.0014-----
5.44905340.0007-----
5.45925350.0088-----
5.46945360.0011-----
5.47965370.0032-----
5.48985380.0004-----
5.55390.0005-----
5.51025400.0002-----
5.52045410.0046-----
5.53065420.0258-----
5.54085430.754-----
5.55105440.7433-----
5.56125450.0332-----
5.57145460.0001-----
5.58165470.0093-----
5.59185480.0109-----
5.60205490.0003-----
5.61225500.0003-----
5.62245510.0008-----
5.63275520.0001-----
5.64295530.0017-----
5.65315540.0084-----
5.66335550.0005-----
5.67355560.023-----
5.68375570.0137-----
5.69395580.0102-----
5.70415590.4275-----
5.71435600.0001-----
5.72455610.0001-----
5.73475620.0009-----
5.74495630.013-----
5.75515640.0001-----
5.76535650.0006-----
5.77555660.0001-----
5.78575670.0003-----
5.79595680.0001-----
5.80615690.8792-----
5.81635700.7551-----
5.82655710.0002-----
5.83675720.0-----
5.84695730.3999-----
5.85715740.0168-----
5.86735750.0014-----
5.87765760.0004-----
5.88785779.7985-----
5.89805780.0001-----
5.90825790.0078-----
5.91845801.6446-----
5.92865811.8624-----
5.93885820.3274-----
5.94905830.1845-----
5.95925840.0044-----
5.96945850.0016-----
5.97965862.6768-----
5.98985873.167-----
6.05880.00130.32560.32220.31510.29870.273
6.01025890.0262-----
6.02045900.021-----
6.03065910.0165-----
6.04085920.5149-----
6.05105931.1763-----
6.06125940.0205-----
6.07145950.0006-----
6.08165960.0002-----
6.09185970.0011-----
6.10205980.0005-----
6.11225990.0002-----
6.12246000.0002-----
6.13276010.0149-----
6.14296020.0065-----
6.15316030.0-----
6.16336040.0018-----
6.17356050.0-----
6.18376060.001-----
6.19396070.105-----
6.20416080.002-----
6.21436093.1424-----
6.22456101.9828-----
6.23476110.0056-----
6.24496120.0001-----
6.25516130.0177-----
6.26536140.0358-----
6.27556150.0001-----
6.28576160.0-----
6.29596170.0006-----
6.30616180.0105-----
6.31636190.0005-----
6.32656200.0002-----
6.33676210.0043-----
6.34696220.0001-----
6.35716230.0009-----
6.36736240.0018-----
6.37766250.0066-----
6.38786260.0004-----
6.39806270.0018-----
6.40826280.0002-----
6.41846290.0056-----
6.42866300.0-----
6.43886310.0001-----
6.44906320.0017-----
6.45926330.0177-----
6.46946340.0002-----
6.47966350.0004-----
6.48986360.0015-----
6.56370.0004-----
6.51026380.0018-----
6.52046390.0185-----
6.53066400.0-----
6.54086410.0051-----
6.55106420.0018-----
6.56126430.0144-----
6.57146440.0114-----
6.58166450.0391-----
6.59186460.3066-----
6.60206470.0047-----
6.61226480.0-----
6.62246490.7053-----
6.63276500.0003-----
6.64296510.0319-----
6.65316521.205-----
6.66336530.0098-----
6.67356540.0009-----
6.68376550.0-----
6.69396560.0577-----
6.70416570.0054-----
6.71436580.0018-----
6.72456594.6084-----
6.73476600.1262-----
6.74496610.0538-----
6.75516620.0-----
6.76536630.0041-----
6.77556640.0046-----
6.78576650.0-----
6.79596660.1917-----
6.80616670.1963-----
6.81636680.0-----
6.82656690.0002-----
6.83676700.001-----
6.84696710.0-----
6.85716720.0089-----
6.86736730.0002-----
6.87766740.0-----
6.88786750.0001-----
6.89806760.0029-----
6.90826770.0003-----
6.91846780.0002-----
6.92866790.0144-----
6.93886800.0002-----
6.94906819.5598-----
6.95926827.4394-----
6.96946830.0395-----
6.97966840.0073-----
6.98986850.0001-----
7.06860.00240.32190.31600.30640.29430.2634
7.01026870.1988-----
7.02046880.0029-----
7.03066890.0565-----
7.04086900.0001-----
7.05106910.3333-----
7.06126920.0-----
7.07146930.0397-----
7.08166940.0002-----
7.09186956.99-----
7.10206960.2037-----
7.11226970.0058-----
7.12246980.1683-----
7.13276993.2532-----
7.14297000.0063-----
7.15317010.0-----
7.16337020.0051-----
7.17357030.8695-----
7.18377040.0-----
7.19397050.0001-----
7.20417061.9942-----
7.21437070.0-----
7.22457080.0007-----
7.23477090.0003-----
7.24497100.0-----
7.25517110.0-----
7.26537120.0008-----
7.27557130.0021-----
7.28577140.0001-----
7.29597150.0014-----
7.30617160.0-----
7.31637170.4907-----
7.32657180.0007-----
7.33677190.1083-----
7.34697200.0003-----
7.35717210.0005-----
7.36737220.0317-----
7.37767230.0005-----
7.38787240.0056-----
7.39807250.0094-----
7.40827260.0604-----
7.41847274.4169-----
7.42867280.012-----
7.43887295.5525-----
7.44907302.3835-----
7.45927310.0003-----
7.46947320.0016-----
7.47967330.0-----
7.48987340.0-----
7.57350.0421-----
7.51027360.0003-----
7.52047370.0029-----
7.53067380.0708-----
7.54087390.0025-----
7.55107400.0003-----
7.56127410.0-----
7.57147420.001-----
7.58167430.9904-----
7.59187448.014-----
7.60207450.0015-----
7.61227460.0002-----
7.62247470.0034-----
7.63277480.0004-----
7.64297490.023-----
7.65317507.3282-----
7.66337510.0244-----
7.67357520.1192-----
7.68377530.004-----
7.69397540.0007-----
7.70417550.0003-----
7.71437560.0024-----
7.72457570.0035-----
7.73477580.0-----
7.74497590.0025-----
7.75517600.0017-----
7.76537610.0005-----
7.77557622.9901-----
7.78577630.0004-----
7.79597640.0022-----
7.80617650.0013-----
7.81637660.0002-----
7.82657670.0179-----
7.83677680.0009-----
7.84697690.0002-----
7.85717700.0013-----
7.86737710.0007-----
7.87767720.0063-----
7.88787730.0002-----
7.89807740.002-----
7.90827750.0005-----
7.91847760.0005-----
7.92867770.0002-----
7.93887780.0-----
7.94907790.0-----
7.95927800.0017-----
7.96947810.0049-----
7.97967825.2118-----
7.98987830.0035-----
8.07840.00.31870.31260.30910.29650.2782
  • The bold row denotes the saved checkpoint.

Framework Versions

  • Python: 3.12.11
  • Sentence Transformers: 5.1.0
  • Transformers: 4.51.3
  • PyTorch: 2.8.0+cu126
  • Accelerate: 1.10.1
  • Datasets: 4.0.0
  • Tokenizers: 0.21.4

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{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…

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

0 моделей