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", dtype="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
Add setup.py
Browse files
setup.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from setuptools import setup, find_packages
|
| 2 |
+
|
| 3 |
+
with open("README.md", "r", encoding="utf-8") as fh:
|
| 4 |
+
long_description = fh.read()
|
| 5 |
+
|
| 6 |
+
setup(
|
| 7 |
+
name="myanmar-ghost",
|
| 8 |
+
version="1.0.0",
|
| 9 |
+
author="Aung Myo Kyaw",
|
| 10 |
+
author_email="amkyawdev@example.com",
|
| 11 |
+
description="Advanced Myanmar Language Understanding Model with Multi-Modal Fusion",
|
| 12 |
+
long_description=long_description,
|
| 13 |
+
long_description_content_type="text/markdown",
|
| 14 |
+
url="https://huggingface.co/amkyawdev/Myanmar-Ghost-Instruct",
|
| 15 |
+
packages=find_packages(where="src"),
|
| 16 |
+
package_dir={"": "src"},
|
| 17 |
+
classifiers=[
|
| 18 |
+
"Development Status :: 4 - Beta",
|
| 19 |
+
"Intended Audience :: Developers",
|
| 20 |
+
"Intended Audience :: Science/Research",
|
| 21 |
+
"License :: OSI Approved :: Apache Software License",
|
| 22 |
+
"Programming Language :: Python :: 3",
|
| 23 |
+
"Programming Language :: Python :: 3.10",
|
| 24 |
+
"Programming Language :: Python :: 3.11",
|
| 25 |
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
| 26 |
+
"Topic :: Text Processing :: Linguistic",
|
| 27 |
+
],
|
| 28 |
+
python_requires=">=3.10",
|
| 29 |
+
install_requires=[
|
| 30 |
+
"torch>=2.0.0",
|
| 31 |
+
"transformers>=4.35.0",
|
| 32 |
+
"datasets>=2.14.0",
|
| 33 |
+
"librosa>=0.10.0",
|
| 34 |
+
],
|
| 35 |
+
extras_require={
|
| 36 |
+
"dev": [
|
| 37 |
+
"pytest>=7.4.0",
|
| 38 |
+
"black>=23.0.0",
|
| 39 |
+
"isort>=5.12.0",
|
| 40 |
+
],
|
| 41 |
+
"xai": [
|
| 42 |
+
"shap>=0.42.0",
|
| 43 |
+
"lime>=0.3.0",
|
| 44 |
+
],
|
| 45 |
+
"federated": [
|
| 46 |
+
"flwr>=1.5.0",
|
| 47 |
+
],
|
| 48 |
+
},
|
| 49 |
+
)
|