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

r4-gemma270m: model card

Browse files
Files changed (1) hide show
  1. r4-gemma270m/README.md +24 -0
r4-gemma270m/README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # r4-gemma270m
2
+
3
+ Gemma 3 270M full fine-tune on Molde data v3.1 (20,866 training pairs, language round 14), 4 epochs with early stopping, trained on the team GPU server. Licence: Gemma Terms of Use (https://ai.google.dev/gemma/terms); weights mirrored from google/gemma-3-270m-it.
4
+
5
+ Files: `ep2` (Q4_K_M and Q8_0, the best epoch by validation checker pass, 0.875, and the model in `hf/`), `ep3-approx-step4000` and `ep4-approx-step5000` (epoch ends are approximate: exported from the nearest 250-step checkpoint). The three newer files are not yet tested. Prompt: Gemma chat format; the turn markers are real control tokens in these files.
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
+
22
+ ## Fine-tune from these weights
23
+
24
+ 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-gemma270m/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.