Text Generation
Transformers
Safetensors
English
qwen2
qwen2.5
sakthai
house-of-sak
tool-calling
function-calling
agent
instruct
finetuned
sft
merged
conversational
assistant
cpu-inference
rsLoRA
benchmark
Eval Results
llama-cpp
Eval Results (legacy)
text-generation-inference
Instructions to use Nanthasit/sakthai-plus-1.5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nanthasit/sakthai-plus-1.5b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nanthasit/sakthai-plus-1.5b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Nanthasit/sakthai-plus-1.5b") model = AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-plus-1.5b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Nanthasit/sakthai-plus-1.5b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nanthasit/sakthai-plus-1.5b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nanthasit/sakthai-plus-1.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Nanthasit/sakthai-plus-1.5b
- SGLang
How to use Nanthasit/sakthai-plus-1.5b 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 "Nanthasit/sakthai-plus-1.5b" \ --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": "Nanthasit/sakthai-plus-1.5b", "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 "Nanthasit/sakthai-plus-1.5b" \ --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": "Nanthasit/sakthai-plus-1.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Nanthasit/sakthai-plus-1.5b with Docker Model Runner:
docker model run hf.co/Nanthasit/sakthai-plus-1.5b
Fix dead cross-link: sakthai-combined-v8 (404) -> sakthai-combined-v10 (normalized v7+v8)
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ tags:
|
|
| 20 |
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 21 |
datasets:
|
| 22 |
- Nanthasit/sakthai-combined-v7
|
| 23 |
-
- Nanthasit/sakthai-combined-
|
| 24 |
---
|
| 25 |
|
| 26 |
# SakThai Plus 1.5B — Merged
|
|
@@ -42,7 +42,7 @@ datasets:
|
|
| 42 |
|
| 43 |
## Model Description
|
| 44 |
|
| 45 |
-
SakThai Plus 1.5B is the next-generation tool-calling model in the SakThai family. It uses **rsLoRA** (rank-stabilized LoRA) across **all 7 linear modules** (q, k, v, o, gate, up, down) with reduced dropout (0.05) and expanded training data (v7+v8, 2,962 rows). The result is a merged full-weight checkpoint that delivers improved instruction-following and tool-calling fidelity over the v1 generation.
|
| 46 |
|
| 47 |
**Key improvements over v1:**
|
| 48 |
- rsLoRA instead of standard LoRA — better rank utilization
|
|
@@ -101,7 +101,7 @@ llama-cli -m sakthai-plus-1.5b-Q4_K_M.gguf \
|
|
| 101 |
| **LoRA alpha** | 32 |
|
| 102 |
| **LoRA dropout** | 0.05 |
|
| 103 |
| **Target modules** | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
|
| 104 |
-
| **Training data** | Nanthasit/sakthai-combined-v7 + v8
|
| 105 |
| **Optimizer** | AdamW (8-bit) |
|
| 106 |
| **Learning rate** | 2e-4 |
|
| 107 |
| **Epochs** | 3 |
|
|
|
|
| 20 |
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 21 |
datasets:
|
| 22 |
- Nanthasit/sakthai-combined-v7
|
| 23 |
+
- Nanthasit/sakthai-combined-v10
|
| 24 |
---
|
| 25 |
|
| 26 |
# SakThai Plus 1.5B — Merged
|
|
|
|
| 42 |
|
| 43 |
## Model Description
|
| 44 |
|
| 45 |
+
SakThai Plus 1.5B is the next-generation tool-calling model in the SakThai family. It uses **rsLoRA** (rank-stabilized LoRA) across **all 7 linear modules** (q, k, v, o, gate, up, down) with reduced dropout (0.05) and expanded training data (v7+v8, 2,962 rows, published as [sakthai-combined-v10](https://huggingface.co/datasets/Nanthasit/sakthai-combined-v10)). The result is a merged full-weight checkpoint that delivers improved instruction-following and tool-calling fidelity over the v1 generation.
|
| 46 |
|
| 47 |
**Key improvements over v1:**
|
| 48 |
- rsLoRA instead of standard LoRA — better rank utilization
|
|
|
|
| 101 |
| **LoRA alpha** | 32 |
|
| 102 |
| **LoRA dropout** | 0.05 |
|
| 103 |
| **Target modules** | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
|
| 104 |
+
| **Training data** | [sakthai-combined-v10](https://huggingface.co/datasets/Nanthasit/sakthai-combined-v10) (v7 + v8, 2,962 rows) |
|
| 105 |
| **Optimizer** | AdamW (8-bit) |
|
| 106 |
| **Learning rate** | 2e-4 |
|
| 107 |
| **Epochs** | 3 |
|