khinswezinhan/fine-tuned-burmese-pagoda-model
SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
This is a sentence-transformers model finetuned from sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for retrieval.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 <!-- at revision e8f8c211226b894fcb81acc59f3b34ba3efd5f42 -->
- Maximum Sequence Length: 128 tokens
- Output Dimensionality: 384 dimensions
- Similarity Function: Cosine Similarity
- Supported Modality: Text <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
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': 'BertModel'})
(1): Pooling({'embedding_dimension': 384, 'pooling_mode': 'mean', 'include_prompt': True})
)Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformersThen you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("khinswezinhan/fine-tuned-burmese-pagoda-model")
# Run inference
sentences = [
'ရွှေနန်းဦးစေတီ(သရေခေတ္တရာမြိုဟောင်းဇုန်ရှိဘုရား)',
'ရွှေနန်းဦးစေတီ(သရေခေတ္တရာမြိုဟောင်းဇုန်ရှိဘုရား) ပဲခူးတိုင်းဒေသကြီး ပြည်မြို့နယ် (ရည်ညွှန်းစာ : ရှေးဟောင်းသုတေသနနှင့်အမျိုးသားပြတိုက်ဦးစီးဌာနမှ ပေးပို့ထားသော မှတ်တမ်းမှ ကူးယူဖော်ပြထားပါသည်။) ရွှေနန်းဦးစေတီသည် သရေခေတ္တရာမြို့ဟောင်း အတွင်းနန်းတော်ရာ၏ အရှေ့ မြောက်ထောင့်တွင် တည်ရှိသည်။ နန်းတော်ရာနှင့် အနီးဆုံးနေရာတွင် တည်ရှိ၍ နန်းဦး စေတီဟုခေါ်ဆိုကြောင်း သိရှိရပါသည်။ စေတီတော်မှာ နှစ်ပေါင်းများစွာ ကြာမြင့် ခဲ့ပြီဖြစ်ရာ ရာသီဥတုဒဏ်ကြောင့် ပြိုကြပျက်စီးခဲ့ပြီး မြေကြီးကုန်းသဖွယ်ဖြစ်ရာမှ ပြန်လည်တည်ထား ခဲ့သဖြင့် စေတီပုံစံမှာ(၂၀)ရာစု လက်ရာဖြစ်ကြောင်း ကိုတွေ့ရှိရပါသည်။ စေတီ၏ဉာဏ်တော် မှာ(၃၂)ပေရှိပါသည်။ ဘုရား၏ဗိသုကာ ပန္နက်ပုံမှာ လေးထောင့် ပုံပစ္စယာ(၅)ဆင့်ပေါ်တွင် စေတီပေါက်ထားပြီး ပစ္စယာဆင့်ကို မိုးလျှော၊ မျက်ရစ်၊ လက်ပင့်၊ ဖောင်းပြား၊ ပုံစံပြုလုပ် ထားသည်။ စေတီရံများကိုလည်း ပစ္စယာဒုတိယအဆင့်နှင့် စတုတ္ထဆင့်တို့တွင် လေးဆူစီ တည်ထားပါသည်။ ပစ္စယာများမှာ ကလာသာအိုးပုံစံ ဖြစ်ပါသည်။ ဘုရားအပေါ်ပိုင်းကို လေးထောင့်ပုံစံ ပစ္စယာငါးဆင့်ပေါ်တွင် ဖောင်းလုံးများ၊ ခေါင်းလောင်းပုံ၊ ခါးပါတ်၊ သပိတ်မှောက်၊ ဖောင်းရစ်၊ ကြာမှောက်၊ ကြာလန်၊ ငှက်ပျောဖူးတို့ပါရှိပြီး ထီးတော်လည်း တင်လှူထားပါသည်။ စေတီရံစုစုပေါင်း(၈)ဆူရှိပြီး ထိုစေတီရံများတွင်လည်း ထီးတော်များ တင်လှူထားသည်ကို တွေ့ရပါသည်။',
'ရတနာသီရိမဟာဘုရားကြီးစေတီတော်မြတ်ကြီး(သရေခေတ္တရာမြို့ဟောင်းဇုန်ရှိဒွတ္တပေါင်မင်းကြီးတည်ထားခဲ့သောဘုရား) ပဲခူးတိုင်းဒေသကြီး ပြည်မြို့နယ် (ရည်ညွှန်းစာ : ရတနာသီရိမဟာဘုရားကြီးစေတီတော် ဂေါပကအဖွဲ့မှ ပေးပို့ထားသော မှတ်တမ်းမှ ကူးယူဖော်ပြထားခြင်း ဖြစ်ပါသည်။) ရတနာသီရိမဟာဘုရားကြီး စေတီတော်မြတ်ကြီးသည် သရေခေတ္တရာမြို့ဟောင်း၏ အနောက်မြောက်ဘက် ပြည်အောင်လံ ကားလမ်းမဘေးတွင် တည်ရှိပါသည်။ အစဉ်အလာပြောဆိုမှု များနှင့် မြန်မာရာဇဝင်ကျမ်းအချို့တွင် ဒွတ္တဘောင်မင်း တည်ထားခဲ့သော စေတီကိုးဆူအနက် တစ်ဆူအပါအဝင် ဖြစ်ပါသည်။ မြတ်စွာဘုရားရှင်၏ ဓာတ်တော်စစ်တစ်ဆူ လက်ယာခြေမတော်မှ ခြေသည်းတော်ကို ထည့်သွင်းဌာပနာထားကာ မဟာစေတီဟု သမုတ်၍ တည်ထားခဲ့ကြောင်း စေတီတည်ထားစဉ်က ဖြေးဖြေးဆေးဆေး တည်တော်မူပါသဖြင့် ဆေးဆေးစေတီဟု လည်းကောင်း၊ အလွန်ကြီးမားသောကြောင့် မဟာစေတီဟုလည်းကောင်း ယခုအချိန်အခါတွင် ရတနာသီရိမဟာ ဘုရားကြီးစေတီတော်မြတ်ကြီးဟု ခေါ်ဆိုသည်။ ရတနာသီရိမဟာဘုရားကြီး စေတီတော်မြတ်ကြီး စေတီ၏ ပုံသဏ္ဌာန်သည် အခြေ၌ ပြောင်းရှည်ပုံသဏ္ဌာန်ရှိပြီး အပေါ်သို့ ကန်တော့ပုံ တဖြည်းဖြည်းခုံးသွားသော ပုံသဏ္ဌာန်ဖြစ်သည်။ ၎င်းစေတီသည် မူလက်ရာဖြစ်ပြီး အုတ်နှင့်ထုံးသရွတ်များ စေတီ၏မျက်နှာပြင် တွင် ကျန်ရှိနေသေးကြောင်း တွေ့ရှိရပါသည်။ ပစ္စယာ(၄)ဆင့် ပါရှိပြီး ထောင့်(၁၆)ထောင့်ပါသော ပစ္စယာ(၃)ဆင့်နှင့် ထိပ်ဆုံးပစ္စယာမှာ အဝိုင်းပုံသဏ္ဌာန် ရှိသည်။ ဘုရားကြီးစေတီ၏အမြင့်မှာ (၁၃၉)ပေရှိပြီး လုံးပတ်မှာ (၃၀၇)ပေရှိသည်။ ဘုရားကြီးစေတီသည် မြန်မာနိုင်ငံအတွင်း စေတီ တည်ထားကိုးကွယ်မှုအပိုင်းတွင် အစောဆုံးထဲ၌ အပါအဝင်ဖြစ်ပြီး ပျူခေတ်အလယ်ပိုင်း (အေဒီ ၄ - ၇ ရာစု)တွင် တည်ထားခဲ့သော စေတီတစ်ဆူ ဖြစ်ပါသည်။ ၎င်းသည် မျက်မှောက်ခေတ်စေတီများ၏ ရှေ့ပြေးပုံစံ အသွင်မျိုးဖြစ်သည်။ ဘုရားကြီးစေတီသည် ပျူလူမျိုးတို့၏ ယုံကြည်ကိုးကွယ်မှု အယူဝါဒများထဲမှ ဗုဒ္ဓဘာသာရေးနှင့် ဆက်စပ်နေသော အဆောက်အအုံဖြစ်သောကြောင့် ကမ္ဘာ့အမွေအနှစ်စံညွှန်းအဖြစ် သတ်မှတ်ခဲ့ခြင်းဖြစ်ပါသည်။ (၁၉၁၁-၁၉၁၂)နှင့် (၁၉၁၂-၁၉၁၃)ခုနှစ် တွင် ဘုရားကြီးစေတီ၏ တောင်ဘက်အနီးတွင် ကျောက်အရိုးအိုးလေးလုံးနှင့် မြေအရိုးအိုးတစ်လုံး တူးဖော်ရရှိခဲ့ပါသည်။ ထိုအရိုးအိုးများပေါ်၌ ပျူစာများ ရေးထိုးထားပြီး ထိုစာများအရ ၎င်းအရိုးအိုး များသည် သရေခေတ္တရာတွင် စိုးစံခဲ့သော ဟရိစိတြမင်း၊ သီဟဝိကြမမင်း၊ သူရိယဝိကြမမင်းတို့၏ အရိုးအိုးများဖြစ်ကြောင်း သိရှိခဲ့ရသည်။',
]
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.9232, 0.1471],
# [0.9232, 1.0000, 0.1694],
# [0.1471, 0.1694, 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
Unnamed Dataset
- Size: 78 training samples
- Columns: <code>anchor</code> and <code>positive</code>
- Approximate statistics based on the first 78 samples: | | anchor | positive | |:---------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------| | type | string | string | | modality | text | text | | details | <ul><li>min: 6 tokens</li><li>mean: 15.81 tokens</li><li>max: 43 tokens</li></ul> | <ul><li>min: 51 tokens</li><li>mean: 127.01 tokens</li><li>max: 128 tokens</li></ul> |
- Samples: | anchor | positive | |:---------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>ရွှေမော်ဓောစေတီတော်</code> | <code>ရွှေမော်ဓောစေတီတော် ပဲခူးတိုင်းဒေသကြီး ပဲခူး ရွှေမော်ဓေါဘုရားကြီ:ကို ပဲခူးမြို့၏အပြင်ဘက် (၆) မိုင်ခန့်အကွာမှစ၍ ထင်ရှားစွာဖူးမြှော်တွေ့ရှိနိုင်သည်။ ဘုရားရှင် သက်တော်ထင်ရှားရှိစဉ်အချိန်တွင် မဟာသာလ၊ စူဠာသာလ ကုန်သည်ညီနောင်(၂) ဦးအား ဆံတော်(၂)ဆူပေးအပ်ခဲ့သည်။ ထိုကုန်သည်ညီနောင်(၂) ဦးတို့သည် ဆံတော်(၂)ဆူအား ပင့်ခဲ့ပြီးနောက် ပဲခူး သုဒဿန တောင်ထိပ်တွင် (၇၅) ပေမြင့်သော စေတီကိုတည်၍ ဆံတော်(၂)ဆူ ဌာပနာခဲ့သည်။ အေဒီ(၈၂၅-၈၄၀) သမလဘုရင် လက်ထက်တွင် စေတီတော်အမြင့်ကို (၈၁) ပေနှင့် ဝိမလဘုရင် လက်ထက်တွင် (၈၈)ပေ အသီးသီးပြန်တည်ခဲ့သည်။ ၁၉၁၇ ခုနှစ်တွင် ငလျင်ဒဏ်ကြောင့် ဘုရားကြီး၏ ငှက်ပျောဖူးမှာ မြေခခဲ့ရသည်ကို ဘုရား၏ အရှေ့မြောက်ထောင့် အရပ်တွင် ယနေ့တိုင်တွေ့မြင်ရပါသည်။ ၁၉၂၀ ခုနှစ်မှ စ၍ ယနေ့အထိ ဘုရားကြီးအား ဘက်စုံမွမ်းမံမှုများကိုပြုလုပ်ခဲ့ပါသည်။</code> | | <code>မြသလွန်စေတီတော်</code> | <code>မြသလွန်စေတီတော် မကွေးတိုင်းဒေသကြီး မကွေး တိလောကဂ္ဂ ၊ ဘဂျဘဂဝါ ၊ မည်တော်သာသော မြတ်စွာဘုရားသခင်သည် ၊ ဝါတော်နှစ်ဆယ်ကျော် ရောက်လတ်သော် သာဝတ္ထိပြည် ဇေတဝန်ကျောင်းတော်၌ သီတင်းသုံးနေတော်မူသောအခါ သုနာပရန္တတိုင်း လယ်ကိုင်း နာဂရ မြန်ဌာန၌ သုပ္ပာဒက သင်္ဘောဆိပ် ဝါဏိဇ္ဇဂါမ ရွာသားငါးရာကုန်သော ဥပသကာတို့သည် ကြည်ဖြူ စေတနာ သဒ္ဓါအားထုတ် ဆောက်လုပ်အပ်သော သရက္ခန် စန္ဒကူးဂန္ဓာရုံ တန်ဆောင်းဝန်း ကျောင်းတော်ကို အလှူခံတော်မူ အံ့သောငှာ ဘိုးတော်ဖြစ်သော အဉ္စနမင်းကြီး ဖြိုပြီးသက္ကရာဇ် ၁၂၃ ခုနှစ် နွယ်တာ လဆုတ် (၈) ရက်နေ့တွင် ဝိသကြုံ နတ်သားဖန်ဆင်းထားသည့် ငါးရာသတ်မှတ် ပြာသာဒ်ယာဉ်ပျံ၌ စံနေသော အခြံအရံ ရဟန္တာငါးရာတို့နှင့်တကွ အဇာဋာလမ်း ကြွချီမြန်းလျက် စန္ဒကူးကျောင်းတော်ကို အလှူခံပြီးလျှင် ခုနစ်ရက်ပတ်လုံး သီတင်းသုံးနေတော်မူပြီး၍ ဝေနေယျကြာ သတ္တဝါအပေါင်းတို့အား တရားရေအေးအမြိုက်ဆေးကို တိုက်ကျွေးဝေငှ ပါရမီဉာဏ သမ္ဘာရအလိုက် ထိုက်သင့်သော မဂ်ဖိုလ်ဉာဏ်ကို ခံယူပန်ဆင်စေတော်မူပြီးနောက် ထိုကျောင်းမှ တစ်ဖန်ပြန်လည် မြန်းကြွဒေသစာရီ ဖြန့်ချီတော်မူခဲ့ရာများစွာ ထိုထိုတောင်ညို ဆားပွက်တို့ဖြင့် ခြံရံအပ်သော ကေလာသဘ နာမြွမက်မြဲ စက္ကိန်းတည်း တောင်ထိပ်...</code> | | <code>ရွှေတိဂုံစေတီတော်</code> | <code>ရွှေတိဂုံစေတီတော် ရန်ကုန်တိုင်းဒေသကြီး ဗဟန်း ရွှေတိဂုံ စေတီတော်မှာ ၃၂၆ ပေ မြင့်ပြီး ရန်ကုန်မြို့ရှိ သိင်္ဂုတ္တရ ကုန်းတော်ပေါ်တွင် တည်ရှိသည်။ "လေးဆူဓာတ်ပုံ ရွှေတိဂုံ"ဟုလည်း ခေါ်တွင်သည်။ "စေတီအစ ရွှေတိဂုံက" ဟုဆိုကြသည်။ ရန်ကုန်တိုင်းကို မွန်လူမျိုးတို့သည် ဒဂုံတိုင်းဟု သမုတ်ခဲ့ကြသည်။ ဒဂုံတိုင်းမှာ တည်ထားသော ဘုရားဖြစ်သည့် အတွက်ကြောင့် ဒဂုံတိုင်းကဘုရားဟု ခေါ်ဝေါ်ပြောဆိုခဲ့ကြသည်။ မွန်ဘာသာဖြင့် ကျာ်ဒဂုင် ဟုရေးသားပြီး ကျိုက်ဒဂုံဟုအသံထွက်ဆိုခဲ့ကြသည်။ တတိယမြန်မာနိုင်ငံကို တည်ထောင်ခဲ့သော အလောင်းမင်းတရားကြီးလက်ထက်တွင် မွန်တို့ကို တိုက်ခိုက်အောင်မြင်ပြီးနောက် ဒဂုံကို ရန်ကုန်ဟု အမည်နာမ ပြောင်းလည်ခဲ့သည်။ ကျိုက်လဂုံကို ကျိုက်ဒဂုံ ဟု ခေါ်ဆိုကြသည်။ နောက်ပိုင်းတွင် ကျိုက်လဂုံ(သို့) ကျိုက်ဒဂုံသည် မြန်မာပြည်၏ မူပိုင်သင်္ကေတ အဖြစ်ကျော်ကြားလာခဲ့သည်။ မူပိုင်ကျိုက်ဆိုသော စကားလုံးနေရာတွင် ရွှေနိုင်ငံ (Golden land) ကို ကိုယ်စားပြုသော ရွှေ ဆိုသော စကားလုံးဖြင့် အစားထိုးခဲ့ကြသည်။ ထို့အတူ လဂုံ လိုလို ဒဂုံ လိုလို ဖြစ်နေသောစကားလုံးကိုလည်း တိဂုံ ဖြင့် အတည်ပြုပေးလိုက်ကြသည်။ ထိုအချိန်မှစ၍ ကျိုက်လဂုံ သည် မြန်မာပြည်တွင်မှာ ...</code> |
- Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false,
"directions": [
"query_to_doc"
],
"partition_mode": "joint",
"hardness_mode": null,
"hardness_strength": 0.0
}Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 4num_train_epochs: 7learning_rate: 2e-05weight_decay: 0.02fp16: True
All Hyperparameters
<details><summary>Click to expand</summary>
per_device_train_batch_size: 4num_train_epochs: 7max_steps: -1learning_rate: 2e-05lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_steps: 0optim: adamwtorchfusedoptim_args: Noneweight_decay: 0.02adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08optim_target_modules: Nonegradient_accumulation_steps: 1average_tokens_across_devices: Truemax_grad_norm: 1.0label_smoothing_factor: 0.0bf16: Falsefp16: Truebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Nonetorch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneuse_liger_kernel: Falseliger_kernel_config: Noneuse_cache: Falseneftune_noise_alpha: Nonetorch_empty_cache_steps: Noneauto_find_batch_size: Falselog_on_each_node: Truelogging_nan_inf_filter: Trueinclude_num_input_tokens_seen: nolog_level: passivelog_level_replica: warningdisable_tqdm: Falseproject: huggingfacetrackio_space_id: Nonetrackio_bucket_id: Nonetrackio_static_space_id: Noneper_device_eval_batch_size: 8prediction_loss_only: Trueeval_on_start: Falseeval_do_concat_batches: Trueeval_use_gather_object: Falseeval_accumulation_steps: Noneinclude_for_metrics: []batch_eval_metrics: Falsesave_only_model: Falsesave_on_each_node: Falseenable_jit_checkpoint: Falsepush_to_hub: Falsehub_private_repo: Nonehub_model_id: Nonehub_strategy: every_savehub_always_push: Falsehub_revision: Noneload_best_model_at_end: Falseignore_data_skip: Falserestore_callback_states_from_checkpoint: Falsefull_determinism: Falseseed: 42data_seed: Noneuse_cpu: Falseaccelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}parallelism_config: Nonedataloader_drop_last: Falsedataloader_num_workers: 0dataloader_pin_memory: Truedataloader_persistent_workers: Falsedataloader_prefetch_factor: Noneremove_unused_columns: Truelabel_names: Nonetrain_sampling_strategy: randomlength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falseddp_static_graph: Noneddp_backend: Noneddp_timeout: 1800fsdp: Nonefsdp_config: Nonedeepspeed: Nonedebug: []skip_memory_metrics: Truedo_predict: Falseresume_from_checkpoint: Nonewarmup_ratio: Nonelocal_rank: -1prompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}
</details>
Training Logs
<details><summary>Click to expand</summary>
</details>
Training Time
- Training: 42.3 seconds
Framework Versions
- Python: 3.12.13
- Sentence Transformers: 5.6.0
- Transformers: 5.13.1
- PyTorch: 2.11.0+cu128
- Accelerate: 1.14.0
- Datasets: 4.0.0
- Tokenizers: 0.22.2
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",
}MultipleNegativesRankingLoss
@misc{oord2019representationlearningcontrastivepredictive,
title={Representation Learning with Contrastive Predictive Coding},
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
year={2019},
eprint={1807.03748},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1807.03748},
}<!--
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. -->
