Run this model with HF Jobs

Run freococo/MyanmarSongWriter on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/freococo/MyanmarSongWriter. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/freococo/MyanmarSongWriter on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/freococo/MyanmarSongWriter. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/freococo/MyanmarSongWriter. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

MyanmarSongWriter (freococo/MyanmarSongWriter)

MyanmarSongWriter is a specialized 150.44M-parameter native Myanmar (Burmese) songwriting language model trained from scratch on a clean Burmese Llama architecture (LlamaForCausalLM, 301 MB BF16) with a 100% lossless 32k Burmese BPE tokenizer that natively preserves \n lyric line breaks and \n\n stanza structure.

It composes original Burmese songs with structured [Verse] / [Chorus] / [Bridge] / [Outro] sections, Burmese end-rhyme (ကာရန်), natural syllable cadence (စည်းဝါး, 7.4 syllables/line), co-writing continuation, artist-style steering (တယောလေး စတိုင်), and explicit [Syllable Blueprint] → [Raw] meter planning.

Audio Demos (songs_sample/ — 100% Unedited Random Generations)

Important Note on Audio Quality & Authenticity:

  • Zero Editing: All 3 demos below were generated randomly by MyanmarSongWriter at temperature=0.9 with zero edits to either the generated Burmese lyrics or the resulting audio tracks.
  • Suno AI Free Tier (v6_mini): Because we do not have a Suno AI VIP subscription, all audio tracks were rendered using free credits on Suno's lower-quality v6_mini model. With a Suno AI VIP subscription / flagship music model (or human vocals), you can achieve significantly higher studio-grade production quality from these exact lyrics!

Demo 1 — မိုးစက်တွေကြား (Heartbreak Rainy R&B Ballad + Spontaneous Burmese Rap)

View unedited generated lyrics (Demo 1 — STOP: <|end|>)
[Verse 1]
မင်းရဲ့အမုန်းများကြားမှာ ငါကြေကွဲ
နာကျင်နေရတုန်းပဲ
အလွမ်းတွေရင်ထဲအပြည့်
မိုးစက်လေးများကြား
အဖော်ပြုပေးနေဆဲ
မင်းပေးတဲ့အမှတ်တရ များ
အမှတ်မထင်ပဲ ရင်ထဲသိမ်းထား

အမှတ်တရ များစွာလည်းပြည့်နှက်နေ
မင်းအပြုံးလေးတွေ မြင်တိုင်း လွမ်းတယ်
ဘယ်ဆီရောက်လို့သွားတယ်မသိလည်း
မိုးစက်တွေကြားမှာ တစ်ယောက်တည်းပါပဲ
မဖြေသာအောင် လွမ်းလို့နေ

အချိန်မှန်သတိရလို့နေဆဲ
မင်းရဲ့ အငွေ့အသက်များ
ငါကြားယောင်ဆဲ
တိတ်ဆိတ်တဲ့ညအလယ်

အလွမ်းညတွေရှည်တယ်
ဘယ်အငြိုးတွေကြောင့် ငါငိုနေခဲ့လဲ
ငါနားလည်ပါတယ်
ငါ့ရင်ဘတ်မှာ မျက်ရည်များနဲ့
ဒဏ်ရာများလည်းပြန့်ကျဲနေတုန်းပဲ
မင်းပေးခဲ့တဲ့ အမှတ်တရများစွာ
ငါမြင်ဆဲပဲ

အတိတ်မေ့သွားတဲ့နေ့စွဲများ
နင်ကမေ့ချင်ရက် မေ့ပါစေ
ဒီအလွမ်းညတွေထဲ
အိုး ဟိုး ဟို

(Rap) နင်ပြန်လာမယ်ဆိုတာသိတော့
မျှော်လင့်ချက်တွေမဲ့ကာ ဝမ်းနည်းလာတယ်
အိပ်မပျော်တဲ့ညပေါင်းကလည်းမနည်းတော့ဘူး
နင်ပြန်လာမယ်လို့ ငါထင်နေတယ်
အိပ်မက်ဆိုးတွေနဲ့ ငါ့ရင်ထဲ
တစ်ယောက်တည်းကြိတ်ပြီး ငိုနေမိတယ်

