/ Модель

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

Контекст
512 токенов
Параметры
4,4 млн
Архитектура
bert · dense
Базовая модель
bert_uncased_L-2_H-128_A-2
Библиотека
sentence-transformers
Опубликована
15 июн 2026

bert-tiny-amazon_reviews-k10-adaptive-cosine

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

Компактная англоязычная модель превращает предложения и абзацы в векторы для семантического поиска и сравнения отзывов.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это компактная модель Sentence Transformers, разработанная Swardiantara и дообученная на базе google/bert_uncased_L-2_H-128_A-2 на парах отзывов Amazon. Она преобразует предложения и абзацы в плотные векторы размерности 128, пригодные для поиска и сопоставления текстов по косинусному сходству. Архитектура состоит из BERT с усреднением токенных представлений; модель содержит 4,4 млн параметров и принимает текстовые последовательности длиной до 512 токенов по метаданным. В README указана максимальная длина 128 токенов, поэтому при использовании следует учитывать это расхождение.

Модель предназначена для семантического поиска, извлечения похожих отзывов и построения текстовых представлений для retrieval-систем. Обучающая выборка включала около 8,2 млн пар текстов с метками; примеры в README — англоязычные отзывы Amazon. Репозиторий распространяет веса в формате Safetensors. Лицензия в предоставленных данных не указана.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SentenceTransformer based on google/bert_uncased_L-2_H-128_A-2

This is a sentence-transformers model finetuned from google/bert_uncased_L-2_H-128_A-2. It maps sentences & paragraphs to a 128-dimensional dense vector space and can be used for retrieval.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: google/bert_uncased_L-2_H-128_A-2
  • Maximum Sequence Length: 128 tokens
  • Output Dimensionality: 128 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': 128, 'pooling_mode': 'mean', '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("swardiantara/bert-tiny-amazon_reviews-k10-adaptive-cosine")
