CoolFace
Modelpublic

dkqjrm/bge-m3-embedding-augmented-olive-phonetic-wo-negative-lora

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
Model Card

SentenceTransformer based on unsloth/bge-m3

This is a sentence-transformers model finetuned from unsloth/bge-m3 on the augmented-olive-product-phonetic-wo-negatives dataset. It maps sentences & paragraphs to a 1024-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: unsloth/bge-m3 <!-- at revision 57cb1c17d3cb917401c50b204393ee455359a565 -->
  • —Maximum Sequence Length: 8192 tokens
  • —Output Dimensionality: 1024 dimensions
  • —Similarity Function: Cosine Similarity
  • —Training Dataset:
  • —augmented-olive-product-phonetic-wo-negatives <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False, 'architecture': 'PeftModelForFeatureExtraction'})
  (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
  (2): Normalize()
)

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

bash
pip install -U sentence-transformers

Then you can load this model and run inference.

python
from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("dkqjrm/bge-m3-embedding-augmented-olive-phonetic-wo-negative-lora")
# Run inference
sentences = [
    '벤시몽 BSM 로고 오가닉 코튼 양말 1개',
    '棉袜子',
    '유분 순삭 드라이 샴푸',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[ 1.0000,  0.4675, -0.1065],
#         [ 0.4675,  1.0000, -0.0568],
#         [-0.1065, -0.0568,  1.0000]])

<!--

Direct Usage (Transformers)

<details><summary>Click to see the direct usage in Transformers</summary>

</details> -->

<!--

Downstream Usage (Sentence Transformers)

You can finetune this model on your own dataset.

<details><summary>Click to expand</summary>

</details> -->

<!--

Out-of-Scope Use

List how the model may foreseeably be misused and address what users ought not to do with the model. -->

<!--

Bias, Risks and Limitations

What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->

<!--

Recommendations

What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->

Training Details

Training Dataset

augmented-olive-product-phonetic-wo-negatives
  • —Dataset: augmented-olive-product-phonetic-wo-negatives at e21876d
  • —Size: 2,189,797 training samples
  • —Columns: <code>anchor</code> and <code>positive</code>
  • —Approximate statistics based on the first 1000 samples: | | anchor | positive | |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 8 tokens</li><li>mean: 22.67 tokens</li><li>max: 53 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 7.86 tokens</li><li>max: 34 tokens</li></ul> |
  • —Samples: | anchor | positive | |:--------------------------------------------------|:--------------------------------------------| | <code>엘리자베스아덴 그린티 센트스프레이 100ml</code> | <code>Green Tea perfume.</code> | | <code>164 루테인지아잔틴 메모리케어 GR 30캡슐 (30일분)</code> | <code>164 루테인지아잔틴 메모리케어 GR 30캡슐 30일분</code> | | <code>[지성두피&피지 제거] 클로란 네틀 노세범 드라이 샴푸 150ml</code> | <code>Dry shampoo</code> |
  • —Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
json
  {
      "scale": 20.0,
      "similarity_fct": "cos_sim",
      "gather_across_devices": false
  }

Evaluation Dataset

augmented-olive-product-phonetic-wo-negatives
  • —Dataset: augmented-olive-product-phonetic-wo-negatives at e21876d
  • —Size: 115,252 evaluation samples
  • —Columns: <code>anchor</code> and <code>positive</code>
  • —Approximate statistics based on the first 1000 samples: | | anchor | positive | |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 7 tokens</li><li>mean: 22.19 tokens</li><li>max: 53 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 8.11 tokens</li><li>max: 34 tokens</li></ul> |
  • —Samples: | anchor | positive | |:----------------------------------------|:----------------------------| | <code>아임쏘리포마이스킨 pH5.5 모이스처 젤리마스크</code> | <code>ウルトゥルー ジェリーマスク</code> | | <code>블랙몬스터 다운펌 프로 키트</code> | <code>블랙몬스터 다운펌 프로</code> | | <code>그린벨 NEW미세모용족집게(블랙)</code> | <code>黑色镊子</code> |
  • —Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
json
  {
      "scale": 20.0,
      "similarity_fct": "cos_sim",
      "gather_across_devices": false
  }

Training Hyperparameters

Non-Default Hyperparameters
  • —eval_strategy: steps
  • —per_device_train_batch_size: 32
  • —gradient_accumulation_steps: 8
  • —learning_rate: 3e-05
  • —num_train_epochs: 2
  • —lr_scheduler_type: cosine
  • —warmup_ratio: 0.1
  • —fp16: True
  • —push_to_hub: True
  • —batch_sampler: no_duplicates
All Hyperparameters

<details><summary>Click to expand</summary>

  • —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: 8
  • —per_gpu_train_batch_size: None
  • —per_gpu_eval_batch_size: None
  • —gradient_accumulation_steps: 8
  • —eval_accumulation_steps: None
  • —torch_empty_cache_steps: None
  • —learning_rate: 3e-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: 2
  • —max_steps: -1
  • —lr_scheduler_type: cosine
  • —lr_scheduler_kwargs: None
  • —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
  • —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: False
  • —ignore_data_skip: False
  • —fsdp: []
  • —fsdp_min_num_params: 0
  • —fsdp_config: {'minnumparams': 0, 'xla': False, 'xlafsdpv2': False, 'xlafsdpgrad_ckpt': False}
  • —fsdp_transformer_layer_cls_to_wrap: None
  • —accelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}
  • —parallelism_config: None
  • —deepspeed: None
  • —label_smoothing_factor: 0.0
  • —optim: adamwtorchfused
  • —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: True
  • —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: no_duplicates
  • —multi_dataset_batch_sampler: proportional
  • —router_mapping: {}
  • —learning_rate_mapping: {}

</details>

Training Logs

<details><summary>Click to expand</summary>

EpochStepTraining LossValidation Loss
0.0058501.5434-
0.01171001.4089-
0.01751501.1528-
0.02342000.9248-
0.02922500.7441-
0.03513000.669-
0.04093500.6312-
0.04684000.5666-
0.05264500.5516-
0.05855000.5485-
0.06435500.5197-
0.07016000.4966-
0.07606500.4941-
0.08187000.4724-
0.08777500.4678-
0.09358000.434-
0.09948500.4316-
0.10529000.4117-
0.11119500.4028-
0.116910000.4007-
0.122710500.3934-
0.128611000.3816-
0.134411500.3669-
0.140312000.3647-
0.146112500.3667-
0.152013000.3383-
0.157813500.3277-
0.163714000.3164-
0.169514500.328-
0.175415000.3209-
0.181215500.313-
0.187016000.3135-
0.192916500.3081-
0.198717000.3087-
0.204617500.2948-
0.210418000.2878-
0.216318500.2871-
0.222119000.2836-
0.228019500.2744-
0.233820000.2687-
0.239720500.2687-
0.245521000.2647-
0.251321500.2651-
0.257222000.269-
0.263022500.2637-
0.268923000.2593-
0.274723500.2492-
0.280624000.2584-
0.286424500.2544-
0.292325000.2327-
0.298125500.2402-
0.304026000.2321-
0.309826500.2303-
0.315627000.2391-
0.321527500.2217-
0.327328000.2242-
0.333228500.2319-
0.339029000.2294-
0.344929500.2212-
0.350730000.22540.0486
0.356630500.2281-
0.362431000.223-
0.368231500.2131-
0.374132000.2183-
0.379932500.206-
0.385833000.2107-
0.391633500.2075-
0.397534000.1985-
0.403334500.218-
0.409235000.2028-
0.415035500.1998-
0.420936000.2055-
0.426736500.1915-
0.432537000.1993-
0.438437500.1898-
0.444238000.1973-
0.450138500.1917-
0.455939000.1936-
0.461839500.1906-
0.467640000.1942-
0.473540500.1913-
0.479341000.1855-
0.485241500.1767-
0.491042000.1837-
0.496842500.1828-
0.502743000.1792-
0.508543500.1878-
0.514444000.1793-
0.520244500.1799-
0.526145000.172-
0.531945500.1695-
0.537846000.1722-
0.543646500.1767-
0.549547000.1716-
0.555347500.1716-
0.561148000.1706-
0.567048500.1668-
0.572849000.1747-
0.578749500.1675-
0.584550000.1667-
0.590450500.172-
0.596251000.1716-
0.602151500.1632-
0.607952000.1586-
0.613752500.1618-
0.619653000.1656-
0.625453500.157-
0.631354000.1591-
0.637154500.1597-
0.643055000.1546-
0.648855500.1588-
0.654756000.1528-
0.660556500.1484-
0.666457000.1513-
0.672257500.1533-
0.678058000.1532-
0.683958500.1495-
0.689759000.1467-
0.695659500.1537-
0.701460000.14970.0299
0.707360500.1568-
0.713161000.1531-
0.719061500.1419-
0.724862000.1515-
0.730762500.1504-
0.736563000.1504-
0.742363500.1416-
0.748264000.1499-
0.754064500.1506-
0.759965000.1446-
0.765765500.1448-
0.771666000.1321-
0.777466500.1419-
0.783367000.1414-
0.789167500.1432-
0.794968000.1313-
0.800868500.1367-
0.806669000.1406-
0.812569500.1427-
0.818370000.1404-
0.824270500.1462-
0.830071000.1434-
0.835971500.1399-
0.841772000.1366-
0.847672500.1366-
0.853473000.1452-
0.859273500.1338-
0.865174000.1375-
0.870974500.14-
0.876875000.1343-
0.882675500.1372-
0.888576000.1346-
0.894376500.1274-
0.900277000.1263-
0.906077500.1305-
0.911978000.1279-
0.917778500.1274-
0.923579000.136-
0.929479500.1272-
0.935280000.1288-
0.941180500.1342-
0.946981000.1301-
0.952881500.1345-
0.958682000.1252-
0.964582500.1268-
0.970383000.1307-
0.976283500.1271-
0.982084000.1257-
0.987884500.1254-
0.993785000.1297-
0.999585500.1264-
1.005486000.1256-
1.011286500.1194-
1.017187000.122-
1.022987500.1278-
1.028888000.1225-
1.034688500.1165-
1.040489000.1202-
1.046389500.1185-
1.052190000.1220.0240
1.058090500.1261-
1.063891000.1194-
1.069791500.1202-
1.075592000.1244-
1.081492500.1169-
1.087293000.1142-
1.093193500.115-
1.098994000.1188-
1.104794500.1139-
1.110695000.1266-
1.116495500.1162-
1.122396000.1216-
1.128196500.1156-
1.134097000.115-
1.139897500.1148-
1.145798000.1187-
1.151598500.1182-
1.157499000.1152-
1.163299500.1236-
1.1690100000.1162-
1.1749100500.1147-
1.1807101000.1162-
1.1866101500.1054-
1.1924102000.1147-
1.1983102500.1185-
1.2041103000.1172-
1.2100103500.1102-
1.2158104000.1111-
1.2217104500.1125-
1.2275105000.1129-
1.2333105500.1133-
1.2392106000.1133-
1.2450106500.1159-
1.2509107000.1117-
1.2567107500.1169-
1.2626108000.1133-
1.2684108500.113-
1.2743109000.1111-
1.2801109500.1133-
1.2859110000.11-
1.2918110500.1128-
1.2976111000.1115-
1.3035111500.1087-
1.3093112000.1019-
1.3152112500.1123-
1.3210113000.1091-
1.3269113500.1074-
1.3327114000.1109-
1.3386114500.1094-
1.3444115000.1042-
1.3502115500.1103-
1.3561116000.1099-
1.3619116500.1109-
1.3678117000.1106-
1.3736117500.1028-
1.3795118000.1076-
1.3853118500.1051-
1.3912119000.1099-
1.3970119500.1062-
1.4029120000.10680.0212
1.4087120500.1056-
1.4145121000.1078-
1.4204121500.1059-
1.4262122000.1055-
1.4321122500.1129-
1.4379123000.1084-
1.4438123500.1101-
1.4496124000.1069-
1.4555124500.1022-
1.4613125000.1043-
1.4671125500.1072-
1.4730126000.1058-
1.4788126500.1022-
1.4847127000.1042-
1.4905127500.1063-
1.4964128000.1059-
1.5022128500.1048-
1.5081129000.1053-
1.5139129500.1046-
1.5198130000.1059-
1.5256130500.1082-
1.5314131000.1069-
1.5373131500.1053-
1.5431132000.1086-
1.5490132500.1022-
1.5548133000.1049-
1.5607133500.1125-
1.5665134000.1068-
1.5724134500.1108-
1.5782135000.1093-
1.5841135500.1041-
1.5899136000.1103-
1.5957136500.1065-
1.6016137000.1063-
1.6074137500.1045-
1.6133138000.1056-
1.6191138500.103-
1.6250139000.1077-
1.6308139500.1073-
1.6367140000.0995-
1.6425140500.103-
1.6484141000.1037-
1.6542141500.1099-
1.6600142000.1056-
1.6659142500.1031-
1.6717143000.1017-
1.6776143500.106-
1.6834144000.1079-
1.6893144500.0996-
1.6951145000.1078-
1.7010145500.1083-
1.7068146000.1009-
1.7126146500.1042-
1.7185147000.1105-
1.7243147500.1046-
1.7302148000.1019-
1.7360148500.0992-
1.7419149000.106-
1.7477149500.1066-
1.7536150000.10780.0199
1.7594150500.1071-
1.7653151000.0977-
1.7711151500.1059-
1.7769152000.1057-
1.7828152500.1021-
1.7886153000.103-
1.7945153500.1012-
1.8003154000.101-
1.8062154500.0993-
1.8120155000.1087-
1.8179155500.1012-
1.8237156000.104-
1.8296156500.0987-
1.8354157000.1063-
1.8412157500.1074-
1.8471158000.1105-
1.8529158500.1018-
1.8588159000.1041-
1.8646159500.1028-
1.8705160000.1005-
1.8763160500.0972-
1.8822161000.1047-
1.8880161500.1021-
1.8939162000.098-
1.8997162500.1042-
1.9055163000.1052-
1.9114163500.1043-
1.9172164000.095-
1.9231164500.1068-
1.9289165000.1001-
1.9348165500.1007-
1.9406166000.1077-
1.9465166500.1017-
1.9523167000.1026-
1.9581167500.105-
1.9640168000.1054-
1.9698168500.1065-
1.9757169000.1055-
1.9815169500.1032-
1.9874170000.1029-
1.9932170500.1027-
1.9991171000.1057-

</details>

Framework Versions

  • —Python: 3.12.12
  • —Sentence Transformers: 5.2.1
  • —Transformers: 4.57.6
  • —PyTorch: 2.10.0+cu128
  • —Accelerate: 1.12.0
  • —Datasets: 4.3.0
  • —Tokenizers: 0.22.2

Citation

BibTeX

Sentence Transformers
bibtex
@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",
}
MultipleNegativesRankingLoss
bibtex
@misc{henderson2017efficient,
    title={Efficient Natural Language Response Suggestion for Smart Reply},
    author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
    year={2017},
    eprint={1705.00652},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

<!--

Glossary

Clearly define terms in order to be accessible across audiences. -->

<!--

Model Card Authors

Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->

<!--

Model Card Contact

Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->