/ Модель

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

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

bert-tiny-amazon_reviews-k10-fixed-cosine

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

Компактная BERT-модель создаёт эмбеддинги отзывов и других текстов для семантического поиска и сравнения по косинусному сходству.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это компактная модель Sentence Transformers, разработанная на основе google/bert_uncased_L-2_H-128_A-2 и дообученная на парах текстов из набора Amazon Reviews. Она преобразует предложения и абзацы в плотные векторы размерностью 128 и предназначена для поиска и сравнения текстов по косинусному сходству.

Модель использует архитектуру BERT с mean pooling. В метаданных указан контекст до 512 токенов, а карточка модели задаёт максимальную длину последовательности 128 токенов. Модель принимает текст и выдаёт эмбеддинги; обучение проводилось на 8,2 млн примеров отзывов Amazon. Указанная лицензия в предоставленных данных отсутствует.

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

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

Ограничения

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

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

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

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

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

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

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-fixed-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.',
    'I bought these plates because I liked the way they looked. They are good enough for a single use but do not hold up too well with multiple uses. Once they are put in the microwave they start to crack quite easily.',
]
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.2434, 0.1683],
#         [0.2434, 1.0000, 0.4315],
#         [0.1683, 0.4315, 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.0096
0.124810000.0055
0.187315000.0053
0.249720000.0052
0.312125000.0051
0.374530000.0051
0.437035000.0050
0.499440000.0050
0.561845000.0050
0.624250000.0049
0.686655000.0049
0.749160000.0049
0.811565000.0048
0.873970000.0049
0.936375000.0048
0.998880000.0048
1.08010-
1.061285000.0047
1.123690000.0047
1.186095000.0047
1.2484100000.0047
1.3109105000.0046
1.3733110000.0047
1.4357115000.0047
1.4981120000.0047
1.5605125000.0046
1.6230130000.0046
1.6854135000.0047
1.7478140000.0046
1.8102145000.0046
1.8727150000.0046
1.9351155000.0046
1.9975160000.0046
2.016020-
2.0599165000.0045
2.1223170000.0045
2.1848175000.0045
2.2472180000.0045
2.3096185000.0045
2.3720190000.0044
2.4345195000.0045
2.4969200000.0045
2.5593205000.0045
2.6217210000.0045
2.6841215000.0045
2.7466220000.0045
2.8090225000.0045
2.8714230000.0044
2.9338235000.0045
2.9963240000.0044
3.024030-
3.0587245000.0044
3.1211250000.0044
3.1835255000.0044
3.2459260000.0044
3.3084265000.0044
3.3708270000.0043
3.4332275000.0043
3.4956280000.0044
3.5581285000.0044
3.6205290000.0044
3.6829295000.0043
3.7453300000.0044
3.8077305000.0044
3.8702310000.0044
3.9326315000.0043
3.9950320000.0043
4.032040-
4.0574325000.0043
4.1199330000.0043
4.1823335000.0043
4.2447340000.0043
4.3071345000.0043
4.3695350000.0043
4.4320355000.0043
4.4944360000.0043
4.5568365000.0042
4.6192370000.0042
4.6816375000.0043
4.7441380000.0043
4.8065385000.0043
4.8689390000.0042
4.9313395000.0043
4.9938400000.0043
5.040050-
5.0562405000.0042
5.1186410000.0042
5.1810415000.0042
5.2434420000.0042
5.3059425000.0043
5.3683430000.0042
5.4307435000.0043
5.4931440000.0042
5.5556445000.0042
5.6180450000.0042
5.6804455000.0042
5.7428460000.0042
5.8052465000.0043
5.8677470000.0042
5.9301475000.0042
5.9925480000.0042
6.048060-
6.0549485000.0042
6.1174490000.0042
6.1798495000.0042
6.2422500000.0042
6.3046505000.0042
6.3670510000.0042
6.4295515000.0042
6.4919520000.0042
6.5543525000.0042
6.6167530000.0042
6.6792535000.0041
6.7416540000.0041
6.8040545000.0041
6.8664550000.0042
6.9288555000.0042
6.9913560000.0041
7.056070-
7.0537565000.0042
7.1161570000.0042
7.1785575000.0041
7.2409580000.0041
7.3034585000.0041
7.3658590000.0041
7.4282595000.0041
7.4906600000.0042
7.5531605000.0041
7.6155610000.0042
7.6779615000.0041
7.7403620000.0041
7.8027625000.0042
7.8652630000.0041
7.9276635000.0041
7.9900640000.0041
8.064080-
8.0524645000.0041
8.1149650000.0041
8.1773655000.0041
8.2397660000.0041
8.3021665000.0041
8.3645670000.0041
8.4270675000.0041
8.4894680000.0041
8.5518685000.0041
8.6142690000.0041
8.6767695000.0040
8.7391700000.0041
8.8015705000.0042
8.8639710000.0042
8.9263715000.0040
8.9888720000.0041
9.072090-
9.0512725000.0041
9.1136730000.0042
9.1760735000.0041
9.2385740000.0040
9.3009745000.0041
9.3633750000.0041
9.4257755000.0041
9.4881760000.0041
9.5506765000.0041
9.6130770000.0041
9.6754775000.0042
9.7378780000.0041
9.8002785000.0041
9.8627790000.0041
9.9251795000.0041
9.9875800000.0041
10.080100-
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 6.8 hours
  • Evaluation: 44.3 seconds
  • Total: 6.8 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
Ревизия весов
eff7a9b

0 моделей