/ Модель

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

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

bert-tiny-yelp-k1-adaptive-euclidean

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это компактная модель Sentence Transformers, дообученная автором swardiantara на базе google/bert_uncased_L-2_H-128_A-2. Она кодирует предложения и абзацы на английском языке в плотные векторы размерности 128 для поиска и сравнения по смыслу. Архитектура состоит из двухслойного BERT с mean pooling; метаданные указывают 4,4 млн параметров, формат safetensors и контекст до 512 токенов, тогда как карточка модели задаёт максимальную длину последовательности 128 токенов. Для сравнения векторов используется косинусное сходство.

Модель предназначена для семантического поиска, извлечения текстовых признаков и оценки сходства предложений. В обучении использовался набор из 2 925 010 пар текстов с метками и OrdinalProxyContrastiveLoss; примеры в карточке связаны с отзывами Yelp, поэтому применение к другим жанрам и доменам может потребовать проверки качества. Лицензия в предоставленных данных не указана.

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

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

Ограничения

Карточка задаёт максимальную длину последовательности 128 токенов, хотя метаданные указывают контекст 512 токенов; для работы следует учитывать лимит карточки. Обучающие данные ориентированы на пары текстов с примерами отзывов, поэтому качество для других жанров и языков не подтверждено.

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

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

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

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

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

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-yelp-k1-adaptive-euclidean")
# Run inference
sentences = [
    "What a great time!  This place was awesome!  I wish I lived right down the road, because I could see myself being a regular here.\\n\\nHonestly, these guys have got some talent, like real talent.  They can play the piano, sing, play guitar, and the drums.  Did I mention that they are all pretty hilarious, too.  I'd easily pay the $7 cover to get in here any day because it really is worth it.  \\n\\nI am sure I will be back in no time at all.  Next time, I am bringing a big group of friends.",
    "While we were out in Tempe, the husband and I were at a complete loss as to where we should eat.  I did a little yelping and sheepishly mentioned this place.  Now, we like country music and all, but I steer very clear of Toby Keith stuff.  I don't care for the in your face American Pride type stuff.  Anyway, we made out way to the restaurant, with entrances in front and back, and smelled the delicious bbq aroma floating in the air.\\n\\nThis place is HUGE!  I noticed that the capacity is just about 1000 people.  That is nuts.  there is a huge bar running down the middle and a ton of TV's spaced no more than 4 feet apart running all along the bar and all along the roof.  It's a good place to watch a game or the music videos.  I feel like I should also add that there is apparently a dress code for the servers.  All the girls are supposed to wear jingly black cowboy boots, super short denim shorts or skirts, skimpy tops that sometimes show too much skin on a less that perfectly built body, and a super sparkly rhinestoned out belt with a big ol buckle.\\n\\nAs far as the menu goes, the layout and look of it kind of suck.  I heard from our waitress that they are re-doing it, so let's hope that it will be for the better.  Almost everything on the menu actually looks like something I would order.  It's all pretty simple BBQ style stuff with some sandwiches and salads and some pricier entrees.  The appetizer menu looked delicious all around.  I laughed out loud when I read that there were deep fried twinkies on the dessert menu.  Classic.  I ordered the Oklahoma BBQ Beef sandwich with coleslaw as my side.  The sandwich was very filling and tasty.  The meat was juicy and the sauce was sweet and tangy.  The bun could have been more substantial but it was more than made up for with the yummy fried onion strings.  The coleslaw was just blah but I sampled the husband's potato salad and it was delicious!  Simple and tasty.\\n\\nOverall experience was pretty good.  Our waitress was nice and gave an honest opinion when we asked for one.  The atmosphere was kind of dull but that would probably be because we were there at such an odd time.  In case you were wondering, in the 30-45 minutes we were there, I counted 6 Toby Keith songs.  If I were into guns and in your face patriotism I would probably give this place 4 stars.",
    "First Watch on Black Canyon Hwy in Phoenix has amazing service and very good food! They're worth the drive. You won't be disappointed. Coincidentally, I went there b/c it was right next door to the Courtyard Marriott. I have been back several times and continue to receive excellent customer service and delicious food. \\n\\nMy favorite breakfast is their Tri-Athlete omelette; which I hesitatingly tried b/c it was a healthy choice but fell in love with it! Wonderfully roasted vegetables in an egg-white only omelette topped with salsa...muahhh, magnifico!!\\n\\nFor lunch I had their Pecan Dijon chicken salad...wow, another amazing dish full of flavors...good to the last drop!\\n\\nAnd lastly, their customer service...always SPOT ON! Once we had only 15 minutes. Informed the always-welcoming staff and VOILA, an excellent breakfast in exactly 15 minutes. I'll be back soon! \\n\\nThank you First Watch on Black Canyon Hwy!! You're awesome :)",
]
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.9970, 0.9999],
#         [0.9970, 1.0000, 0.9960],
#         [0.9999, 0.9960, 1.0000]])

Training Details

Training Dataset

