amkyawdev commited on
Commit
9574bbb
·
verified ·
1 Parent(s): fdb7961

Update to LLM model - text-generation

Browse files
Files changed (1) hide show
  1. README.md +39 -59
README.md CHANGED
@@ -1,79 +1,59 @@
1
  ---
2
  language:
3
- - my
4
- - en
5
- license: apache-2.0
6
- library_name: transformers
7
- pipeline_tag: text-classification
8
- tags:
9
- - myanmar
10
- - burmese
11
- - nlp
12
- - text-classification
13
- - sentiment-analysis
14
- - news-classification
15
- - xlm-roberta
16
- ---
17
-
18
- # Myanmar Ghost 🐉
19
-
20
- Advanced Myanmar Language Understanding Model
21
-
22
- ## 🎯 Overview
23
 
24
- Myanmar Ghost is a transformer-based language model designed for Myanmar (Burmese) language understanding tasks.
25
 
26
- ### Features
27
 
28
- - **Multi-task Learning**: Supports classification, translation, and NLI
29
- - **Pre-trained on Myanmar corpus**: 10.6M Myanmar text samples
30
- - **Fine-tuned datasets**: News classification, translation, instruction tuning
31
- - **Multi-modal Ready**: Audio + text fusion for sentiment analysis
32
 
33
- ## 📊 Training Data
 
 
34
 
35
- | Dataset | Size | Purpose |
36
- |---------|------|---------|
37
- | Myanmar Written Corpus | 10.6M | Pre-training |
38
- | Myanmar News Classification | 29K | Fine-tuning |
39
- | Myanmar-English Translation | 22K | Translation |
40
- | Instruction Tuning | 91K | Chat/QA |
41
-
42
- ## 🚀 Quick Start
43
 
44
  ```python
45
- from transformers import AutoTokenizer, AutoModelForSequenceClassification
 
 
 
46
 
47
- # Load model
48
- model_name = "amkyawdev/myanmar-ghost"
49
- tokenizer = AutoTokenizer.from_pretrained(model_name)
50
- model = AutoModelForSequenceClassification.from_pretrained(model_name)
51
 
52
- # Predict
53
- text = "မြန်မာစာသတင်း"
54
- inputs = tokenizer(text, return_tensors="pt")
55
- outputs = model(**inputs)
56
- prediction = outputs.logits.argmax(dim=-1)
57
  ```
58
 
59
- ## 📁 Project Structure
60
 
61
- ```
62
- Myanmar-Ghost/
63
- ├── configs/ # Model & training configs
64
- ├── data/ # Datasets
65
- ├── src/
66
- │ ├── models/ # Model implementations
67
- │ ├── data_processing/
68
- │ ├── training/ # Training pipeline
69
- │ └── evaluation/ # Metrics & benchmarking
70
- └── docs/ # Documentation
71
- ```
72
 
73
- ## 📜 License
74
 
75
  Apache 2.0
76
 
77
- ## 👤 Author
78
 
79
  Aung Myo Kyaw (amkyawdev)
 
1
  ---
2
  language:
3
+ - my
4
+ - en
5
+ license: apache-2.0
6
+ library_name: transformers
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - myanmar
10
+ - burmese
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
+ - myanmar-v3-clean: 877K
49
+ - burme-coder-max: 1M
50
+ - mm-llm-coder-agent: 4M
51
+ - alpaca-myanmar: 91K
 
 
 
 
 
 
 
52
 
53
+ ## License
54
 
55
  Apache 2.0
56
 
57
+ ## Author
58
 
59
  Aung Myo Kyaw (amkyawdev)