amkyawdev commited on
Commit
67349c2
·
verified ·
1 Parent(s): ba01b1a

Fix YAML metadata - base_model, datasets, proper tags

Browse files
Files changed (1) hide show
  1. README.md +58 -26
README.md CHANGED
@@ -11,51 +11,83 @@ tags:
11
  - llm
12
  - chat
13
  - instruction-following
 
 
 
 
 
 
 
 
14
  ---
15
 
16
- # Myanmar Ghost
17
 
18
  **Advanced Myanmar Language Model (LLM)**
19
 
20
- ## Overview
21
 
22
- Myanmar Ghost is a Large Language Model for Myanmar language instruction following and conversation.
23
 
24
- - Based on: MiniMax-M2.7 Architecture
25
- - Fine-tuned with: QLoRA on Myanmar datasets
26
- - Supports: Chat, Code, Translation, QA
 
 
 
27
 
28
- ## Quick Start
29
 
30
- ```python
31
- from transformers import AutoTokenizer, AutoModelForCausalLM
 
 
 
 
 
 
32
 
33
- model = AutoModelForCausalLM.from_pretrained("amkyawdev/myanmar-ghost", load_in_4bit=True)
34
- tokenizer = AutoTokenizer.from_pretrained("amkyawdev/myanmar-ghost")
35
 
36
- prompt = "### Instruction:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  မြန်မာစာမေးပွဲအကြောင်း ရှင်းပါ
38
 
39
  ### Response:
40
- "
41
- inputs = tokenizer(prompt, return_tensors="pt")
42
- outputs = model.generate(**inputs, max_new_tokens=256)
43
- print(tokenizer.decode(outputs[0]))
 
44
  ```
45
 
46
- ## Training Data
47
 
48
- | Dataset | Samples |
49
- |---------|---------|
50
- | myanmar-v3-clean | 877K |
51
- | burme-coder-max | 1M |
52
- | mm-llm-coder-agent | 4M |
53
- | alpaca-myanmar | 91K |
 
54
 
55
- ## License
56
 
57
  Apache 2.0
58
 
59
- ## Author
60
 
61
- Aung Myo Kyaw (amkyawdev)
 
11
  - llm
12
  - chat
13
  - instruction-following
14
+ - conversational
15
+ - autoregressive
16
+ base_model: MiniMaxAI/MiniMax-M2.7
17
+ datasets:
18
+ - amkyawdev/myanmar-v3-clean
19
+ - amkyawdev/burme-coder-max
20
+ - amkyawdev/mm-llm-coder-agent-dataset
21
+ - saillab/alpaca-myanmar_burmese-cleaned
22
  ---
23
 
24
+ # 🐉 Myanmar Ghost
25
 
26
  **Advanced Myanmar Language Model (LLM)**
27
 
28
+ Fine-tuned on MiniMax-M2.7 with QLoRA for Myanmar language understanding.
29
 
30
+ ## 💬 Features
31
 
32
+ - 🗣️ **Myanmar Chat** - Natural conversation in Burmese
33
+ - 📝 **Instruction Following** - Follow complex Myanmar instructions
34
+ - 💻 **Code Generation** - Write Myanmar code and documentation
35
+ - 🌐 **Translation** - Myanmar ↔ English
36
+ - 📖 **Summarization** - Summarize Myanmar text
37
+ - ❓ **QA** - Answer questions in Myanmar
38
 
39
+ ## 📊 Training Data
40
 
41
+ | Dataset | Samples |
42
+ |---------|---------|
43
+ | myanmar-v3-clean | 877,706 |
44
+ | burme-coder-max | 1,000,000 |
45
+ | mm-llm-coder-agent | 4,000,020 |
46
+ | alpaca-myanmar | 41,601 |
47
+
48
+ **Total: ~6M instruction samples**
49
 
50
+ ## 🚀 Quick Start
 
51
 
52
+ ```python
53
+ from transformers import AutoTokenizer, AutoModelForCausalLM
54
+ import torch
55
+
56
+ # Load model
57
+ model_name = "amkyawdev/myanmar-ghost"
58
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
59
+ model = AutoModelForCausalLM.from_pretrained(
60
+ model_name,
61
+ load_in_4bit=True,
62
+ device_map="auto"
63
+ )
64
+
65
+ # Generate
66
+ prompt = """### Instruction:
67
  မြန်မာစာမေးပွဲအကြောင်း ရှင်းပါ
68
 
69
  ### Response:
70
+ """
71
+
72
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
73
+ outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
74
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
75
  ```
76
 
77
+ ## 📋 Requirements
78
 
79
+ ```
80
+ torch>=2.0.0
81
+ transformers>=4.40.0
82
+ bitsandbytes>=0.40.0
83
+ peft>=0.4.0
84
+ accelerate>=0.20.0
85
+ ```
86
 
87
+ ## 📜 License
88
 
89
  Apache 2.0
90
 
91
+ ## 👤 Author
92
 
93
+ **Aung Myo Kyaw (amkyawdev)**