Text Generation
PEFT
Safetensors
Transformers
lora
myanmar
burmese
llm
qwen
instruction-tuning
conversational
Instructions to use amkyawdev/Myanmar-Ghost-Instruct-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use amkyawdev/Myanmar-Ghost-Instruct-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "amkyawdev/Myanmar-Ghost-Instruct-LoRA") - Transformers
How to use amkyawdev/Myanmar-Ghost-Instruct-LoRA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amkyawdev/Myanmar-Ghost-Instruct-LoRA") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("amkyawdev/Myanmar-Ghost-Instruct-LoRA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amkyawdev/Myanmar-Ghost-Instruct-LoRA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amkyawdev/Myanmar-Ghost-Instruct-LoRA" # 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-Instruct-LoRA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/amkyawdev/Myanmar-Ghost-Instruct-LoRA
- SGLang
How to use amkyawdev/Myanmar-Ghost-Instruct-LoRA 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-Instruct-LoRA" \ --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-Instruct-LoRA", "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-Instruct-LoRA" \ --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-Instruct-LoRA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use amkyawdev/Myanmar-Ghost-Instruct-LoRA with Docker Model Runner:
docker model run hf.co/amkyawdev/Myanmar-Ghost-Instruct-LoRA
Commit History
-
docs: Complete Model Card with Training Details, LoRA Config, and Usage Guide
openhands +1: openhands- Add complete Model Card with Myanmar language support - Include LoRA hyperparameters (rank=16, alpha=32, dropout=0.05) - Document training details (200 steps, batch size, learning rate) - Add training progress (loss values from 12.01 to 1.91) - Specify training data sources (Myanmar V3 Clean, AMK Coder V3) - Add technical specifications (tokenizer, model max length) - Include bias, risks, and limitations section - Add evaluation status and recommendations - Add merge and deployment instructions - Include related models and contact information - Add Apache 2.0 license Co-authored-by: openhands <openhands@all-hands.dev>472c41f
-
Upload folder using huggingface_hub
Verified signature49cbdd2 -
initial commit
Verified signature1ecc529