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
Promote verified 3/3 benchmark to model-index; warn merged build is BROKEN (LORA_OK_MERGE_BROKEN)
Browse files
README.md
CHANGED
|
@@ -25,6 +25,31 @@ base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
|
|
| 25 |
datasets:
|
| 26 |
- Nanthasit/SimpleToolCalling
|
| 27 |
- Nanthasit/sakthai-combined-v7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
---
|
| 29 |
|
| 30 |
# SakThai Coder Browser β LoRA Adapter
|
|
@@ -49,7 +74,7 @@ datasets:
|
|
| 49 |
|
| 50 |
This is the **unmerged LoRA adapter** for SakThai Coder Browser β the training-time PEFT weights produced during fine-tuning. It contains a **LoRA (r=16, alpha=32, rsLoRA, dropout=0.05)** adapter targeting **all 7 linear projections** (`q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj`) of Qwen/Qwen2.5-Coder-1.5B-Instruct for browser-automation tool-calling.
|
| 51 |
|
| 52 |
-
**For inference without PEFT, use the merged
|
| 53 |
|
| 54 |
> β οΈ **Adapter repo β no standalone weights.** This repository contains only the LoRA adapter (`adapter_model.safetensors`, ~74 MB) plus tokenizer files. It cannot be loaded with `AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-coder-browser-lora")` alone β you must load the base model first, then attach the adapter with `PeftModel` (see below).
|
| 55 |
|
|
@@ -98,10 +123,10 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
| 98 |
|
| 99 |
### llama.cpp / GGUF path
|
| 100 |
|
| 101 |
-
No GGUF of this adapter exists β quantize
|
| 102 |
1. Load base + adapter and call `merge_and_unload()` (snippet above)
|
| 103 |
2. Save the merged weights
|
| 104 |
-
3. Convert to GGUF with `llama.cpp/convert_hf_to_gguf.py`
|
| 105 |
|
| 106 |
---
|
| 107 |
|
|
@@ -158,17 +183,20 @@ No GGUF of this adapter exists β quantize the **merged** model instead:
|
|
| 158 |
|
| 159 |
## Evaluation & Status
|
| 160 |
|
| 161 |
-
**
|
| 162 |
|
| 163 |
Repo-verified status (from [`.eval_results/cron-eval-sakthai-coder-browser-lora-2026-07-31-1.yaml`](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora/blob/main/.eval_results/cron-eval-sakthai-coder-browser-lora-2026-07-31-1.yaml), 2026-07-31):
|
| 164 |
|
| 165 |
| Metric | Value |
|
| 166 |
|--------|-------|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
| Card quality | 84/100 |
|
| 168 |
| Repo hygiene | 95/100 |
|
| 169 |
-
| Health score | 31.1/100 |
|
| 170 |
| Downloads rank | 17/19 (0 downloads β new model, published 2026-07-30) |
|
| 171 |
-
| Velocity rank | 17/19 |
|
| 172 |
| Eval findings | Fixed: dropout 0.1β0.05, target modules q/k/v/oβall 7 (this card) |
|
| 173 |
|
| 174 |
---
|
|
@@ -207,7 +235,7 @@ Repo-verified status (from [`.eval_results/cron-eval-sakthai-coder-browser-lora-
|
|
| 207 |
- English-only coverage
|
| 208 |
- 1.5B parameter ceiling on complex reasoning tasks
|
| 209 |
- Browser actions are trained as `<tool_call>` XML β downstream parser required
|
| 210 |
-
-
|
| 211 |
|
| 212 |
---
|
| 213 |
|
|
|
|
| 25 |
datasets:
|
| 26 |
- Nanthasit/SimpleToolCalling
|
| 27 |
- Nanthasit/sakthai-combined-v7
|
| 28 |
+
model-index:
|
| 29 |
+
- name: SakThai Coder Browser β LoRA Adapter
|
| 30 |
+
results:
|
| 31 |
+
- task:
|
| 32 |
+
type: text-generation
|
| 33 |
+
name: Browser automation tool-calling
|
| 34 |
+
dataset:
|
| 35 |
+
type: custom
|
| 36 |
+
name: Browser navigate/click/extract probe (3 seeds)
|
| 37 |
+
metrics:
|
| 38 |
+
- type: tool-call-success
|
| 39 |
+
value: 3
|
| 40 |
+
name: Tool calls emitted (of 3 trials)
|
| 41 |
+
- type: valid-json
|
| 42 |
+
value: 3
|
| 43 |
+
name: Valid JSON tool calls (of 3 trials)
|
| 44 |
+
- type: correct-answer
|
| 45 |
+
value: 3
|
| 46 |
+
name: Correct navigate/click/extract answers (of 3 trials)
|
| 47 |
+
- type: browser-tools
|
| 48 |
+
value: 3
|
| 49 |
+
name: Distinct browser tools used (navigate, click, extract)
|
| 50 |
+
- type: merge-status
|
| 51 |
+
value: 0
|
| 52 |
+
name: Merged model usable (0/1 β merge is broken; use adapter on pristine base)
|
| 53 |
---
|
| 54 |
|
| 55 |
# SakThai Coder Browser β LoRA Adapter
|
|
|
|
| 74 |
|
| 75 |
This is the **unmerged LoRA adapter** for SakThai Coder Browser β the training-time PEFT weights produced during fine-tuning. It contains a **LoRA (r=16, alpha=32, rsLoRA, dropout=0.05)** adapter targeting **all 7 linear projections** (`q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj`) of Qwen/Qwen2.5-Coder-1.5B-Instruct for browser-automation tool-calling.
|
| 76 |
|
| 77 |
+
**For inference without PEFT, do NOT use the current merged build** β [SakThai Coder Browser](https://huggingface.co/Nanthasit/sakthai-coder-browser) is **BROKEN** (corrupted LoRA merge: all 84 attention-projection biases non-zero; whitespace-loop output, 0 tool calls β see the [base card's CAUTION banner](https://huggingface.co/Nanthasit/sakthai-coder-browser)). Load this adapter onto the **pristine** Qwen2.5-Coder-1.5B-Instruct base instead (snippet below) β verified working 3/3 trials on 2026-07-31.
|
| 78 |
|
| 79 |
> β οΈ **Adapter repo β no standalone weights.** This repository contains only the LoRA adapter (`adapter_model.safetensors`, ~74 MB) plus tokenizer files. It cannot be loaded with `AutoModelForCausalLM.from_pretrained("Nanthasit/sakthai-coder-browser-lora")` alone β you must load the base model first, then attach the adapter with `PeftModel` (see below).
|
| 80 |
|
|
|
|
| 123 |
|
| 124 |
### llama.cpp / GGUF path
|
| 125 |
|
| 126 |
+
No GGUF of this adapter exists β quantize a **clean re-merge** instead (do NOT use the current broken [sakthai-coder-browser-gguf](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf), which was converted from corrupted merged weights):
|
| 127 |
1. Load base + adapter and call `merge_and_unload()` (snippet above)
|
| 128 |
2. Save the merged weights
|
| 129 |
+
3. Convert to GGUF with `llama.cpp/convert_hf_to_gguf.py`
|
| 130 |
|
| 131 |
---
|
| 132 |
|
|
|
|
| 183 |
|
| 184 |
## Evaluation & Status
|
| 185 |
|
| 186 |
+
**Adapter verified working 3/3 trials (2026-07-31).** The adapter itself passed a full llama.cpp harness benchmark (base `Qwen/Qwen2.5-Coder-1.5B-Instruct` q4_k_m + this f16 LoRA): 3/3 seeds emitted valid tool calls, 3/3 valid JSON, 3/3 correct answers, using all three browser tools (`browser_navigate`, `browser_click`, `browser_extract`) β see [`.eval_results/benchmark-20260731_071156.yaml`](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora/blob/main/.eval_results/benchmark-20260731_071156.yaml). Verdict: **`LORA_OK_MERGE_BROKEN`** β the adapter is sound, but the merged build in [sakthai-coder-browser](https://huggingface.co/Nanthasit/sakthai-coder-browser) is corrupted and must be re-merged from this adapter onto the pristine base.
|
| 187 |
|
| 188 |
Repo-verified status (from [`.eval_results/cron-eval-sakthai-coder-browser-lora-2026-07-31-1.yaml`](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora/blob/main/.eval_results/cron-eval-sakthai-coder-browser-lora-2026-07-31-1.yaml), 2026-07-31):
|
| 189 |
|
| 190 |
| Metric | Value |
|
| 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 |
---
|
|
|
|
| 235 |
- English-only coverage
|
| 236 |
- 1.5B parameter ceiling on complex reasoning tasks
|
| 237 |
- Browser actions are trained as `<tool_call>` XML β downstream parser required
|
| 238 |
+
- **Merged build is BROKEN** (2026-07-31) β the corrupted merge in [sakthai-coder-browser](https://huggingface.co/Nanthasit/sakthai-coder-browser) must be re-done from this adapter onto the pristine base; benchmark of this adapter (3/3) used llama.cpp with the q4_k_m base + f16 LoRA, not a merged build
|
| 239 |
|
| 240 |
---
|
| 241 |
|