/ Модель

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

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

all-MiniLM-L6-v2_multilingual_malaysian-v4

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

Дообученный энкодер BERT создаёт векторы предложений для семантического поиска, сравнения и кластеризации, с примерами настройки на малайский язык.

111скачиваний за 30 дней0лайковвеса обновлены21 ноя 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

along26/all-MiniLM-L6-v2_multilingual_malaysian-v4 — дообученный Sentence Transformer на базе sentence-transformers/all-MiniLM-L6-v2. Модель использует энкодер BERT с mean pooling, содержит 25,9 млн параметров и преобразует предложения и абзацы в плотные векторы размерности 384; максимальная длина последовательности — 512 токенов. Для сравнения векторов применяется косинусное сходство.

Модель предназначена для семантического поиска и сравнения текстов, поиска перефразировок, кластеризации и классификации. В README приведены пары на английском и малайском языках, включая пример сопоставления вопроса на английском с переводом на малайский; это указывает на настройку для малайского, но не подтверждает полный перечень поддерживаемых языков. Веса доступны в формате safetensors, библиотека — Sentence Transformers. Лицензия в предоставленных данных не указана.

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

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

Ограничения

Максимальная длина входной последовательности составляет 512 токенов. В README указана низкая cosine accuracy 0.0062 на приведённой оценке; результаты следует проверять на целевых данных.

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

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

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

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

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

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 semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: sentence-transformers/all-MiniLM-L6-v2
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 384 dimensions
  • Similarity Function: Cosine Similarity

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
  (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, '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("along26/all-MiniLM-L6-v2_multilingual_malaysian-v4")
# Run inference
sentences = [
    'How can we design small molecule inhibitors of viral protein targets to prevent the replication of the influenza virus?',
    'Bagaimanakah kita boleh mereka bentuk perencat molekul kecil sasaran protein virus untuk mencegah replikasi virus influenza?',
    "How does the Malaysian government's authoritarian approach to dissent and free speech stifle progressive movements and limit the potential for democratic reform?",
]
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.3951, 0.3134],
#         [0.3951, 1.0000, 0.3861],
#         [0.3134, 0.3861, 1.0000]])

Evaluation

Metrics

Triplet

MetricValue
cosine_accuracy0.0062

Training Details

Training Dataset

Unnamed Dataset

  • Size: 415,570 training samples
  • Columns: anchor, positive, and negative
  • Approximate statistics based on the first 1000 samples:
    anchorpositivenegative
    typestringstringstring
    detailsmin: 15 tokensmean: 230.67 tokensmax: 512 tokensmin: 19 tokensmean: 273.54 tokensmax: 512 tokensmin: 14 tokensmean: 239.81 tokensmax: 512 tokens
  • Samples:
    anchorpositivenegative
    How has the culture of corruption and cronyism under Najib Razak's administration affected the Malaysian economy and social fabric?Bagaimanakah budaya rasuah dan kronisme di bawah pentadbiran Najib Razak menjejaskan ekonomi dan fabrik sosial Malaysia?What is the role of the pancreas in the human digestive system and how does its anatomy support this function?
    Why have some opposition politicians in Malaysia criticized the government's handling of the 1MDB scandal and called for more transparency?Mengapa beberapa ahli politik pembangkang di Malaysia mengkritik pengendalian kerajaan terhadap skandal 1MDB dan meminta lebih ketelusan?The formation of heavy elements (nucleosynthesis) inside a star involves several processes, which are affected by the star's evolution. These processes include:1. Hydrogen burning (nuclear fusion): This is the initial stage of a star's life, where hydrogen nuclei (protons) combine to form helium nuclei (alpha particles) through a series of reactions called the proton-proton chain or the CNO cycle (carbon-nitrogen-oxygen). This process releases a large amount of energy in the form of light and heat, which causes the star to shine.2. Helium burning (triple-alpha process): As the hydrogen in the core of the star is depleted, the core contracts and heats up, initiating the fusion of helium nuclei into heavier elements like carbon and oxygen. This process involves the combination of three helium nuclei (alpha particles) to form a carbon nucleus.3. Carbon burning: In more massive stars, the core temperature increases further, allowing carbon nuclei to fuse with helium nuclei to form ox...
    How has Najib Razak's corruption allegedly contributed to social inequality and poverty in Malaysia?Bagaimanakah rasuah Najib Razak didakwa menyumbang kepada ketidaksamaan sosial dan kemiskinan di Malaysia?To estimate the age of a supermassive black hole with a mass of 1 billion solar masses, we can assume that it formed shortly after the Big Bang. The age of the universe is approximately 13.8 billion years old, so the black hole's age would be close to this value.Now, let's discuss the theoretical process for the formation and evolution of supermassive black holes in the early universe based on current astrophysical models.1. Direct collapse: In the early universe, some regions with high-density gas could have collapsed directly into black holes without forming stars first. These black holes, called "seed" black holes, could then grow by accreting mass from their surroundings. This process is more efficient in the early universe due to the higher density of gas and the absence of supernova explosions, which can disperse gas and hinder black hole growth.2. Stellar remnants: Massive stars in the early universe could have collapsed into black holes after their lifetimes. These black ...
  • Loss: TripletLoss with these parameters:
    {
        "distance_metric": "TripletDistanceMetric.EUCLIDEAN",
        "triplet_margin": 5
    }
    