အရင်အတိုင်းရှိနေဆဲပါ
အခုတော့လည်း ဒီ မိုးစက်တွေအောက်မှာ
နင်ပြန်လာမယ်ပြောတိုင်း
မျှော်နေရင်းငါမျှော်နေတာ ကြာပြီ
အရင်လို နင့်အနားမရှိနိုင်တော့
မိုးစက်ကြားမှာ တစ်ယောက်တည်းပါပဲ
မဖြေသာအောင် လွမ်းလို့နေ

အချိန်မှန် သတိရလို့နေဆဲ
မင်းရဲ့ အငွေ့အသက်များ
ငါကြားယောင်ဆဲ
တိတ်ဆိတ်တဲ့ညအလယ်

အလွမ်းညတွေ ရှည်တယ်
ဘယ်အငြိုးတွေကြောင့် ငါငိုနေခဲ့လဲ
ငါနားလည်ပါတယ်
ငါ့ရင်ဘတ်မှာ မျက်ရည်များနဲ့
ဒဏ်ရာများလည်းပြန့်ကျဲနေတုန်းပဲ
မင်းပေးခဲ့တဲ့ အမှတ်တရများစွာ
ငါမြင်ဆဲပဲ

အတိတ်မေ့သွားတဲ့နေ့စွဲများ
နင်ကမေ့ချင်ရက် မေ့ပါစေ
ဒီအလွမ်းညတွေထဲ
အိုး ဟိုး ဟို

(Rap) နင်ပြန်လာမယ်ဆိုတာသိတော့
မျှော်လင့်ချက်တွေမဲ့ကာ ဝမ်းနည်းလာတယ်
အိပ်မပျော်တဲ့ညပေါင်းကလည်းမနည်းတော့ဘူး
နင်ပြန်လာမယ်လို့ ငါထင်နေတယ်
အိပ်မက်ဆိုးတွေနဲ့ ငါ့ရင်ထဲ
တစ်ယောက်တည်း ကြိတ်ပြီး ငိုနေမိတယ်

(Rap) နင်ပြန်လာမယ်ဆိုတာသိတော့
မျှော်လင့်ချက်တွေမဲ့ကာ ဝမ်းနည်းလာတယ်
အိပ်မပျော်တဲ့ ညပေါင်းကလည်း မနည်းတော့ဘူး
နင်ပြန်လာမယ်လို့ ငါထင်နေတယ်
အိပ်မက်ဆိုးတွေနဲ့ ငါ့ရင်ထဲ
တစ်ယောက်တည်းကြိတ်ပြီး ငိုနေမိတယ်

Demo 2 — ကမ်းခြေညရဲ့ ပင်လယ်ပြင် (Romantic Sunset Duet Pop)

View unedited generated lyrics (Demo 2 — STOP: <|end|>)
[Verse 1]
ပင်လယ်ကြီးခြားလို့နေလည်း
ရင်ခုန်သံတွေအမြဲနီးနေမယ်
အတူလက်တွဲကာသွားမယ် ချစ်ခရီးလမ်းထဲ
အကြင်နာတွေနဲ့
ကမ်းစပ်နေလို အတူဆောက်မယ်
အကြင်နာတွေနဲ့
နှစ်ယောက်တည်းသွားစို့အချစ်အိမ်ထဲ
အို အို အို သွားစို့

[Chorus]
ရေလှိုင်းလေးတွေလာရိုက်ခတ်လို့
ကြည်နူးလို့ ရင်ခုန်တယ်
ကမ္ဘာမြေပေါ်သူလေအေးချမ်းဖို့
မေတ္တာတရားခိုင်မြဲရန်
အပြုံးတွေဖလှယ်ရင်း
တို့တွေသွားဖို့ကွယ်
ကမ်းခြေညရဲ့
ပင်လယ်ပြင်

[Verse 2]
တို့နှစ်ယောက်ရဲ့ရင်ခုန်သံလေး
ကမ်းလင့်လို့ရယ် လှမ်းခဲ့ကြမယ်
ကြင်နာတဲ့လက်များနဲ့
တို့တွေသွားကြစို့
ရင်ခုန်စေတဲ့အချစ်ရယ်
အနမ်းတွေလည်းပေးပါ့မယ်
အနမ်းတွေလည်းပေးမယ်
တို့ရဲ့လက်ကိုကွယ်

