Downloads · 30 days
0
k1ngtai/shan-gemma4-E2B-it-lora
shan-gemma4-E2B-it-lora is a text generation model from k1ngtai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
A Shan/Tai language learning model fine-tuned from Gemma 4 for educational use, translation, grammar explanation, and community language preservation. --- Shan Gemma 4 E2B LoRA is an instruction-tuned Shan language mo…
Downloads · 30 days
0
Access
Public
Updated Jun 14, 2026
Repo size
62.1 MB
Likes
0
Public
Click a slice to open those files.
.json32.2 MB · 52%
From the Hugging Face model README
A Shan/Tai language learning model fine-tuned from Gemma 4 for educational use, translation, grammar explanation, and community language preservation.
Shan Gemma 4 E2B LoRA is an instruction-tuned Shan language model built upon Google's Gemma 4 architecture.
The model specializes in:
| Item | Details |
|---|---|
| Base Model | unsloth/gemma-4-E2B-it |
| Fine-tuning Method | QLoRA |
| Framework | Unsloth |
| Task | Shan Language Learning Assistant |
| Languages | Shan, Burmese, English |
| Model Type | Causal Language Model |
| Adapter Type | LoRA |
| Intended Use | Education |
This model is designed for:
The model was trained on a custom Shan educational instruction dataset.
| Category | Description |
|---|---|
| Translation | English/Burmese → Shan |
| Conversation | Daily Shan dialogues |
| Grammar | Beginner grammar explanations |
| Vocabulary | Word definitions and examples |
| QA | Student learning questions |
| Culture | Shan/Tai cultural knowledge |
| Reading | Reading comprehension |
| Writing | Sentence correction |
| Metric | Value |
|---|---|
| Training Examples | 5,000+ |
| Format | JSONL Instruction Tuning |
| Main Language | Shan |
| Secondary Languages | English, Burmese |
| Domain | Education |
| Parameter | Value |
|---|---|
| Training Method | QLoRA |
| LoRA Rank | 8 |
| LoRA Alpha | 8 |
| Epochs | 3 |
| Learning Rate | 2e-4 |
| Batch Size | 1 |
| Gradient Accumulation | 8 |
| Sequence Length | 1024 |
| Optimizer | AdamW 8-bit |
| Hardware | Google Colab GPU |
| step | loss |
|---|---|
| 1780 | 0.00483081 |
| 1790 | 0.00486919 |
| 1800 | 0.00501868 |
| 1810 | 0.0049827 |
| 1820 | 0.00476253 |
| 1830 | 0.00484299 |
| 1840 | 0.00487435 |
| 1850 | 0.00504063 |
| 1860 | 0.00477697 |
| 1870 | 0.00485617 |

User
Explain the Shan word for water.
Assistant
ၼမ်ႉ ၼႆႉ မၢႆထိုင် water။
တူဝ်ယၢင်ႇ - ၵဝ်ၶႃႈ ၶႂ်ႈၵိၼ်ၼမ်ႉ။
User
Translate to Shan:
I want to learn Shan language.
Assistant
ၵဝ်ၶႃႈ ၶႂ်ႈႁဵၼ်း ၽႃႇသႃႇတႆး။
User
Explain what a noun is.
Assistant
ၼၢမ်ႇၼႆႉ ပဵၼ်ၶေႃႈၵႂၢမ်းဢၼ်ၸီႉၸူး
ၵူၼ်း၊ သတ်း၊ တီႈယူႇ ဢမ်ႇၼၼ်
သင်ႇၶွင်ႇတၢင်းမူတ်း။
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="k1ngtai/shan-gemma4-E2B-it-lora",
max_seq_length=1024,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
prompt = """<start_of_turn>user
You are a Shan language learning assistant.
Instruction: Teach Shan vocabulary.
Input: Give me 5 beginner Shan words about family.
<end_of_turn>
<start_of_turn>model
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens=300,
temperature=0.7,
top_p=0.9,
do_sample=True,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is intended for peaceful educational use only.
It is focused on Shan/Tai language learning and community education.
@misc{shan-gemma4-e2b-lora,
title={Shan Gemma 4 E2B LoRA},
author={K1ngtai},
year={2026},
publisher={Hugging Face}
}