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
Upload .eval_results/benchmark-20260731_043634.yaml with huggingface_hub
Browse files
.eval_results/benchmark-20260731_043634.yaml
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model: Nanthasit/sakthai-plus-1.5b
|
| 2 |
+
benchmark_ts: '2026-07-31T04:36:34Z'
|
| 3 |
+
backend: llama.cpp-gguf-q4_k_m
|
| 4 |
+
quantization: q4_k_m
|
| 5 |
+
prompt_type: tool_calling_send_email
|
| 6 |
+
prompt_length_chars: 1290
|
| 7 |
+
prompt: '<|im_start|>system
|
| 8 |
+
|
| 9 |
+
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# Tools
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
Yo...'
|
| 16 |
+
trials: 3
|
| 17 |
+
total_time_s: 47.56
|
| 18 |
+
input_tokens: 308
|
| 19 |
+
avg_generation_tps: 20.7
|
| 20 |
+
has_tool_call_any: true
|
| 21 |
+
has_tool_call_all: true
|
| 22 |
+
has_valid_json_any: true
|
| 23 |
+
has_valid_json_all: true
|
| 24 |
+
has_correct_answer_any: true
|
| 25 |
+
has_correct_answer_all: true
|
| 26 |
+
trials_detail:
|
| 27 |
+
- seed: 7
|
| 28 |
+
output_tokens: 63
|
| 29 |
+
output_length: 231
|
| 30 |
+
generation_tps: 20.9
|
| 31 |
+
prompt_tps: 67.0
|
| 32 |
+
has_tool_call: true
|
| 33 |
+
has_valid_json: true
|
| 34 |
+
has_correct_answer: true
|
| 35 |
+
tool_name: send_email
|
| 36 |
+
tool_args:
|
| 37 |
+
to: Beer@Nanthasit.com
|
| 38 |
+
subject: Plus 1.5B status
|
| 39 |
+
body: Hi Beer, I wanted to check the benchmark results for the SakThai Plus model.
|
| 40 |
+
Thanks!
|
| 41 |
+
response_preview: '<tool_call>
|
| 42 |
+
|
| 43 |
+
{"name": "send_email", "arguments": "{\"to\": \"Beer@Nanthasit.com\", \"subject\":
|
| 44 |
+
\"Plus 1.5B status\", \"body\": \"Hi Beer, I wanted to check the benchmark results
|
| 45 |
+
for the SakThai Plus m'
|
| 46 |
+
- seed: 42
|
| 47 |
+
output_tokens: 65
|
| 48 |
+
output_length: 243
|
| 49 |
+
generation_tps: 20.8
|
| 50 |
+
prompt_tps: 71.0
|
| 51 |
+
has_tool_call: true
|
| 52 |
+
has_valid_json: true
|
| 53 |
+
has_correct_answer: true
|
| 54 |
+
tool_name: send_email
|
| 55 |
+
tool_args:
|
| 56 |
+
to: Beer@Nanthasit.com
|
| 57 |
+
subject: Plus 1.5B status
|
| 58 |
+
body: Hi Beer, I wanted to check the results for the SakThai Plus model. Everything
|
| 59 |
+
looks good so far.
|
| 60 |
+
response_preview: '<tool_call>
|
| 61 |
+
|
| 62 |
+
{"name": "send_email", "arguments": "{\"to\": \"Beer@Nanthasit.com\", \"subject\":
|
| 63 |
+
\"Plus 1.5B status\", \"body\": \"Hi Beer, I wanted to check the results for the
|
| 64 |
+
SakThai Plus model. Ever'
|
| 65 |
+
- seed: 1337
|
| 66 |
+
output_tokens: 66
|
| 67 |
+
output_length: 253
|
| 68 |
+
generation_tps: 20.4
|
| 69 |
+
prompt_tps: 70.5
|
| 70 |
+
has_tool_call: true
|
| 71 |
+
has_valid_json: true
|
| 72 |
+
has_correct_answer: true
|
| 73 |
+
tool_name: send_email
|
| 74 |
+
tool_args:
|
| 75 |
+
to: Beer@Nanthasit.com
|
| 76 |
+
subject: Plus 1.5B status
|
| 77 |
+
body: Hi Beer, I wanted to check the benchmark results for the SakThai Plus model.
|
| 78 |
+
Everything looks good so far.
|
| 79 |
+
response_preview: '<tool_call>
|
| 80 |
+
|
| 81 |
+
{"name": "send_email", "arguments": "{\"to\": \"Beer@Nanthasit.com\", \"subject\":
|
| 82 |
+
\"Plus 1.5B status\", \"body\": \"Hi Beer, I wanted to check the benchmark results
|
| 83 |
+
for the SakThai Plus m'
|
| 84 |
+
device: cpu
|
| 85 |
+
threads: 2
|
| 86 |
+
router_probe_status: 400
|
| 87 |
+
router_probe_error: Model not supported by provider hf-inference
|