# Run inference
sentences = [
    "Arrived broken. Manufacturer defect. Two of the legs of the base were not completely formed, so there was no way to insert the casters. I unpackaged the entire chair and hardware before noticing this. So, I'll spend twice the amount of time boxing up the whole useless thing and send it back with a 1-star review of part of a chair I never got to sit in. I will go so far as to include a picture of what their injection molding and quality assurance process missed though. I will be hesitant to buy again. It makes me wonder if there aren't missing structures and supports that don't impede the assembly process.",
    'I like the design of the bag, though it came a little crumpled up. Hoping everything smoothes out with use. Also very upset that I paid more for this bag and my key chain was never sent.',
    'Had to return. This unit is tiny and very cheap quality.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 128]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[ 1.0000, -0.1525,  0.4489],
#         [-0.1525,  1.0000, -0.0192],
#         [ 0.4489, -0.0192,  1.0000]])

Training Details

Training Dataset

Unnamed Dataset

  • Size: 8,201,450 training samples
  • Columns: text_a, text_b, and label
  • Approximate statistics based on the first 100 samples:
    text_atext_blabel
    typestringstringlist
    modalitytexttext
    detailsmin: 15 tokensmean: 66.74 tokensmax: 128 tokensmin: 8 tokensmean: 46.15 tokensmax: 128 tokenssize: 2 elements
  • Samples:
    text_atext_blabel
    Arrived broken. Manufacturer defect. Two of the legs of the base were not completely formed, so there was no way to insert the casters. I unpackaged the entire chair and hardware before noticing this. So, I'll spend twice the amount of time boxing up the whole useless thing and send it back with a 1-star review of part of a chair I never got to sit in. I will go so far as to include a picture of what their injection molding and quality assurance process missed though. I will be hesitant to buy again. It makes me wonder if there aren't missing structures and supports that don't impede the assembly process.I ordered this a while ago, even using prime it took over a month to get here, now that I finally got it, I only receved 6 of the 12! Im a little upset. It's still funny, but would not recomend for someone who needs foam quick and in bulk like i do.[1.0, 0.0]
    Arrived broken. Manufacturer defect. Two of the legs of the base were not completely formed, so there was no way to insert the casters. I unpackaged the entire chair and hardware before noticing this. So, I'll spend twice the amount of time boxing up the whole useless thing and send it back with a 1-star review of part of a chair I never got to sit in. I will go so far as to include a picture of what their injection molding and quality assurance process missed though. I will be hesitant to buy again. It makes me wonder if there aren't missing structures and supports that don't impede the assembly process.I was happy to find this piece to replace on my broken Shark. Price was good and had it in a few days. When I installed it however, I was no longer satisfied. It wouldn't stay attached and kept popping of with any pull on the handle. Returned the same day it areived.[0.0, 0.25]
    Arrived broken. Manufacturer defect. Two of the legs of the base were not completely formed, so there was no way to insert the casters. I unpackaged the entire chair and hardware before noticing this. So, I'll spend twice the amount of time boxing up the whole useless thing and send it back with a 1-star review of part of a chair I never got to sit in. I will go so far as to include a picture of what their injection molding and quality assurance process missed though. I will be hesitant to buy again. It makes me wonder if there aren't missing structures and supports that don't impede the assembly process.Had to return. This unit is tiny and very cheap quality.[0.0, 0.25]
  • Loss: main.OrdinalProxyContrastiveLoss

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 1024
  • num_train_epochs: 10
  • learning_rate: 2e-05
  • load_best_model_at_end: True

All Hyperparameters

  • per_device_train_batch_size: 1024
  • num_train_epochs: 10
  • max_steps: -1
  • learning_rate: 2e-05
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_steps: 0
  • optim: adamw_torch
  • 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: 1
  • average_tokens_across_devices: True
  • max_grad_norm: 1.0
  • label_smoothing_factor: 0.0
  • bf16: False
  • 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: 8
  • 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
  • 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
  • warmup_ratio: None
  • local_rank: -1
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepTraining Loss
0.06245000.0198
0.124810000.0086
0.187315000.0073
0.249720000.0067
0.312125000.0063
0.374530000.0061
0.437035000.0058
0.499440000.0056
0.561845000.0054
0.624250000.0054
0.686655000.0052
0.749160000.0051
0.811565000.0051
0.873970000.0050
0.936375000.0050
0.998880000.0049
1.08010-
1.061285000.0047
1.123690000.0047
1.186095000.0047
1.2484100000.0047
1.3109105000.0046
1.3733110000.0046
1.4357115000.0045
1.4981120000.0045
1.5605125000.0044
1.6230130000.0044
1.6854135000.0044
1.7478140000.0043
1.8102145000.0043
1.8727150000.0042
1.9351155000.0043
1.9975160000.0043
2.016020-
2.0599165000.0041
2.1223170000.0042
2.1848175000.0041
2.2472180000.0041
2.3096185000.0040
2.3720190000.0040
2.4345195000.0040
2.4969200000.0040
2.5593205000.0041
2.6217210000.0040
2.6841215000.0040
2.7466220000.0040
2.8090225000.0039
2.8714230000.0039
2.9338235000.0040
2.9963240000.0039
3.024030-
3.0587245000.0038
3.1211250000.0038
3.1835255000.0038
3.2459260000.0038
3.3084265000.0038
3.3708270000.0037
3.4332275000.0037
3.4956280000.0037
3.5581285000.0038
3.6205290000.0037
3.6829295000.0037
3.7453300000.0038
3.8077305000.0037
3.8702310000.0037
3.9326315000.0036
3.9950320000.0036
4.032040-
4.0574325000.0036
4.1199330000.0035
4.1823335000.0036
4.2447340000.0035
4.3071345000.0036
4.3695350000.0036
4.4320355000.0035
4.4944360000.0036
4.5568365000.0035
4.6192370000.0035
4.6816375000.0035
4.7441380000.0035
4.8065385000.0035
4.8689390000.0035
4.9313395000.0035
4.9938400000.0035
5.040050-
5.0562405000.0034
5.1186410000.0034
5.1810415000.0034
5.2434420000.0034
5.3059425000.0035
5.3683430000.0034
5.4307435000.0034
5.4931440000.0034
5.5556445000.0034
5.6180450000.0034
5.6804455000.0033
5.7428460000.0033
5.8052465000.0034
5.8677470000.0033
5.9301475000.0034
5.9925480000.0033
6.048060-
6.0549485000.0033
6.1174490000.0033
6.1798495000.0033
6.2422500000.0033
6.3046505000.0033
6.3670510000.0033
6.4295515000.0033
6.4919520000.0033
6.5543525000.0032
6.6167530000.0032
6.6792535000.0032
6.7416540000.0032
6.8040545000.0033
6.8664550000.0033
6.9288555000.0033
6.9913560000.0032
7.056070-
7.0537565000.0033
7.1161570000.0033
7.1785575000.0032
7.2409580000.0032
7.3034585000.0032
7.3658590000.0031
7.4282595000.0032
7.4906600000.0032
7.5531605000.0032
7.6155610000.0032
7.6779615000.0032
7.7403620000.0032
7.8027625000.0032
7.8652630000.0032
7.9276635000.0032
7.9900640000.0031
8.064080-
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 4.3 hours
  • Evaluation: 35.5 seconds
  • Total: 4.3 hours

Framework Versions

  • Python: 3.12.4
  • Sentence Transformers: 5.5.1
  • Transformers: 5.11.0
  • PyTorch: 2.5.1+cu121
  • Accelerate: 1.13.0
  • Datasets: 2.21.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",
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей