CoolFace
Modelpublic

dkqjrm/bge-m3-olive-phonetic-incremental-lora

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

SentenceTransformer

This is a sentence-transformers model trained on the olive-phonetic 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: Unknown -->
  • —Maximum Sequence Length: 512 tokens
  • —Output Dimensionality: 1024 dimensions
  • —Similarity Function: Cosine Similarity
  • —Training Dataset:
  • —olive-phonetic <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, '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-olive-phonetic-incremental-lora")
# Run inference
sentences = [
    '[운동복세탁] 에코두 프랑스 울세제 울샴푸 니트 속옷세제 750ml x 2개',
    '에코도',
    'バークレイ',
]
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.7370, 0.0654],
#         [0.7370, 1.0000, 0.0482],
#         [0.0654, 0.0482, 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

olive-phonetic
  • —Dataset: olive-phonetic at 2edf5dd
  • —Size: 348,352 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: 5 tokens</li><li>mean: 23.08 tokens</li><li>max: 50 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 6.08 tokens</li><li>max: 14 tokens</li></ul> |
  • —Samples: | anchor | positive | |:----------------------------------------------------------|:----------------------| | <code>필립스 3000 시리즈 듀얼 에어케어 접이식 헤어드라이기 (BHD308/69)</code> | <code>飞利浦</code> | | <code>밀크바오밥 퍼퓸 헤어 화이트머스크 선물세트 (샴푸500ml+트리트먼트500ml)</code> | <code>ミルクバオバブー</code> | | <code>[집들이선물] 에코두 프랑스 청소세제 종합선물세트</code> | <code>에코두</code> |
  • —Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
json
  {
      "scale": 20.0,
      "similarity_fct": "cos_sim",
      "gather_across_devices": false
  }

Evaluation Dataset

olive-phonetic
  • —Dataset: olive-phonetic at 2edf5dd
  • —Size: 18,334 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.86 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 6.13 tokens</li><li>max: 14 tokens</li></ul> |
  • —Samples: | anchor | positive | |:--------------------------------------------------------|:--------------------| | <code>포렌코즈 타투 끌레르 벨벳 틴트</code> | <code>フォレンコス</code> | | <code>텐바이텐 산리오 마이레터 6공 다이어리 (마이멜로디/쿠로미/시나모롤/포차코)</code> | <code>텐바이탠</code> | | <code>RYMD 텐셀 퀵드라이 크로스 요가티</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: 16
  • —gradient_accumulation_steps: 16
  • —learning_rate: 1e-05
  • —num_train_epochs: 1
  • —lr_scheduler_type: cosine
  • —warmup_ratio: 0.05
  • —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: 16
  • —per_device_eval_batch_size: 8
  • —per_gpu_train_batch_size: None
  • —per_gpu_eval_batch_size: None
  • —gradient_accumulation_steps: 16
  • —eval_accumulation_steps: None
  • —torch_empty_cache_steps: None
  • —learning_rate: 1e-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: cosine
  • —lr_scheduler_kwargs: None
  • —warmup_ratio: 0.05
  • —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.0073102.0959-
0.0147202.0514-
0.0220301.8141-
0.0294401.6118-
0.0367501.2453-
0.0441600.8385-
0.0514700.6052-
0.0588800.4456-
0.0661900.4206-
0.07351000.38560.2105
0.08081100.3858-
0.08821200.3064-
0.09551300.3153-
0.10291400.2906-
0.11021500.2974-
0.11761600.293-
0.12491700.2546-
0.13231800.267-
0.13961900.258-
0.14702000.27420.1423
0.15432100.249-
0.16172200.2486-
0.16902300.2543-
0.17642400.249-
0.18372500.2429-
0.19112600.2167-
0.19842700.2419-
0.20582800.2214-
0.21312900.2102-
0.22053000.2010.1156
0.22783100.2205-
0.23523200.2109-
0.24253300.1933-
0.24993400.2008-
0.25723500.2041-
0.26463600.1981-
0.27193700.2193-
0.27933800.2111-
0.28663900.1794-
0.29404000.18950.0982
0.30134100.1997-
0.30874200.1683-
0.31604300.1786-
0.32344400.1811-
0.33074500.1785-
0.33804600.1811-
0.34544700.1933-
0.35274800.1774-
0.36014900.1677-
0.36745000.17870.0855
0.37485100.1772-
0.38215200.1551-
0.38955300.1788-
0.39685400.1583-
0.40425500.1529-
0.41155600.1691-
0.41895700.154-
0.42625800.1592-
0.43365900.166-
0.44096000.1630.0780
0.44836100.1466-
0.45566200.1579-
0.46306300.1551-
0.47036400.142-
0.47776500.1837-
0.48506600.1494-
0.49246700.1582-
0.49976800.1438-
0.50716900.1387-
0.51447000.16820.0726
0.52187100.1507-
0.52917200.1853-
0.53657300.1392-
0.54387400.1422-
0.55127500.1393-
0.55857600.154-
0.56597700.1375-
0.57327800.1405-
0.58067900.1483-
0.58798000.1350.0690
0.59538100.1276-
0.60268200.142-
0.61008300.1368-
0.61738400.1397-
0.62478500.1354-
0.63208600.1397-
0.63948700.1289-
0.64678800.1596-
0.65418900.1266-
0.66149000.13940.0666
0.66879100.1434-
0.67619200.1358-
0.68349300.1301-
0.69089400.1232-
0.69819500.1333-
0.70559600.1554-
0.71289700.14-
0.72029800.1367-
0.72759900.1397-
0.734910000.14860.0646
0.742210100.1126-
0.749610200.1432-
0.756910300.1234-
0.764310400.1583-
0.771610500.1274-
0.779010600.1314-
0.786310700.1163-
0.793710800.1512-
0.801010900.1392-
0.808411000.14010.0638
0.815711100.1366-
0.823111200.1471-
0.830411300.1341-
0.837811400.1495-
0.845111500.1297-
0.852511600.146-
0.859811700.1431-
0.867211800.1487-
0.874511900.1291-
0.881912000.12250.0631
0.889212100.1291-
0.896612200.1232-
0.903912300.1187-
0.911312400.1662-
0.918612500.1395-
0.926012600.1308-
0.933312700.1493-
0.940712800.1186-
0.948012900.1318-
0.955413000.13640.0630
0.962713100.1356-
0.970113200.1458-
0.977413300.1591-
0.984813400.1272-
0.992113500.1166-
0.999413600.1259-

</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. -->