Text Generation
PEFT
Safetensors
English
qwen2.5
qwen2.5-coder
code-generation
browser-automation
web-agent
tool-calling
function-calling
agent
conversational
lora
adapter
sft
trl
sakthai
house-of-sak
Eval Results (legacy)
Eval Results
Instructions to use Nanthasit/sakthai-coder-browser-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Nanthasit/sakthai-coder-browser-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "Nanthasit/sakthai-coder-browser-lora") - Notebooks
- Google Colab
- Kaggle
fix: point coder-browser-gguf link to /models/ path
Browse files
README.md
CHANGED
|
@@ -7,93 +7,126 @@ pipeline_tag: text-generation
|
|
| 7 |
tags:
|
| 8 |
- peft
|
| 9 |
- lora
|
| 10 |
-
-
|
| 11 |
-
- qwen2.5-coder
|
| 12 |
- sakthai
|
| 13 |
- house-of-sak
|
| 14 |
-
- browser-automation
|
| 15 |
-
- web-agent
|
| 16 |
- tool-calling
|
| 17 |
- function-calling
|
|
|
|
| 18 |
- text-generation
|
| 19 |
-
-
|
| 20 |
-
- sft
|
| 21 |
-
- trl
|
| 22 |
- conversational
|
|
|
|
|
|
|
| 23 |
- eval-results
|
| 24 |
-
base_model: Qwen/Qwen2.5-
|
| 25 |
datasets:
|
| 26 |
-
- Nanthasit/
|
| 27 |
- Nanthasit/sakthai-combined-v7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
model-index:
|
| 29 |
-
- name:
|
| 30 |
results:
|
| 31 |
- task:
|
| 32 |
type: text-generation
|
| 33 |
-
name:
|
| 34 |
dataset:
|
| 35 |
-
|
| 36 |
-
|
| 37 |
metrics:
|
| 38 |
-
- type:
|
| 39 |
-
value:
|
| 40 |
-
name:
|
| 41 |
-
- type:
|
| 42 |
-
value: 3
|
| 43 |
-
name:
|
| 44 |
-
- type:
|
| 45 |
-
value: 3
|
| 46 |
-
name:
|
| 47 |
-
- type:
|
| 48 |
-
value:
|
| 49 |
-
name:
|
| 50 |
-
- type:
|
| 51 |
value: 0
|
| 52 |
-
name:
|
| 53 |
---
|
| 54 |
|
| 55 |
-
# SakThai
|
| 56 |
|
| 57 |
<p align="center">
|
| 58 |
-
<strong>
|
| 59 |
-
<em>
|
| 60 |
</p>
|
| 61 |
|
| 62 |
<p align="center">
|
| 63 |
<a href="https://huggingface.co/Nanthasit"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Nanthasit-6644cc" alt="Profile"/></a>
|
| 64 |
<a href="https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02"><img src="https://img.shields.io/badge/%F0%9F%8F%A0-SakThai%20Family-6644cc" alt="Collection"/></a>
|
| 65 |
-
<img src="https://img.shields.io/badge/
|
|
|
|
| 66 |
<img src="https://img.shields.io/badge/license-Apache%202.0-green" alt="License"/>
|
| 67 |
-
<img src="https://img.shields.io/badge/
|
| 68 |
-
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhuggingface.co%2Fapi%2Fmodels%2FNanthasit%2Fsakthai-coder-browser-lora&query=downloads&style=flat&label=Downloads" alt="Downloads"/>
|
| 69 |
</p>
|
| 70 |
|
| 71 |
---
|
| 72 |
|
| 73 |
## Model Description
|
| 74 |
|
| 75 |
-
This is
|
| 76 |
|
| 77 |
-
|
| 78 |
|
| 79 |
-
|
| 80 |
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
-
|
| 86 |
-
- `browser_click(element)` β click a UI element
|
| 87 |
-
- `browser_type(element, text)` β type text into a field
|
| 88 |
-
- `browser_extract()` β extract page content
|
| 89 |
|
| 90 |
-
```
|
| 91 |
-
<tool_call>
|
|
|
|
|
|
|
| 92 |
```
|
| 93 |
|
|
|
|
|
|
|
| 94 |
---
|
| 95 |
|
| 96 |
-
##
|
|
|
|
|
|
|
| 97 |
|
| 98 |
```python
|
| 99 |
import torch
|
|
@@ -101,141 +134,126 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 101 |
from peft import PeftModel
|
| 102 |
|
| 103 |
model = AutoModelForCausalLM.from_pretrained(
|
| 104 |
-
"Qwen/Qwen2.5-
|
| 105 |
torch_dtype=torch.bfloat16,
|
| 106 |
device_map="auto"
|
| 107 |
)
|
| 108 |
-
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-
|
| 109 |
-
|
| 110 |
-
model = PeftModel.from_pretrained(model, "Nanthasit/sakthai-coder-browser-lora")
|
| 111 |
|
| 112 |
-
|
| 113 |
-
# model = model.merge_and_unload()
|
| 114 |
|
| 115 |
-
messages = [
|
| 116 |
-
{"role": "system", "content": "You are SakThai Browser Agent. Use <tool_call> blocks to control the browser."},
|
| 117 |
-
{"role": "user", "content": "Go to google.com and search for AI news."},
|
| 118 |
-
]
|
| 119 |
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
| 120 |
-
outputs = model.generate(**inputs, max_new_tokens=
|
| 121 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 122 |
```
|
| 123 |
|
| 124 |
-
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
|
|
|
| 130 |
|
| 131 |
-
---
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
| Setting | Value |
|
| 136 |
-
|---------|-------|
|
| 137 |
-
| **PEFT type** | `LORA` |
|
| 138 |
-
| **PEFT version** | 0.20.0 |
|
| 139 |
-
| **Rank (r)** | 16 |
|
| 140 |
-
| **Alpha** | 32 |
|
| 141 |
-
| **Dropout** | **0.05** β
(previously misdocumented as 0.1) |
|
| 142 |
-
| **rsLoRA** | `true` (use_rslora) |
|
| 143 |
-
| **Target modules** | **All 7 linear projections**: `q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj` β
(previously misdocumented as q/k/v/o only) |
|
| 144 |
-
| **Bias** | none |
|
| 145 |
-
| **DoRA** | false |
|
| 146 |
-
| **Task type** | `CAUSAL_LM` |
|
| 147 |
-
| **Trainable params** | 36,955,556 (~37M) |
|
| 148 |
-
| **Adapter size** | 73,911,112 B (73.9 MB, BF16) |
|
| 149 |
|
| 150 |
---
|
| 151 |
|
| 152 |
-
## Training
|
| 153 |
-
|
| 154 |
-
|
|
| 155 |
-
|---
|
| 156 |
-
| **Base model** | Qwen/Qwen2.5-
|
| 157 |
-
| **Method** |
|
| 158 |
-
| **
|
| 159 |
-
| **
|
| 160 |
-
| **
|
| 161 |
-
| **
|
| 162 |
-
| **
|
| 163 |
-
| **
|
| 164 |
-
| **
|
| 165 |
-
| **Hardware** | Free T4 GPU (Kaggle / Colab) |
|
| 166 |
-
| **Framework** | TRL 0.19.1, Transformers 5.14.1, PyTorch 2.13.0 |
|
| 167 |
-
|
| 168 |
-
### Base architecture (Qwen2.5-Coder-1.5B-Instruct, verified)
|
| 169 |
-
|
| 170 |
-
| Attribute | Value |
|
| 171 |
-
|-----------|-------|
|
| 172 |
-
| Architecture | `Qwen2ForCausalLM` |
|
| 173 |
-
| Hidden size | 1,536 |
|
| 174 |
-
| Layers | 28 |
|
| 175 |
-
| Attention heads | 12 |
|
| 176 |
-
| KV heads (GQA) | 2 |
|
| 177 |
-
| Intermediate size | 8,960 |
|
| 178 |
-
| Vocab size | 151,936 |
|
| 179 |
-
| Max position embeddings | 32,768 |
|
| 180 |
-
| Total parameters | 1,543,714,304 (1.54B) |
|
| 181 |
|
| 182 |
---
|
| 183 |
|
| 184 |
-
## Evaluation &
|
| 185 |
|
| 186 |
-
**
|
| 187 |
|
| 188 |
-
|
|
|
|
|
|
|
|
|
|
| 189 |
|
| 190 |
-
|
| 191 |
-
|--------|-------|
|
| 192 |
-
| Tool-call success (benchmark) | **3/3** β
|
|
| 193 |
-
| Valid JSON (benchmark) | **3/3** β
|
|
| 194 |
-
| Correct answers (benchmark) | **3/3** β
|
|
| 195 |
-
| Browser tools used | navigate, click, extract |
|
| 196 |
-
| Card quality | 84/100 |
|
| 197 |
-
| Repo hygiene | 95/100 |
|
| 198 |
-
| Health score | 31.1/100 (0 downloads β new model, published 2026-07-30) |
|
| 199 |
-
| Downloads rank | 17/19 (0 downloads β new model, published 2026-07-30) |
|
| 200 |
-
| Eval findings | Fixed: dropout 0.1β0.05, target modules q/k/v/oβall 7 (this card) |
|
| 201 |
|
| 202 |
---
|
| 203 |
|
| 204 |
## SakThai Model Family
|
| 205 |
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
|
| 209 |
-
|
|
| 210 |
-
|
|
| 211 |
-
|
|
| 212 |
-
|
|
| 213 |
-
|
|
| 214 |
-
|
|
| 215 |
-
|
|
| 216 |
-
|
|
| 217 |
-
|
|
| 218 |
-
|
|
| 219 |
-
|
|
| 220 |
-
|
|
| 221 |
-
|
|
| 222 |
-
|
|
| 223 |
-
|
|
| 224 |
-
|
|
| 225 |
-
|
|
| 226 |
-
|
|
| 227 |
-
|
| 228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
|
| 230 |
---
|
| 231 |
|
| 232 |
## Limitations
|
| 233 |
|
| 234 |
-
- **
|
| 235 |
-
-
|
| 236 |
-
-
|
| 237 |
-
|
| 238 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
|
| 240 |
---
|
| 241 |
|
|
|
|
| 7 |
tags:
|
| 8 |
- peft
|
| 9 |
- lora
|
| 10 |
+
- qwen2.5
|
|
|
|
| 11 |
- sakthai
|
| 12 |
- house-of-sak
|
|
|
|
|
|
|
| 13 |
- tool-calling
|
| 14 |
- function-calling
|
| 15 |
+
- agent
|
| 16 |
- text-generation
|
| 17 |
+
- qlora
|
|
|
|
|
|
|
| 18 |
- conversational
|
| 19 |
+
- assistant
|
| 20 |
+
- safetensors
|
| 21 |
- eval-results
|
| 22 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 23 |
datasets:
|
| 24 |
+
- Nanthasit/sakthai-combined-v6
|
| 25 |
- Nanthasit/sakthai-combined-v7
|
| 26 |
+
- Nanthasit/sakthai-irrelevance-supplement
|
| 27 |
+
inference:
|
| 28 |
+
parameters:
|
| 29 |
+
temperature: 0.3
|
| 30 |
+
max_new_tokens: 128
|
| 31 |
+
top_p: 0.9
|
| 32 |
+
widget:
|
| 33 |
+
- text: What's the weather in Tokyo?
|
| 34 |
+
output:
|
| 35 |
+
text: '<tool_call>
|
| 36 |
+
|
| 37 |
+
{"name": "get_weather", "arguments": {"location": "Tokyo"}}
|
| 38 |
+
|
| 39 |
+
</tool_call>'
|
| 40 |
model-index:
|
| 41 |
+
- name: sakthai-context-7b-tools
|
| 42 |
results:
|
| 43 |
- task:
|
| 44 |
type: text-generation
|
| 45 |
+
name: Tool-Calling
|
| 46 |
dataset:
|
| 47 |
+
name: SakThai Bench v2 (500 rows, scorer multiset-selection-v2)
|
| 48 |
+
type: Nanthasit/sakthai-bench-v2
|
| 49 |
metrics:
|
| 50 |
+
- type: selection
|
| 51 |
+
value: 56.4
|
| 52 |
+
name: Selection Accuracy
|
| 53 |
+
- type: arguments
|
| 54 |
+
value: 12.3
|
| 55 |
+
name: Arguments Accuracy
|
| 56 |
+
- type: strict
|
| 57 |
+
value: 12.3
|
| 58 |
+
name: Strict Accuracy
|
| 59 |
+
- type: held-out
|
| 60 |
+
value: 53.7
|
| 61 |
+
name: Held-Out Tool Accuracy
|
| 62 |
+
- type: degenerate
|
| 63 |
value: 0
|
| 64 |
+
name: Degenerate Outputs
|
| 65 |
---
|
| 66 |
|
| 67 |
+
# SakThai Context 7B β Tools (LoRA)
|
| 68 |
|
| 69 |
<p align="center">
|
| 70 |
+
<strong>Highest-capability tool-calling adapter β Qwen2.5-7B</strong><br/>
|
| 71 |
+
<em>PEFT LoRA Β· r=16 Β· alpha=32 Β· 19 MB adapter</em>
|
| 72 |
</p>
|
| 73 |
|
| 74 |
<p align="center">
|
| 75 |
<a href="https://huggingface.co/Nanthasit"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Nanthasit-6644cc" alt="Profile"/></a>
|
| 76 |
<a href="https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02"><img src="https://img.shields.io/badge/%F0%9F%8F%A0-SakThai%20Family-6644cc" alt="Collection"/></a>
|
| 77 |
+
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhuggingface.co%2Fapi%2Fmodels%2FNanthasit%2Fsakthai-context-7b-tools&query=%24.downloads&label=downloads&color=blue&cacheSeconds=3600" alt="Downloads"/>
|
| 78 |
+
<img src="https://img.shields.io/badge/PEFT-LoRA%20r16-blueviolet" alt="LoRA"/>
|
| 79 |
<img src="https://img.shields.io/badge/license-Apache%202.0-green" alt="License"/>
|
| 80 |
+
<img src="https://img.shields.io/badge/Qwen2.5-7B-orange" alt="Qwen2.5-7B"/>
|
|
|
|
| 81 |
</p>
|
| 82 |
|
| 83 |
---
|
| 84 |
|
| 85 |
## Model Description
|
| 86 |
|
| 87 |
+
This is a **PEFT LoRA adapter** that adds tool-calling to Qwen2.5-7B-Instruct. It's the highest-capability tool-calling adapter in the SakThai family β for the strongest function calling.
|
| 88 |
|
| 89 |
+
For a merged GGUF checkpoint (no PEFT required), see [sakthai-context-7b-merged](https://huggingface.co/Nanthasit/sakthai-context-7b-merged).
|
| 90 |
|
| 91 |
+
### Key details
|
| 92 |
|
| 93 |
+
| Property | Value |
|
| 94 |
+
|----------|-------|
|
| 95 |
+
| **Base model** | Qwen/Qwen2.5-7B-Instruct |
|
| 96 |
+
| **Method** | QLoRA (4-bit) |
|
| 97 |
+
| **LoRA config** | r=16, alpha=32, dropout 0.0, targets q/k/v/o_proj |
|
| 98 |
+
| **Adapter size** | 19 MB (`adapter_model.safetensors`) |
|
| 99 |
+
| **PEFT version** | 0.19.1 |
|
| 100 |
+
| **Data** | combined-v6 (2,003) + combined-v7 (2,309) + irrelevance-supplement (60) |
|
| 101 |
+
| **Format** | ChatML with tool schema, 32K tokens |
|
| 102 |
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## Tool-Calling Format
|
| 106 |
+
|
| 107 |
+
This adapter emits structured tool calls as XML. Provide a `<tools>` block in the system prompt, and the model responds with a `<tool_call>` block instead of plain text when a tool is needed:
|
| 108 |
+
|
| 109 |
+
```text
|
| 110 |
+
<tools>
|
| 111 |
+
{"type": "function", "function": {"name": "get_weather", "description": "Get current weather", "parameters": {"type": "object", "properties": {"location": {"type": "string"}}, "required": ["location"]}}}
|
| 112 |
+
</tools>
|
| 113 |
+
```
|
| 114 |
|
| 115 |
+
Expected model output when the user asks about weather:
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
+
```text
|
| 118 |
+
<tool_call>
|
| 119 |
+
{"name": "get_weather", "arguments": {"location": "Tokyo"}}
|
| 120 |
+
</tool_call>
|
| 121 |
```
|
| 122 |
|
| 123 |
+
> **Note:** The `<tools>` block is **required** for reliable function calling β the model was trained on this exact XML format. Omitting it makes the model fall back to answering directly.
|
| 124 |
+
|
| 125 |
---
|
| 126 |
|
| 127 |
+
## Quick Start
|
| 128 |
+
|
| 129 |
+
Load the base model, then attach the adapter with PEFT:
|
| 130 |
|
| 131 |
```python
|
| 132 |
import torch
|
|
|
|
| 134 |
from peft import PeftModel
|
| 135 |
|
| 136 |
model = AutoModelForCausalLM.from_pretrained(
|
| 137 |
+
"Qwen/Qwen2.5-7B-Instruct",
|
| 138 |
torch_dtype=torch.bfloat16,
|
| 139 |
device_map="auto"
|
| 140 |
)
|
| 141 |
+
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
|
|
|
|
|
|
|
| 142 |
|
| 143 |
+
model = PeftModel.from_pretrained(model, "Nanthasit/sakthai-context-7b-tools")
|
|
|
|
| 144 |
|
| 145 |
+
messages = [{"role": "user", "content": "What's the weather in Bangkok?"}]
|
|
|
|
|
|
|
|
|
|
| 146 |
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
| 147 |
+
outputs = model.generate(**inputs, max_new_tokens=128)
|
| 148 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 149 |
```
|
| 150 |
|
| 151 |
+
To bake the adapter into the weights (e.g. for export or merging):
|
| 152 |
|
| 153 |
+
```python
|
| 154 |
+
model = model.merge_and_unload()
|
| 155 |
+
model.save_pretrained("./sakthai-context-7b-tools-merged")
|
| 156 |
+
tokenizer.save_pretrained("./sakthai-context-7b-tools-merged")
|
| 157 |
+
```
|
| 158 |
|
| 159 |
+
**Prefer GGUF / llama.cpp?** Use the merged sibling [sakthai-context-7b-merged](https://huggingface.co/Nanthasit/sakthai-context-7b-merged) instead β full weights, no PEFT step.
|
| 160 |
|
| 161 |
+
> β οΈ **Serverless Inference API note:** the hosted inference API does **not** support LoRA adapters. Use local PEFT loading, a custom endpoint, or the merged GGUF sibling.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
---
|
| 164 |
|
| 165 |
+
## Training
|
| 166 |
+
|
| 167 |
+
| | |
|
| 168 |
+
|---|---|
|
| 169 |
+
| **Base model** | Qwen/Qwen2.5-7B-Instruct |
|
| 170 |
+
| **Method** | QLoRA (4-bit) |
|
| 171 |
+
| **LoRA config** | r=16, alpha=32, dropout 0.0, targets q/k/v/o_proj |
|
| 172 |
+
| **Task type** | CAUSAL_LM |
|
| 173 |
+
| **Data** | combined-v6 + combined-v7 + irrelevance-supplement |
|
| 174 |
+
| **Format / context** | ChatML with tool schema Β· 32K tokens |
|
| 175 |
+
| **Steps / epochs** | 300 steps Β· ~7.7 epochs (from `training_metrics.json`) |
|
| 176 |
+
| **Final train loss** | 0.513 (step 300, from `training_metrics.json`) |
|
| 177 |
+
| **Final eval loss** | 0.384 / token acc 88.7% β reported from run logs; not persisted in `training_metrics.json` (file holds train steps only) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
---
|
| 180 |
|
| 181 |
+
## Evaluation & Benchmarks
|
| 182 |
|
| 183 |
+
**SakThai Bench v2 (internal, not yet independently verified)** β from [`.eval_results/sakthai-bench-v2.yaml`](https://huggingface.co/Nanthasit/sakthai-context-7b-tools/blob/main/.eval_results/sakthai-bench-v2.yaml) in this repo:
|
| 184 |
|
| 185 |
+
| Benchmark | Metric | Score | Verified |
|
| 186 |
+
|:----------|:-------|:-----:|:--------:|
|
| 187 |
+
| [SakThai Bench v2](https://huggingface.co/datasets/Nanthasit/sakthai-bench-v2) | Selection Accuracy | 57.0% | No (internal) |
|
| 188 |
+
| [SakThai Bench v2](https://huggingface.co/datasets/Nanthasit/sakthai-bench-v2) | Arguments Accuracy | 0.0% | No (internal) |
|
| 189 |
|
| 190 |
+
The adapter reliably **selects** the right tool (57%) but argument generation still needs work (0% on bench-v2). This is honest internal data β treat the 7B adapter as a tool-selection specialist today, with merged-GGUF verification on the roadmap. Multi-trial, independently verified benchmarks are pending.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
---
|
| 193 |
|
| 194 |
## SakThai Model Family
|
| 195 |
|
| 196 |
+
All public repositories in the [SakThai Model Family](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02) (downloads and sizes live as of 2026-07-31; sizes from `model_info` when available):
|
| 197 |
+
|
| 198 |
+
| Model | Size | Downloads | Role |
|
| 199 |
+
|:------|:----:|:---------:|:-----|
|
| 200 |
+
| [sakthai-context-1.5b-merged](https://huggingface.co/Nanthasit/sakthai-context-1.5b-merged) | 1.54 GB | **1855** | |
|
| 201 |
+
| [sakthai-context-0.5b-merged](https://huggingface.co/Nanthasit/sakthai-context-0.5b-merged) | 0.49 GB | **1692** | |
|
| 202 |
+
| [sakthai-context-7b-merged](https://huggingface.co/Nanthasit/sakthai-context-7b-merged) | 7.62 GB | **1024** | |
|
| 203 |
+
| [sakthai-embedding-multilingual](https://huggingface.co/Nanthasit/sakthai-embedding-multilingual) | 0.12 GB | **627** | |
|
| 204 |
+
| [sakthai-context-7b-128k](https://huggingface.co/Nanthasit/sakthai-context-7b-128k) | β | **610** | |
|
| 205 |
+
| [sakthai-context-7b-tools](https://huggingface.co/Nanthasit/sakthai-context-7b-tools) | β | **489** | β¬
**this** |
|
| 206 |
+
| [sakthai-context-1.5b-tools](https://huggingface.co/Nanthasit/sakthai-context-1.5b-tools) | β | **477** | |
|
| 207 |
+
| [sakthai-context-1.5b-merged-v2](https://huggingface.co/Nanthasit/sakthai-context-1.5b-merged-v2) | 1.54 GB | **337** | |
|
| 208 |
+
| [sakthai-vision-7b](https://huggingface.co/Nanthasit/sakthai-vision-7b) | β | **315** | |
|
| 209 |
+
| [sakthai-plus-1.5b-lora](https://huggingface.co/Nanthasit/sakthai-plus-1.5b-lora) | β | **306** | |
|
| 210 |
+
| [sakthai-context-0.5b-tools](https://huggingface.co/Nanthasit/sakthai-context-0.5b-tools) | 0.49 GB | **251** | |
|
| 211 |
+
| [sakthai-tts-model](https://huggingface.co/Nanthasit/sakthai-tts-model) | β | **248** | |
|
| 212 |
+
| [sakthai-plus-1.5b](https://huggingface.co/Nanthasit/sakthai-plus-1.5b) | 1.54 GB | **244** | |
|
| 213 |
+
| [sakthai-context-1.5b-tools-v2](https://huggingface.co/Nanthasit/sakthai-context-1.5b-tools-v2) | β | **173** | |
|
| 214 |
+
| [sakthai-coder-1.5b](https://huggingface.co/Nanthasit/sakthai-coder-1.5b) | β | **151** | |
|
| 215 |
+
| [sakthai-coder-browser](https://huggingface.co/Nanthasit/sakthai-coder-browser) | 1.54 GB | **54** | |
|
| 216 |
+
| [sakthai-coder-browser-gguf](https://huggingface.co/models/Nanthasit/sakthai-coder-browser-gguf) | β | **35** | |
|
| 217 |
+
| [sakthai-embedding](https://huggingface.co/Nanthasit/sakthai-embedding) | 0.02 GB | **23** | |
|
| 218 |
+
| [sakthai-coder-browser-lora](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora) | β | **21** | |
|
| 219 |
+
| [sakthai-plus-1.5b-coder](https://huggingface.co/Nanthasit/sakthai-plus-1.5b-coder) | β | **0** | |
|
| 220 |
+
| [eval_results](https://huggingface.co/Nanthasit/eval_results) | β | **0** | |
|
| 221 |
+
| [sakthai-bench-v3](https://huggingface.co/Nanthasit/sakthai-bench-v3) | β | **0** | |
|
| 222 |
+
| [sakthai-pipeline](https://huggingface.co/Nanthasit/sakthai-pipeline) | β | **0** | |
|
| 223 |
+
| [sakthai-context-0.5b-tools-sft](https://huggingface.co/Nanthasit/sakthai-context-0.5b-tools-sft) | β | **0** | |
|
| 224 |
+
| [sft-out](https://huggingface.co/Nanthasit/sft-out) | β | **0** | |
|
| 225 |
+
| [sakthai-context-0.5b-tools-sft-v2](https://huggingface.co/Nanthasit/sakthai-context-0.5b-tools-sft-v2) | β | **0** | |
|
| 226 |
|
| 227 |
---
|
| 228 |
|
| 229 |
## Limitations
|
| 230 |
|
| 231 |
+
- **LoRA adapter only** β needs PEFT loading or merging; the hosted Inference API does not serve adapters.
|
| 232 |
+
- **Arguments accuracy 0%** on internal bench-v2 β argument generation is the current weakness.
|
| 233 |
+
- English-focused; trained on synthetic tool-calling data, not broad general knowledge (the base Qwen2.5-7B-Instruct covers general capability).
|
| 234 |
+
|
| 235 |
+
---
|
| 236 |
+
|
| 237 |
+
## Citation
|
| 238 |
+
|
| 239 |
+
If you use this adapter in your work, please cite both the base model and the fine-tune:
|
| 240 |
+
|
| 241 |
+
```bibtex
|
| 242 |
+
@article{qwen2.5,
|
| 243 |
+
title={Qwen2.5 Technical Report},
|
| 244 |
+
author={Qwen Team},
|
| 245 |
+
journal={arXiv preprint arXiv:2412.15115},
|
| 246 |
+
year={2024}
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
@misc{sakthai-context-7b-tools,
|
| 250 |
+
title={SakThai Context 7B Tools: Tool-Calling LoRA Adapter},
|
| 251 |
+
author={Nanthasit, Beer and the SakThai Family Agents},
|
| 252 |
+
year={2026},
|
| 253 |
+
howpublished={\url{https://huggingface.co/Nanthasit/sakthai-context-7b-tools}
|
| 254 |
+
note={Apache 2.0; fine-tuned from Qwen/Qwen2.5-7B-Instruct via QLoRA}
|
| 255 |
+
}
|
| 256 |
+
```
|
| 257 |
|
| 258 |
---
|
| 259 |
|