Unnamed Dataset

  • Size: 2,925,010 training samples
  • Columns: text_a, text_b, and label
  • Approximate statistics based on the first 100 samples:
    text_atext_blabel
    typestringstringlist
    modalitytexttext
    detailsmin: 6 tokensmean: 95.69 tokensmax: 128 tokensmin: 128 tokensmean: 128.0 tokensmax: 128 tokenssize: 2 elements
  • Samples:
    text_atext_blabel
    dr. goldberg offers everything i look for in a general practitioner. he's nice and easy to talk to without being patronizing; he's always on time in seeing his patients; he's affiliated with a top-notch hospital (nyu) which my parents have explained to me is very important in case something happens and you need surgery; and you can get referrals to see specialists without having to see him first. really, what more do you need? i'm sitting here trying to think of any complaints i have about him, but i'm really drawing a blank.First Watch on Black Canyon Hwy in Phoenix has amazing service and very good food! They're worth the drive. You won't be disappointed. Coincidentally, I went there b/c it was right next door to the Courtyard Marriott. I have been back several times and continue to receive excellent customer service and delicious food. \n\nMy favorite breakfast is their Tri-Athlete omelette; which I hesitatingly tried b/c it was a healthy choice but fell in love with it! Wonderfully roasted vegetables in an egg-white only omelette topped with salsa...muahhh, magnifico!!\n\nFor lunch I had their Pecan Dijon chicken salad...wow, another amazing dish full of flavors...good to the last drop!\n\nAnd lastly, their customer service...always SPOT ON! Once we had only 15 minutes. Informed the always-welcoming staff and VOILA, an excellent breakfast in exactly 15 minutes. I'll be back soon! \n\nThank you First Watch on Black Canyon Hwy!! You're awesome :)[1.0, 0.0]
    dr. goldberg offers everything i look for in a general practitioner. he's nice and easy to talk to without being patronizing; he's always on time in seeing his patients; he's affiliated with a top-notch hospital (nyu) which my parents have explained to me is very important in case something happens and you need surgery; and you can get referrals to see specialists without having to see him first. really, what more do you need? i'm sitting here trying to think of any complaints i have about him, but i'm really drawing a blank.No, it's not worth it! Bellagio overcharged me and their accounting department never got back to me (I asked them for an itemized receipt 2 weeks ago). When I called them, I was (twice!) put on this music-less "dead" hold for 30-40 minutes. They're so full of themselves, they don't provide good customer service. Their wi-fi needed fixing when I stayed there. And by the way, the woman at the buffet was super rude to me. Finally, the famous waterworks never happened while I was standing outside in the cold waiting (though i asked the staff and they said they're up and running). No, don't waste your money! I won't and won't let my family and friends do that either.[0.0, 1.0]
    dr. goldberg offers everything i look for in a general practitioner. he's nice and easy to talk to without being patronizing; he's always on time in seeing his patients; he's affiliated with a top-notch hospital (nyu) which my parents have explained to me is very important in case something happens and you need surgery; and you can get referrals to see specialists without having to see him first. really, what more do you need? i'm sitting here trying to think of any complaints i have about him, but i'm really drawing a blank.Really, I should know better...\n\nIt was late at night, we didn't feel like fast food burger places, and I have driven past this place millions of times. \n\nIt's in a dark scary lot too close for comfort to Greenway square. Probably not the best place for a woman to go by herself late at night, but luckily I had the husband with me.\n\nAfter looking at the extensive menu, I ordered the chili relleno plate and my husband ordered a chicken burrito, beef taco, and a horchata. \n\nI couldn't finish my chili relleno plate. (Quick lesson in Mexican cooking- when preparing anything with chilis, its a good idea to remove the majority of the seeds. Not just because of the heat, but because its NOT fun to have a mouthful of seeds.) Besides the hundreds of chewy seeds in my mouth, the chili rellenos were lukewarm. The whole plate was pretty bland, and with every bite I took I knew my stomach would be paying for it later. So I only ate half, then popped 3 tums and hoped for the best. I ended not...[0.0, 0.75]
  • 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.17505000.3660
0.350010000.0880
0.525015000.0750
0.700020000.0694
0.875025000.0651
1.02857-
1.050130000.0630
1.225135000.0601
1.400140000.0587
1.575145000.0568
1.750150000.0554
1.925155000.0542
2.05714-
2.100160000.0528
2.275165000.0521
2.450170000.0517
2.625175000.0509
2.800180000.0508
2.975185000.0500
3.08571-
3.150290000.0494
3.325295000.0487
3.5002100000.0485
3.6752105000.0484
3.8502110000.0481
4.011428-
4.0252115000.0475
4.2002120000.0472
4.3752125000.0469
4.5502130000.0464
4.7252135000.0463
4.9002140000.0463
5.014285-
5.0753145000.0459
5.2503150000.0456
5.4253155000.0455
5.6003160000.0452
5.7753165000.0452
5.9503170000.0449
6.017142-
6.1253175000.0444
6.3003180000.0444
6.4753185000.0444
6.6503190000.0444
6.8253195000.0439
7.019999-
7.0004200000.0439
7.1754205000.0435
7.3504210000.0437
7.5254215000.0436
7.7004220000.0433
7.8754225000.0437
8.022856-
8.0504230000.0434
8.2254235000.0432
8.4004240000.0429
8.5754245000.0431
8.7504250000.0431
8.9254255000.0430
9.025713-
9.1005260000.0429
9.2755265000.0429
9.4505270000.0428
9.6255275000.0428
9.8005280000.0426
9.9755285000.0427
10.028570-
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 2.2 hours
  • Evaluation: 2.3 minutes
  • Total: 2.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
Ревизия весов
c344555

0 моделей