/ Модель

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

Контекст
2 048 токенов
Параметры
303 млн
Архитектура
gemma3_text · dense
Базовая модель
embeddinggemma-300m
Библиотека
sentence-transformers
Опубликована
10 сен 2026

nz-research-commons-embedding-gemma-v2

ЭмбеддингиТекст → embedding

Дообученная на базе EmbeddingGemma модель Sentence Transformer для семантического поиска и сравнения текстов по эмбеддингам.

33скачиваний за 30 дней0лайковвеса обновлены10 сен 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

dinushiTJ/nz-research-commons-embedding-gemma-v2 — дообученная модель Sentence Transformer на базе google/embeddinggemma-300m. Она преобразует предложения и абзацы в плотные текстовые векторы размерностью 768 для семантического поиска и сравнения сходства. Модель использует архитектуру Gemma 3 Text, библиотеку sentence-transformers и функцию косинусного сходства; максимальная длина входа — 2048 токенов.

Модель подходит для поиска похожих фрагментов текста, подбора перефразировок, кластеризации и классификации на основе эмбеддингов. Обучение проводилось на 5000 примерах с тройками anchor, positive и negative и функцией TripletLoss. В карточке не указаны целевые языки и лицензия, поэтому их нельзя уточнить по имеющимся данным.

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

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

Ограничения

Максимальная длина входа составляет 2048 токенов. Целевые языки и лицензия в предоставленных данных не указаны.

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

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

Открыть на Hugging Face

SentenceTransformer based on google/embeddinggemma-300m