[Chorus]
ရေလှိုင်းလေးတွေ လာရိုက်ခတ်လို့
ကြည်နူးလို့ ရင်ခုန်တယ်
ကမ္ဘာမြေပေါ်သူလေအေးချမ်းဖို့
မေတ္တာတရားခိုင်မြဲရန်
အပြုံးတွေဖလှယ်ရင်း
တို့တွေ သွားဖို့ကွယ်
ကမ်းခြေညရဲ့
ပင်လယ်ပြင်

[Outro]
တို့နှစ်ယောက်ရဲ့ရင်ခုန်သံလေး
ကမ်းလင့်လို့ရယ် လှမ်းခဲ့ ကြ မယ်

Demo 3 — ဒီမုန်တိုင်းထဲ (Life & Resilience Power Ballad — တယောလေး စတိုင်)

View unedited generated lyrics (Demo 3 — STOP: <|end|>)
[Verse 1]
မမျှော်လင့်ဘဲ ဖြစ်ခဲ့ဖူးတဲ့
ဒီမုန်တိုင်းကြီးထဲက ငါရဲ့
ကြေကွဲစရာ အဖြစ်ဆိုးတွေနဲ့
နာကျင်စွာ ရှုံးနိမ့်ကာ
ငါကိုယ်တိုင်ပဲ
လူဆိုတာ အမှားနဲ့မကင်း

[Chorus]
တစ်ခါတစ်ရံတော့ သိတတ်စမြဲ
အချိန်တန်ပြီ
ငါကိုယ်တိုင်ပဲ မှားခဲ့လေသလား
ဆင်ခြင်ဉာဏ်တွေ ကုန်ဆုံးခဲ့သလား
ကံကြမ္မာရဲ့ လှည့်ကွက်ထဲ
ရုန်းထွက် မရနိုင်ဘူးကွယ်
ဒဏ်ရာတွေကို ပွေ့ဖက်ရင်းနဲ့ပဲ
အကြိမ်ကြိမ် ငါ ဖြေသိမ့်ခဲ့ရ

[Verse 2]
ဒီမုန်တိုင်းထဲ
အလူးအလဲ လဲကျဆဲ
ဘယ်ကမ်းစပ်မှာ
ဘယ်လိုမှ မတွေ့နိုင်လို့
ဟိုတစ်နေ့က တွေ့တဲ့
မိန်းကလေး တစ်ယောက်လိုပဲ

[Verse 3]
လေထဲမှာ လွင့်ပါသွား သလိုပဲ
ငါလေ ရူးမတတ် ခံစားရဖူးတယ်

License & Research Use Disclaimer (Strictly Non-Commercial)

  • License: Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0).
  • Research & Fair-Use Scope: Released strictly for non-commercial academic research, low-resource Myanmar NLP experimentation, and educational exploration of poetic rhythm and songwriting structure.
  • Originality & Copyright Responsibility: The model weights do not store or redistribute raw copyrighted songs (verified below at 84.10%–96.55% 16-char n-gram novelty with 0 memorized verses/choruses across all 41,323 training songs). Users may not use this model for commercial exploitation and remain solely responsible for reviewing generated outputs before any public use.

Model Architecture

  • Parameters: 150,436,608 (301 MB BF16 safetensors, tied input/output embeddings)
  • Backbone: 20-layer Llama (hidden_size=768, intermediate_size=2048 SwiGLU, 12 Q heads / 4 KV heads GQA 3:1, context_length=2048, rope_theta=50000.0, RMSNorm)
  • Tokenizer: Custom lossless 32k Burmese SentencePiece BPE (identity normalization, add_dummy_prefix=False, byte_fallback=True, split_digits=True, 0% newline loss)
  • Chat Tokens: <|system|> (4), <|user|> (5), <|assistant|> (6), <|end|> (7)

