Nanthasit's picture
SakSit: restore full model card with tech detail + HoS branding
0bc776e verified
|
Raw
History Blame
3.68 kB
metadata
license: apache-2.0
language:
  - en
library_name: transformers
pipeline_tag: text-generation
tags:
  - qwen2
  - sakthai
  - house-of-sak
  - tool-calling
  - instruct
  - lora
  - agent
  - function-calling
datasets:
  - Nanthasit/sakthai-combined-v4
base_model: Qwen/Qwen2.5-1.5B-Instruct
model-index:
  - name: sakthai-context-1.5b-merged
    results:
      - task:
          type: text-generation
        dataset:
          name: SakThai Eval Suite
          type: Nanthasit/sakthai-combined-v4
        metrics:
          - type: pass_rate
            value: 100
            name: Overall (45/45)
          - type: pass_rate
            value: 100
            name: Basic (6/6)
          - type: pass_rate
            value: 100
            name: Multi-Turn (9/9)
          - type: pass_rate
            value: 100
            name: Instruction Following (6/6)
          - type: pass_rate
            value: 100
            name: Tool Calling (6/6)
          - type: pass_rate
            value: 100
            name: Reasoning (6/6)
          - type: pass_rate
            value: 100
            name: Format Adherence (12/12)

SakThai Context 1.5B

Part of the House of Sak — 6 AI agents, one shared mind. Built from a shelter in Cork, Ireland.

Fine-tuned from Qwen2.5-1.5B-Instruct on the SakThai combined dataset for tool-calling, multi-turn context, and instruction-following. Designed as the reasoning backbone for the SakThai agent. Most downloaded model at 802 pulls.

Model Details

Property Value
Base Model Qwen/Qwen2.5-1.5B-Instruct
Architecture Qwen2 (decoder-only transformer)
Hidden Size 1536
Layers 28
Attention Heads 12
Intermediate Size 8960
Vocab Size 151936
Fine-tuning Method LoRA (r=16, alpha=32, dropout=0.1)
Target Modules q_proj, k_proj, v_proj, o_proj
Training Steps 220
Training Duration ~39 minutes (4 epochs on 974 examples)
License Apache 2.0

Training

  • Base model: Qwen/Qwen2.5-1.5B-Instruct
  • Dataset: Nanthasit/sakthai-combined-v4 — 974 training + 51 test examples covering 25 canonical tool schemas
  • Method: LoRA via PEFT (rank=16, alpha=32, dropout=0.1) on q/k/v/o projections
  • Optimizer: AdamW, linear schedule, 220 steps

Evaluation — 45/45 (100%)

Workbench Results (3 runs x 15 tests)

Category Tests Pass Rate
Basic 6 100%
Multi-Turn 9 100%
Instruction Following 6 100%
Tool Calling 6 100%
Reasoning 6 100%
Format Adherence 12 100%
Overall 45 100%

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-context-1.5b-merged")
tokenizer = AutoTokenizer.from_pretrained("Nanthasit/sakthai-context-1.5b-merged")

messages = [{"role": "user", "content": "What's the weather in Bangkok?"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

GGUF Quantized Version

A 4-bit quantized GGUF version is available at gguf/sakthai-1.5b-Q4_K_M.gguf for efficient CPU inference.

Links