oyekamal commited on
Commit
e1bde2c
·
verified ·
1 Parent(s): b2ba015

r4-qwen35-0.8b: model card

Browse files
Files changed (1) hide show
  1. r4-qwen35-0.8b/README.md +25 -0
r4-qwen35-0.8b/README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # r4-qwen35-0.8b
2
+
3
+ Qwen3.5-0.8B full fine-tune on Molde data v3.1 (20,866 training pairs, language round 14), 3 epochs, trained on the team GPU server. Licence: Apache 2.0 (base model Qwen/Qwen3.5-0.8B).
4
+
5
+ **Prompt template: ChatML** (`models.json` entries carry `"template": "chatml"`): `<|im_start|>system ...<|im_end|><|im_start|>user ...<|im_end|><|im_start|>assistant` followed by an empty `<think></think>` block, no BOS token. Files: `r4-qwen35-0.8b-ep1-Q4_K_M.gguf` (the measured one, **recommended**), `ep2`, `ep3` Q4_K_M and `ep3` Q8_0 (not yet tested). `hf/` holds the epoch-3 (final) weights.
6
+
7
+ ## Comparison (measured)
8
+
9
+ | | r3 Gemma 270M | r4 Gemma 270M epoch 2 | r4 Qwen3.5-0.8B epoch 1 |
10
+ |---|---|---|---|
11
+ | heldout2 (149 requests), checker pass | 90.6% | 89.3% | **94.6%** |
12
+ | heldout2 intent score | 0.726 | 0.724 | **0.760** |
13
+ | 60 short named requests, asks instead of building | 31.7% | 21.7% | **11.7%** |
14
+ | same 60 through the app (no-ask rule), builds that pass | **59** | 53 | 56 |
15
+ | 40 small changes through the app, do what was asked | 14 | 16 | **22** |
16
+ | seconds per create / per small edit (laptop, 4 threads, app core 0.6.0) | 2.3 / 5.6 | 3.2 / 5.0 | 4.3 / 11 |
17
+ | file (Q4_K_M) | 241 MB | 241 MB | 504 MB |
18
+
19
+ Test: MoldeScript heldout2 (149 requests written independently of the training data), the app's own generation loop with the line-stepped decoder (arm E), one laptop CPU with other jobs running (load average 6 to 10), so the speeds are rough. Epochs not listed in the table are exported but **not yet tested**; the Gemma epoch-1 weights (94.6% heldout2, 5% asks) were deleted by mistake and cannot be exported again.
20
+
21
+ Honest limits: about 2 times slower than the Gemma files; the validation checker pass logged during training (generated without the grammar, one request at a time) was 0.25, 0.50 and 0.675 at epochs 1, 2 and 3, so later epochs may be better or worse on the app test: that test has not been run on them yet. The `hf/` weights are epoch 3, the GGUF marked recommended is epoch 1 (its full weights were overwritten during training).
22
+
23
+ ## Fine-tune from these weights
24
+
25
+ The full-precision weights are in [`hf/`](hf/) (bf16 safetensors, config, tokenizer with the MoldeScript keyword tokens already added). Load with `AutoModelForCausalLM.from_pretrained("oyekamal/molde-tiny", subfolder="r4-qwen35-0.8b/hf")` and continue training with `train/train.py` from the Molde repo (https://github.com/Orenda-Project/molde). The GGUF files are quantised exports of the same training run for llama.cpp.