Benchmark: sakthai-bench-v2 · 500 samples · run 2026-08-01
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "Nanthasit/sakthai-plus-1.5b"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
6
7messages = [
8 {"role": "system", "content": "You are a helpful assistant with tool-calling capabilities."},
9 {"role": "user", "content": "What's the weather in Bangkok?"}
10]
11inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt")
12outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.3, do_sample=True)
13print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Sibling rows are maintained for reference and kept in sync with live HF download counts during card audits.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4model_id = "Nanthasit/sakthai-plus-1.5b"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.float16)
7
8messages = [
9 {"role": "system", "content": "You are a helpful assistant with tool-calling capabilities. Use the available tools when asked."},
10 {"role": "user", "content": "Send an email to Beer with the subject 'Status update' and body 'The model is running well.'"}
11]
12
13inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
14outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.3, top_p=0.9)
15print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model also ships as GGUF in the SakThai family. Example inference with the GGUF build:
1llama-cli -m sakthai-plus-1.5b.Q4_K_M.gguf \
2 -p "[INST] Send an email to Beer with the subject 'Status update' and body 'The model is running well.' [/INST]" \
3 --temp 0.3 -n 256 --top-p 0.9
Verified scores are reproducible across runs. Unverified rows should be treated as indicative until multi-trial replication is completed.
1@misc{sakthai-plus-1.5b,
2 title = {SakThai Plus 1.5B},
3 author = {Nanthasit},
4 year = {2026},
5 url = {https://huggingface.co/Nanthasit/sakthai-plus-1.5b}
6}