/ Модель

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

Контекст
512 токенов
Параметры
25,9 млн
Архитектура
bert · dense
Базовая модель
all-MiniLM-L6-v2
Библиотека
sentence-transformers
Опубликована
17 июл 2026

all-MiniLM-L6-v2-iran-VS-USA-news

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

RinKana/all-MiniLM-L6-v2-iran-VS-USA-news — модель Sentence Transformers, дообученная на базе sentence-transformers/all-MiniLM-L6-v2 для поиска и сравнения новостных текстов об Иране и США. Она кодирует предложения и абзацы в плотные векторы размерностью 384 и использует косинусное сходство; архитектура включает энкодер BERT, усредняющий пулинг и нормализацию. В метаданных указаны 25,9 млн параметров и контекст до 512 токенов, а в README заявлена максимальная длина последовательности 256 токенов.

Модель принимает текст и выдаёт векторы для семантического поиска, сопоставления запросов с новостными материалами и извлечения релевантных документов. Обучающий набор содержит 2 057 пар, связывающих короткие запросы с новостными текстами; примеры и базовая модель ориентированы на английский язык. README приводит результаты оценки на наборе val-ir, но показанные значения точности на первых позициях невысоки, поэтому пригодность для конкретного корпуса стоит проверять отдельно. Лицензия в предоставленных данных не указана.

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

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

Ограничения

README показывает невысокие значения cosine_accuracy на позициях 1, 3 и 5 в оценке val-ir; качество на других корпусах не подтверждено. README заявляет максимальную длину 256 токенов, тогда как метаданные указывают нативный контекст 512 токенов.

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

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

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

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

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

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

Открыть на Hugging Face

SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2

