Text Generation
Transformers
PyTorch
Thai
English
pathumma_audio
feature-extraction
chat
audio
custom_code
Instructions to use nectec/Pathumma-llm-audio-1.0.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nectec/Pathumma-llm-audio-1.0.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nectec/Pathumma-llm-audio-1.0.0", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nectec/Pathumma-llm-audio-1.0.0", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nectec/Pathumma-llm-audio-1.0.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nectec/Pathumma-llm-audio-1.0.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nectec/Pathumma-llm-audio-1.0.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nectec/Pathumma-llm-audio-1.0.0
- SGLang
How to use nectec/Pathumma-llm-audio-1.0.0 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 "nectec/Pathumma-llm-audio-1.0.0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nectec/Pathumma-llm-audio-1.0.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "nectec/Pathumma-llm-audio-1.0.0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nectec/Pathumma-llm-audio-1.0.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nectec/Pathumma-llm-audio-1.0.0 with Docker Model Runner:
docker model run hf.co/nectec/Pathumma-llm-audio-1.0.0
Adding `safetensors` variant of this model
#3
by SFconvertbot - opened
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9414197c329eea59107bdfefe6d4e1aee35f5c128482230753cb6075eda1790
|
| 3 |
+
size 4880915248
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ff1ff8618d46a299423fb3da80a94cbc06c65a40f231eebd014191158ff153f
|
| 3 |
+
size 4936365520
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62ef606c2cdcca4184e40a54b006b49c58d4e97369e114e6cfb260c4a837dd75
|
| 3 |
+
size 4334118328
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa1962092f8c8fc573a8b83f6075354cf65acc84e7c81ac55d026c14d00262f2
|
| 3 |
+
size 2596662230
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|