Evaluation Dataset

Unnamed Dataset

  • Size: 5,000 evaluation samples
  • Columns: anchor, positive, and negative
  • Approximate statistics based on the first 1000 samples:
    anchorpositivenegative
    typestringstringstring
    detailsmin: 12 tokensmean: 219.95 tokensmax: 512 tokensmin: 17 tokensmean: 263.51 tokensmax: 512 tokensmin: 15 tokensmean: 236.31 tokensmax: 512 tokens
  • Samples:
    anchorpositivenegative
    Consider a graph with 8 vertices and 12 edges. Determine if the graph contains a perfect matching. If it does, provide one example of a perfect matching. If it does not, explain why a perfect matching is not possible.Pertimbangkan graf dengan 8 bucu dan 12 tepi. Tentukan sama ada graf mengandungi padanan sempurna. Jika ya, berikan satu contoh padanan yang sempurna. Jika tidak, jelaskan mengapa padanan yang sempurna tidak dapat dilakukan.The 1MDB scandal and the corruption charges against former Malaysian Prime Minister Najib Razak offer several important lessons for Malaysia and other countries:1. Stronger checks and balances: The 1MDB scandal highlighted the need for stronger checks and balances in government agencies and institutions. Malaysia should consider implementing additional measures to prevent the misuse of power and public funds, including more robust auditing and oversight mechanisms, as well as stronger whistleblower protections.2. Transparency and accountability: The lack of transparency and accountability surrounding 1MDB contributed to the scandal. Malaysia should prioritize transparency in government operations, including procurement processes and financial transactions. Implementing measures such as open data initiatives and requiring greater disclosure from government-linked companies could help promote accountability and reduce opportunities for corruption.3. Strengthening law enforcement: The...
    What is the probability of flipping a fair coin three times and getting exactly two heads in a row?Apakah kebarangkalian membalikkan syiling saksama tiga kali dan mendapat tepat dua kepala berturut-turut?Why is corruption so rampant in Malaysia, with politicians and government officials often caught engaging in unethical practices?
    Why have there been allegations of corruption and mismanagement in Malaysia's state-owned enterprises, and what measures have been taken to address these issues?Mengapa terdapat tuduhan rasuah dan salah urus dalam perusahaan milik kerajaan Malaysia, dan apakah langkah-langkah yang telah diambil untuk menangani isu-isu ini?What is the pKa value of acetic acid, and how does it affect its acid strength when compared to other organic acids such as citric acid or benzoic acid? Provide an explanation for your answer using acid-base reaction principles in organic chemistry.
  • Loss: TripletLoss with these parameters:
    {
        "distance_metric": "TripletDistanceMetric.EUCLIDEAN",
        "triplet_margin": 5
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 32
  • per_device_eval_batch_size: 32
  • learning_rate: 2e-05
  • weight_decay: 0.01
  • warmup_steps: 100
  • fp16: True
  • load_best_model_at_end: True

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 32
  • per_device_eval_batch_size: 32
  • 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.01
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1.0
  • num_train_epochs: 3
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • warmup_steps: 100
  • 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
  • bf16: False
  • fp16: True
  • 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: True
  • 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
  • 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
  • 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: 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
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepTraining LossValidation Losscosine_accuracy
0.00771003.5959--
0.01542001.5716--
0.02313001.3928--
0.03084001.3798--
0.03855001.3768--
0.04626001.3284--
0.05397001.2843--
0.06168001.3732--
0.06939001.3373--
0.077010001.3313--
0.084711001.3232--
0.092412001.2569--
0.100113001.3126--
0.107814001.3071--
0.115515001.3045--
0.123216001.2985--
0.130917001.2531--
0.138618001.3055--
0.146319001.2609--
0.154020001.2946--
0.161721001.3117--
0.169422001.2883--
0.177123001.2725--
0.184824001.2058--
0.192525001.2732--
0.200226001.3222--
0.207927001.1875--
0.215628001.2561--
0.223329001.2439--
0.231030001.2101--
0.238731001.1912--
0.246432001.1844--
0.254133001.1578--
0.261834001.2592--
0.269535001.2246--
0.277236001.2332--
0.284937001.1966--
0.292638001.2084--
0.300339001.2067--
0.308040001.1369--
0.315741001.1201--
0.323442001.2048--
0.331143001.2522--
0.338844001.1854--
0.346545001.1782--
0.354246001.1835--
0.361947001.1347--
0.369648001.1601--
0.377349001.1531--
0.38550001.21960.0010.0094
0.392751001.1045--
0.400452001.0943--
0.408153001.143--
0.415854001.0443--
0.423555001.133--
0.431256001.118--
0.438957001.0949--
0.446658001.1076--
0.454359001.1512--
0.462060001.067--
0.469761001.1246--
0.477462001.1541--
0.485163001.063--
0.492864001.1015--
0.500565001.1792--
0.508266001.0419--
0.515967001.0671--
0.523668001.0613--
0.531369001.0601--
0.539070001.0692--
0.546771001.0106--
0.554472001.0327--
0.562173001.0147--
0.569874001.0796--
0.577575001.0202--
0.585276001.089--
0.592977001.0688--
0.600678001.0018--
0.608379000.9564--
0.616080001.0329--
0.623781001.0693--
0.631482001.0612--
0.639183001.0422--
0.646884000.9332--
0.654585001.0729--
0.662286001.0313--
0.669987001.0022--
0.677688001.0321--
0.685389000.945--
0.693090001.0088--
0.700791001.0448--
0.708492000.9696--
0.716193001.0297--
0.723894000.9692--
0.731595000.9555--
0.739296000.9964--
0.746997001.0084--
0.754698001.039--
0.762399000.8946--
0.7700100000.93370.00450.0132
0.7777101001.0078--
0.7854102000.9855--
0.7931103001.027--
0.8008104001.0266--
0.8085105000.958--
0.8162106001.0266--
0.8239107001.0097--
0.8316108001.0414--
0.8393109001.021--
0.8470110000.9236--
0.8547111000.9607--
0.8624112000.9237--
0.8701113001.0802--
0.8778114000.9873--
0.8855115000.9322--
0.8932116000.9959--
0.9009117000.9043--
0.9086118000.9505--
0.9163119000.9926--
0.9240120000.9686--
0.9317121000.9721--
0.9394122000.9632--
0.9471123000.9635--
0.9548124000.9758--
0.9625125000.949--
0.9702126000.8747--
0.9779127000.929--
0.9856128000.9482--
0.9933129000.9902--
1.0010130000.9398--
1.0087131000.8745--
1.0164132000.9258--
1.0241133000.9262--
1.0318134000.9628--
1.0395135000.9789--
1.0472136000.8764--
1.0549137000.9054--
1.0626138000.9169--
1.0703139000.9786--
1.0780140000.9125--
1.0857141000.8897--
1.0934142000.957--
1.1011143000.9156--
1.1088144000.9144--
1.1165145000.8809--
1.1242146000.9197--
1.1319147000.9281--
1.1396148000.9143--
1.1473149000.9182--
1.1550150000.90890.00100.0032
1.1627151000.7919--
1.1704152000.8513--
1.1781153000.9004--
1.1858154000.9294--
1.1935155000.8347--
1.2012156000.8719--
1.2089157000.8931--
1.2166158000.8669--
1.2243159000.9034--
1.2320160000.9213--
1.2397161000.9195--
1.2474162000.8272--
1.2551163000.8713--
1.2628164000.8575--
1.2705165000.8689--
1.2782166000.9135--
1.2859167000.896--
1.2936168000.8478--
1.3013169000.8816--
1.3090170000.8392--
1.3167171000.9428--
1.3244172000.8612--
1.3321173000.8968--
1.3398174000.8691--
1.3475175000.8908--
1.3552176000.8428--
1.3629177000.8721--
1.3706178000.8369--
1.3783179000.8783--
1.3860180000.8489--
1.3937181000.8514--
1.4014182000.9135--
1.4091183000.8354--
1.4168184000.9151--
1.4245185000.9059--
1.4322186000.8552--
1.4399187000.8479--
1.4476188000.8569--
1.4553189000.8965--
1.4630190000.8651--
1.4707191000.8324--
1.4784192000.8937--
1.4861193000.8223--
1.4938194000.8976--
1.5015195000.8433--
1.5092196000.8284--
1.5169197000.8232--
1.5246198000.8593--
1.5323199000.8449--
1.5400200000.88520.00340.0120
1.5477201000.847--
1.5554202000.8699--
1.5631203000.8642--
1.5708204000.8517--
1.5785205000.8297--
1.5862206000.8667--
1.5939207000.9017--
1.6016208000.8194--
1.6093209000.8613--
1.6170210000.8427--
1.6247211000.8417--
1.6324212000.8231--
1.6401213000.8214--
1.6478214000.8104--
1.6555215000.8486--
1.6632216000.8405--
1.6709217000.8415--
1.6786218000.8642--
1.6863219000.89--
1.6940220000.8705--
1.7017221000.8319--
1.7094222000.8389--
1.7171223000.8182--
1.7248224000.8671--
1.7325225000.8574--
1.7402226000.8679--
1.7479227000.81--
1.7556228000.9036--
1.7633229000.8576--
1.7710230000.8396--
1.7787231000.7793--
1.7864232000.778--
1.7941233000.8209--
1.8018234000.8321--
1.8095235000.7713--
1.8172236000.8562--
1.8249237000.7996--
1.8326238000.8257--
1.8403239000.8996--
1.8480240000.8922--
1.8557241000.8041--
1.8634242000.8257--
1.8711243000.8173--
1.8788244000.8116--
1.8865245000.8492--
1.8942246000.8425--
1.9019247000.8562--
1.9096248000.8423--
1.9173249000.8318--
1.9250250000.86070.00210.0062
  • The bold row denotes the saved checkpoint.

Framework Versions

  • Python: 3.12.12
  • Sentence Transformers: 5.1.2
  • Transformers: 4.57.1
  • PyTorch: 2.8.0+cu126
  • Accelerate: 1.11.0
  • Datasets: 4.0.0
  • Tokenizers: 0.22.1

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…

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

0 моделей