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-1.5b-merged

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

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]:]))
  • Inference
  • 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
sakthai-context-1.5b-merged
4.08 GB
Ctrl+K
Ctrl+K
  • 6 contributors
History: 18 commits
Nanthasit's picture
Nanthasit
SakSit: restore full model card with tech detail + HoS branding
0bc776e verified 12 days ago
  • eval
    Upload eval/workbench-test.py with huggingface_hub 30 days ago
  • gguf
    Add Q4_K_M GGUF quant for Ollama/llama.cpp inference 26 days ago
  • .gitattributes
    1.64 kB
    Add Q4_K_M GGUF quant for Ollama/llama.cpp inference 26 days ago
  • LICENSE
    11.3 kB
    merged-lora-r16-alpha32-sakthai-1.5b-tools-v4 about 1 month ago
  • README.md
    3.68 kB
    SakSit: restore full model card with tech detail + HoS branding 12 days ago
  • chat_template.jinja
    2.51 kB
    merged-lora-r16-alpha32-sakthai-1.5b-tools-v4 about 1 month ago
  • config.json
    1.44 kB
    Fix config: remove quantization_config null, add torch_dtype bfloat16 30 days ago
  • generation_config.json
    242 Bytes
    merged-lora-r16-alpha32-sakthai-1.5b-tools-v4 about 1 month ago
  • model.safetensors
    3.09 GB
    xet
    merged-lora-r16-alpha32-sakthai-1.5b-tools-v4 about 1 month ago
  • tokenizer.json
    11.4 MB
    xet
    merged-lora-r16-alpha32-sakthai-1.5b-tools-v4 about 1 month ago
  • tokenizer_config.json
    3.22 kB
    Remove extra_special_tokens entirely for endpoint compatibility 30 days ago
  • train.py
    6.1 kB
    Upload train.py with huggingface_hub about 1 month ago