Downloads · 30 days
18
8% of all-time downloads
URajinda/Qwen2.5-MM-1.5B-Base
Qwen2.5-MM-1.5B-Base is a text generation model from URajinda. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
မြန်မာစာအတွက် ပြုပြင်ပြီး Qwen2.5-1.5B Base Model
Downloads · 30 days
18
8% of all-time downloads
All-time downloads
222
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 99%
From the Hugging Face model README
မြန်မာစာအတွက် ပြုပြင်ပြီး Qwen2.5-1.5B Base Model
This is a Myanmar language adapted version of Qwen2.5-1.5B. The model has been extended with Myanmar vocabulary for better tokenization efficiency and language understanding. Qwen2.5-MM-1.5B-Base is a Myanmar-centric base language model built on top of the Qwen 2.5 1.5B architecture. This model is a milestone in the "ShweYon" project, focusing on improving the efficiency of Myanmar script processing through a custom tokenizer.
Don't just fine-tune. Redefine your tokenizer for language efficiency. A small, dense vocabulary (500 tokens) can be 4x faster and more stable than generic ones.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# ၁။ Device ကို အရင်သတ်မှတ်မယ် (GPU ရှိရင် cuda၊ မရှိရင် cpu)
device = "cuda" if torch.cuda.is_available() else "cpu"
model_name = "URajinda/Qwen2.5-MM-1.5B-Base"
# ၂။ Model ကို load လုပ်ပြီး GPU ဆီ ပို့မယ် (.to(device) ထည့်လိုက်တာပါ)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16).to(device)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# ၃။ စာရိုက်မယ်
prompt = "မြန်မာနိုင်ငံတွင်"
# ၄။ Input တွေကိုလည်း GPU ဆီ ပို့မယ် (.to(device) ထည့်လိုက်တာပါ)
inputs = tokenizer(prompt, return_tensors="pt").to(device)
# ၅။ အဖြေထုတ်မယ်
outputs = model.generate(
**inputs,
max_new_tokens=100,
temperature=0.7,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))