Nanthasit commited on
Commit
28603fd
Β·
verified Β·
1 Parent(s): 60c7be8

Flag MODEL_BROKEN bias corruption on card (per .eval_results/benchmark-20260731_052122.yaml)

Browse files
Files changed (1) hide show
  1. README.md +12 -2
README.md CHANGED
@@ -55,6 +55,9 @@ inference:
55
  <img src="https://img.shields.io/badge/base-Qwen2.5--Coder--1.5B--Instruct-blueviolet" alt="Base"/>
56
  </p>
57
 
 
 
 
58
  ---
59
 
60
  ## Model Description
@@ -198,7 +201,14 @@ Training configuration mirrors the sibling [sakthai-coder-browser-lora](https://
198
  | 2 | 42 | 0 | ❌ | ❌ | ❌ |
199
  | 3 | 1337 | 0 | ❌ | ❌ | ❌ |
200
 
201
- **Likely causes to investigate:** prompt-format mismatch with the GGUF build, or the GGUF conversion/quantization path. The Transformers (`model.safetensors`) path has **not** been benchmarked yet β€” a proper multi-trial eval on the safetensors weights is the open item.
 
 
 
 
 
 
 
202
 
203
  **Hosted inference:** not available β€” router probe returned 404 (`Not Found`) and the legacy api-inference host does not resolve (per the same eval YAML). No `model-index` is published because there are no verified scores yet; publishing one would be misleading.
204
 
@@ -259,7 +269,7 @@ One of **19 public models** in the [SakThai Model Family collection](https://hug
259
  ## Limitations
260
 
261
  - **Text-only** β€” cannot see images or screenshots (use [sakthai-vision-7b](https://huggingface.co/Nanthasit/sakthai-vision-7b) for vision tasks)
262
- - **Benchmark status open** β€” the GGUF Q4_K_M probe produced 0 tokens; the Transformers path needs a proper multi-trial evaluation before any quality claim
263
  - **English only** β€” trained primarily on English web data
264
  - **Context-limited** β€” best results with page content ≀ 4K tokens per interaction
265
  - **Not servable on HF serverless inference** β€” no provider supports this custom fine-tune (router 404 verified); run locally or via an Endpoint/GGUF
 
55
  <img src="https://img.shields.io/badge/base-Qwen2.5--Coder--1.5B--Instruct-blueviolet" alt="Base"/>
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
 
63
  ## Model Description
 
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**.
212
 
213
  **Hosted inference:** not available β€” router probe returned 404 (`Not Found`) and the legacy api-inference host does not resolve (per the same eval YAML). No `model-index` is published because there are no verified scores yet; publishing one would be misleading.
214
 
 
269
  ## Limitations
270
 
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