Nanthasit commited on
Commit
c0f7a65
·
verified ·
1 Parent(s): a8fa4e3

docs: add reproduce eval/train sections, keep honest broken-state disclosure

Browse files
Files changed (1) hide show
  1. README.md +48 -1
README.md CHANGED
@@ -27,7 +27,6 @@ tags:
27
  base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
28
  datasets:
29
  - Nanthasit/sakthai-combined-v8
30
- - Nanthasit/sakthai-combined-v8
31
  - Nanthasit/sakthai-combined-v11
32
  - Nanthasit/sakthai-irrelevance-supplement
33
  - Nanthasit/cycle-bench
@@ -297,6 +296,54 @@ One of **25 public model repos** in the [SakThai Model Family collection](https:
297
 
298
  ---
299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  ## Limitations
301
 
302
  - **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
 
27
  base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
28
  datasets:
29
  - Nanthasit/sakthai-combined-v8
 
30
  - Nanthasit/sakthai-combined-v11
31
  - Nanthasit/sakthai-irrelevance-supplement
32
  - Nanthasit/cycle-bench
 
296
 
297
  ---
298
 
299
+ ## Reproduce Evaluation
300
+
301
+ If you want to verify the broken-state diagnosis locally, run the same llama.cpp probe used for this card:
302
+
303
+ ```bash
304
+ # Convert the current merged weights to GGUF Q4_K_M
305
+ python -m scripts.convert_hf_to_gguf --outfile sakthai-coder-browser-q4_k_m.gguf --quant-type Q4_K_M ./sakthai-coder-browser
306
+
307
+ # 3-trial probe, 2 threads, CPU only
308
+ for seed in 7 42 1337; do
309
+ ./llama-cli -m sakthai-coder-browser-q4_k_m.gguf \
310
+ -p "$(cat prompts/browser_tool_call.txt)" \
311
+ -n 256 --temp 0.3 -t 2 --seed $seed
312
+ done
313
+ ```
314
+
315
+ All 3 trials should return 0 output tokens if the weight corruption is still present.
316
+ If they produce normal `<tool_call>` JSON blocks, the repo has been repaired.
317
+
318
+ ---
319
+
320
+ ## Reproduce Training / Merge
321
+
322
+ The merged weights were produced by applying the LoRA adapter onto `Qwen/Qwen2.5-Coder-1.5B-Instruct`. To reproduce or repair:
323
+
324
+ ```bash
325
+ git clone https://huggingface.co/Nanthasit/sakthai-coder-browser-lora adapter
326
+ python -m peft.merge_and_unload \
327
+ --base_model Qwen/Qwen2.5-Coder-1.5B-Instruct \
328
+ --adapter adapter \
329
+ --output repaired-merged \
330
+ --safe
331
+ ```
332
+
333
+ Important: zero-out attention-projection biases after merge if the base initializes them to zero:
334
+
335
+ ```python
336
+ from transformers import AutoModelForCausalLM
337
+ model = AutoModelForCausalLM.from_pretrained("repaired-merged", trust_remote_code=True)
338
+ for name, param in model.named_parameters():
339
+ if "bias" in name and "attn" in name and "k_proj" in name:
340
+ param.data.zero_()
341
+ ```
342
+
343
+ Run the eval probe again before publishing.
344
+
345
+ ---
346
+
347
  ## Limitations
348
 
349
  - **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