amkyawdev/myanmar-ai-training
Viewer β’ Updated β’ 3.04M β’ 44
How to use amkyawdev/myanmar-ai-v3 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="amkyawdev/myanmar-ai-v3")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("amkyawdev/myanmar-ai-v3", dtype="auto")How to use amkyawdev/myanmar-ai-v3 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "amkyawdev/myanmar-ai-v3"
# 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-ai-v3",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/amkyawdev/myanmar-ai-v3
How to use amkyawdev/myanmar-ai-v3 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "amkyawdev/myanmar-ai-v3" \
--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-ai-v3",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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-ai-v3" \
--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-ai-v3",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use amkyawdev/myanmar-ai-v3 with Docker Model Runner:
docker model run hf.co/amkyawdev/myanmar-ai-v3
Myanmar AI V3 αααΊ Qwen2.5-Coder-1.5B base model αα±α«αΊαα½ααΊ LoRA adapter ααΌαα·αΊ fine-tune αα―ααΊαα¬αΈαα±α¬ ααΌααΊαα¬αα¬αα¬α αα¬αΈα‘αα½ααΊ Language Model ααΌα αΊαα«αααΊα
| Field | Details |
|---|---|
| Model Name | amkyawdev/myanmar-ai-v3 |
| Model Type | LoRA Adapter (Fine-tuned) |
| Base Model | Qwen/Qwen2.5-Coder-1.5B-Instruct |
| Language(s) | ααΌααΊαα¬ (Burmese), English |
| License | MIT License |
| Developer | amkyawdev |
| Specification | Value |
|---|---|
| Architecture | Transformer-based Decoder (Causal LM) |
| Base Model Params | 1.5 Billion |
| LoRA Rank (r) | 16 |
| LoRA Alpha | 32 |
| LoRA Dropout | 0.05 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Task Type | Causal Language Modeling |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
MODEL_NAME = "amkyawdev/myanmar-ai-v3"
BASE_MODEL = "Qwen/Qwen2.5-Coder-1.5B-Instruct"
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
BASE_MODEL,
torch_dtype=torch.float16,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, MODEL_NAME)
# Generate
text = "ααΌααΊαα¬ααα―ααΊααΆα‘ααΌα±α¬ααΊαΈ ααΌα±α¬αα«"
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Made with β€οΈ for the Myanmar AI Community
Base model
Qwen/Qwen2.5-1.5B