Nanthasit commited on
Commit
caad716
Β·
verified Β·
1 Parent(s): 2f8c9e7

Promote verified 3/3 benchmark to model-index; warn merged build is BROKEN (LORA_OK_MERGE_BROKEN)

Browse files
Files changed (1) hide show
  1. README.md +35 -7
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 model:** [SakThai Coder Browser](https://huggingface.co/Nanthasit/sakthai-coder-browser) β€” or the [GGUF quant](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf) for llama.cpp / Ollama.
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 the **merged** model instead:
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`, or use the pre-built [sakthai-coder-browser-gguf](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf)
105
 
106
  ---
107
 
@@ -158,17 +183,20 @@ No GGUF of this adapter exists β€” quantize the **merged** model instead:
158
 
159
  ## Evaluation & Status
160
 
161
- **Benchmarks are pending β€” honestly.** This is a LoRA adapter, so inference benchmarking requires merging onto the base model first; that has not been completed yet, so there is **no model-index entry** (results will be added once the merged model is benchmarked).
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
- - No formal benchmark results yet (merge-then-eval planned)
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