Text Generation
Transformers
Burmese
English
myanmar
burmese
llm
chat
instruction-following
conversational
autoregressive
Instructions to use amkyawdev/myanmar-ghost with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amkyawdev/myanmar-ghost with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amkyawdev/myanmar-ghost") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("amkyawdev/myanmar-ghost", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amkyawdev/myanmar-ghost with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amkyawdev/myanmar-ghost" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amkyawdev/myanmar-ghost", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/amkyawdev/myanmar-ghost
- SGLang
How to use amkyawdev/myanmar-ghost with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "amkyawdev/myanmar-ghost" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amkyawdev/myanmar-ghost", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "amkyawdev/myanmar-ghost" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amkyawdev/myanmar-ghost", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use amkyawdev/myanmar-ghost with Docker Model Runner:
docker model run hf.co/amkyawdev/myanmar-ghost
Fix YAML metadata - base_model, datasets, proper tags
Browse files
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 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
-
|
| 25 |
-
-
|
| 26 |
-
-
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
##
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
-
|
| 34 |
-
tokenizer = AutoTokenizer.from_pretrained("amkyawdev/myanmar-ghost")
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
မြန်မာစာမေးပွဲအကြောင်း ရှင်းပါ
|
| 38 |
|
| 39 |
### Response:
|
| 40 |
-
"
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
```
|
| 45 |
|
| 46 |
-
##
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
| 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)**
|