Nanthasit commited on
Commit
1f7261f
Β·
verified Β·
1 Parent(s): 24905ef

Add widget examples (multi-step nav, search+extract) and Citation section

Browse files
Files changed (1) hide show
  1. README.md +40 -12
README.md CHANGED
@@ -36,6 +36,10 @@ inference:
36
  widget:
37
  - text: "Search for the latest AI news and summarize the top story."
38
  example_title: "Navigate + extract"
 
 
 
 
39
  ---
40
 
41
  # SakThai Coder Browser
@@ -56,7 +60,7 @@ inference:
56
  </p>
57
 
58
  > [!CAUTION]
59
- > **⚠ BROKEN β€” DO NOT DEPLOY (as of 2026-07-31)** β€” The merged weights in this repo are **corrupted by a faulty LoRA merge**: all 84 attention-projection bias tensors are non-zero while Qwen2 initializes these biases to ZERO (layer-0 `k_proj.bias` absmean 27.7 / max 354). Multi-trial inference probes produced only whitespace loops β€” 0 tool calls, 0 valid JSON at temp ≀ 0.7. Full evidence: [`.eval_results/benchmark-20260731_052122.yaml`](https://huggingface.co/Nanthasit/sakthai-coder-browser/blob/main/.eval_results/benchmark-20260731_052122.yaml). The fault is in the **weights, not the GGUF conversion or the prompt format**. The [GGUF variant](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf) was converted from these same corrupted weights and must be re-checked; the [LoRA adapter](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora) needs a clean re-merge. Treat this repo as **not deployable** until re-merged and re-verified.
60
 
61
  ---
62
 
@@ -135,7 +139,7 @@ Expected output format:
135
  <tool_call>{"name": "browser_navigate", "arguments": {"url": "https://news.google.com"}}</tool_call>
136
  ```
137
 
138
- > ⚠️ **Use the chat template.** This model was trained with the Qwen2.5 tool-calling format β€” pass tools through `apply_chat_template` (or the repo's `chat_template.jinja`) rather than hand-rolling prompts.
139
 
140
  ### GGUF / llama.cpp variant
141
 
@@ -166,7 +170,7 @@ Verified from this repo's `config.json` (transformers 5.14.1):
166
  | **Intermediate Size** | 8,960 |
167
  | **Max Position** | 32,768 tokens |
168
  | **Vocab Size** | 151,936 |
169
- | **RoPE ΞΈ** | 1,000,000 |
170
  | **Activation** | SiLU (SwiGLU) |
171
  | **Normalization** | RMSNorm (eps=1e-6) |
172
  | **Precision** | BF16 |
@@ -180,7 +184,7 @@ Verified from this repo's `config.json` (transformers 5.14.1):
180
  | Detail | Value |
181
  |--------|-------|
182
  | **Base model** | Qwen/Qwen2.5-Coder-1.5B-Instruct |
183
- | **Method** | SFT via LoRA (r=16, Ξ±=32, dropout 0.05, rsLoRA) on all 7 linear projections, then merged to full weights |
184
  | **Training data** | SimpleToolCalling + sakthai-combined-v7 |
185
  | **Context length** | 32,768 tokens |
186
  | **Precision** | BF16 |
@@ -197,15 +201,15 @@ Training configuration mirrors the sibling [sakthai-coder-browser-lora](https://
197
 
198
  | Trial | Seed | Output tokens | Tool call | Valid JSON | Correct answer |
199
  |:-----:|:----:|:-------------:|:---------:|:----------:|:--------------:|
200
- | 1 | 7 | 0 | ❌ | ❌ | ❌ |
201
- | 2 | 42 | 0 | ❌ | ❌ | ❌ |
202
- | 3 | 1337 | 0 | ❌ | ❌ | ❌ |
203
 
204
  **Verdict β€” MODEL_BROKEN (bias corruption):** the repo's own eval YAML (updated 2026-07-31 05:50 UTC) includes **weight inspection** of `model.safetensors` that proves the fault is in the weights, not the harness:
205
 
206
  - Qwen2 initializes attention-projection biases to **zero**; this merge left **all 84 bias tensors non-zero** (absmean > 0.01), e.g. layer-0 `k_proj.bias` absmean **27.7** / max **354**, layer-0 `q_proj.bias` absmean 1.17
207
- - Degenerate generation at temp ≀ 0.7 on all 3 seeds β€” **whitespace loops** (150 newline tokens, 0 tool calls, 0 valid JSON); only at temp 1.5 did the model emit `Hi` on a trivial prompt
208
- - GGUF tensor layout is structurally identical to the working `sakthai-plus-1.5b` GGUF (338 tensors, same names) β†’ the fault is in the **merged weights**, not the conversion
209
  - No NaN present; `embed_tokens` is normal (absmean 0.0136) β€” corruption is isolated to the attention biases
210
 
211
  **Recommended fix:** re-merge the LoRA adapter into `Qwen2.5-Coder-1.5B-Instruct` with correct bias handling (do not write adapter-state biases into the base where Qwen2 expects zeros), re-run the multi-trial probe, and update this card. Until then, this repo is **not deployable**.
@@ -234,7 +238,7 @@ Ecosystem status from `.eval_results/cron-eval-sakthai-coder-browser-2026-07-30-
234
  |:--------|:-----------|
235
  | **LoRA Adapter** (unmerged) | [sakthai-coder-browser-lora](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora) |
236
  | **GGUF** (llama.cpp / Ollama) | [sakthai-coder-browser-gguf](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf) |
237
- | **Merged model** (this repo) β¬… | [sakthai-coder-browser](https://huggingface.co/Nanthasit/sakthai-coder-browser) |
238
 
239
  ---
240
 
@@ -244,7 +248,7 @@ One of **20 public models** in the [SakThai Model Family collection](https://hug
244
 
245
  | Model | Size | Type | Downloads |
246
  |:------|-----:|:-----|----------:|
247
- | **Coder Browser (this model)** β¬… | 3.09 GB | Browser agent (merged) | 54 |
248
  | [Context 1.5B Merged](https://huggingface.co/Nanthasit/sakthai-context-1.5b-merged) | 3.09 GB | Merged weights (flagship) | 1,855 |
249
  | [Context 0.5B Merged](https://huggingface.co/Nanthasit/sakthai-context-0.5b-merged) | 988 MB | Merged weights (edge) | 1,692 |
250
  | [Context 7B Merged](https://huggingface.co/Nanthasit/sakthai-context-7b-merged) | 15.2 GB | Merged weights (power) | 1,024 |
@@ -271,9 +275,33 @@ One of **20 public models** in the [SakThai Model Family collection](https://hug
271
  - **Text-only** β€” cannot see images or screenshots (use [sakthai-vision-7b](https://huggingface.co/Nanthasit/sakthai-vision-7b) for vision tasks)
272
  - **BROKEN weights** β€” all 84 attention bias tensors are corrupted by a faulty LoRA merge (see [Evaluation & Status](#evaluation--status)); do not deploy until re-merged and re-verified
273
  - **English only** β€” trained primarily on English web data
274
- - **Context-limited** β€” best results with page content ≀ 4K tokens per interaction
275
  - **Not servable on HF serverless inference** β€” no provider supports this custom fine-tune (router 404 verified); run locally or via an Endpoint/GGUF
276
 
277
  ---
278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  *Part of the [SakThai Model Family](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02). Built with love, tears, and zero budget. From a shelter in Cork, Ireland, to the world.*
 
36
  widget:
37
  - text: "Search for the latest AI news and summarize the top story."
38
  example_title: "Navigate + extract"
39
+ - text: "Go to Hacker News, find the top post, and click through to read it."
40
+ example_title: "Multi-step navigation"
41
+ - text: "Open google.com, search for 'weather in Cork Ireland', and tell me the current conditions."
42
+ example_title: "Search + extract weather"
43
  ---
44
 
45
  # SakThai Coder Browser
 
60
  </p>
61
 
62
  > [!CAUTION]
63
+ > **BROKEN β€” DO NOT DEPLOY (as of 2026-07-31)** β€” The merged weights in this repo are **corrupted by a faulty LoRA merge**: all 84 attention-projection bias tensors are non-zero while Qwen2 initializes these biases to ZERO (layer-0 `k_proj.bias` absmean 27.7 / max 354). Multi-trial inference probes produced only whitespace loops β€” 0 tool calls, 0 valid JSON at temp <= 0.7. Full evidence: [`.eval_results/benchmark-20260731_052122.yaml`](https://huggingface.co/Nanthasit/sakthai-coder-browser/blob/main/.eval_results/benchmark-20260731_052122.yaml). The fault is in the **weights, not the GGUF conversion or the prompt format**. The [GGUF variant](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf) was converted from these same corrupted weights and must be re-checked; the [LoRA adapter](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora) needs a clean re-merge. Treat this repo as **not deployable** until re-merged and re-verified.
64
 
65
  ---
66
 
 
139
  <tool_call>{"name": "browser_navigate", "arguments": {"url": "https://news.google.com"}}</tool_call>
140
  ```
141
 
142
+ > Use the chat template. This model was trained with the Qwen2.5 tool-calling format β€” pass tools through `apply_chat_template` (or the repo's `chat_template.jinja`) rather than hand-rolling prompts.
143
 
144
  ### GGUF / llama.cpp variant
145
 
 
170
  | **Intermediate Size** | 8,960 |
171
  | **Max Position** | 32,768 tokens |
172
  | **Vocab Size** | 151,936 |
173
+ | **RoPE Theta** | 1,000,000 |
174
  | **Activation** | SiLU (SwiGLU) |
175
  | **Normalization** | RMSNorm (eps=1e-6) |
176
  | **Precision** | BF16 |
 
184
  | Detail | Value |
185
  |--------|-------|
186
  | **Base model** | Qwen/Qwen2.5-Coder-1.5B-Instruct |
187
+ | **Method** | SFT via LoRA (r=16, alpha=32, dropout 0.05, rsLoRA) on all 7 linear projections, then merged to full weights |
188
  | **Training data** | SimpleToolCalling + sakthai-combined-v7 |
189
  | **Context length** | 32,768 tokens |
190
  | **Precision** | BF16 |
 
201
 
202
  | Trial | Seed | Output tokens | Tool call | Valid JSON | Correct answer |
203
  |:-----:|:----:|:-------------:|:---------:|:----------:|:--------------:|
204
+ | 1 | 7 | 0 | No | No | No |
205
+ | 2 | 42 | 0 | No | No | No |
206
+ | 3 | 1337 | 0 | No | No | No |
207
 
208
  **Verdict β€” MODEL_BROKEN (bias corruption):** the repo's own eval YAML (updated 2026-07-31 05:50 UTC) includes **weight inspection** of `model.safetensors` that proves the fault is in the weights, not the harness:
209
 
210
  - Qwen2 initializes attention-projection biases to **zero**; this merge left **all 84 bias tensors non-zero** (absmean > 0.01), e.g. layer-0 `k_proj.bias` absmean **27.7** / max **354**, layer-0 `q_proj.bias` absmean 1.17
211
+ - Degenerate generation at temp <= 0.7 on all 3 seeds β€” **whitespace loops** (150 newline tokens, 0 tool calls, 0 valid JSON); only at temp 1.5 did the model emit `Hi` on a trivial prompt
212
+ - GGUF tensor layout is structurally identical to the working `sakthai-plus-1.5b` GGUF (338 tensors, same names) -> the fault is in the **merged weights**, not the conversion
213
  - No NaN present; `embed_tokens` is normal (absmean 0.0136) β€” corruption is isolated to the attention biases
214
 
215
  **Recommended fix:** re-merge the LoRA adapter into `Qwen2.5-Coder-1.5B-Instruct` with correct bias handling (do not write adapter-state biases into the base where Qwen2 expects zeros), re-run the multi-trial probe, and update this card. Until then, this repo is **not deployable**.
 
238
  |:--------|:-----------|
239
  | **LoRA Adapter** (unmerged) | [sakthai-coder-browser-lora](https://huggingface.co/Nanthasit/sakthai-coder-browser-lora) |
240
  | **GGUF** (llama.cpp / Ollama) | [sakthai-coder-browser-gguf](https://huggingface.co/Nanthasit/sakthai-coder-browser-gguf) |
241
+ | **Merged model** (this repo) | [sakthai-coder-browser](https://huggingface.co/Nanthasit/sakthai-coder-browser) |
242
 
243
  ---
244
 
 
248
 
249
  | Model | Size | Type | Downloads |
250
  |:------|-----:|:-----|----------:|
251
+ | **Coder Browser (this model)** | 3.09 GB | Browser agent (merged) | 54 |
252
  | [Context 1.5B Merged](https://huggingface.co/Nanthasit/sakthai-context-1.5b-merged) | 3.09 GB | Merged weights (flagship) | 1,855 |
253
  | [Context 0.5B Merged](https://huggingface.co/Nanthasit/sakthai-context-0.5b-merged) | 988 MB | Merged weights (edge) | 1,692 |
254
  | [Context 7B Merged](https://huggingface.co/Nanthasit/sakthai-context-7b-merged) | 15.2 GB | Merged weights (power) | 1,024 |
 
275
  - **Text-only** β€” cannot see images or screenshots (use [sakthai-vision-7b](https://huggingface.co/Nanthasit/sakthai-vision-7b) for vision tasks)
276
  - **BROKEN weights** β€” all 84 attention bias tensors are corrupted by a faulty LoRA merge (see [Evaluation & Status](#evaluation--status)); do not deploy until re-merged and re-verified
277
  - **English only** β€” trained primarily on English web data
278
+ - **Context-limited** β€” best results with page content <= 4K tokens per interaction
279
  - **Not servable on HF serverless inference** β€” no provider supports this custom fine-tune (router 404 verified); run locally or via an Endpoint/GGUF
280
 
281
  ---
282
 
283
+ ## Citation
284
+
285
+ If you use SakThai Coder Browser in your work, please cite the base model and the fine-tuning approach:
286
+
287
+ ```bibtex
288
+ @misc{qwen25coder,
289
+ title = {Qwen2.5-Coder: Code Language Models},
290
+ author = {Qwen Team},
291
+ year = {2024},
292
+ publisher = {Hugging Face},
293
+ howpublished = {\url{https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B-Instruct}}
294
+ }
295
+
296
+ @misc{sakthai-model-family,
297
+ title = {SakThai Model Family: Zero-Budget Fine-Tuned Language Models},
298
+ author = {{Beer Nanthasit}},
299
+ year = {2026},
300
+ publisher = {Hugging Face},
301
+ howpublished = {\url{https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02}}
302
+ }
303
+ ```
304
+
305
+ ---
306
+
307
  *Part of the [SakThai Model Family](https://huggingface.co/collections/Nanthasit/sakthai-model-family-6a64745450b12d421c1f9f02). Built with love, tears, and zero budget. From a shelter in Cork, Ireland, to the world.*