Add issue 17 data RL KL artifacts
Browse files- circuit-shotting/artifacts/issue17/data_rl_kl_non_math/qwen25_1p5b_2digit_data_rl_kl_issue17.artifacts.tar.gz +3 -0
- circuit-shotting/artifacts/issue17/data_rl_kl_non_math/qwen25_1p5b_2digit_data_rl_kl_issue17.artifacts.tar.gz.sha256 +3 -0
- circuit-shotting/artifacts/issue17/data_rl_kl_non_math/summary.json +256 -0
- circuit-shotting/artifacts/issue17/data_rl_kl_non_math/summary.md +24 -0
circuit-shotting/artifacts/issue17/data_rl_kl_non_math/qwen25_1p5b_2digit_data_rl_kl_issue17.artifacts.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:279a9cf91f0ce77c047464bab5c116481304aef8192f17ebfcd74f83f716def5
|
| 3 |
+
size 561958671
|
circuit-shotting/artifacts/issue17/data_rl_kl_non_math/qwen25_1p5b_2digit_data_rl_kl_issue17.artifacts.tar.gz.sha256
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0e3daf1fc6d74ac8500bbcc3fd1ec2e3bbfcbe3e7c471bf501435b822f003d0
|
| 3 |
+
size 129
|
circuit-shotting/artifacts/issue17/data_rl_kl_non_math/summary.json
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_dir": "results/qwen25_1p5b_2digit_data_rl_kl_issue17",
|
| 3 |
+
"model": "Qwen/Qwen2.5-1.5B",
|
| 4 |
+
"model_key": "qwen25_1p5b",
|
| 5 |
+
"min_accuracy": 0.995,
|
| 6 |
+
"base_accuracy": {
|
| 7 |
+
"n_tested": 8100,
|
| 8 |
+
"n_correct": 6705,
|
| 9 |
+
"accuracy": 0.8277777777777777
|
| 10 |
+
},
|
| 11 |
+
"variants": [
|
| 12 |
+
{
|
| 13 |
+
"name": "eos_diverse_carry_hard_kl_1000",
|
| 14 |
+
"config": {
|
| 15 |
+
"variant": "eos_diverse_carry_hard_kl_1000",
|
| 16 |
+
"kind": "kl",
|
| 17 |
+
"kl_beta": 0.05,
|
| 18 |
+
"kl_on": "prompt",
|
| 19 |
+
"prompt_template_set": "diverse",
|
| 20 |
+
"append_eos": true,
|
| 21 |
+
"carry_oversample_multiplier": 3,
|
| 22 |
+
"hard_pair_multiplier": 3,
|
| 23 |
+
"max_steps": 1000,
|
| 24 |
+
"lr": 0.0002,
|
| 25 |
+
"lora_r": 32,
|
| 26 |
+
"lora_alpha": 64,
|
| 27 |
+
"target_modules": "all-linear"
|
| 28 |
+
},
|
| 29 |
+
"train_final": {
|
| 30 |
+
"n": 8100,
|
| 31 |
+
"correct": 8100,
|
| 32 |
+
"accuracy": 1.0,
|
| 33 |
+
"overlong_digit_predictions": 0,
|
| 34 |
+
"overlong_digit_fraction": 0.0,
|
| 35 |
+
"wrong_sample": []
|
| 36 |
+
},
|
| 37 |
+
"merge": {
|
| 38 |
+
"scale": 0.55,
|
| 39 |
+
"accuracy": 0.9998765432098765,
|
| 40 |
+
"correct": 8099,
|
| 41 |
+
"n": 8100,
|
| 42 |
+
"overlong_digit_fraction": 0.0,
|
| 43 |
+
"kl_mean": 0.9180812204555221,
|
| 44 |
+
"rule": "lowest_kl_at_or_above_min_accuracy"
|
| 45 |
+
},
|
| 46 |
+
"fresh_masks": [
|
| 47 |
+
{
|
| 48 |
+
"mask": "target_search",
|
| 49 |
+
"mlp_kept": 23813,
|
| 50 |
+
"mlp_channel_fraction": 0.09491788903061224,
|
| 51 |
+
"selected_weight_fraction": 0.07088520930232559,
|
| 52 |
+
"teacher_forced_accuracy": 0.89,
|
| 53 |
+
"generation_accuracy": 0.8846666666666667
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"mask": "topk_500",
|
| 57 |
+
"mlp_kept": 20817,
|
| 58 |
+
"mlp_channel_fraction": 0.08297592474489796,
|
| 59 |
+
"selected_weight_fraction": 0.06196688372093023,
|
| 60 |
+
"teacher_forced_accuracy": 0.8046666666666666,
|
| 61 |
+
"generation_accuracy": 0.7993333333333333
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"name": "eos_diverse_carry_hard_kl_1000_nokl",
|
| 67 |
+
"config": {
|
| 68 |
+
"variant": "eos_diverse_carry_hard_kl_1000_nokl",
|
| 69 |
+
"kind": "nokl",
|
| 70 |
+
"kl_beta": 0.0,
|
| 71 |
+
"kl_on": "none",
|
| 72 |
+
"prompt_template_set": "diverse",
|
| 73 |
+
"append_eos": true,
|
| 74 |
+
"carry_oversample_multiplier": 3,
|
| 75 |
+
"hard_pair_multiplier": 3,
|
| 76 |
+
"max_steps": 1000,
|
| 77 |
+
"lr": 0.0002,
|
| 78 |
+
"lora_r": 32,
|
| 79 |
+
"lora_alpha": 64,
|
| 80 |
+
"target_modules": "all-linear"
|
| 81 |
+
},
|
| 82 |
+
"train_final": {
|
| 83 |
+
"n": 8100,
|
| 84 |
+
"correct": 8100,
|
| 85 |
+
"accuracy": 1.0,
|
| 86 |
+
"overlong_digit_predictions": 0,
|
| 87 |
+
"overlong_digit_fraction": 0.0,
|
| 88 |
+
"wrong_sample": []
|
| 89 |
+
},
|
| 90 |
+
"merge": {
|
| 91 |
+
"scale": 0.35,
|
| 92 |
+
"accuracy": 0.9991358024691358,
|
| 93 |
+
"correct": 8093,
|
| 94 |
+
"n": 8100,
|
| 95 |
+
"overlong_digit_fraction": 0.0,
|
| 96 |
+
"kl_mean": 4.024495058014611,
|
| 97 |
+
"rule": "lowest_kl_at_or_above_min_accuracy"
|
| 98 |
+
},
|
| 99 |
+
"fresh_masks": [
|
| 100 |
+
{
|
| 101 |
+
"mask": "target_search",
|
| 102 |
+
"mlp_kept": 111514,
|
| 103 |
+
"mlp_channel_fraction": 0.44449139030612245,
|
| 104 |
+
"selected_weight_fraction": 0.3319486511627907,
|
| 105 |
+
"teacher_forced_accuracy": 0.8853333333333333,
|
| 106 |
+
"generation_accuracy": 0.8833333333333333
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"mask": "topk_500",
|
| 110 |
+
"mlp_kept": 23380,
|
| 111 |
+
"mlp_channel_fraction": 0.09319196428571429,
|
| 112 |
+
"selected_weight_fraction": 0.06959627906976744,
|
| 113 |
+
"teacher_forced_accuracy": 0.33666666666666667,
|
| 114 |
+
"generation_accuracy": 0.3406666666666667
|
| 115 |
+
}
|
| 116 |
+
]
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "eos_diverse_hard_kl_800",
|
| 120 |
+
"config": {
|
| 121 |
+
"variant": "eos_diverse_hard_kl_800",
|
| 122 |
+
"kind": "kl",
|
| 123 |
+
"kl_beta": 0.05,
|
| 124 |
+
"kl_on": "prompt",
|
| 125 |
+
"prompt_template_set": "diverse",
|
| 126 |
+
"append_eos": true,
|
| 127 |
+
"carry_oversample_multiplier": 1,
|
| 128 |
+
"hard_pair_multiplier": 3,
|
| 129 |
+
"max_steps": 800,
|
| 130 |
+
"lr": 0.0002,
|
| 131 |
+
"lora_r": 32,
|
| 132 |
+
"lora_alpha": 64,
|
| 133 |
+
"target_modules": "all-linear"
|
| 134 |
+
},
|
| 135 |
+
"train_final": {
|
| 136 |
+
"n": 8100,
|
| 137 |
+
"correct": 8098,
|
| 138 |
+
"accuracy": 0.9997530864197531,
|
| 139 |
+
"overlong_digit_predictions": 0,
|
| 140 |
+
"overlong_digit_fraction": 0.0,
|
| 141 |
+
"wrong_sample": [
|
| 142 |
+
{
|
| 143 |
+
"prompt": "11 + 14 =",
|
| 144 |
+
"answer": "25",
|
| 145 |
+
"pred": "26"
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"prompt": "98 + 81 =",
|
| 149 |
+
"answer": "179",
|
| 150 |
+
"pred": "189"
|
| 151 |
+
}
|
| 152 |
+
]
|
| 153 |
+
},
|
| 154 |
+
"merge": {
|
| 155 |
+
"scale": 0.475,
|
| 156 |
+
"accuracy": 0.9979012345679013,
|
| 157 |
+
"correct": 8083,
|
| 158 |
+
"n": 8100,
|
| 159 |
+
"overlong_digit_fraction": 0.0,
|
| 160 |
+
"kl_mean": 0.8415878813923506,
|
| 161 |
+
"rule": "lowest_kl_at_or_above_min_accuracy"
|
| 162 |
+
},
|
| 163 |
+
"fresh_masks": []
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"name": "eos_legacy_kl_600",
|
| 167 |
+
"config": {
|
| 168 |
+
"variant": "eos_legacy_kl_600",
|
| 169 |
+
"kind": "kl",
|
| 170 |
+
"kl_beta": 0.05,
|
| 171 |
+
"kl_on": "prompt",
|
| 172 |
+
"prompt_template_set": "legacy",
|
| 173 |
+
"append_eos": true,
|
| 174 |
+
"carry_oversample_multiplier": 1,
|
| 175 |
+
"hard_pair_multiplier": 1,
|
| 176 |
+
"max_steps": 600,
|
| 177 |
+
"lr": 0.0002,
|
| 178 |
+
"lora_r": 32,
|
| 179 |
+
"lora_alpha": 64,
|
| 180 |
+
"target_modules": "all-linear"
|
| 181 |
+
},
|
| 182 |
+
"train_final": {
|
| 183 |
+
"n": 8100,
|
| 184 |
+
"correct": 8100,
|
| 185 |
+
"accuracy": 1.0,
|
| 186 |
+
"overlong_digit_predictions": 0,
|
| 187 |
+
"overlong_digit_fraction": 0.0,
|
| 188 |
+
"wrong_sample": []
|
| 189 |
+
},
|
| 190 |
+
"merge": {
|
| 191 |
+
"scale": 0.55,
|
| 192 |
+
"accuracy": 0.9964197530864197,
|
| 193 |
+
"correct": 8071,
|
| 194 |
+
"n": 8100,
|
| 195 |
+
"overlong_digit_fraction": 0.0,
|
| 196 |
+
"kl_mean": 0.9090030081650193,
|
| 197 |
+
"rule": "lowest_kl_at_or_above_min_accuracy"
|
| 198 |
+
},
|
| 199 |
+
"fresh_masks": []
|
| 200 |
+
}
|
| 201 |
+
],
|
| 202 |
+
"best_kl": {
|
| 203 |
+
"name": "eos_diverse_carry_hard_kl_1000",
|
| 204 |
+
"config": {
|
| 205 |
+
"variant": "eos_diverse_carry_hard_kl_1000",
|
| 206 |
+
"kind": "kl",
|
| 207 |
+
"kl_beta": 0.05,
|
| 208 |
+
"kl_on": "prompt",
|
| 209 |
+
"prompt_template_set": "diverse",
|
| 210 |
+
"append_eos": true,
|
| 211 |
+
"carry_oversample_multiplier": 3,
|
| 212 |
+
"hard_pair_multiplier": 3,
|
| 213 |
+
"max_steps": 1000,
|
| 214 |
+
"lr": 0.0002,
|
| 215 |
+
"lora_r": 32,
|
| 216 |
+
"lora_alpha": 64,
|
| 217 |
+
"target_modules": "all-linear"
|
| 218 |
+
},
|
| 219 |
+
"train_final": {
|
| 220 |
+
"n": 8100,
|
| 221 |
+
"correct": 8100,
|
| 222 |
+
"accuracy": 1.0,
|
| 223 |
+
"overlong_digit_predictions": 0,
|
| 224 |
+
"overlong_digit_fraction": 0.0,
|
| 225 |
+
"wrong_sample": []
|
| 226 |
+
},
|
| 227 |
+
"merge": {
|
| 228 |
+
"scale": 0.55,
|
| 229 |
+
"accuracy": 0.9998765432098765,
|
| 230 |
+
"correct": 8099,
|
| 231 |
+
"n": 8100,
|
| 232 |
+
"overlong_digit_fraction": 0.0,
|
| 233 |
+
"kl_mean": 0.9180812204555221,
|
| 234 |
+
"rule": "lowest_kl_at_or_above_min_accuracy"
|
| 235 |
+
},
|
| 236 |
+
"fresh_masks": [
|
| 237 |
+
{
|
| 238 |
+
"mask": "target_search",
|
| 239 |
+
"mlp_kept": 23813,
|
| 240 |
+
"mlp_channel_fraction": 0.09491788903061224,
|
| 241 |
+
"selected_weight_fraction": 0.07088520930232559,
|
| 242 |
+
"teacher_forced_accuracy": 0.89,
|
| 243 |
+
"generation_accuracy": 0.8846666666666667
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"mask": "topk_500",
|
| 247 |
+
"mlp_kept": 20817,
|
| 248 |
+
"mlp_channel_fraction": 0.08297592474489796,
|
| 249 |
+
"selected_weight_fraction": 0.06196688372093023,
|
| 250 |
+
"teacher_forced_accuracy": 0.8046666666666666,
|
| 251 |
+
"generation_accuracy": 0.7993333333333333
|
| 252 |
+
}
|
| 253 |
+
]
|
| 254 |
+
},
|
| 255 |
+
"gate_met": true
|
| 256 |
+
}
|
circuit-shotting/artifacts/issue17/data_rl_kl_non_math/summary.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue 17 Data/RL KL-LoRA Summary
|
| 2 |
+
|
| 3 |
+
Model: `Qwen/Qwen2.5-1.5B`
|
| 4 |
+
|
| 5 |
+
Base exact: `82.78%` (`6705/8100`).
|
| 6 |
+
Gate: `>= 99.50%`; met: `True`.
|
| 7 |
+
|
| 8 |
+
## Adapter Search
|
| 9 |
+
|
| 10 |
+
| variant | kind | templates | EOS | carry x | hard x | steps | scale | exact | overlong | KL | rule |
|
| 11 |
+
|---|---|---|---:|---:|---:|---:|---:|---:|---:|---:|---|
|
| 12 |
+
| `eos_diverse_carry_hard_kl_1000` | `kl` | `diverse` | `True` | 3 | 3 | 1000 | 0.55 | 99.99% | 0.00% | 0.9180812204555221 | `lowest_kl_at_or_above_min_accuracy` |
|
| 13 |
+
| `eos_diverse_carry_hard_kl_1000_nokl` | `nokl` | `diverse` | `True` | 3 | 3 | 1000 | 0.35 | 99.91% | 0.00% | 4.024495058014611 | `lowest_kl_at_or_above_min_accuracy` |
|
| 14 |
+
| `eos_diverse_hard_kl_800` | `kl` | `diverse` | `True` | 1 | 3 | 800 | 0.475 | 99.79% | 0.00% | 0.8415878813923506 | `lowest_kl_at_or_above_min_accuracy` |
|
| 15 |
+
| `eos_legacy_kl_600` | `kl` | `legacy` | `True` | 1 | 1 | 600 | 0.55 | 99.64% | 0.00% | 0.9090030081650193 | `lowest_kl_at_or_above_min_accuracy` |
|
| 16 |
+
|
| 17 |
+
## Fresh Recovery
|
| 18 |
+
|
| 19 |
+
| variant | mask | MLPs | MLP-channel % | selected-weight % | teacher-forced | generation |
|
| 20 |
+
|---|---|---:|---:|---:|---:|---:|
|
| 21 |
+
| `eos_diverse_carry_hard_kl_1000` | `target_search` | 23813 | 9.49% | 7.09% | 89.00% | 88.47% |
|
| 22 |
+
| `eos_diverse_carry_hard_kl_1000` | `topk_500` | 20817 | 8.30% | 6.20% | 80.47% | 79.93% |
|
| 23 |
+
| `eos_diverse_carry_hard_kl_1000_nokl` | `target_search` | 111514 | 44.45% | 33.19% | 88.53% | 88.33% |
|
| 24 |
+
| `eos_diverse_carry_hard_kl_1000_nokl` | `topk_500` | 23380 | 9.32% | 6.96% | 33.67% | 34.07% |
|