Downloads · 30 days
130
8% of all-time downloads
Nanthasit/sakthai-context-7b-merged
sakthai-context-7b-merged is a text generation model from Nanthasit. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Benchmark: sakthai-bench-v2 · 500 samples · run 2026-08-01
Downloads · 30 days
130
8% of all-time downloads
All-time downloads
1.6K
Public
Parameters
7.6B
23.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 65%
From the Hugging Face model README
Benchmark: sakthai-bench-v2 · 500 samples · run 2026-08-01
Overall (strict): 38.78 · Selection: 38.78 · Arguments: 45.53
| Category | Count | Selection | Arguments | Strict |
|---|---|---|---|---|
| irrelevance_no_tools | 50 | 100.00 | 100.00 | 100.00 |
| irrelevance_tools | 150 | 79.33 | 100.00 | 79.33 |
| parallel | 137 | 0.00 | 0.00 | 0.00 |
| simple | 122 | 7.38 | 7.38 | 7.38 |
| held_out | - | 10.71 | 10.71 | 10.71 |
SakThai Context 7B Merged is a merged/continued checkpoint from the SakThai context family. It combines tool-use behaviour from Nanthasit/sakthai-context-7b-tools with long-context capability from Nanthasit/sakthai-context-7b-128k, continuing from Qwen/Qwen2.5-7B-Instruct.
It is intended for:
<tools> XML prompt formattingfrom transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "Nanthasit/sakthai-context-7b-merged"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{"role": "user", "content": "List your available tools first, then find today's weather in Bangkok."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(out[0], skip_special_tokens=True))
For GGUF inference:
from llama_cpp import Llama
llm = Llama(model_path="sakthai-context-7b-merged.Q4_K_M.gguf", n_ctx=32768, n_threads=8)
out = llm("<|user|>\nWhat tools do you have?\n<|assistant|>\n", max_tokens=256)
print(out["choices"][0]["text"])
This line was trained/evaluated against SakThai tool-use corpora:
Nanthasit/sakthai-combined-v6Nanthasit/sakthai-combined-v7Nanthasit/sakthai-combined-v8Nanthasit/sakthai-context-7b-toolsNanthasit/sakthai-context-7b-128kEvaluation artifacts are preserved under .eval_results/ in this repository.
Baseline comparisons should reference sibling cards:
Nanthasit/sakthai-context-7b-toolsNanthasit/sakthai-context-7b-128k<tools> XML blocks.This checkpoint continues from prior SakThai context model merges. Datasets used earlier in the lineage include:
Nanthasit/sakthai-combined-v6Nanthasit/sakthai-combined-v7Nanthasit/sakthai-combined-v8See eval/ and .eval_results/ in this repo for local evaluation artifacts.
@misc{sakthai-context-7b-merged,
title = {SakThai Context 7B Merged},
author = {Nanthasit (Beer)},
year = {2026},
url = {https://huggingface.co/Nanthasit/sakthai-context-7b-merged}
}
MIT