Downloads Β· 30 days
28
13% of all-time downloads
seongil-dn/bge-m3-kor-retrieval-bs1024-checkpoint-59
bge-m3-kor-retrieval-bs1024-checkpoint-59 is a sentence similarity model from seongil-dn. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is a sentence-transformers model finetuned from BAAI/bge-m3. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase miβ¦
Downloads Β· 30 days
28
13% of all-time downloads
All-time downloads
211
Public
Parameters
568M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB Β· 99%
From the Hugging Face model README
This is a sentence-transformers model finetuned from BAAI/bge-m3. 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.
SentenceTransformer(
(0): Transformer({'max_seq_length': 1024, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(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()
)
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("seongil-dn/bge-m3-kor-retrieval-bs1024-checkpoint-59")
# Run inference
sentences = [
'μ λ¨μ§μμ μμ μ ννμ νμ μ μμΆμ΄ λμ΄λλ κ²½ν₯μ 보μμ΄',
'(2) μ λ¨μ§μ\n2013λ
μ€ μ λ¨μ§μ μμΆμ μ λ
λλΉ 1.2% κ°μλ‘ μ ννμλ€. νλͺ©λ³λ‘λ μμ (+9.3% β +3.8%) λ° ννμ ν(+1.2% β +7.1%)μ΄ μ€κ΅ λ± ν΄μΈμμνλλ‘ μ¦κ°μΈλ₯Ό μ§μνμμΌλ μ² κ°κΈμ(+1.8% β -8.6%)μ κΈλ‘λ² κ³΅κΈκ³Όμ λ° μ€κ΅μ μ κ° μ² κ°μμΆ νλλ‘, μ λ°(+7.6% β -49.2%)μ μμ£Όλ¬Όλμ΄ κΈκ²©ν μ€μ΄λ€λ©΄μ κ°μλ‘ μ ννμλ€. μ λ¨μ§μ μμ
μ μμ , ννμ ν, μ² κ°κΈμ λ±μ μμ
μ΄ μ€λ©΄μ μ λ
λλΉ 7.4% κ°μλ‘ μ ννμλ€.',
'μμΆ μ¦κ°μΈ μ§μ\n1/4λΆκΈ° μ€ μμΆμ μ λ
λκΈ°λλΉ μ¦κ°νλ¦μ μ§μνμλ€. νλͺ©λ³λ‘ 보면 μμ μ ν, μμ νν, μ² κ°, μ λ°, λ°λ체, μλμ°¨ λ± λλ€μ νλͺ©μμ μ¦κ°νμλ€. μμ μ νμ κΈλ‘λ² κ²½κΈ°ν볡μ λ°λ₯Έ μλμ§ μμ μ¦κ°μ κ΅μ μ κ° κΈλ±μΌλ‘ μμΆλ¨κ°κ° λμ μμΉμΈλ₯Ό μ§μνλ©΄μ μ¦κ°νμλ€. μμ ννλ μ€κ΅, μμΈμμ μ€μ¬μΌλ‘ ν©μ±μμ§, κ³ λ¬΄ λ±μ μμΆμ΄ ν° ν μ¦κ°ν λ°λ€ κ³ μ κ°λ‘ μΈν μμΆκ°κ²©λ λλ° μμΉνλ©΄μ μ¦κ°μΈλ₯Ό μ΄μ΄κ°λ€. μ² κ°μ 건μ€, μ‘°μ λ± κΈλ‘λ² μ λ°©μ°μ
μ μμ μ¦λ, μμμ¬κ°κ²© μμΉ λ° μ€κ΅ κ°μ° λ±μ λ°λ₯Έ μμΆλ¨κ° μμΉ λ±μ νμ
μ΄ μ¦κ°μΈλ₯Ό μ΄μ΄κ°λ€. μ λ°μ 1/4λΆκΈ° μ€ μΈλλ¬Όλμ΄ νλλ¨μ λ°λΌ μ¦κ°νμλ€. λ°λ체λ μλμ°¨ λ± μ λ°©μ°μ
μ 견쑰ν μμκ° μ΄μ΄μ§λ κ°μ΄λ° μ λ
λκΈ°λλΉλ‘ λμ λ¨κ°κ° μ§μλλ©΄μ μ¦κ°νμλ€. μλμ°¨λ μ°¨λμ© λ°λ체 μκΈμ°¨μ§μ΄ μ§μλμμμλ λΆκ΅¬νκ³ κΈλ‘λ² κ²½κΈ°ν볡 νλ¦μ λ°λΌ μμκ° λμ΄λλ©΄μ μ λ
λκΈ°λλΉ μν μ¦κ°νμλ€. λͺ¨λν°λ§ κ²°κ³Ό ν₯ν μμΆμ μ¦κ°μΈκ° μ§μλ κ²μΌλ‘ μ λ§λμλ€. μμ νν λ° μμ μ μ λ μμΆλ¨κ° μμΉκ³Ό μ λ°©μ°μ
μ μμνλ κΈ°μ‘°κ° μ΄μ΄μ§λ©΄μ μ¦κ°ν μ λ§μ΄λ€. μ² κ°μ μ£Όμκ΅ κ²½κΈ°ν볡과 μ€κ΅, μΈλ λ±μ μΈνλΌ ν¬μ νλ λ±μΌλ‘ μνΈν νλ¦μ μ΄μ΄κ° μ λ§μ΄λ€. λ°λ체λ κΈλ‘λ² μ€λ§νΈν° μμ ν볡, λμ§νΈ μ ν κΈ°μ‘° λ±μΌλ‘ 견쑰ν μ¦κ°μΈλ₯Ό μ§μν κ²μΌλ‘ 보μΈλ€. μλμ°¨λ μ°¨λμ© λ°λ체 곡κΈμ°¨μ§μ΄ μ μ°¨ μνλκ³ λ―Έκ΅, μ ν₯μμ₯μ μ€μ¬μΌλ‘ μμνλ³΅μ΄ λ³Έκ²©νλ¨μ λ°λΌ μν μ¦κ°ν μ λ§μ΄λ€. μ λ°μ μΉνκ²½ μ λ°μμ μ§μ, κΈλ‘λ³ κ΅μ μ μ₯ λ±μλ λΆκ΅¬νκ³ 2021λ
2/4λΆκΈ° μ§μ€λμλ μΈλλ¬Όλμ κΈ°μ ν¨κ³Όλ‘ μΈν΄ κ°μν κ²μΌλ‘ 보μΈλ€.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
<!--
### 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.*
-->
per_device_train_batch_size: 512learning_rate: 3e-05num_train_epochs: 5warmup_ratio: 0.05fp16: Truebatch_sampler: no_duplicatesoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: noprediction_loss_only: Trueper_device_train_batch_size: 512per_device_eval_batch_size: 8per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 3e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 5max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: {}warmup_ratio: 0.05warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Falsefp16: Truefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Truedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}deepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torchoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Falsehub_always_push: Falsegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseeval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Nonedispatch_batches: Nonesplit_batches: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseeval_use_gather_object: Falsebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportional| Epoch | Step | Training Loss |
|---|---|---|
| 0.0085 | 1 | 2.0476 |
| 0.0171 | 2 | 2.0595 |
| 0.0256 | 3 | 2.0267 |
| 0.0342 | 4 | 2.0971 |
| 0.0427 | 5 | 2.2171 |
| 0.0513 | 6 | 2.287 |
| 0.0598 | 7 | 2.0867 |
| 0.0684 | 8 | 1.9498 |
| 0.0769 | 9 | 1.569 |
| 0.0855 | 10 | 1.3313 |
| 0.0940 | 11 | 1.4122 |
| 0.1026 | 12 | 1.3425 |
| 0.1111 | 13 | 1.1936 |
| 0.1197 | 14 | 0.8012 |
| 0.1282 | 15 | 0.8862 |
| 0.1368 | 16 | 1.193 |
| 0.1453 | 17 | 0.9771 |
| 0.1538 | 18 | 0.3887 |
| 0.1624 | 19 | 0.363 |
| 0.1709 | 20 | 0.3092 |
| 0.1795 | 21 | 0.2692 |
| 0.1880 | 22 | 0.2386 |
| 0.1966 | 23 | 0.2266 |
| 0.2051 | 24 | 0.233 |
| 0.2137 | 25 | 0.2214 |
| 0.2222 | 26 | 0.2038 |
| 0.2308 | 27 | 0.2015 |
| 0.2393 | 28 | 0.1772 |
| 0.2479 | 29 | 0.1697 |
| 0.2564 | 30 | 0.1718 |
| 0.2650 | 31 | 0.2456 |
| 0.2735 | 32 | 0.5238 |
| 0.2821 | 33 | 0.5308 |
| 0.2906 | 34 | 0.5111 |
| 0.2991 | 35 | 0.3931 |
| 0.3077 | 36 | 0.3414 |
| 0.3162 | 37 | 0.2704 |
| 0.3248 | 38 | 0.2949 |
| 0.3333 | 39 | 0.3082 |
| 0.3419 | 40 | 0.3755 |
| 0.3504 | 41 | 0.3127 |
| 0.3590 | 42 | 0.3756 |
| 0.3675 | 43 | 0.3564 |
| 0.3761 | 44 | 0.3905 |
| 0.3846 | 45 | 0.377 |
| 0.3932 | 46 | 0.3043 |
| 0.4017 | 47 | 0.3237 |
| 0.4103 | 48 | 0.4035 |
| 0.4188 | 49 | 0.4522 |
| 0.4274 | 50 | 0.4392 |
| 0.4359 | 51 | 0.4482 |
| 0.4444 | 52 | 0.3586 |
| 0.4530 | 53 | 0.3154 |
| 0.4615 | 54 | 0.4053 |
| 0.4701 | 55 | 0.5846 |
| 0.4786 | 56 | 0.4372 |
| 0.4872 | 57 | 0.6201 |
| 0.4957 | 58 | 0.5278 |
| 0.5043 | 59 | 0.4844 |
@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",
}
@misc{gao2021scaling,
title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
year={2021},
eprint={2101.06983},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
<!--
## 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.*
-->