This is a sentence-transformers model finetuned from google/embeddinggemma-300m. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: google/embeddinggemma-300m
  • Maximum Sequence Length: 2048 tokens
  • Output Dimensionality: 768 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': 'Gemma3TextModel'})
  (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
  (2): Dense({'in_features': 768, 'out_features': 3072, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
  (3): Dense({'in_features': 3072, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
  (4): 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("dinushiTJ/nz-research-commons-embedding-gemma-v2")
# Run inference
queries = [
    'maori_origin',
]
documents = [
    'title: Understanding cultural relationships: Whānau, whanaungatanga and Māori student attainment of university entrance in a mainstream secondary school in Aotearoa, New Zealand\n\nauthors: McGill, Kristin\n\nsubjects: Cultural relationships\n\nabstract: This study seeks to understand the importance of cultural relationships in supporting Māori student achievement of University Entrance.  This research is based on the stories of five female ākonga Māori, all of whom completed five years of secondary education, and their whānau.  It looks deeply into their relational experiences of whanaungatanga and whānautanga with their school, and the impact this had on their academic achievement of NCEA Level 3 and University Entrance. \r\n\r\nThe results highlight the importance of culturally grounded transformative praxis and the risk of attempting to incorporate culturally located principles such as whānau and whanaungatanga into a schooling context, while still operating within historical hegemonic frameworks.\n\ntext: Understanding cultural relationships: Whānau, whanaungatanga and Māori student attainment of university entrance in a mainstream secondary school in Aotearoa, New Zealand This study seeks to understand the importance of cultural relationships in supporting Māori student achievement of University Entrance.  This research is based on the stories of five female ākonga Māori, all of whom completed five years of secondary education, and their whānau.  It looks deeply into their relational experiences of whanaungatanga and whānautanga with their school, and the impact this had on their academic achievement of NCEA Level 3 and University Entrance. \r\n\r\nThe results highlight the importance of culturally grounded transformative praxis and the risk of attempting to incorporate culturally located principles such as whānau and whanaungatanga into a schooling context, while still operating within historical hegemonic frameworks.\n\nyear: 2023',
    'title: Editorial: Pacific education: research and practice.\n\nauthors: Strachan, Jane\n\nsubjects: educational anthropology\n\nabstract: The article discusses various reports published within the issue including one by Tanya Wendt Samu on the call for teachers to be responsive to the diversities between group of learners as well as within groups of learners and another by Fran Cahill on the discussion of the difficulties that Samoan adolescents have in living within the traditional Samoan culture of home.\n\ntext: Editorial: Pacific education: research and practice. The article discusses various reports published within the issue including one by Tanya Wendt Samu on the call for teachers to be responsive to the diversities between group of learners as well as within groups of learners and another by Fran Cahill on the discussion of the difficulties that Samoan adolescents have in living within the traditional Samoan culture of home.\n\nyear: 2006',
    'title: An evaluation of Te Rau Puawai workforce 100: Perspectives of Te Rau Puawai bursars\n\nauthors: Nikora, Linda Waimarie\n\nsubjects: Maori students\n\nabstract: The Te Rau Puawai programme is an attempt to change the nature of the Maori\r\nmental health workforce. To do this, Maori with aspirations to work, or to continue to\r\nwork in the mental health workforce, are supported, financially and academically, to\r\ncomplete a tertiary qualification relevant to the field.\r\nTo evaluate the Te Rau Puawai programme, the Ministry of Health commissioned the\r\nMaori and Psychology Research Unit of the University of Waikato in July 2001. The\r\noverall aim of the evaluation was to provide the Ministry with a clearer understanding\r\nof the programme including: the perceived critical success factors, the barriers if any\r\nregarding Te Rau Puawai, the impact of the programme, the extent to which the\r\nprogramme may be transferable, gaps in the programme, and suggested\r\nimprovements.\r\nThe evaluation team set out to gather the experiences and perspectives of recipients of\r\nTe Rau Puawai services by asking all bursars to complete a questionnaire and\r\nvolunteer for follow up interviews or focus groups. Sixty two bursars responded to\r\nour questionnaire, and we complete focus group or individual follow up interviews\r\nwith 19 bursars.\n\ntext: An evaluation of Te Rau Puawai workforce 100: Perspectives of Te Rau Puawai bursars The Te Rau Puawai programme is an attempt to change the nature of the Maori\r\nmental health workforce. To do this, Maori with aspirations to work, or to continue to\r\nwork in the mental health workforce, are supported, financially and academically, to\r\ncomplete a tertiary qualification relevant to the field.\r\nTo evaluate the Te Rau Puawai programme, the Ministry of Health commissioned the\r\nMaori and Psychology Research Unit of the University of Waikato in July 2001. The\r\noverall aim of the evaluation was to provide the Ministry with a clearer understanding\r\nof the programme including: the perceived critical success factors, the barriers if any\r\nregarding Te Rau Puawai, the impact of the programme, the extent to which the\r\nprogramme may be transferable, gaps in the programme, and suggested\r\nimprovements.\r\nThe evaluation team set out to gather the experiences and perspectives of recipients of\r\nTe Rau Puawai services by asking all bursars to complete a questionnaire and\r\nvolunteer for follow up interviews or focus groups. Sixty two bursars responded to\r\nour questionnaire, and we complete focus group or individual follow up interviews\r\nwith 19 bursars.\n\nyear: 2002-05-01',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 768] [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[ 0.9017, -0.1908,  0.8361]])

Training Details

Training Dataset

Unnamed Dataset

  • Size: 5,000 training samples
  • Columns: anchor, positive, and negative
  • Approximate statistics based on the first 100 samples:
    anchorpositivenegative
    typestringstringstring
    modalitytexttexttext
    detailsmin: 6 tokensmean: 6.75 tokensmax: 8 tokensmin: 55 tokensmean: 702.62 tokensmax: 1882 tokensmin: 93 tokensmean: 651.33 tokensmax: 2048 tokens
  • Samples:
    anchorpositivenegative
    maori_origintitle: Biteauthors: Mitchell, Torisubjects: poetryabstract: Bite is a collection of blunt confessional poetry draped in honesty, identity, and 21st century feminism, examined through lived experience with eating disorders, sexuality, trauma, disconnect from family and culture, love and loss, and what it means to be a girl growing up. The collection explores these raw concepts with vulnerability, through the eyes of ‘wolf girl’, in hopes that talking loudly about these topics will force the public to challenge the silence and stigma around them.
  • Loss: TripletLoss with these parameters:
    {
        "distance_metric": "TripletDistanceMetric.COSINE",
        "triplet_margin": 0.3
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 1
  • learning_rate: 2e-05
  • num_train_epochs: 1
  • warmup_ratio: 0.1
  • prompts: task: classification | query:

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • prediction_loss_only: True
  • per_device_train_batch_size: 1
  • per_device_eval_batch_size: 8
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • 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: 1
  • max_steps: -1
  • lr_scheduler_type: linear
  • 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: False
  • 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: False
  • 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}
  • 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}
  • parallelism_config: 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
  • hub_revision: None
  • 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
  • liger_kernel_config: None
  • eval_use_gather_object: False
  • average_tokens_across_devices: False
  • prompts: task: classification | query:
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepTraining Loss
0.01500.1511
0.021000.0427
0.031500.0149
0.042000.0092
0.052500.0502
0.063000.013
0.073500.0497
0.084000.053
0.094500.0499
0.15000.016
0.115500.0442
0.126000.0422
0.136500.0533
0.147000.014
0.157500.0075
0.168000.0304
0.178500.078
0.189000.0116
0.199500.0474
0.210000.0095
0.2110500.0254
0.2211000.0049
0.2311500.0332
0.2412000.024
0.2512500.0124
0.2613000.0275
0.2713500.0517
0.2814000.0344
0.2914500.0162
0.315000.0269
0.3115500.0234
0.3216000.0124
0.3316500.033
0.3417000.007
0.3517500.001
0.3618000.0161
0.3718500.027
0.3819000.0057
0.3919500.0097
0.420000.0087
0.4120500.012
0.4221000.0028
0.4321500.0196
0.4422000.0116
0.4522500.0415
0.4623000.0288
0.4723500.0022
0.4824000.0032
0.4924500.0532
0.525000.0108
0.5125500.0152
0.5226000.0089
0.5326500.0158
0.5427000.0018
0.5527500.006
0.5628000.0021
0.5728500.0098
0.5829000.0038
0.5929500.0104
0.630000.0181
0.6130500.0114
0.6231000.0049
0.6331500.0074
0.6432000.0122
0.6532500.0094
0.6633000.0153
0.6733500.0212
0.6834000.0
0.6934500.0025
0.735000.0128
0.7135500.0301
0.7236000.018
0.7336500.0339
0.7437000.0059
0.7537500.0018
0.7638000.032
0.7738500.0076
0.7839000.0204
0.7939500.0046
0.840000.0
0.8140500.0295
0.8241000.0042
0.8341500.0168
0.8442000.0232
0.8542500.0002
0.8643000.0
0.8743500.0039
0.8844000.0
0.8944500.0079
0.945000.0177
0.9145500.0301
0.9246000.0246
0.9346500.0029
0.9447000.0273
0.9547500.0
0.9648000.0025
0.9748500.0
0.9849000.0018
0.9949500.0324
1.050000.0105

Training Time

  • Training: 1.1 hours

Framework Versions

  • Python: 3.12.13
  • Sentence Transformers: 5.7.0
  • Transformers: 4.57.0.dev0
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.13.0
  • Datasets: 5.0.1
  • Tokenizers: 0.22.2

Additional Resources

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",
}

TripletLoss

@misc{hermans2017defense,
    title={In Defense of the Triplet Loss for Person Re-Identification},
    author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
    year={2017},
    eprint={1703.07737},
    archivePrefix={arXiv},
    primaryClass={cs.CV}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma3TextModel
Ревизия весов
2a16b90

0 моделей