Text Generation
Transformers
Safetensors
GGUF
English
qwen2
apache-2.0
qwen2.5
sakthai
house-of-sak
tool-calling
function-calling
agent
instruct
finetuned
merged
conversational
assistant
llama.cpp
ollama
benchmark
Eval Results
Eval Results (legacy)
text-generation-inference
Instructions to use Nanthasit/sakthai-context-1.5b-merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nanthasit/sakthai-context-1.5b-merged with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nanthasit/sakthai-context-1.5b-merged") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Nanthasit/sakthai-context-1.5b-merged") model = AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-context-1.5b-merged", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Nanthasit/sakthai-context-1.5b-merged with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M # Run inference directly in the terminal: llama cli -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M # Run inference directly in the terminal: llama cli -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Use Docker
docker model run hf.co/Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Nanthasit/sakthai-context-1.5b-merged with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nanthasit/sakthai-context-1.5b-merged" # 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-1.5b-merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
- SGLang
How to use Nanthasit/sakthai-context-1.5b-merged 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-1.5b-merged" \ --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-1.5b-merged", "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-1.5b-merged" \ --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-1.5b-merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Nanthasit/sakthai-context-1.5b-merged with Ollama:
ollama run hf.co/Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
- Unsloth Studio
How to use Nanthasit/sakthai-context-1.5b-merged with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Nanthasit/sakthai-context-1.5b-merged to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Nanthasit/sakthai-context-1.5b-merged to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Nanthasit/sakthai-context-1.5b-merged to start chatting
- Pi
How to use Nanthasit/sakthai-context-1.5b-merged with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Nanthasit/sakthai-context-1.5b-merged:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Nanthasit/sakthai-context-1.5b-merged with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Nanthasit/sakthai-context-1.5b-merged with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Nanthasit/sakthai-context-1.5b-merged:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use Nanthasit/sakthai-context-1.5b-merged with Docker Model Runner:
docker model run hf.co/Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
- Lemonade
How to use Nanthasit/sakthai-context-1.5b-merged with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Nanthasit/sakthai-context-1.5b-merged:Q4_K_M
Run and chat with the model
lemonade run user.sakthai-context-1.5b-merged-Q4_K_M
List all available models
lemonade list
Commit History
Upload README.md with huggingface_hub 093c21b verified
Upload README.md with huggingface_hub 06755ff verified
docs: enrich model-index with verified eval + spot-check metrics bfcd2ac verified
docs: add apache-2.0 tag to model card YAML 88329b1 verified
Upload README.md with huggingface_hub 8435711 verified
chore(model card): improved README.md (Quick Start, GGUF prompt, 4-bit example) c5b96e0
Beer commited on
Fix stale family-table download counts + API-verified timestamp 4686041 verified
Fix: repair broken BibTeX citation (missing closing brace on URL field) d75bdcc verified
chore: add Model Index with evaluation results f981ee9
SakThai commited on
docs: add comparative benchmarks table, optimize CPU speed context 5c14842 verified
fix(maintain): clean malformed cross-links f4aaa58 verified
Card integrity + completeness: set model-index verified=false (self-run llama.cpp evals are not HF-verified, matches live API), add Limitations section (9 honest limits incl. args-accuracy pending, EN-only, serverless unsupported), add Citation (SakThai + Qwen2.5 bibtex) fe69a6b verified
docs: round-2 refresh flagship card β verified 3/3 set_reminder spot-check, corrected v6/v7 train counts (were swapped), bench-v2 48.2 selection (multiset-corrected), Ecosystem Status section, arch config rows 7237f3f verified
Fix swapped training-data counts: v6 (2,309)->(2,003), v7 (2,003)->(2,309 train + 115 test), add irrelevance (60) [verified live via datasets-server] 2e44850 verified
audit: TTS row size 135β141 MB (matches actual 141,322,336 B and sibling cards) 0151270 verified
fix(docs): correct Context 7B 128K size 16->29 KB and label (YaRN config+script, not LoRA) d311f5e verified
fix(crosslinks): correct stale Coder Browser GGUF size 6.6->7.1 GB (actual 7,111,560,032 B); remove phantom private/internal dataset claim (combined-v8 & cycle-bench 404) 27d5265 verified
docs: enrich flagship card β inference widget, verified 5/5 model-index, tool-calling XML docs, llama.cpp example, 19-model family table with live counts a67a0e4 verified
Upload README.md with huggingface_hub 12d8dce verified
Fix cross-link: replace dead sakthai-vision-demo Space (404) with sakthai-web-agent 296abec verified
Update family table: add Plus 1.5B models + correct counts (17 models Β· 10 datasets) 0a3def0 verified
Add merged-v2 cross-link to family table + Rising Stars β promote 0-dl v2 model 745fb74 verified
Update download counts across family tables β 13 stale values refreshed to live API data (2026-07-30) 24d19aa verified
Add 1.5b-tools-v2 to family table, update count 11β13 57cd82d verified
Add 1.5b-tools-v2 to family table, update count 11β13 787b8ac verified
Add Agent Family section β tells the 6-agent story behind the models 771756b verified
Cross-link 1.5b-tools-v2 in Rising Stars + tool-tip b3b5586 verified
chore: refresh download counts, replace private links with dataset cross-links 26ebd13 verified
fix: model count 12β11 (actual from HF API) 82fca5c verified
fix: standardize model count to 12 across ecosystem 5182f98
beer-sakthai commited on