Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Nanthasit
/
sakthai-context-0.5b-tools

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
Model card Files Files and versions
xet
Community

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)
    # 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=40)
    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
sakthai-context-0.5b-tools
1,000 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 108 commits
Nanthasit's picture
Nanthasit
docs: improve README with Model Description, expanded usage, Citation, and cleaned architecture table
6f59c64 verified 23 minutes ago
  • .eval_results
    Add metadata eval result 32 minutes ago
  • .gitattributes
    1.57 kB
    sakthai-lora-adapter r=8 epoch=3 27 days ago
  • README.md
    9.59 kB
    docs: improve README with Model Description, expanded usage, Citation, and cleaned architecture table 23 minutes ago
  • chat_template.jinja
    2.51 kB
    sakthai-lora-adapter r=8 epoch=3 27 days ago
  • config.json
    1.29 kB
    Copy files from models/Nanthasit/sakthai-context-0.5b-exp-lora-masked-v4 2 days ago
  • generation_config.json
    216 Bytes
    Copy files from models/Nanthasit/sakthai-context-0.5b-exp-lora-masked-v4 2 days ago
  • health-2026-08-01.yaml
    4.53 kB
    health check report 2026-08-01 about 3 hours ago
  • model.safetensors
    988 MB
    xet
    Copy files from models/Nanthasit/sakthai-context-0.5b-exp-lora-masked-v4 2 days ago
  • tokenizer.json
    11.4 MB
    xet
    Copy files from models/Nanthasit/sakthai-context-0.5b-exp-lora-masked-v4 2 days ago
  • tokenizer_config.json
    694 Bytes
    Copy files from models/Nanthasit/sakthai-context-0.5b-exp-lora-masked-v4 2 days ago