3-Stage Specialist Training Pipeline

  1. Stage 1 — Lyrics Continued Pretraining (CPT): 41,143 deduplicated pure-Burmese line-broken songs (MinHash LSH deduplicated from 223k raw tracks) + 15% clean Burmese prose replay (4D cross-document attention isolation, 0.00e+00 leak).
  2. Stage 2 — 7-Workflow Controllable Songwriter SFT: 53,349 instruction examples covering Mood/Structure, Title+Imagery, Co-Write Continuation, [Chorus] writing, [Verse 2]/[Bridge] completion, Free-form poetic lyrics, and 6,588 human-audited mmdt-tokenizer [Syllable Blueprint] → [Raw] songs.
  3. Stage 3 — Gold Quality & Style Annealing: Curated 45% hand-curated gold Myanmar songs / 55% spotless diverse replay at gentle LR (8e-6 → 1e-6).

Scientific Evaluation & 100% Anti-Plagiarism Proof

4-Way Held-Out Unseen Benchmark

Checkpoint 500 Unseen Test Songs (BPB / PPL) 40 Unseen VIP Gold Songs (Loss / PPL) 567 Unseen SFT Val (Loss / PPL)
Base (Llama4D-150M) 0.82840 (202.06) 3.5448 (34.63) 4.4394 (84.73)
Stage-1 Lyrics CPT 0.29453 (6.60) 1.7892 (5.98) 2.1619 (8.69)
Stage-2 Songwriter SFT 0.30137 (6.90) 1.2189 (3.38) 1.5078 (4.52)
Stage-3 Gold v2 (MyanmarSongWriter) 0.30234 (6.94, -63.5%) 1.0665 (2.91, -69.9%) 1.5192 (4.57)

Originality / Anti-Plagiarism Audit (24 Unseen Songs Scanned vs All 41,323 Training Songs)

  • Mean 16-Character N-Gram Novelty: 84.10% (Median 85.65%; Blueprint mode 91.7%–96.6%)
  • Longest Contiguous Match Across All 41,323 Songs: Median 20 chars / Max 36 chars (short common Burmese idioms only — 0 memorized verses or choruses)
  • [Verse]/[Chorus] Compliance: 100.0% (19/19) | Repeating [Chorus] Symmetry: 100.0% (19/19)
  • Avg Syllables / Line: 7.4 (matches human Burmese song average 7.4) | Burmese End-Rhyme Rate: 25.7%
  • Zawgyi Contamination: 0.0% (0/24)

Quick Start

Option A — Interactive Studio (MyanmarSongWriter_studio.py)

Download and run MyanmarSongWriter_studio.py directly from this repository on Mac (Apple Silicon / CPU) or Google Colab for an interactive 7-mode Myanmar songwriting studio!

Option B — Python transformers Quickstart

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "freococo/MyanmarSongWriter"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")

messages = [
    {"role": "system", "content": "သင်သည် မြန်မာသီချင်းစာသားများကို ကာရန်၊ ရစ်သမ်၊ ခံစားချက်နှင့် အပိုဒ်ဖွဲ့စည်းပုံ ညီညွတ်စွာ ရေးဖွဲ့နိုင်သော ကျွမ်းကျင်မြန်မာတေးရေးဆရာ ဖြစ်သည်။"},
    {"role": "user", "content": '"ကြယ်ကြွေည" ဆိုတဲ့ ခေါင်းစဉ်နဲ့ လမင်း၊ ကြယ်၊ ကမ်းခြေ၊ လေပြေ တို့ကို ထည့်သွင်းပြီး အလွမ်း၊ အချစ် မြန်မာသီချင်းတစ်ပုဒ် ရေးဖွဲ့ပေးပါ။'},
]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(prompt, return_tensors="pt", add_special_tokens=False).to(model.device)

out = model.generate(
    **inputs,
    max_new_tokens=600,
    do_sample=True,
    temperature=0.76,
    top_p=0.92,
    repetition_penalty=1.12,
    eos_token_id=7,
    pad_token_id=3,
)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Tip: Recommended decoding temperature is 0.72–0.78 (or 0.85–0.90 for extra creative spontaneity like the demos above). Never leave a trailing space " " at the end of raw prompts.


Credits & Acknowledgements

This model, its 3-stage training pipeline, forensic data curation, anti-plagiarism evaluation, and interactive ZeroGPU Studio were created in collaboration with Google Gemini 4 NEON acting as Chief AI Technologist & Research Partner.

Downloads last month
523
Safetensors
Model size
0.2B params
Tensor type
BF16
¡
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train freococo/MyanmarSongWriter

Space using freococo/MyanmarSongWriter 1