Nanthasit commited on
Commit
0bc776e
·
verified ·
1 Parent(s): 5874a5f

SakSit: restore full model card with tech detail + HoS branding

Browse files
Files changed (1) hide show
  1. README.md +97 -4
README.md CHANGED
@@ -10,16 +10,109 @@ tags:
10
  - house-of-sak
11
  - tool-calling
12
  - instruct
 
13
  - agent
 
14
  datasets:
15
  - Nanthasit/sakthai-combined-v4
16
  base_model: Qwen/Qwen2.5-1.5B-Instruct
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ---
18
 
19
  # SakThai Context 1.5B
20
 
21
- Fine-tuned from Qwen2.5-1.5B-Instruct for tool-calling. Part of the **House of Sak**.
22
 
23
- - 100% pass rate (45/45)
24
- - 802 downloads
25
- - Built by Beer (Nanthasit) from a shelter in Cork, Ireland
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  - house-of-sak
11
  - tool-calling
12
  - instruct
13
+ - lora
14
  - agent
15
+ - function-calling
16
  datasets:
17
  - Nanthasit/sakthai-combined-v4
18
  base_model: Qwen/Qwen2.5-1.5B-Instruct
19
+ model-index:
20
+ - name: sakthai-context-1.5b-merged
21
+ results:
22
+ - task:
23
+ type: text-generation
24
+ dataset:
25
+ name: SakThai Eval Suite
26
+ type: Nanthasit/sakthai-combined-v4
27
+ metrics:
28
+ - type: pass_rate
29
+ value: 100
30
+ name: Overall (45/45)
31
+ - type: pass_rate
32
+ value: 100
33
+ name: Basic (6/6)
34
+ - type: pass_rate
35
+ value: 100
36
+ name: Multi-Turn (9/9)
37
+ - type: pass_rate
38
+ value: 100
39
+ name: Instruction Following (6/6)
40
+ - type: pass_rate
41
+ value: 100
42
+ name: Tool Calling (6/6)
43
+ - type: pass_rate
44
+ value: 100
45
+ name: Reasoning (6/6)
46
+ - type: pass_rate
47
+ value: 100
48
+ name: Format Adherence (12/12)
49
  ---
50
 
51
  # SakThai Context 1.5B
52
 
53
+ > Part of the **House of Sak** — 6 AI agents, one shared mind. Built from a shelter in Cork, Ireland.
54
 
55
+ 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.**
56
+
57
+ ## Model Details
58
+
59
+ | Property | Value |
60
+ |----------|-------|
61
+ | **Base Model** | Qwen/Qwen2.5-1.5B-Instruct |
62
+ | **Architecture** | Qwen2 (decoder-only transformer) |
63
+ | **Hidden Size** | 1536 |
64
+ | **Layers** | 28 |
65
+ | **Attention Heads** | 12 |
66
+ | **Intermediate Size** | 8960 |
67
+ | **Vocab Size** | 151936 |
68
+ | **Fine-tuning Method** | LoRA (r=16, alpha=32, dropout=0.1) |
69
+ | **Target Modules** | q_proj, k_proj, v_proj, o_proj |
70
+ | **Training Steps** | 220 |
71
+ | **Training Duration** | ~39 minutes (4 epochs on 974 examples) |
72
+ | **License** | Apache 2.0 |
73
+
74
+ ## Training
75
+
76
+ - **Base model:** Qwen/Qwen2.5-1.5B-Instruct
77
+ - **Dataset:** [Nanthasit/sakthai-combined-v4](https://huggingface.co/datasets/Nanthasit/sakthai-combined-v4) — 974 training + 51 test examples covering 25 canonical tool schemas
78
+ - **Method:** LoRA via PEFT (rank=16, alpha=32, dropout=0.1) on q/k/v/o projections
79
+ - **Optimizer:** AdamW, linear schedule, 220 steps
80
+
81
+ ## Evaluation — 45/45 (100%)
82
+
83
+ ### Workbench Results (3 runs x 15 tests)
84
+
85
+ | Category | Tests | Pass Rate |
86
+ |----------|:-----:|:---------:|
87
+ | Basic | 6 | 100% |
88
+ | Multi-Turn | 9 | 100% |
89
+ | Instruction Following | 6 | 100% |
90
+ | Tool Calling | 6 | 100% |
91
+ | Reasoning | 6 | 100% |
92
+ | Format Adherence | 12 | 100% |
93
+ | **Overall** | **45** | **100%** |
94
+
95
+ ## Usage
96
+
97
+ ```python
98
+ from transformers import AutoModelForCausalLM, AutoTokenizer
99
+
100
+ model = AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-context-1.5b-merged")
101
+ tokenizer = AutoTokenizer.from_pretrained("Nanthasit/sakthai-context-1.5b-merged")
102
+
103
+ messages = [{"role": "user", "content": "What's the weather in Bangkok?"}]
104
+ text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
105
+ inputs = tokenizer(text, return_tensors="pt")
106
+ outputs = model.generate(**inputs, max_new_tokens=256)
107
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
108
+ ```
109
+
110
+ ### GGUF Quantized Version
111
+
112
+ A 4-bit quantized GGUF version is available at `gguf/sakthai-1.5b-Q4_K_M.gguf` for efficient CPU inference.
113
+
114
+ ## Links
115
+
116
+ - **LoRA Adapter:** [sakthai-context-1.5b-tools](https://huggingface.co/Nanthasit/sakthai-context-1.5b-tools)
117
+ - **Training Dataset:** [sakthai-combined-v4](https://huggingface.co/datasets/Nanthasit/sakthai-combined-v4)
118
+ - **Profile:** [Nanthasit](https://huggingface.co/Nanthasit) | **GitHub:** [beer-sakthai](https://github.com/beer-sakthai)