This is a sentence-transformers model finetuned from sentence-transformers/all-MiniLM-L6-v2. 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: sentence-transformers/all-MiniLM-L6-v2
  • Maximum Sequence Length: 256 tokens
  • Output Dimensionality: 384 dimensions
  • Similarity Function: Cosine Similarity
  • Supported Modality: Text

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': 384, 'pooling_mode': 'mean', '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("RinKana/all-MiniLM-L6-v2-iran-VS-USA-news")
# Run inference
sentences = [
    'Iran Trump 2026',
    'US intercepts and seizes Iranian-flagged cargo ship, Trump says | The US has intercepted an Iranian-flagged cargo ship in the Gulf as part of its naval blockade, Donald Trump has said.\n\nThe US president wrote on his Truth Social platform that the Touska was seized by the US Navy after failing to respond to a warning to stop. Iran said it was a violation of the ceasefire and it would retaliate soon for the "act of armed piracy".\n\nThe announcement came after the White House confirmed US Vice-President JD Vance would lead another delegation for a second round of talks on ending the war with Iran in Pakistan.\n\nTehran has not yet confirmed its attendance. Iranian state media has reported that officials will not participate while the US blockade remains in place.\n\n"Today, an Iranian-flagged cargo ship named TOUSKA, nearly 900 feet long and weighing almost as much as an aircraft carrier, tried to get past our Naval Blockade, and it did not go well for them," Trump wrote.\n\nHe added that the US had given the vessel fair warning to stop, which was ignored, "so our Navy ship stopped them right in their tracks by blowing a hole in the engineroom".\n\n"The TOUSKA is under US Treasury Sanctions because of their prior history of illegal activity. We have full custody of the ship, and are seeing what\'s on board!"\n\nUS Central Command later released footage it said showed a naval vessel intercepting a cargo ship. In the footage, a gun can be seen firing in the direction of the cargo ship.\n\nAccording to a statement carried on state media outlets, a spokesperson for Iran\'s top military headquarters, Khatam al-Anbiya, said the US in "violation of the ceasefire opened fire on one of Iran\'s commercial vessels in the waters of the Sea of Oman, disabled its navigation system, and boarded it" by "deploying" marines.\n\n"Armed Forces of the Islamic Republic of Iran will soon respond to and retaliate for this act of armed piracy by the US Navy," reads the statement.\n\nTrump said on Friday that the naval blockade of Iranian ports would continue until a deal was agreed by the two countries.\n\nThe conflict began with US and Israeli strikes across Iran on 28 February and continued with waves of attacks across the Middle East for five weeks until a two-week truce was declared.',
    'UKIP sorry for PC Ali Hassan death \'karma\' tweet | UKIP has apologised for a tweet which said the death of a police officer under investigation in relation to the Rotherham abuse scandal was "karma".\n\nThe tweet from @PlymouthUKIP said: "South Yorkshire police says PC Hassan Ali who was under investigation in relation to child abuse in Rotherham has died in a car crash KARMA!"\n\nPC Ali, 44, died in hospital nine days after he was hit by a car in Sheffield.\n\nA UKIP spokesman said the tweeter had been rebuked.\n\nMr Ali was being investigated by the Independent Police Complaints Commission (IPCC) over allegations made about him, the BBC understands.\n\nSouth Yorkshire Police said his death was being treated as a "tragic accident". Officers are continuing to investigate the collision.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 384]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.5469, 0.3149],
#         [0.5469, 1.0000, 0.4410],
#         [0.3149, 0.4410, 1.0000]])

Evaluation

Metrics

Information Retrieval

MetricValue
cosine_accuracy@10.0568
cosine_accuracy@30.1703
cosine_accuracy@50.2533
cosine_accuracy@100.4454
cosine_precision@10.0568
cosine_precision@30.0568
cosine_precision@50.0507
cosine_precision@100.0445
cosine_recall@10.0568
cosine_recall@30.1703
cosine_recall@50.2533
cosine_recall@100.4454
cosine_ndcg@100.2169
cosine_mrr@100.1484
cosine_map@1000.1705

Training Details

It's trained by Iran vs USA COnflict News Dataset by doing Train/Val: 90/10 in this dataset.

Training Dataset

Iran vs USA Conflict News Dataset source:https://www.kaggle.com/datasets/solowpm23/iran-vs-us-coflict-news-dataset

Unnamed Dataset

  • Size: 2,057 training samples

  • Columns: sentence_0 and sentence_1

  • Approximate statistics based on the first 1000 samples:

    sentence_0sentence_1
    typestringstring
    detailsmin: 4 tokensmean: 6.31 tokensmax: 8 tokensmin: 45 tokensmean: 223.76 tokensmax: 256 tokens
  • Samples:

    sentence_0sentence_1
    Iran Israel war 2025Israel warns Iran after launching major raids in Syria | Israeli PM Benjamin Netanyahu says his country will defend itself "against any attack" after carrying out what appear to be its largest strikes on sites in Syria in decades.Israel launched raids against Iranian targets after saying it had intercepted an Iranian drone crossing the Syria-Israel border.Iran denies the allegation.During the offensive an Israeli F-16 fighter jet was shot down by Syria air defences, crashing in northern Israel.Its pilots ejected from the plane and were taken to hospital.It is believed to be the first time Israel has lost a jet in combat since 2006.Mr Netanyahu warned that Israel's policy to defend itself against "any attempt to harm our sovereignty" was "absolutely clear"."Iran brazenly violated Israel's sovereignty," he said, adding: "They dispatched an Iranian drone from Syrian territory into Israel... Israel holds Iran and its Syrian hosts responsible."
    Iran oil blockadeCuba confirms negotiations with US as country faces effects of oil blockade

    Díaz-Canel said no fuel had entered Cuba in three months.

    Talks between the two nations were in their initial stages, said Díaz-Canel, who is leading the Cuban side of negotiations, in a national broadcast on Friday.

    US President Donald Trump said on Monday that Cuba was in "deep trouble" as he threatened a "friendly takeover".

    Cuba is experiencing several blackouts as the island struggles with fuel shortages, which have been made worse by pressure from the US.

    Since returning to the White House, Trump has made clear his desire to change Cuba's leadership. He has also threatened tariffs on goods imported into the US from any country that gives Cuba oil.

    The White House tol... | | rss | Settebello: Three Indian sailors killed in US strike on tanker in Gulf of Oman | As Trump turns 80, what's it really like to work as an octogenarian?As President Donald Trump celebrates his birthday, we ask people who have worked into their 80s themselves about what it takes to keep going. |

  • 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: 16
  • per_device_eval_batch_size: 16
  • num_train_epochs: 2
  • multi_dataset_batch_sampler: round_robin

All Hyperparameters

  • do_predict: False
  • prediction_loss_only: True
  • per_device_train_batch_size: 16
  • per_device_eval_batch_size: 16
  • 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: None
  • warmup_ratio: None
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • enable_jit_checkpoint: False
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • use_cpu: False
  • seed: 42
  • data_seed: None
  • bf16: False
  • fp16: False
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: -1
  • ddp_backend: None
  • debug: []
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_prefetch_factor: None
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': 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
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch_fused
  • optim_args: None
  • group_by_length: False
  • length_column_name: length
  • project: huggingface
  • trackio_space_id: trackio
  • 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
  • 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_for_metrics: []
  • eval_do_concat_batches: True
  • auto_find_batch_size: False
  • full_determinism: False
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • include_num_input_tokens_seen: no
  • 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: True
  • use_cache: False
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: round_robin
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepval-ir_cosine_ndcg@10
0.7692500.2048
1.0650.2128
1.53851000.2116
2.01300.2169

Training Time

  • Training: 43.5 seconds

Framework Versions

  • Python: 3.12.13
  • Sentence Transformers: 5.4.1
  • Transformers: 5.0.0
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.13.0
  • Datasets: 5.0.0
  • 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…

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

0 моделей