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
Update to LLM model - text-generation
Browse files
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-
|
| 8 |
-
tags:
|
| 9 |
-
- myanmar
|
| 10 |
-
- burmese
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
# Myanmar Ghost 🐉
|
| 19 |
-
|
| 20 |
-
Advanced Myanmar Language Understanding Model
|
| 21 |
-
|
| 22 |
-
## 🎯 Overview
|
| 23 |
|
| 24 |
-
Myanmar
|
| 25 |
|
| 26 |
-
##
|
| 27 |
|
| 28 |
-
|
| 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 |
-
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
| 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,
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 50 |
-
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 51 |
|
| 52 |
-
#
|
| 53 |
-
|
| 54 |
-
inputs = tokenizer(
|
| 55 |
-
outputs = model(**inputs)
|
| 56 |
-
|
| 57 |
```
|
| 58 |
|
| 59 |
-
##
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
├── src/
|
| 66 |
-
│ ├── models/ # Model implementations
|
| 67 |
-
│ ├── data_processing/
|
| 68 |
-
│ ├── training/ # Training pipeline
|
| 69 |
-
│ └── evaluation/ # Metrics & benchmarking
|
| 70 |
-
└── docs/ # Documentation
|
| 71 |
-
```
|
| 72 |
|
| 73 |
-
##
|
| 74 |
|
| 75 |
Apache 2.0
|
| 76 |
|
| 77 |
-
##
|
| 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)
|