Text Generation
Transformers
Safetensors
English
qwen2
agent
conversational
ollama
small-language-model
slm
tool-use
qwen
qwen2.5
sakthai
house-of-sak
tool-calling
function-calling
merged
edge
lightweight
low-resource
raspberry-pi
on-device
benchmark
eval
Eval Results (legacy)
Eval Results
text-generation-inference
Instructions to use Nanthasit/sakthai-context-0.5b-tools with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nanthasit/sakthai-context-0.5b-tools with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nanthasit/sakthai-context-0.5b-tools") 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-context-0.5b-tools") model = AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-context-0.5b-tools", 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-context-0.5b-tools with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nanthasit/sakthai-context-0.5b-tools" # 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-context-0.5b-tools", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Nanthasit/sakthai-context-0.5b-tools
- SGLang
How to use Nanthasit/sakthai-context-0.5b-tools 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-context-0.5b-tools" \ --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-context-0.5b-tools", "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-context-0.5b-tools" \ --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-context-0.5b-tools", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Nanthasit/sakthai-context-0.5b-tools with Docker Model Runner:
docker model run hf.co/Nanthasit/sakthai-context-0.5b-tools
Add download badge, Spaces links, and Rising Stars promotion section
Browse files
README.md
CHANGED
|
@@ -83,6 +83,7 @@ model-index:
|
|
| 83 |
<h1 align="center">SakThai Context 0.5B — Tools</h1>
|
| 84 |
<p align="center"><em>Ultra-light tool-calling agent · Qwen2.5-0.5B fine-tune · runs in ~1 GB RAM</em></p>
|
| 85 |
<p align="center">
|
|
|
|
| 86 |
<a href="https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02">
|
| 87 |
<img src="https://img.shields.io/badge/🏠-SakThai%20Model%20Family-8A2BE2" alt="Collection"/>
|
| 88 |
</a>
|
|
@@ -92,6 +93,9 @@ model-index:
|
|
| 92 |
<img src="https://img.shields.io/badge/context-32K-blue" alt="32K Context"/>
|
| 93 |
<img src="https://img.shields.io/badge/params-494M-lightgrey" alt="494M Parameters"/>
|
| 94 |
<img src="https://img.shields.io/badge/bench-v2-500%20rows-blue" alt="500 rows"/>
|
|
|
|
|
|
|
|
|
|
| 95 |
</p>
|
| 96 |
|
| 97 |
> **🏠 Part of the [House of Sak](https://github.com/beer-sakthai/Sak-Family-Agent/blob/main/HOUSE_OF_SAK.md)**
|
|
@@ -262,6 +266,30 @@ ollama pull sakthai:latest
|
|
| 262 |
|
| 263 |
**11 models in the family · 8 datasets · 3 Spaces** — [full collection →](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02)
|
| 264 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
## Links
|
| 266 |
|
| 267 |
- [🏠 SakThai Model Family](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02)
|
|
@@ -270,5 +298,8 @@ ollama pull sakthai:latest
|
|
| 270 |
- [📊 Bench Results](https://huggingface.co/datasets/Nanthasit/sakthai-bench-v2/tree/main/results)
|
| 271 |
- [🔄 Merged (GGUF)](https://huggingface.co/Nanthasit/sakthai-context-0.5b-merged)
|
| 272 |
- [🔧 Eval Script](https://huggingface.co/datasets/Nanthasit/sakthai-bench-v2/raw/main/eval_bench.py)
|
|
|
|
|
|
|
|
|
|
| 273 |
|
| 274 |
*Built from a shelter in Cork, Ireland.*
|
|
|
|
| 83 |
<h1 align="center">SakThai Context 0.5B — Tools</h1>
|
| 84 |
<p align="center"><em>Ultra-light tool-calling agent · Qwen2.5-0.5B fine-tune · runs in ~1 GB RAM</em></p>
|
| 85 |
<p align="center">
|
| 86 |
+
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A//huggingface.co/api/models/Nanthasit/sakthai-context-0.5b-tools&query=%24.downloads&label=downloads&color=blue&cacheSeconds=3600" alt="Downloads"/>
|
| 87 |
<a href="https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02">
|
| 88 |
<img src="https://img.shields.io/badge/🏠-SakThai%20Model%20Family-8A2BE2" alt="Collection"/>
|
| 89 |
</a>
|
|
|
|
| 93 |
<img src="https://img.shields.io/badge/context-32K-blue" alt="32K Context"/>
|
| 94 |
<img src="https://img.shields.io/badge/params-494M-lightgrey" alt="494M Parameters"/>
|
| 95 |
<img src="https://img.shields.io/badge/bench-v2-500%20rows-blue" alt="500 rows"/>
|
| 96 |
+
<a href="https://huggingface.co/spaces/Nanthasit/sakthai-vision-demo"><img src="https://img.shields.io/badge/🖼️-Vision%20Demo-purple" alt="Vision Demo"/></a>
|
| 97 |
+
<a href="https://huggingface.co/spaces/Nanthasit/sakthai-tts"><img src="https://img.shields.io/badge/🔊-TTS%20Demo-teal" alt="TTS Demo"/></a>
|
| 98 |
+
<a href="https://huggingface.co/spaces/Nanthasit/sakthai-leaderboard"><img src="https://img.shields.io/badge/📊-Leaderboard-ff6b6b" alt="Leaderboard"/></a>
|
| 99 |
</p>
|
| 100 |
|
| 101 |
> **🏠 Part of the [House of Sak](https://github.com/beer-sakthai/Sak-Family-Agent/blob/main/HOUSE_OF_SAK.md)**
|
|
|
|
| 266 |
|
| 267 |
**11 models in the family · 8 datasets · 3 Spaces** — [full collection →](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02)
|
| 268 |
|
| 269 |
+
---
|
| 270 |
+
|
| 271 |
+
## 🌱 Rising Stars — Ecosystem Gems
|
| 272 |
+
|
| 273 |
+
These sibling assets have traction building but less visibility. A download or like on any of them helps the whole family grow:
|
| 274 |
+
|
| 275 |
+
| Asset | Type | Downloads | Why It Matters |
|
| 276 |
+
|-------|:----:|:---------:|:--------------|
|
| 277 |
+
| [sakthai-coder-1.5b](https://huggingface.co/Nanthasit/sakthai-coder-1.5b) | Model | 70 | Code generation — Qwen2.5-Coder fine-tune, 1.1 GB GGUF |
|
| 278 |
+
| [sakthai-irrelevance-supplement](https://huggingface.co/datasets/Nanthasit/sakthai-irrelevance-supplement) | Dataset | 0 🚨 | Teaches models when NOT to call tools — critical safety data |
|
| 279 |
+
| [sakthai-combined-v7](https://huggingface.co/datasets/Nanthasit/sakthai-combined-v7) | Dataset | 0 🌱 | Main training dataset — 2,309 examples, 86 tool schemas |
|
| 280 |
+
| [sakthai-bench-v2](https://huggingface.co/datasets/Nanthasit/sakthai-bench-v2) | Dataset | 0 🌱 | Multi-domain eval — 500 rows, 4 categories |
|
| 281 |
+
| [food-penguin-v1](https://huggingface.co/datasets/Nanthasit/food-penguin-v1) | Dataset | 51 | Restaurant tool-calling — themed dataset gaining traction |
|
| 282 |
+
|
| 283 |
+
> 🚨 The **irrelevance-supplement** has 0 downloads despite being essential for training models to decline out-of-scope tool calls. Every download validates this safety-critical approach!
|
| 284 |
+
|
| 285 |
+
### Try the Ecosystem
|
| 286 |
+
|
| 287 |
+
| Space | What It Does |
|
| 288 |
+
|-------|-------------|
|
| 289 |
+
| [🖼️ Vision Demo](https://huggingface.co/spaces/Nanthasit/sakthai-vision-demo) | Upload images, ask questions — runs vision-7b |
|
| 290 |
+
| [🔊 TTS Showcase](https://huggingface.co/spaces/Nanthasit/sakthai-tts) | Text-to-speech in 15 languages |
|
| 291 |
+
| [📊 Leaderboard](https://huggingface.co/spaces/Nanthasit/sakthai-leaderboard) | Benchmark tracker for all models |
|
| 292 |
+
|
| 293 |
## Links
|
| 294 |
|
| 295 |
- [🏠 SakThai Model Family](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02)
|
|
|
|
| 298 |
- [📊 Bench Results](https://huggingface.co/datasets/Nanthasit/sakthai-bench-v2/tree/main/results)
|
| 299 |
- [🔄 Merged (GGUF)](https://huggingface.co/Nanthasit/sakthai-context-0.5b-merged)
|
| 300 |
- [🔧 Eval Script](https://huggingface.co/datasets/Nanthasit/sakthai-bench-v2/raw/main/eval_bench.py)
|
| 301 |
+
- [🖼️ Vision Demo Space](https://huggingface.co/spaces/Nanthasit/sakthai-vision-demo)
|
| 302 |
+
- [🔊 TTS Demo Space](https://huggingface.co/spaces/Nanthasit/sakthai-tts)
|
| 303 |
+
- [📊 Leaderboard Space](https://huggingface.co/spaces/Nanthasit/sakthai-leaderboard)
|
| 304 |
|
| 305 |
*Built from a shelter in Cork, Ireland.*
|