Siyuc commited on
Commit
0802fde
·
verified ·
1 Parent(s): 301f485

Add unified Lookahead checkpoint paths and naming map

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. LOOKAHEAD_NAME_MAP.json +429 -0
  2. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/NAMING.json +21 -0
  3. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/README.md +44 -0
  4. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/config.json +140 -0
  5. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/launch_config.env +100 -0
  6. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/manifest.json +30 -0
  7. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/model.safetensors +3 -0
  8. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/training_recipe.json +142 -0
  9. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/NAMING.json +21 -0
  10. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/README.md +7 -0
  11. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/checkpoints/iter_0012000/mp_rank_00/model_optim_rng.pt +3 -0
  12. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/checkpoints/latest_checkpointed_iteration.txt +1 -0
  13. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/code.diff +14 -0
  14. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank000.pt +3 -0
  15. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank001.pt +3 -0
  16. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank002.pt +3 -0
  17. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank003.pt +3 -0
  18. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank004.pt +3 -0
  19. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank005.pt +3 -0
  20. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank006.pt +3 -0
  21. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank007.pt +3 -0
  22. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/launch_config.env +123 -0
  23. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/manifest.json +77 -0
  24. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/project_revision.txt +1 -0
  25. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/resume_provenance.json +94 -0
  26. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/source_overlay/src/loop_transformer_backends/megatron/wandb_storage.py +18 -0
  27. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/training_recipe.json +143 -0
  28. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/README.md +40 -0
  29. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/config.json +237 -0
  30. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/launch_config.env +123 -0
  31. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/manifest.json +33 -0
  32. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/model.safetensors +3 -0
  33. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/training_recipe.json +150 -0
  34. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/README.md +40 -0
  35. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/config.json +237 -0
  36. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/launch_config.env +123 -0
  37. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/manifest.json +33 -0
  38. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/model.safetensors +3 -0
  39. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/training_recipe.json +150 -0
  40. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/README.md +40 -0
  41. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/config.json +237 -0
  42. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/launch_config.env +123 -0
  43. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/manifest.json +33 -0
  44. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/model.safetensors +3 -0
  45. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/training_recipe.json +150 -0
  46. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/README.md +40 -0
  47. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/config.json +237 -0
  48. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/launch_config.env +123 -0
  49. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/manifest.json +33 -0
  50. Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/model.safetensors +3 -0
LOOKAHEAD_NAME_MAP.json ADDED
@@ -0,0 +1,429 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "pattern": "Lookahead-K3-LA2-Aa-Rr-Dd-Pp-Ff-seedN[-distinguishers]--wandb_id",
4
+ "decimal_separator": "p",
5
+ "legacy_defaults": "Missing legacy A/R/D/P/F options use the verified backward-compatible A0/R0/0/0/0 policy defaults. Seeds always come from saved W&B configuration.",
6
+ "runs": [
7
+ {
8
+ "wandb_id": "my34axon",
9
+ "previous_wandb_name": "r4_la_hf_warmstart_s12000_to26703",
10
+ "training_run_name": "r4_la_hf_warmstart_s12000_to26703",
11
+ "canonical_name": "Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-normIn-normOut-warmstart12000-to26703--my34axon",
12
+ "architecture": "lookahead",
13
+ "fields": {
14
+ "K": 3,
15
+ "A": "A2",
16
+ "R": "R0",
17
+ "D": 0,
18
+ "P": 0,
19
+ "F": 0,
20
+ "normIn": true,
21
+ "normOut": true
22
+ },
23
+ "seed": 42,
24
+ "hf_old_paths": [
25
+ "r4_weights_only_d0_p0_a2_r0_s12000_to26703"
26
+ ]
27
+ },
28
+ {
29
+ "wandb_id": "wkv2n5ub",
30
+ "previous_wandb_name": "r4_la_hf_warmstart_s20000_to26703",
31
+ "training_run_name": "r4_la_hf_warmstart_s20000_to26703",
32
+ "canonical_name": "Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-normIn-normOut-warmstart20000-to26703--wkv2n5ub",
33
+ "architecture": "lookahead",
34
+ "fields": {
35
+ "K": 3,
36
+ "A": "A2",
37
+ "R": "R0",
38
+ "D": 0,
39
+ "P": 0,
40
+ "F": 0,
41
+ "normIn": true,
42
+ "normOut": true
43
+ },
44
+ "seed": 42,
45
+ "hf_old_paths": [
46
+ "r4_weights_only_d0_p0_a2_r0_s20000_to26703"
47
+ ]
48
+ },
49
+ {
50
+ "wandb_id": "7t0tefok",
51
+ "previous_wandb_name": "r4_la_hf_warmstart_s16000_to26703",
52
+ "training_run_name": "r4_la_hf_warmstart_s16000_to26703",
53
+ "canonical_name": "Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-normIn-normOut-warmstart16000-to26703--7t0tefok",
54
+ "architecture": "lookahead",
55
+ "fields": {
56
+ "K": 3,
57
+ "A": "A2",
58
+ "R": "R0",
59
+ "D": 0,
60
+ "P": 0,
61
+ "F": 0,
62
+ "normIn": true,
63
+ "normOut": true
64
+ },
65
+ "seed": 42,
66
+ "hf_old_paths": [
67
+ "r4_weights_only_d0_p0_a2_r0_s16000_to26703"
68
+ ]
69
+ },
70
+ {
71
+ "wandb_id": "xhm12l4y",
72
+ "previous_wandb_name": "r3-a1-r0-d0-p0-f0-s42-7b--xhm12l4y",
73
+ "training_run_name": "r3_D0-P0-A1-R0_7b_seed42_20260920-023045",
74
+ "canonical_name": "Lookahead-K3-LA2-A1-R0-D0-P0-F0-seed42-7b--xhm12l4y",
75
+ "architecture": "lookahead",
76
+ "fields": {
77
+ "K": 3,
78
+ "A": "A1",
79
+ "R": "R0",
80
+ "D": 0,
81
+ "P": 0,
82
+ "F": 0,
83
+ "normIn": false,
84
+ "normOut": false
85
+ },
86
+ "seed": 42,
87
+ "hf_old_paths": []
88
+ },
89
+ {
90
+ "wandb_id": "rsk51lmo",
91
+ "previous_wandb_name": "r3-a0-r1-d0-p0-f1-s42-7b--rsk51lmo",
92
+ "training_run_name": "r3_D0-P0-A0-R1_7b_seed42_20260919-161651",
93
+ "canonical_name": "Lookahead-K3-LA2-A0-R1-D0-P0-F1-seed42-7b--rsk51lmo",
94
+ "architecture": "lookahead",
95
+ "fields": {
96
+ "K": 3,
97
+ "A": "A0",
98
+ "R": "R1",
99
+ "D": 0,
100
+ "P": 0,
101
+ "F": 1,
102
+ "normIn": false,
103
+ "normOut": false
104
+ },
105
+ "seed": 42,
106
+ "hf_old_paths": [
107
+ "r3_D0-P0-A0-R1_7b_seed42_20260919-161651"
108
+ ]
109
+ },
110
+ {
111
+ "wandb_id": "fob3gqiq",
112
+ "previous_wandb_name": "r3-a2-r1-d0-p0-f1-s42-7b--fob3gqiq",
113
+ "training_run_name": "r3_D0-P0-A2-R1_7b_seed42_20260919-161651",
114
+ "canonical_name": "Lookahead-K3-LA2-A2-R1-D0-P0-F1-seed42-7b--fob3gqiq",
115
+ "architecture": "lookahead",
116
+ "fields": {
117
+ "K": 3,
118
+ "A": "A2",
119
+ "R": "R1",
120
+ "D": 0,
121
+ "P": 0,
122
+ "F": 1,
123
+ "normIn": false,
124
+ "normOut": false
125
+ },
126
+ "seed": 42,
127
+ "hf_old_paths": [
128
+ "r3_D0-P0-A2-R1_7b_seed42_20260919-161651"
129
+ ]
130
+ },
131
+ {
132
+ "wandb_id": "1jtjk6d7",
133
+ "previous_wandb_name": "r3-a2-r0-d0-p0-f0-s42-7b--1jtjk6d7",
134
+ "training_run_name": "r3_D0-P0-A2-R0_7b_seed42_20260919-160042",
135
+ "canonical_name": "Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-7b--1jtjk6d7",
136
+ "architecture": "lookahead",
137
+ "fields": {
138
+ "K": 3,
139
+ "A": "A2",
140
+ "R": "R0",
141
+ "D": 0,
142
+ "P": 0,
143
+ "F": 0,
144
+ "normIn": false,
145
+ "normOut": false
146
+ },
147
+ "seed": 42,
148
+ "hf_old_paths": [
149
+ "r3_D0-P0-A2-R0_7b_seed42_20260919-160042"
150
+ ]
151
+ },
152
+ {
153
+ "wandb_id": "gcwdjm01",
154
+ "previous_wandb_name": "r3-a2-r0-d0-p0p2-f0-s42-7b--gcwdjm01",
155
+ "training_run_name": "r3_D0-A2-R0_7b_seed42_20260919-040210",
156
+ "canonical_name": "Lookahead-K3-LA2-A2-R0-D0-P0p2-F0-seed42-7b--gcwdjm01",
157
+ "architecture": "lookahead",
158
+ "fields": {
159
+ "K": 3,
160
+ "A": "A2",
161
+ "R": "R0",
162
+ "D": 0,
163
+ "P": 0.2,
164
+ "F": 0,
165
+ "normIn": false,
166
+ "normOut": false
167
+ },
168
+ "seed": 42,
169
+ "hf_old_paths": [
170
+ "r3_D0-A2-R0_7b_seed42_20260919-040210"
171
+ ]
172
+ },
173
+ {
174
+ "wandb_id": "3pjop6r1",
175
+ "previous_wandb_name": "r3-a0-r0-d0p2-p0p2-f0-s42-7b--3pjop6r1",
176
+ "training_run_name": "r3_D1-A0-R0_7b_seed42_20260919-040211",
177
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0p2-P0p2-F0-seed42-7b--3pjop6r1",
178
+ "architecture": "lookahead",
179
+ "fields": {
180
+ "K": 3,
181
+ "A": "A0",
182
+ "R": "R0",
183
+ "D": 0.2,
184
+ "P": 0.2,
185
+ "F": 0,
186
+ "normIn": false,
187
+ "normOut": false
188
+ },
189
+ "seed": 42,
190
+ "hf_old_paths": [
191
+ "r3_D1-A0-R0_7b_seed42_20260919-040211"
192
+ ]
193
+ },
194
+ {
195
+ "wandb_id": "djlht18n",
196
+ "previous_wandb_name": "r3-a2-r0-d0p2-p0p2-f0-s42-7b--djlht18n",
197
+ "training_run_name": "r3_d1_a2_r0_7b_seed42_20260919-035203-resume",
198
+ "canonical_name": "Lookahead-K3-LA2-A2-R0-D0p2-P0p2-F0-seed42-7b--djlht18n",
199
+ "architecture": "lookahead",
200
+ "fields": {
201
+ "K": 3,
202
+ "A": "A2",
203
+ "R": "R0",
204
+ "D": 0.2,
205
+ "P": 0.2,
206
+ "F": 0,
207
+ "normIn": false,
208
+ "normOut": false
209
+ },
210
+ "seed": 42,
211
+ "hf_old_paths": [
212
+ "r3_d1_a2_r0_7b_seed42_20260919-035203-resume"
213
+ ]
214
+ },
215
+ {
216
+ "wandb_id": "piob4h78",
217
+ "previous_wandb_name": "r3-a0-r0-d0-p0p05-f0-gstatesonly-s42-16kstep--piob4h78",
218
+ "training_run_name": "r3_lookahead_states_only_product_20260918-212932",
219
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0p05-F0-seed42-grad-states-only-16kstep--piob4h78",
220
+ "architecture": "lookahead",
221
+ "fields": {
222
+ "K": 3,
223
+ "A": "A0",
224
+ "R": "R0",
225
+ "D": 0,
226
+ "P": 0.05,
227
+ "F": 0,
228
+ "normIn": false,
229
+ "normOut": false
230
+ },
231
+ "seed": 42,
232
+ "hf_old_paths": []
233
+ },
234
+ {
235
+ "wandb_id": "b5xq9efg",
236
+ "previous_wandb_name": "r3-a0-r0-d0-p0p05-f0-gheadonly-s42-16kstep--b5xq9efg",
237
+ "training_run_name": "r3_lookahead_head_only_product_20260918-212932",
238
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0p05-F0-seed42-grad-head-only-16kstep--b5xq9efg",
239
+ "architecture": "lookahead",
240
+ "fields": {
241
+ "K": 3,
242
+ "A": "A0",
243
+ "R": "R0",
244
+ "D": 0,
245
+ "P": 0.05,
246
+ "F": 0,
247
+ "normIn": false,
248
+ "normOut": false
249
+ },
250
+ "seed": 42,
251
+ "hf_old_paths": []
252
+ },
253
+ {
254
+ "wandb_id": "7tv5vb6g",
255
+ "previous_wandb_name": "r3-a0-r0-d0-p0-f0-s42-14b--7tv5vb6g",
256
+ "training_run_name": "20260918-LA14B-prod-02",
257
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-14b--7tv5vb6g",
258
+ "architecture": "lookahead",
259
+ "fields": {
260
+ "K": 3,
261
+ "A": "A0",
262
+ "R": "R0",
263
+ "D": 0,
264
+ "P": 0,
265
+ "F": 0,
266
+ "normIn": false,
267
+ "normOut": false
268
+ },
269
+ "seed": 42,
270
+ "hf_old_paths": []
271
+ },
272
+ {
273
+ "wandb_id": "3qdhqjxj",
274
+ "previous_wandb_name": "r3-a0-r0-competitive-d0-p0-f0-s42-16kstep--3qdhqjxj",
275
+ "training_run_name": "20260918-194754_competitive-16gpu-seed42-product",
276
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-fusion-competitive-16kstep--3qdhqjxj",
277
+ "architecture": "lookahead",
278
+ "fields": {
279
+ "K": 3,
280
+ "A": "A0",
281
+ "R": "R0",
282
+ "D": 0,
283
+ "P": 0,
284
+ "F": 0,
285
+ "normIn": false,
286
+ "normOut": false
287
+ },
288
+ "seed": 42,
289
+ "hf_old_paths": []
290
+ },
291
+ {
292
+ "wandb_id": "db7elm9j",
293
+ "previous_wandb_name": "r3-a0-r0-d0-p0p05-f0-s43-16kstep--db7elm9j",
294
+ "training_run_name": "r3_b300_alpha0p05-seed43_product_20260918-170108",
295
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0p05-F0-seed43-16kstep--db7elm9j",
296
+ "architecture": "lookahead",
297
+ "fields": {
298
+ "K": 3,
299
+ "A": "A0",
300
+ "R": "R0",
301
+ "D": 0,
302
+ "P": 0.05,
303
+ "F": 0,
304
+ "normIn": false,
305
+ "normOut": false
306
+ },
307
+ "seed": 43,
308
+ "hf_old_paths": []
309
+ },
310
+ {
311
+ "wandb_id": "bapl3lfs",
312
+ "previous_wandb_name": "r3-a0-r0-d0-p0-f0-s43-7b--bapl3lfs",
313
+ "training_run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109",
314
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs",
315
+ "architecture": "lookahead",
316
+ "fields": {
317
+ "K": 3,
318
+ "A": "A0",
319
+ "R": "R0",
320
+ "D": 0,
321
+ "P": 0,
322
+ "F": 0,
323
+ "normIn": false,
324
+ "normOut": false
325
+ },
326
+ "seed": 43,
327
+ "hf_old_paths": [
328
+ "r3_b300_alpha0p0-seed43_product_20260918-170109"
329
+ ]
330
+ },
331
+ {
332
+ "wandb_id": "fo94dla9",
333
+ "previous_wandb_name": "r3-a0-r0-d0-p0p2-f0-s42-16kstep--fo94dla9",
334
+ "training_run_name": "r3_b300_alpha0p2-seed42_product_20260918-170100",
335
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0p2-F0-seed42-16kstep--fo94dla9",
336
+ "architecture": "lookahead",
337
+ "fields": {
338
+ "K": 3,
339
+ "A": "A0",
340
+ "R": "R0",
341
+ "D": 0,
342
+ "P": 0.2,
343
+ "F": 0,
344
+ "normIn": false,
345
+ "normOut": false
346
+ },
347
+ "seed": 42,
348
+ "hf_old_paths": []
349
+ },
350
+ {
351
+ "wandb_id": "14vjphny",
352
+ "previous_wandb_name": "r3-a0-r0-d0-p0p1-f0-s42-16kstep--14vjphny",
353
+ "training_run_name": "r3_b300_alpha0p1-seed42_product_20260918-165348",
354
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0p1-F0-seed42-16kstep--14vjphny",
355
+ "architecture": "lookahead",
356
+ "fields": {
357
+ "K": 3,
358
+ "A": "A0",
359
+ "R": "R0",
360
+ "D": 0,
361
+ "P": 0.1,
362
+ "F": 0,
363
+ "normIn": false,
364
+ "normOut": false
365
+ },
366
+ "seed": 42,
367
+ "hf_old_paths": []
368
+ },
369
+ {
370
+ "wandb_id": "83uufov3",
371
+ "previous_wandb_name": "r3-a0-r0-d0-p0p05-f0-s42-16kstep--83uufov3",
372
+ "training_run_name": "r3_lookahead_future05_16k_20260918-112504",
373
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0p05-F0-seed42-16kstep--83uufov3",
374
+ "architecture": "lookahead",
375
+ "fields": {
376
+ "K": 3,
377
+ "A": "A0",
378
+ "R": "R0",
379
+ "D": 0,
380
+ "P": 0.05,
381
+ "F": 0,
382
+ "normIn": false,
383
+ "normOut": false
384
+ },
385
+ "seed": 42,
386
+ "hf_old_paths": []
387
+ },
388
+ {
389
+ "wandb_id": "cy5gslq2",
390
+ "previous_wandb_name": "r3-a0-r0-d0-p0-f0-s42-16kstep--cy5gslq2",
391
+ "training_run_name": "r3_lookahead_control_16k_20260918-112311",
392
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-16kstep--cy5gslq2",
393
+ "architecture": "lookahead",
394
+ "fields": {
395
+ "K": 3,
396
+ "A": "A0",
397
+ "R": "R0",
398
+ "D": 0,
399
+ "P": 0,
400
+ "F": 0,
401
+ "normIn": false,
402
+ "normOut": false
403
+ },
404
+ "seed": 42,
405
+ "hf_old_paths": []
406
+ },
407
+ {
408
+ "wandb_id": "9i6byar5",
409
+ "previous_wandb_name": "r3-a0-r0-d0-p0-f0-s42-7b--9i6byar5",
410
+ "training_run_name": "paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928",
411
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5",
412
+ "architecture": "lookahead",
413
+ "fields": {
414
+ "K": 3,
415
+ "A": "A0",
416
+ "R": "R0",
417
+ "D": 0,
418
+ "P": 0,
419
+ "F": 0,
420
+ "normIn": false,
421
+ "normOut": false
422
+ },
423
+ "seed": 42,
424
+ "hf_old_paths": [
425
+ "paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928"
426
+ ]
427
+ }
428
+ ]
429
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/NAMING.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "wandb_id": "9i6byar5",
3
+ "previous_wandb_name": "r3-a0-r0-d0-p0-f0-s42-7b--9i6byar5",
4
+ "training_run_name": "paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928",
5
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5",
6
+ "architecture": "lookahead",
7
+ "fields": {
8
+ "K": 3,
9
+ "A": "A0",
10
+ "R": "R0",
11
+ "D": 0,
12
+ "P": 0,
13
+ "F": 0,
14
+ "normIn": false,
15
+ "normOut": false
16
+ },
17
+ "seed": 42,
18
+ "hf_old_paths": [
19
+ "paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928"
20
+ ]
21
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lookahead K3 LA2 — step 26703
2
+
3
+ Training run: `paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928`. Final checkpoint after **7,000,031,232 input tokens**; training exited successfully on 2026-09-18 (Asia/Shanghai).
4
+
5
+ Native loopTF Lookahead weights, preserving tensor names and dtypes from the TP=1/PP=1 Megatron checkpoint. There are **661,315,072 parameters** in the complete model, including the Lookahead components. K3 uses three complete passes, each with one real and one pseudo backbone forward. LA2 is the existing design's naming label, not two extra pseudo steps.
6
+
7
+ `model.safetensors`, `config.json`, `launch_config.env`, and `training_recipe.json` follow this repository's vanilla export convention. `config.json` also records constructor arguments and final validation; `manifest.json` records payload sizes and SHA256 hashes. This is a model-weights export, not a complete training-resume checkpoint. Optimizer, scheduler, RNG, dataloader state and credentials are excluded.
8
+
9
+ ## Load with the project implementation
10
+
11
+ Use [loopTF-workspace](https://github.com/FFishy-git/loopTF-workspace) at training revision `432ef3046b5cf834ad4f61e3985cd3013343eeba` with its `src` directory on `PYTHONPATH` and the dependencies installed. This custom architecture is **not** a Transformers `AutoModel.from_pretrained` export.
12
+
13
+ After downloading this step folder, set `export_dir` to its local path:
14
+
15
+ ```python
16
+ import json
17
+ from pathlib import Path
18
+ import torch
19
+ from safetensors.torch import load_file
20
+ from lookahead_tf.hf.config import ModelConfig
21
+ from lookahead_tf.hf.model import LookaheadTransformer
22
+ from lookahead_tf.policy import LookaheadConfig
23
+
24
+ export_dir = Path("/path/to/step_26703")
25
+ config = json.loads((export_dir / "config.json").read_text())
26
+ with torch.device("meta"):
27
+ model = LookaheadTransformer(
28
+ ModelConfig(**config["model_config"]),
29
+ LookaheadConfig(**config["lookahead_config"]),
30
+ )
31
+ state = load_file(str(export_dir / "model.safetensors"), device="cpu")
32
+ assert all(key.startswith("model.") for key in state)
33
+ model.load_state_dict(
34
+ {key.removeprefix("model."): value for key, value in state.items()},
35
+ strict=True, assign=True,
36
+ )
37
+ model.eval()
38
+ ```
39
+
40
+ Use the pinned Llama-2 tokenizer plus `<|assistant_end|>` described in `config.json` (32,001 active tokens). The vocabulary tensors retain padding to 32,064. The launch snapshot records base settings; `training_run` in `config.json` is the effective timestamped run identity.
41
+
42
+ Final held-out pass-3 CE: **2.27749586**, perplexity **9.75222887**, over 34,560 sequences / 70,778,880 input tokens. No new evaluation or training was performed during export.
43
+
44
+ [Weights & Biases run](https://wandb.ai/LoopTF-4-CSPs/loopTF-workspace/runs/9i6byar5)
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/config.json ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "squared_relu",
3
+ "activation_checkpointing": false,
4
+ "attention": "full_causal",
5
+ "attention_output_gate": false,
6
+ "backbone_profile": "paper2604_vanilla",
7
+ "bias": false,
8
+ "block_application_multiplier": 6.449999999999999,
9
+ "cache_layer_indices": [
10
+ 0,
11
+ 10,
12
+ 19
13
+ ],
14
+ "checkpoint_format": "safetensors_native_megatron_state_dict",
15
+ "checkpoint_iteration": 26703,
16
+ "checkpoint_refiner": false,
17
+ "checkpoint_version": 3.0,
18
+ "crop_padding_before_loss": true,
19
+ "dropout": 0.0,
20
+ "eval_passes": 3,
21
+ "execution_architecture": "lookahead",
22
+ "feedback_loss_weight": 1.0,
23
+ "ffn_hidden_size": 5632,
24
+ "final_validation": {
25
+ "eval/checkpoint_step": 26703,
26
+ "eval/final_val/dataset_id": "config-a71f5512f13ffd6f",
27
+ "eval/final_val/final_ce": 2.277495861053467,
28
+ "eval/final_val/final_ppl": 9.752228871149752,
29
+ "eval/final_val/num_input_tokens": 70778880,
30
+ "eval/final_val/num_sequences": 34560,
31
+ "eval/final_val/num_tokens": 70778880,
32
+ "eval/final_val/pass_1_ce": 2.3000683784484863,
33
+ "eval/final_val/pass_1_ppl": 9.974864497254137,
34
+ "eval/final_val/pass_2_ce": 2.2785534858703613,
35
+ "eval/final_val/pass_2_ppl": 9.762548526623844,
36
+ "eval/final_val/pass_3_ce": 2.277495861053467,
37
+ "eval/final_val/pass_3_ppl": 9.752228871149752,
38
+ "eval/final_val/pass_count": 3,
39
+ "eval/is_final": true
40
+ },
41
+ "head_dim": 128,
42
+ "hidden_size": 1408,
43
+ "initialization": {
44
+ "embedding_normal_std": 1.0,
45
+ "head_normal_std": 0.001,
46
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
47
+ "norm_scale": 1.0
48
+ },
49
+ "loading_note": "Native LookaheadMegatronModel state_dict keys, not a Transformers AutoModel export. For LookaheadTransformer, remove exactly the leading model. prefix and load with strict=True; assign=True preserves saved dtypes. No optimizer, scheduler, RNG, or data-loader state is included.",
50
+ "logit_softcap": 15.0,
51
+ "lookahead_config": {
52
+ "attention_backend": "sdpa_auto",
53
+ "cache_layer_indices": null,
54
+ "checkpoint_refiner": false,
55
+ "feedback_loss_weight": 1.0,
56
+ "mode": "parallel",
57
+ "num_passes": 3,
58
+ "refiner_gate_bias": -2.0,
59
+ "refiner_intermediate_size": 5632
60
+ },
61
+ "lookahead_mode": "parallel",
62
+ "model_config": {
63
+ "attention_dropout": 0.0,
64
+ "attn_implementation": "sdpa",
65
+ "backbone_profile": "paper2604_vanilla",
66
+ "gradient_checkpointing": false,
67
+ "hf_config_overrides": {},
68
+ "hidden_size": 1408,
69
+ "initializer_range": 0.02,
70
+ "intermediate_size": 5632,
71
+ "max_position_embeddings": 2048,
72
+ "model_type": "full_bandwidth",
73
+ "num_attention_heads": 11,
74
+ "num_hidden_layers": 20,
75
+ "num_key_value_heads": 11,
76
+ "padded_vocab_size": 32064,
77
+ "paper_full_attention_interval": 6,
78
+ "paper_sliding_window": 2048,
79
+ "pretrained_model_name_or_path": null,
80
+ "revision": null,
81
+ "rms_norm_eps": 1e-06,
82
+ "rope_theta": 10000,
83
+ "tie_word_embeddings": false,
84
+ "trust_remote_code": false,
85
+ "vocab_size": 32001
86
+ },
87
+ "model_level_norms": [
88
+ "embedding",
89
+ "recur",
90
+ "final"
91
+ ],
92
+ "naming_note": "K3 is three complete passes including the seed. LA2 labels the existing one-real-plus-one-pseudo-forward design per pass; it does not add two future pseudo steps.",
93
+ "non_tensor_state_dict_entries": {},
94
+ "norm_epsilon": 1e-06,
95
+ "num_attention_heads": 11,
96
+ "num_kv_heads": 11,
97
+ "num_layers": 20,
98
+ "objective": "lookahead_parallel_next_token",
99
+ "padded_vocab_size": 32064,
100
+ "parameter_counts": {
101
+ "backbone_total_trainable": 566144128,
102
+ "feedback_parameters": 3964928,
103
+ "lookahead_parameters": 95170944,
104
+ "non_embedding_matrix_formula": 475791360,
105
+ "non_embedding_paper_N": 475851904,
106
+ "total_parameters": 661315072,
107
+ "total_trainable": 661315072
108
+ },
109
+ "pipeline_parallel_size": 1,
110
+ "projection_dtype": "bfloat16 (production)",
111
+ "pseudo_backend": "sdpa_auto",
112
+ "qk_norm": "functional_rmsnorm_after_rope",
113
+ "refiner_activation": "silu_gated",
114
+ "residual_and_norm_scale_dtype": "float32",
115
+ "residual_multiplier": 1.0,
116
+ "rope_base": 10000.0,
117
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
118
+ "sequence_length": 2048,
119
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
120
+ "tensor_count": 194,
121
+ "tensor_dtypes": {
122
+ "torch.bfloat16": 143,
123
+ "torch.float32": 51
124
+ },
125
+ "tensor_parallel_size": 1,
126
+ "tied_embeddings": false,
127
+ "tokenizer": {
128
+ "active_vocab_size": 32001,
129
+ "additional_token": "<|assistant_end|>",
130
+ "repo_id": "NousResearch/Llama-2-7b-hf",
131
+ "revision": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d"
132
+ },
133
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
134
+ "train_passes": 3,
135
+ "training_code_revision": "432ef3046b5cf834ad4f61e3985cd3013343eeba",
136
+ "training_run": "paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928",
137
+ "training_tokens": 7000031232,
138
+ "vocab_size": 32001,
139
+ "width_scale": 22
140
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/launch_config.env ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Look-ahead K3/LA2 matching vanilla/476M_7b_FBW0_K3.env's feedback depth and training recipe.
2
+ # LA2 names the existing two-stage design: one real plus one pseudo backbone forward per pass.
3
+ # See configs/lookahead/README.md for the additional pseudo/refiner computation.
4
+ TRAIN_ARCHITECTURE=lookahead
5
+ BACKBONE_PROFILE=paper2604_vanilla
6
+ TRAINING_RECIPE=paper2604_21106
7
+ RECIPE_OVERRIDES='{}'
8
+ # Use the installed Transformers release; the cluster's dev checkout is incompatible.
9
+ TRANSFORMERS_PATH=''
10
+ RUN_NAME=paper2604_lookahead_476m_7b_online_K3_LA2
11
+ RESUME_POLICY=fresh
12
+ REQUIRE_CHECKPOINT=false
13
+
14
+ # Online FineWeb-Edu; no prepared .bin/.idx dataset is needed.
15
+ # The launcher saves the pinned Llama-2 + assistant_end tokenizer under DATA_ROOT.
16
+ DATASET_NAME=paper2604_fineweb_edu_online_llama2_32001_t2049
17
+ ONLINE_DATA=true
18
+ # Match FBW0_K3: use the complete local raw cache when available.
19
+ ONLINE_SOURCE_MODE=auto
20
+ ONLINE_DATASET=HuggingFaceFW/fineweb-edu
21
+ ONLINE_DATASET_SUBSET=sample-100BT
22
+ ONLINE_DATASET_REVISION=87f09149ef4734204d70ed1d046ddc9ca3f2b8f9
23
+ ONLINE_SOURCE_SPLIT=train
24
+ ONLINE_TEXT_COLUMN=text
25
+ ONLINE_VALIDATION_FRACTION=0.001
26
+ ONLINE_SPLIT_SEED=260421106
27
+ TOKENIZER_MODEL=NousResearch/Llama-2-7b-hf
28
+ ONLINE_TOKENIZER_REVISION=8efe6c9b93655b934e27bd9981e3ec13e55aee9d
29
+ ONLINE_TOKENIZER_BATCH_SIZE=256
30
+ ONLINE_SHUFFLE_BUFFER_RECORDS=128
31
+ NUM_WORKERS=0
32
+ DATA_PREFLIGHT=false
33
+ EXPECTED_RECORD_LENGTH=2049
34
+ EXPECTED_INPUT_LENGTH=2048
35
+ MIN_MODEL_INPUT_TOKENS=7000000000
36
+
37
+ # Match FBW0_K3's data stream: four nodes, TP=PP=1, DP=32.
38
+ # The multi-node launcher supplies the node rank; preflight can override NNODES.
39
+ NNODES=4
40
+ GPUS_PER_NODE=8
41
+ TP=1
42
+ PP=1
43
+ # Four accumulation rounds on 8 GPUs, one on 32 GPUs (TP=PP=1).
44
+ MICRO_BATCH_SIZE=4
45
+ GLOBAL_BATCH_SIZE=128
46
+ SEQ_LENGTH=2048
47
+ MAX_POSITION_EMBEDDINGS=2048
48
+ # ceil(7_000_000_000 / 262_144) = 26_703 => 7_000_031_232 physical input tokens.
49
+ TRAIN_ITERS=26703
50
+
51
+ NUM_LAYERS=20
52
+ HIDDEN_SIZE=1408
53
+ FFN_HIDDEN_SIZE=5632
54
+ NUM_ATTENTION_HEADS=11
55
+ NUM_QUERY_GROUPS=11
56
+ GROUP_QUERY_ATTENTION=false
57
+ ATTENTION_OUTPUT_GATE=false
58
+ QK_LAYERNORM=false # Profile supplies parameter-free QK RMSNorm AFTER RoPE.
59
+ SWIGLU=false # Profile supplies squared-ReLU.
60
+ DISABLE_BIAS_LINEAR=true
61
+ NORMALIZATION=RMSNorm
62
+ LAYERNORM_EPSILON=0.000001
63
+ HIDDEN_DROPOUT=0
64
+ ATTENTION_DROPOUT=0
65
+ WINDOW_SIZE=none
66
+ WINDOW_ATTN_SKIP_FREQ=1
67
+ POSITION_EMBEDDING_TYPE=rope
68
+ ROTARY_BASE=10000
69
+ UNTIE_EMBEDDINGS=true
70
+ TOKENIZER_TYPE=HuggingFaceTokenizer
71
+ VOCAB_SIZE=32001
72
+ MAKE_VOCAB_SIZE_DIVISIBLE_BY=64
73
+ PRECISION=bf16
74
+ ENABLE_RECOMPUTE=false # Profiled on 32 B300 GPUs; avoids recompute with ~101.4 GiB peak allocation/GPU.
75
+ MEGATRON_EXTRA_ARGS=''
76
+
77
+ # Three complete real/pseudo/refiner passes on every update and during evaluation.
78
+ # Includes one seed and two feedback passes; loss = L1 + (L2 + L3) / 2.
79
+ LOOKAHEAD_MODE=parallel
80
+ LOOKAHEAD_NUM_PASSES=3
81
+ LOOKAHEAD_FEEDBACK_LOSS_WEIGHT=1
82
+ LOOKAHEAD_ATTENTION_BACKEND=sdpa_auto
83
+ LOOKAHEAD_CHECKPOINT_REFINER=false
84
+ LOOKAHEAD_REFINER_FFN_SIZE=5632
85
+ LOOKAHEAD_REFINER_GATE_BIAS=-2
86
+ WANDB_TAGS=product,lookahead,paper2604,476m,7b,k3,la2
87
+ WANDB_RUN_GROUP=lookahead_476m_7b_K3_LA2
88
+
89
+ # Frequent logs and a short sampled evaluation for the initial training check.
90
+ WANDB_ENTITY=LoopTF-4-CSPs
91
+ WANDB_PROJECT=loopTF-workspace
92
+ WANDB_MODE=online
93
+ WANDB_RESUME=never
94
+ SAVE_INTERVAL=4000
95
+ EVAL_AT_START=true
96
+ EVAL_INTERVAL=100
97
+ EVAL_ITERS=2
98
+ LOG_INTERVAL=1
99
+ CKPT_FORMAT=torch
100
+ SEED=42
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/manifest.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "checkpoint_iteration": 26703,
3
+ "files": {
4
+ "README.md": {
5
+ "sha256": "3b876c301ac9b01783e3cae3a5c0247e496f73175d7302de1e3566beb90b9d58",
6
+ "size": 2744
7
+ },
8
+ "config.json": {
9
+ "sha256": "64c12b7b17ce62c57bf71f69c6223fad2f4ad33d190fbe67976b333b3c51faab",
10
+ "size": 4984
11
+ },
12
+ "launch_config.env": {
13
+ "sha256": "4939b5b392c71bc4111cb30f954903da4b5296160589603c8fe9aaae3b988d59",
14
+ "size": 3365
15
+ },
16
+ "model.safetensors": {
17
+ "sha256": "47c9c162f943bde560d66e39809b2e70f27e7c72f5bb117ec96194176d489c83",
18
+ "size": 1322796200
19
+ },
20
+ "training_recipe.json": {
21
+ "sha256": "7688bd955bc0d6fb1b134a5f92ab88d000a87a67f0cd051f079445b2e3b74130",
22
+ "size": 4092
23
+ }
24
+ },
25
+ "manifest_note": "Hashes cover the other payload files; this manifest does not hash itself.",
26
+ "path_in_repo": "paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928/step_26703",
27
+ "repo_id": "Siyuc/loopTF-workspace",
28
+ "repo_type": "model",
29
+ "training_run": "paper2604_lookahead_476m_7b_online_K3_LA2_20260917-190928"
30
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47c9c162f943bde560d66e39809b2e70f27e7c72f5bb117ec96194176d489c83
3
+ size 1322796200
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed42-7b--9i6byar5/step_26703/training_recipe.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recipe": "paper2604_21106",
3
+ "width": 1408,
4
+ "total_tokens": 7000031232,
5
+ "batch_tokens": 262144,
6
+ "reference_width": 640,
7
+ "reference_tokens": 983315200,
8
+ "reference_batch_tokens": 262144,
9
+ "base_lrs": {
10
+ "matrix": 0.014,
11
+ "embedding": 0.3,
12
+ "unembedding": 0.004,
13
+ "norm": 0.005,
14
+ "other": 0.005
15
+ },
16
+ "peak_lrs": {
17
+ "matrix": 0.007470638533717786,
18
+ "embedding": 0.2022599587389726,
19
+ "unembedding": 0.0026967994498529684,
20
+ "norm": 0.00337099931231621,
21
+ "other": 0.00337099931231621
22
+ },
23
+ "reference": "paper vanilla 0-20-0 at width 640; configurable token anchor",
24
+ "tied_embedding_policy": "unembedding (one AdamW update)",
25
+ "other_parameter_policy": "norm LR (extension for non-paper scalars/biases)",
26
+ "weight_decay": 0.0,
27
+ "warmup_steps": 0,
28
+ "final_lr_fraction": 0.1,
29
+ "optimizer": {
30
+ "name": "muonh",
31
+ "matrix_lr": 0.014,
32
+ "scalar_lr": null,
33
+ "matrix_weight_decay": 0.0,
34
+ "scalar_weight_decay": 0.0,
35
+ "embedding_lr": 0.3,
36
+ "unembedding_lr": 0.004,
37
+ "norm_lr": 0.005,
38
+ "other_lr": 0.005,
39
+ "betas": [
40
+ 0.8,
41
+ 0.95
42
+ ],
43
+ "eps": 1e-10,
44
+ "normuon_momentum": 0.95,
45
+ "normuon_beta2": 0.95,
46
+ "normuon_nesterov": true,
47
+ "normuon_adjust_lr": "spectral_norm",
48
+ "max_grad_norm": null
49
+ },
50
+ "schedule": {
51
+ "kind": "linear",
52
+ "warmup_steps": 0,
53
+ "cooldown_fraction": 0.0,
54
+ "cooldown_style": "linear",
55
+ "final_lr_fraction": 0.1,
56
+ "z_loss_coefficient": 0.0,
57
+ "adamc_weight_decay": false
58
+ },
59
+ "group_weight_decay": {
60
+ "matrix": 0.0,
61
+ "embedding": 0.0,
62
+ "unembedding": 0.0,
63
+ "norm": 0.0,
64
+ "other": 0.0
65
+ },
66
+ "recipe_overrides": {},
67
+ "requested_batch_tokens": 262144,
68
+ "sequence_length": 2048,
69
+ "batch_assumptions": {
70
+ "global_batch_tokens": 262144,
71
+ "sequence_length": 2048,
72
+ "round_up": false
73
+ },
74
+ "lr_transfer": "mup_hyperp_released_source",
75
+ "assumptions": [],
76
+ "backend_kernel_assumptions": {},
77
+ "paper_settings_overridden": false,
78
+ "model": {
79
+ "backbone_profile": "paper2604_vanilla",
80
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
81
+ "width_scale": 22,
82
+ "hidden_size": 1408,
83
+ "num_layers": 20,
84
+ "head_dim": 128,
85
+ "num_attention_heads": 11,
86
+ "num_kv_heads": 11,
87
+ "ffn_hidden_size": 5632,
88
+ "activation": "squared_relu",
89
+ "attention": "full_causal",
90
+ "attention_output_gate": false,
91
+ "qk_norm": "functional_rmsnorm_after_rope",
92
+ "norm_epsilon": 1e-06,
93
+ "model_level_norms": [
94
+ "embedding",
95
+ "recur",
96
+ "final"
97
+ ],
98
+ "rope_base": 10000.0,
99
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
100
+ "bias": false,
101
+ "dropout": 0.0,
102
+ "residual_multiplier": 1.0,
103
+ "residual_and_norm_scale_dtype": "float32",
104
+ "projection_dtype": "bfloat16 (production)",
105
+ "tied_embeddings": false,
106
+ "vocab_size": 32001,
107
+ "padded_vocab_size": 32064,
108
+ "logit_softcap": 15.0,
109
+ "crop_padding_before_loss": true,
110
+ "initialization": {
111
+ "embedding_normal_std": 1.0,
112
+ "head_normal_std": 0.001,
113
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
114
+ "norm_scale": 1.0
115
+ },
116
+ "parameter_counts": {
117
+ "non_embedding_matrix_formula": 475791360,
118
+ "non_embedding_paper_N": 475851904,
119
+ "total_trainable": 661315072,
120
+ "feedback_parameters": 3964928,
121
+ "backbone_total_trainable": 566144128,
122
+ "lookahead_parameters": 95170944,
123
+ "total_parameters": 661315072
124
+ },
125
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
126
+ "execution_architecture": "lookahead",
127
+ "objective": "lookahead_parallel_next_token",
128
+ "lookahead_mode": "parallel",
129
+ "train_passes": 3,
130
+ "feedback_loss_weight": 1.0,
131
+ "cache_layer_indices": [
132
+ 0,
133
+ 10,
134
+ 19
135
+ ],
136
+ "refiner_activation": "silu_gated",
137
+ "pseudo_backend": "sdpa_auto",
138
+ "activation_checkpointing": false,
139
+ "checkpoint_refiner": false,
140
+ "block_application_multiplier": 6.449999999999999
141
+ }
142
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/NAMING.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "wandb_id": "bapl3lfs",
3
+ "previous_wandb_name": "r3-a0-r0-d0-p0-f0-s43-7b--bapl3lfs",
4
+ "training_run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109",
5
+ "canonical_name": "Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs",
6
+ "architecture": "lookahead",
7
+ "fields": {
8
+ "K": 3,
9
+ "A": "A0",
10
+ "R": "R0",
11
+ "D": 0,
12
+ "P": 0,
13
+ "F": 0,
14
+ "normIn": false,
15
+ "normOut": false
16
+ },
17
+ "seed": 43,
18
+ "hf_old_paths": [
19
+ "r3_b300_alpha0p0-seed43_product_20260918-170109"
20
+ ]
21
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/README.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # r3_b300_alpha0p0-seed43_product_20260918-170109: native resumable checkpoint at step12000
2
+
3
+ Private training-state backup, not a Transformers model export. Training was cancelled by direct user approval. Last logged completed update was13933;1933 subsequent-to-checkpoint logged updates are unsaved. This bundle covers step12000 only, not later logged progress.
4
+
5
+ Preserves native model/optimizer/scheduler/RNG and eight DP-rank loader states. Restore with matching source7e264fdbf158f9a8f41cb6d09b29ed71b867ca27 plus code.diff and source_overlay, Megatron d046b0de593b1802c78a7664765174c031eb452c, same TP1/PP1/DP8 and pinned tokenizer/data. Source checkout access is required; dataset is excluded. Review launch_config.env and resume_provenance.json. Point LOAD_PATH to the restored checkpoints/ directory, DATALOADER_SAVE to the restored dataloader/ directory, RESUME_POLICY=auto, REQUIRE_CHECKPOINT=true, WANDB_RUN_ID=bapl3lfs, WANDB_RESUME=must and preserve product/descriptive tags plus resume. Keep original26703 LR horizon and16000 total-step cap. Paths in the frozen config must be relocated explicitly as needed. No resume launch is authorized by this backup.
6
+
7
+ No execution test of restoration performed. Checksum manifest excludes itself; immutable remote verification is pending. Never load untrusted native pickle files.
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/checkpoints/iter_0012000/mp_rank_00/model_optim_rng.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ba9446ef7ad5452940570bdf51ed3d0668c6f60476a459b1fd3215229c4b2ae
3
+ size 6974760755
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/checkpoints/latest_checkpointed_iteration.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 12000
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/code.diff ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/loop_transformer_backends/megatron/runtime.py b/src/loop_transformer_backends/megatron/runtime.py
2
+ index fc03aaf..8047ea2 100644
3
+ --- a/src/loop_transformer_backends/megatron/runtime.py
4
+ +++ b/src/loop_transformer_backends/megatron/runtime.py
5
+ @@ -175,6 +175,9 @@ def run(
6
+ )
7
+ model_config = architecture.build_model_config(args)
8
+ with ExitStack() as hooks:
9
+ + if writer is not None:
10
+ + from .wandb_storage import install_wandb_file_hashing
11
+ + hooks.callback(install_wandb_file_hashing())
12
+ hooks.callback(install_ft_args_hook(args))
13
+ if args.training_recipe == DEFAULT_RECIPE:
14
+ hooks.enter_context(paper_checkpoint_context())
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2de254e0312563219685177629aaf79a70aad8ebf933963916c025a19cbffcd3
3
+ size 6665781
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank001.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7039b2866ebc92a8ff3cc124ad1ea212565909d6135c84f70882164e1293bea3
3
+ size 6762549
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank002.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c92f0fac9c5ee1f888ca73800dd487f6bd5f5e5cf61527f17aff72c83978592a
3
+ size 6338485
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank003.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23d668390740b3bc9067316c2c06e4854fab1e8b9a8808ef49603abcbb552606
3
+ size 6927349
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank004.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15715a11d4e1dade60eed8965fc7061d0492330e4b6a2b1b1f04ee61dae44c6d
3
+ size 6409205
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank005.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfa876b9239b76f5aa13c77f85b1183627337d058f8b13bc2a90e9f7478ac65c
3
+ size 6878517
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank006.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55d4dad7cc4b3481f750dcb4d4ba6f1c7ee03fe13628454efc15b274e854b5f3
3
+ size 6970293
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank007.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2346d6fe631dadf7b6694c9863a182214bafaa6527c3dd01dd620aff0a7e8783
3
+ size 6647861
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/launch_config.env ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Look-ahead K3/LA2 matching vanilla/476M_7b_FBW0_K3.env's feedback depth and training recipe.
2
+ # LA2 names the existing two-stage design: one real plus one pseudo backbone forward per pass.
3
+ # See configs/lookahead/README.md for the additional pseudo/refiner computation.
4
+ TRAIN_ARCHITECTURE=lookahead
5
+ BACKBONE_PROFILE=paper2604_vanilla
6
+ TRAINING_RECIPE=paper2604_21106
7
+ RECIPE_OVERRIDES='{}'
8
+ # Use the installed Transformers release; the cluster's dev checkout is incompatible.
9
+ TRANSFORMERS_PATH=''
10
+ RUN_NAME=paper2604_lookahead_476m_7b_online_K3_LA2
11
+ RESUME_POLICY=fresh
12
+ REQUIRE_CHECKPOINT=false
13
+
14
+ # Online FineWeb-Edu; no prepared .bin/.idx dataset is needed.
15
+ # The launcher saves the pinned Llama-2 + assistant_end tokenizer under DATA_ROOT.
16
+ DATASET_NAME=paper2604_fineweb_edu_online_llama2_32001_t2049
17
+ ONLINE_DATA=true
18
+ # Match FBW0_K3: use the complete local raw cache when available.
19
+ ONLINE_SOURCE_MODE=auto
20
+ ONLINE_DATASET=HuggingFaceFW/fineweb-edu
21
+ ONLINE_DATASET_SUBSET=sample-100BT
22
+ ONLINE_DATASET_REVISION=87f09149ef4734204d70ed1d046ddc9ca3f2b8f9
23
+ ONLINE_SOURCE_SPLIT=train
24
+ ONLINE_TEXT_COLUMN=text
25
+ ONLINE_VALIDATION_FRACTION=0.001
26
+ ONLINE_SPLIT_SEED=260421106
27
+ TOKENIZER_MODEL=NousResearch/Llama-2-7b-hf
28
+ ONLINE_TOKENIZER_REVISION=8efe6c9b93655b934e27bd9981e3ec13e55aee9d
29
+ ONLINE_TOKENIZER_BATCH_SIZE=256
30
+ ONLINE_SHUFFLE_BUFFER_RECORDS=128
31
+ NUM_WORKERS=0
32
+ DATA_PREFLIGHT=false
33
+ EXPECTED_RECORD_LENGTH=2049
34
+ EXPECTED_INPUT_LENGTH=2048
35
+ MIN_MODEL_INPUT_TOKENS=7000000000
36
+
37
+ # Match FBW0_K3's data stream: four nodes, TP=PP=1, DP=32.
38
+ # The multi-node launcher supplies the node rank; preflight can override NNODES.
39
+ NNODES=4
40
+ GPUS_PER_NODE=8
41
+ TP=1
42
+ PP=1
43
+ # Four accumulation rounds on 8 GPUs, one on 32 GPUs (TP=PP=1).
44
+ MICRO_BATCH_SIZE=4
45
+ GLOBAL_BATCH_SIZE=128
46
+ SEQ_LENGTH=2048
47
+ MAX_POSITION_EMBEDDINGS=2048
48
+ # ceil(7_000_000_000 / 262_144) = 26_703 => 7_000_031_232 physical input tokens.
49
+ TRAIN_ITERS=26703
50
+
51
+ NUM_LAYERS=20
52
+ HIDDEN_SIZE=1408
53
+ FFN_HIDDEN_SIZE=5632
54
+ NUM_ATTENTION_HEADS=11
55
+ NUM_QUERY_GROUPS=11
56
+ GROUP_QUERY_ATTENTION=false
57
+ ATTENTION_OUTPUT_GATE=false
58
+ QK_LAYERNORM=false # Profile supplies parameter-free QK RMSNorm AFTER RoPE.
59
+ SWIGLU=false # Profile supplies squared-ReLU.
60
+ DISABLE_BIAS_LINEAR=true
61
+ NORMALIZATION=RMSNorm
62
+ LAYERNORM_EPSILON=0.000001
63
+ HIDDEN_DROPOUT=0
64
+ ATTENTION_DROPOUT=0
65
+ WINDOW_SIZE=none
66
+ WINDOW_ATTN_SKIP_FREQ=1
67
+ POSITION_EMBEDDING_TYPE=rope
68
+ ROTARY_BASE=10000
69
+ UNTIE_EMBEDDINGS=true
70
+ TOKENIZER_TYPE=HuggingFaceTokenizer
71
+ VOCAB_SIZE=32001
72
+ MAKE_VOCAB_SIZE_DIVISIBLE_BY=64
73
+ PRECISION=bf16
74
+ ENABLE_RECOMPUTE=true # Recompute backbone layers; preserves the model and data budget.
75
+ MEGATRON_EXTRA_ARGS=''
76
+
77
+ # Three complete real/pseudo/refiner passes on every update and during evaluation.
78
+ # Includes one seed and two feedback passes; loss = L1 + (L2 + L3) / 2.
79
+ LOOKAHEAD_MODE=parallel
80
+ LOOKAHEAD_NUM_PASSES=3
81
+ LOOKAHEAD_FEEDBACK_LOSS_WEIGHT=1
82
+ LOOKAHEAD_ATTENTION_BACKEND=sdpa_auto
83
+ LOOKAHEAD_CHECKPOINT_REFINER=true
84
+ LOOKAHEAD_REFINER_FFN_SIZE=5632
85
+ LOOKAHEAD_REFINER_GATE_BIAS=-2
86
+ WANDB_TAGS=product,lookahead,paper2604,476m,7b,k3,la2
87
+ WANDB_RUN_GROUP=lookahead_476m_7b_K3_LA2
88
+
89
+ # Frequent logs and a short sampled evaluation for the initial training check.
90
+ WANDB_ENTITY=LoopTF-4-CSPs
91
+ WANDB_PROJECT=loopTF-workspace
92
+ WANDB_MODE=online
93
+ WANDB_RESUME=never
94
+ SAVE_INTERVAL=4000
95
+ EVAL_AT_START=true
96
+ EVAL_INTERVAL=100
97
+ EVAL_ITERS=2
98
+ LOG_INTERVAL=1
99
+ CKPT_FORMAT=torch
100
+ SEED=42
101
+
102
+ # Pinned R3 single-node objective-strength experiment. No architecture changes.
103
+ LOOKAHEAD_FUTURE_LOSS_WEIGHT=0.0
104
+ SEED=43
105
+ NNODES=1
106
+ GPUS_PER_NODE=8
107
+ TP=1
108
+ PP=1
109
+ MICRO_BATCH_SIZE=4
110
+ GLOBAL_BATCH_SIZE=128
111
+ TRAIN_ITERS=26703
112
+ EXIT_INTERVAL=16000
113
+ SAVE_INTERVAL=4000
114
+ SAVE_RETAIN_INTERVAL=4000
115
+ ENABLE_RECOMPUTE=false
116
+ LOOKAHEAD_CHECKPOINT_REFINER=false
117
+ EVAL_AT_START=true
118
+ FINAL_EVAL_ITERS=270
119
+ LOG_INTERVAL=1
120
+ RESUME_POLICY=fresh
121
+ REQUIRE_CHECKPOINT=false
122
+ WANDB_TAGS=product,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300
123
+ WANDB_RUN_GROUP=r3_lookahead_future_grounding_20260918
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/manifest.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repo_id": "Siyuc/loopTF-workspace",
3
+ "path_in_repo": "r3_b300_alpha0p0-seed43_product_20260918-170109/step_12000",
4
+ "format": "native_megatron_full_training_resume",
5
+ "saved_step": 12000,
6
+ "files": {
7
+ "README.md": {
8
+ "bytes": 1334,
9
+ "sha256": "d2e6647b39d233d5086c1df9208336dc3c4fe0bd689af9dbef5051b3f877ad19"
10
+ },
11
+ "checkpoints/iter_0012000/mp_rank_00/model_optim_rng.pt": {
12
+ "bytes": 6974760755,
13
+ "sha256": "1ba9446ef7ad5452940570bdf51ed3d0668c6f60476a459b1fd3215229c4b2ae"
14
+ },
15
+ "checkpoints/latest_checkpointed_iteration.txt": {
16
+ "bytes": 6,
17
+ "sha256": "cc9f23a77ecea60b29786c934ac6c3f8fbe766405b3dc3f2b4b02679be56ba88"
18
+ },
19
+ "code.diff": {
20
+ "bytes": 745,
21
+ "sha256": "09aec79ad20ab40065f952858ac9ce6cfe9f7590ae35646d28c13a9b7e1dad0c"
22
+ },
23
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank000.pt": {
24
+ "bytes": 6665781,
25
+ "sha256": "2de254e0312563219685177629aaf79a70aad8ebf933963916c025a19cbffcd3"
26
+ },
27
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank001.pt": {
28
+ "bytes": 6762549,
29
+ "sha256": "7039b2866ebc92a8ff3cc124ad1ea212565909d6135c84f70882164e1293bea3"
30
+ },
31
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank002.pt": {
32
+ "bytes": 6338485,
33
+ "sha256": "c92f0fac9c5ee1f888ca73800dd487f6bd5f5e5cf61527f17aff72c83978592a"
34
+ },
35
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank003.pt": {
36
+ "bytes": 6927349,
37
+ "sha256": "23d668390740b3bc9067316c2c06e4854fab1e8b9a8808ef49603abcbb552606"
38
+ },
39
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank004.pt": {
40
+ "bytes": 6409205,
41
+ "sha256": "15715a11d4e1dade60eed8965fc7061d0492330e4b6a2b1b1f04ee61dae44c6d"
42
+ },
43
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank005.pt": {
44
+ "bytes": 6878517,
45
+ "sha256": "bfa876b9239b76f5aa13c77f85b1183627337d058f8b13bc2a90e9f7478ac65c"
46
+ },
47
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank006.pt": {
48
+ "bytes": 6970293,
49
+ "sha256": "55d4dad7cc4b3481f750dcb4d4ba6f1c7ee03fe13628454efc15b274e854b5f3"
50
+ },
51
+ "dataloader/iter_0012000/mp_rank_00/train_dataloader_dprank007.pt": {
52
+ "bytes": 6647861,
53
+ "sha256": "2346d6fe631dadf7b6694c9863a182214bafaa6527c3dd01dd620aff0a7e8783"
54
+ },
55
+ "launch_config.env": {
56
+ "bytes": 3907,
57
+ "sha256": "80859d2281685349d081b93773a1b92627e58c6b170b77d51090d928841bed26"
58
+ },
59
+ "project_revision.txt": {
60
+ "bytes": 41,
61
+ "sha256": "d9cf81883983241a3d6f60c54a46ce386c0c2db114ae17e8ad5fb67dc27795f2"
62
+ },
63
+ "resume_provenance.json": {
64
+ "bytes": 2483,
65
+ "sha256": "c00d741cde09d95839669c88d50cc79c86876fd624608e7eb71cf29bcfa544cc"
66
+ },
67
+ "source_overlay/src/loop_transformer_backends/megatron/wandb_storage.py": {
68
+ "bytes": 672,
69
+ "sha256": "976b04f0d3a471acb4542167795f7d17ebc897c533b1f1ebc93c53e4cb01ffff"
70
+ },
71
+ "training_recipe.json": {
72
+ "bytes": 4123,
73
+ "sha256": "7a62b1c7ab13f0b5d7d3b05de1eab2b338813322a885cb9f8564fe1c1e7189fd"
74
+ }
75
+ },
76
+ "manifest_excludes_itself": true
77
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/project_revision.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 7e264fdbf158f9a8f41cb6d09b29ed71b867ca27
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/resume_provenance.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "native_megatron_full_training_resume",
3
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109",
4
+ "saved_step": 12000,
5
+ "cancelled": true,
6
+ "cancellation_status": "user_cancelled_verified",
7
+ "last_logged_step_at_preparation": 13812,
8
+ "source_revision": "7e264fdbf158f9a8f41cb6d09b29ed71b867ca27",
9
+ "megatron_revision": "d046b0de593b1802c78a7664765174c031eb452c",
10
+ "alpha": 0.0,
11
+ "seed": 43,
12
+ "tp": 1,
13
+ "pp": 1,
14
+ "dp": 8,
15
+ "components": {
16
+ "model": true,
17
+ "optimizer": true,
18
+ "opt_param_scheduler": true,
19
+ "rng_state": true
20
+ },
21
+ "rng_state_count": 1,
22
+ "loader_states": [
23
+ {
24
+ "rank": 0,
25
+ "bytes": 6665781,
26
+ "top_level_keys": [
27
+ "dataloader_state_dict"
28
+ ]
29
+ },
30
+ {
31
+ "rank": 1,
32
+ "bytes": 6762549,
33
+ "top_level_keys": [
34
+ "dataloader_state_dict"
35
+ ]
36
+ },
37
+ {
38
+ "rank": 2,
39
+ "bytes": 6338485,
40
+ "top_level_keys": [
41
+ "dataloader_state_dict"
42
+ ]
43
+ },
44
+ {
45
+ "rank": 3,
46
+ "bytes": 6927349,
47
+ "top_level_keys": [
48
+ "dataloader_state_dict"
49
+ ]
50
+ },
51
+ {
52
+ "rank": 4,
53
+ "bytes": 6409205,
54
+ "top_level_keys": [
55
+ "dataloader_state_dict"
56
+ ]
57
+ },
58
+ {
59
+ "rank": 5,
60
+ "bytes": 6878517,
61
+ "top_level_keys": [
62
+ "dataloader_state_dict"
63
+ ]
64
+ },
65
+ {
66
+ "rank": 6,
67
+ "bytes": 6970293,
68
+ "top_level_keys": [
69
+ "dataloader_state_dict"
70
+ ]
71
+ },
72
+ {
73
+ "rank": 7,
74
+ "bytes": 6647861,
75
+ "top_level_keys": [
76
+ "dataloader_state_dict"
77
+ ]
78
+ }
79
+ ],
80
+ "wandb_id": "bapl3lfs",
81
+ "lr_horizon": 26703,
82
+ "total_executed_step_cap": 16000,
83
+ "missing_state": [],
84
+ "limitations": [
85
+ "Native trusted-pickle format; load only trusted checkpoints with pinned source/dependencies.",
86
+ "No training-resume execution performed.",
87
+ "Only saved-step state is backed up; later optimizer updates are not part of this payload.",
88
+ "Source code repository access and pinned dataset/tokenizer are required; training data is excluded."
89
+ ],
90
+ "rng_state_note": "One shared native RNG record is expected: data_parallel_random_init=False. Pinned Megatron checkpointing.py saves one record and restores index0 for each DP rank. All eight distinct data-loader states are included.",
91
+ "stop_step": 13933,
92
+ "stop_step_definition": "Last fully logged completed optimizer update; an interrupted in-flight update is not claimed.",
93
+ "unsaved_logged_updates": 1933
94
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/source_overlay/src/loop_transformer_backends/megatron/wandb_storage.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Buffered W&B file hashing for shared checkpoint filesystems."""
2
+ from __future__ import annotations
3
+
4
+ def _buffered_file_hasher(hasher, *paths):
5
+ for path in sorted(map(str, paths)):
6
+ with open(path, "rb") as handle:
7
+ for chunk in iter(lambda: handle.read(128 * 1024), b""):
8
+ hasher.update(chunk)
9
+ return hasher
10
+
11
+ def install_wandb_file_hashing():
12
+ """Avoid fatal mmap faults; retain MD5/xxHash and sorted-path contracts."""
13
+ from wandb.sdk.lib import hashutil
14
+ original = hashutil._file_hasher
15
+ hashutil._file_hasher = _buffered_file_hasher
16
+ def restore():
17
+ hashutil._file_hasher = original
18
+ return restore
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_12000/training_recipe.json ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recipe": "paper2604_21106",
3
+ "width": 1408,
4
+ "total_tokens": 7000031232,
5
+ "batch_tokens": 262144,
6
+ "reference_width": 640,
7
+ "reference_tokens": 983315200,
8
+ "reference_batch_tokens": 262144,
9
+ "base_lrs": {
10
+ "matrix": 0.014,
11
+ "embedding": 0.3,
12
+ "unembedding": 0.004,
13
+ "norm": 0.005,
14
+ "other": 0.005
15
+ },
16
+ "peak_lrs": {
17
+ "matrix": 0.007470638533717786,
18
+ "embedding": 0.2022599587389726,
19
+ "unembedding": 0.0026967994498529684,
20
+ "norm": 0.00337099931231621,
21
+ "other": 0.00337099931231621
22
+ },
23
+ "reference": "paper vanilla 0-20-0 at width 640; configurable token anchor",
24
+ "tied_embedding_policy": "unembedding (one AdamW update)",
25
+ "other_parameter_policy": "norm LR (extension for non-paper scalars/biases)",
26
+ "weight_decay": 0.0,
27
+ "warmup_steps": 0,
28
+ "final_lr_fraction": 0.1,
29
+ "optimizer": {
30
+ "name": "muonh",
31
+ "matrix_lr": 0.014,
32
+ "scalar_lr": null,
33
+ "matrix_weight_decay": 0.0,
34
+ "scalar_weight_decay": 0.0,
35
+ "embedding_lr": 0.3,
36
+ "unembedding_lr": 0.004,
37
+ "norm_lr": 0.005,
38
+ "other_lr": 0.005,
39
+ "betas": [
40
+ 0.8,
41
+ 0.95
42
+ ],
43
+ "eps": 1e-10,
44
+ "normuon_momentum": 0.95,
45
+ "normuon_beta2": 0.95,
46
+ "normuon_nesterov": true,
47
+ "normuon_adjust_lr": "spectral_norm",
48
+ "max_grad_norm": null
49
+ },
50
+ "schedule": {
51
+ "kind": "linear",
52
+ "warmup_steps": 0,
53
+ "cooldown_fraction": 0.0,
54
+ "cooldown_style": "linear",
55
+ "final_lr_fraction": 0.1,
56
+ "z_loss_coefficient": 0.0,
57
+ "adamc_weight_decay": false
58
+ },
59
+ "group_weight_decay": {
60
+ "matrix": 0.0,
61
+ "embedding": 0.0,
62
+ "unembedding": 0.0,
63
+ "norm": 0.0,
64
+ "other": 0.0
65
+ },
66
+ "recipe_overrides": {},
67
+ "requested_batch_tokens": 262144,
68
+ "sequence_length": 2048,
69
+ "batch_assumptions": {
70
+ "global_batch_tokens": 262144,
71
+ "sequence_length": 2048,
72
+ "round_up": false
73
+ },
74
+ "lr_transfer": "mup_hyperp_released_source",
75
+ "assumptions": [],
76
+ "backend_kernel_assumptions": {},
77
+ "paper_settings_overridden": false,
78
+ "model": {
79
+ "backbone_profile": "paper2604_vanilla",
80
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
81
+ "width_scale": 22,
82
+ "hidden_size": 1408,
83
+ "num_layers": 20,
84
+ "head_dim": 128,
85
+ "num_attention_heads": 11,
86
+ "num_kv_heads": 11,
87
+ "ffn_hidden_size": 5632,
88
+ "activation": "squared_relu",
89
+ "attention": "full_causal",
90
+ "attention_output_gate": false,
91
+ "qk_norm": "functional_rmsnorm_after_rope",
92
+ "norm_epsilon": 1e-06,
93
+ "model_level_norms": [
94
+ "embedding",
95
+ "recur",
96
+ "final"
97
+ ],
98
+ "rope_base": 10000.0,
99
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
100
+ "bias": false,
101
+ "dropout": 0.0,
102
+ "residual_multiplier": 1.0,
103
+ "residual_and_norm_scale_dtype": "float32",
104
+ "projection_dtype": "bfloat16 (production)",
105
+ "tied_embeddings": false,
106
+ "vocab_size": 32001,
107
+ "padded_vocab_size": 32064,
108
+ "logit_softcap": 15.0,
109
+ "crop_padding_before_loss": true,
110
+ "initialization": {
111
+ "embedding_normal_std": 1.0,
112
+ "head_normal_std": 0.001,
113
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
114
+ "norm_scale": 1.0
115
+ },
116
+ "parameter_counts": {
117
+ "non_embedding_matrix_formula": 475791360,
118
+ "non_embedding_paper_N": 475851904,
119
+ "total_trainable": 661315072,
120
+ "feedback_parameters": 3964928,
121
+ "backbone_total_trainable": 566144128,
122
+ "lookahead_parameters": 95170944,
123
+ "total_parameters": 661315072
124
+ },
125
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
126
+ "execution_architecture": "lookahead",
127
+ "objective": "lookahead_parallel_next_token",
128
+ "lookahead_mode": "parallel",
129
+ "train_passes": 3,
130
+ "feedback_loss_weight": 1.0,
131
+ "cache_layer_indices": [
132
+ 0,
133
+ 10,
134
+ 19
135
+ ],
136
+ "refiner_activation": "silu_gated",
137
+ "pseudo_backend": "sdpa_auto",
138
+ "activation_checkpointing": false,
139
+ "checkpoint_refiner": false,
140
+ "block_application_multiplier": 6.449999999999999,
141
+ "future_loss_weight": 0.0
142
+ }
143
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # r3_b300_alpha0p0-seed43_product_20260918-170109 — step 16000
2
+
3
+ Native model weights from the completed Lookahead K3/LA2 alpha=0, seed=43 experiment.
4
+ Training finished at update 26703 (7000031232 input tokens); this checkpoint is an intermediate retained checkpoint.
5
+ This checkpoint consumed 4194304000 input tokens. TP=1 / PP=1, DP=8. Parameter count: 661315072 total and trainable.
6
+ The H200 continuation restored the original B300 checkpoint at step 12000. The existing step_12000 folder retains its full native resume bundle.
7
+
8
+ Training source: https://github.com/FFishy-git/loopTF-workspace/tree/3763dea5b6c0cb4496405eff8d7a83f103193769
9
+ Megatron revision: d046b0de593b1802c78a7664765174c031eb452c. Python 3.13.11 / PyTorch 2.14.0+cu132.
10
+ W&B: https://wandb.ai/LoopTF-4-CSPs/loopTF-workspace/runs/bapl3lfs
11
+ Access to the code repository is required. Paper backbone source revision is separately recorded in config.json.
12
+
13
+ ## Loading
14
+
15
+ Use the pinned repository and its dependencies, with its src directory on PYTHONPATH.
16
+ These safetensors preserve the native Megatron state-dict names and mixed dtypes; they are not an AutoModel.from_pretrained conversion.
17
+
18
+ ```python
19
+ import json, torch
20
+ from safetensors.torch import load_file
21
+ from lookahead_tf.hf.config import ModelConfig
22
+ from lookahead_tf.hf.model import LookaheadTransformer
23
+ from lookahead_tf.policy import LookaheadConfig
24
+
25
+ cfg = json.load(open("config.json"))
26
+ with torch.device("meta"):
27
+ model = LookaheadTransformer(ModelConfig(**cfg["model_config"]),
28
+ LookaheadConfig(**cfg["lookahead_config"]))
29
+ state = load_file("model.safetensors")
30
+ state.update(cfg["non_tensor_state"])
31
+ assert all(k.startswith("model.") for k in state)
32
+ model.load_state_dict({k[len("model."):]: v for k, v in state.items()},
33
+ strict=True, assign=True)
34
+ model.eval()
35
+ ```
36
+
37
+ K3 means three complete passes including the seed. LA2 labels the existing real/pseudo design per pass.
38
+ The saved base launch_config.env differs from effective resume settings; use config.json's effective_launch_settings and constructor arguments.
39
+ Weights, configuration and integrity manifest only; optimizer, scheduler, RNG, dataloader state and training data are excluded from this export.
40
+ No final-checkpoint evaluation score is claimed here; the last periodic evaluation occurred at step26700.
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/config.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "lookahead",
3
+ "backbone_profile": "paper2604_vanilla",
4
+ "checkpoint_format": "safetensors_native_megatron_state_dict",
5
+ "checkpoint_version": 3.0,
6
+ "data_parallel_size": 8,
7
+ "effective_launch_settings": {
8
+ "ADAM_BETA1": "0.8",
9
+ "ADAM_BETA2": "0.95",
10
+ "ADAM_EPS": "1e-10",
11
+ "ATTENTION_DROPOUT": "0",
12
+ "ATTENTION_OUTPUT_GATE": "false",
13
+ "AUX_MTP_HORIZON": "1",
14
+ "AUX_MTP_LOSS_WEIGHT": "0.3",
15
+ "AUX_MTP_RANK": "128",
16
+ "BACKBONE_PROFILE": "paper2604_vanilla",
17
+ "CKPT_FORMAT": "torch",
18
+ "CLIP_GRAD": "0.0",
19
+ "DATALOADER_SAVE": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/dataloader",
20
+ "DATASET_NAME": "paper2604_fineweb_edu_online_llama2_32001_t2049",
21
+ "DATA_DIR": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049",
22
+ "DATA_PREFLIGHT": "false",
23
+ "DATA_ROOT": "/root/dl/runtime/script/loopTF-workspace/data",
24
+ "DISABLE_BIAS_LINEAR": "true",
25
+ "DISABLE_WANDB": "false",
26
+ "ENABLE_RECOMPUTE": "false",
27
+ "EVAL_AT_START": "true",
28
+ "EVAL_INTERVAL": "100",
29
+ "EVAL_ITERS": "2",
30
+ "EVAL_ONLY": "false",
31
+ "EXIT_INTERVAL": "26703",
32
+ "EXIT_SIGNAL_HANDLER": "false",
33
+ "EXPECTED_INPUT_LENGTH": "2048",
34
+ "EXPECTED_RECORD_LENGTH": "2049",
35
+ "FEEDBACK_EVAL_PASSES": "",
36
+ "FEEDBACK_JITTER_SIGMA": "0.02",
37
+ "FEEDBACK_LOG_HIDDEN_CHANGE": "false",
38
+ "FEEDBACK_LOSS_WEIGHT": "1.0",
39
+ "FEEDBACK_NORMUON_BETA2": "0.95",
40
+ "FEEDBACK_PASS_MIXTURE": "1:0.75,2:0.22,3:0.03",
41
+ "FEEDBACK_PREFIX_MIXIN": "true",
42
+ "FEEDBACK_PROGRESSIVE_STAGES": "[{\"start_fraction\":0.0,\"mixture\":{\"1\":1.0}},{\"start_fraction\":0.75,\"mixture\":{\"2\":0.88,\"3\":0.12}}]",
43
+ "FEEDBACK_SCALAR_LR": "0.0005",
44
+ "FEEDBACK_SCALAR_WEIGHT_DECAY": "0.0",
45
+ "FEEDBACK_Z_LOSS_COEFFICIENT": "0.0",
46
+ "FEEDBACK_Z_LOSS_START_FRACTION": "1.0",
47
+ "FFN_HIDDEN_SIZE": "5632",
48
+ "FINAL_EVAL_ITERS": "270",
49
+ "GLOBAL_BATCH_SIZE": "128",
50
+ "GPUS_PER_NODE": "8",
51
+ "GROUP_QUERY_ATTENTION": "false",
52
+ "HIDDEN_DROPOUT": "0",
53
+ "HIDDEN_SIZE": "1408",
54
+ "LAYERNORM_EPSILON": "0.000001",
55
+ "LOAD_PATH": "/root/dl/runtime/script/loopTF-workspace/output/checkpoint-downloads/r3_b300_alpha0p0-seed43_product_20260918-170109/step_12000/checkpoints",
56
+ "LOG_INTERVAL": "1",
57
+ "LOOKAHEAD_ATTENTION_BACKEND": "sdpa_auto",
58
+ "LOOKAHEAD_CHECKPOINT_REFINER": "false",
59
+ "LOOKAHEAD_FEEDBACK_LOSS_WEIGHT": "1",
60
+ "LOOKAHEAD_FUTURE_GRADIENT_MODE": "all",
61
+ "LOOKAHEAD_FUTURE_LOSS_WEIGHT": "0.0",
62
+ "LOOKAHEAD_MODE": "parallel",
63
+ "LOOKAHEAD_NUM_PASSES": "3",
64
+ "LOOKAHEAD_REFINER_FFN_SIZE": "5632",
65
+ "LOOKAHEAD_REFINER_GATE_BIAS": "-2",
66
+ "LR": "0.014",
67
+ "LR_DECAY_STYLE": "linear",
68
+ "LR_WSD_DECAY_STYLE": "linear",
69
+ "MAKE_VOCAB_SIZE_DIVISIBLE_BY": "64",
70
+ "MAX_POSITION_EMBEDDINGS": "2048",
71
+ "MEGATRON_EXTRA_ARGS": "",
72
+ "MICRO_BATCH_SIZE": "4",
73
+ "MIN_LR": "0.0007470638533717787",
74
+ "MIN_MODEL_INPUT_TOKENS": "7000000000",
75
+ "MUON_MOMENTUM": "0.95",
76
+ "MUON_NESTEROV": "true",
77
+ "NORMALIZATION": "RMSNorm",
78
+ "NUM_ATTENTION_HEADS": "11",
79
+ "NUM_LAYERS": "20",
80
+ "NUM_QUERY_GROUPS": "11",
81
+ "NUM_WORKERS": "0",
82
+ "ONLINE_DATA": "true",
83
+ "ONLINE_DATASET": "HuggingFaceFW/fineweb-edu",
84
+ "ONLINE_DATASET_REVISION": "87f09149ef4734204d70ed1d046ddc9ca3f2b8f9",
85
+ "ONLINE_DATASET_SUBSET": "sample-100BT",
86
+ "ONLINE_DATA_CACHE_DIR": "/root/dl/runtime/script/loopTF-workspace/data/cache/huggingface",
87
+ "ONLINE_LATENCY_LOG_DIR": "",
88
+ "ONLINE_PACK_SEQUENCES": "false",
89
+ "ONLINE_PREFETCH_BATCHES": "16",
90
+ "ONLINE_RAW_MANIFEST": "/root/dl/runtime/script/loopTF-workspace/data/raw/fineweb-edu-100BT/manifest.json",
91
+ "ONLINE_SHUFFLE_BUFFER_RECORDS": "128",
92
+ "ONLINE_SOURCE_MODE": "local",
93
+ "ONLINE_SOURCE_RETRY_LIMIT": "8",
94
+ "ONLINE_SOURCE_SPLIT": "train",
95
+ "ONLINE_SPLIT_SEED": "260421106",
96
+ "ONLINE_TEXT_COLUMN": "text",
97
+ "ONLINE_TOKENIZER_BATCH_SIZE": "256",
98
+ "ONLINE_TOKENIZER_REVISION": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d",
99
+ "ONLINE_VALIDATION_FRACTION": "0.001",
100
+ "ONLINE_VALIDATION_MANIFEST": "",
101
+ "OPTIMIZER": "muonh",
102
+ "OUTPUT_ROOT": "/root/dl/runtime/script/loopTF-workspace/output",
103
+ "PAPER_EMBEDDING_LR": "0.3",
104
+ "PAPER_NORM_LR": "0.005",
105
+ "PAPER_OTHER_LR": "0.005",
106
+ "PAPER_REFERENCE_BATCH_TOKENS": "262144",
107
+ "PAPER_REFERENCE_TOKENS": "983315200",
108
+ "PAPER_REFERENCE_WIDTH": "640",
109
+ "PAPER_UNEMBEDDING_LR": "0.004",
110
+ "POSITION_EMBEDDING_TYPE": "rope",
111
+ "PP": "1",
112
+ "PRECISION": "bf16",
113
+ "QK_LAYERNORM": "false",
114
+ "RECIPE_OVERRIDES": "{}",
115
+ "RECIPE_REQUESTED_BATCH_TOKENS": "262144",
116
+ "RECOMPUTE_GRANULARITY": "full",
117
+ "RECOMPUTE_METHOD": "uniform",
118
+ "RECOMPUTE_NUM_LAYERS": "1",
119
+ "REQUIRE_CHECKPOINT": "true",
120
+ "RESUME_POLICY": "auto",
121
+ "ROTARY_BASE": "10000",
122
+ "RUN_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847",
123
+ "RUN_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
124
+ "SAVE_INTERVAL": "4000",
125
+ "SAVE_PATH": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/checkpoints",
126
+ "SAVE_RETAIN_INTERVAL": "4000",
127
+ "SEED": "43",
128
+ "SEQ_LENGTH": "2048",
129
+ "SWIGLU": "false",
130
+ "TENSORBOARD_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/tensorboard",
131
+ "TEST_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
132
+ "TOKENIZER_MODEL": "/taijifs_wzbd31/rentTest/hunyuan/kenanchen/loopTF-workspace/data/tokenizers/paper2604_llama2_32001_3cfa8358de44148a",
133
+ "TOKENIZER_TYPE": "HuggingFaceTokenizer",
134
+ "TP": "1",
135
+ "TRAINING_RECIPE": "paper2604_21106",
136
+ "TRAIN_ARCHITECTURE": "lookahead",
137
+ "TRAIN_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/train_text_document",
138
+ "TRAIN_ITERS": "26703",
139
+ "UNTIE_EMBEDDINGS": "true",
140
+ "VALID_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
141
+ "VOCAB_SIZE": "32001",
142
+ "WANDB_ENTITY": "LoopTF-4-CSPs",
143
+ "WANDB_EXP_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
144
+ "WANDB_MODE": "online",
145
+ "WANDB_PROJECT": "loopTF-workspace",
146
+ "WANDB_RESUME": "must",
147
+ "WANDB_RUN_GROUP": "r3_lookahead_future_grounding_20260918",
148
+ "WANDB_RUN_ID": "bapl3lfs",
149
+ "WANDB_SAVE_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/wandb",
150
+ "WANDB_TAGS": "product,resume,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300,h200",
151
+ "WARMUP_ITERS": "0",
152
+ "WEIGHT_DECAY": "0.0",
153
+ "WINDOW_ATTN_SKIP_FREQ": "1",
154
+ "WINDOW_SIZE": "none",
155
+ "WSD_DECAY_ITERS": "0"
156
+ },
157
+ "iteration": 16000,
158
+ "launch_snapshot_note": "launch_config.env is the original base snapshot; effective_launch_settings and constructor configs capture resume overrides.",
159
+ "loading": "Use the pinned source LookaheadTransformer; remove exactly the model. key prefix; strict=True, assign=True on a meta-constructed model preserves checkpoint dtypes. Not Transformers AutoModel format.",
160
+ "lookahead_config": {
161
+ "allow_objective_change_on_resume": false,
162
+ "attention_backend": "sdpa_auto",
163
+ "cache_layer_indices": null,
164
+ "checkpoint_refiner": false,
165
+ "draft_loss_weight": 0.0,
166
+ "feedback_loss_weight": 1.0,
167
+ "future_gradient_mode": "all",
168
+ "future_loss_weight": 0.0,
169
+ "mode": "parallel",
170
+ "num_passes": 3,
171
+ "pseudo_initializer": "A0",
172
+ "pseudo_temperature": 1.0,
173
+ "pseudo_top_k": 128,
174
+ "refiner_gate_bias": -2.0,
175
+ "refiner_intermediate_size": 5632,
176
+ "refiner_variant": "R0"
177
+ },
178
+ "megatron_revision": "d046b0de593b1802c78a7664765174c031eb452c",
179
+ "model_config": {
180
+ "attention_dropout": 0.0,
181
+ "attn_implementation": "sdpa",
182
+ "backbone_profile": "paper2604_vanilla",
183
+ "gradient_checkpointing": false,
184
+ "hf_config_overrides": {},
185
+ "hidden_size": 1408,
186
+ "initializer_range": 0.02,
187
+ "intermediate_size": 5632,
188
+ "max_position_embeddings": 2048,
189
+ "model_type": "full_bandwidth",
190
+ "num_attention_heads": 11,
191
+ "num_hidden_layers": 20,
192
+ "num_key_value_heads": 11,
193
+ "padded_vocab_size": 32064,
194
+ "paper_full_attention_interval": 6,
195
+ "paper_sliding_window": 2048,
196
+ "pretrained_model_name_or_path": null,
197
+ "revision": null,
198
+ "rms_norm_eps": 1e-06,
199
+ "rope_theta": 10000,
200
+ "tie_word_embeddings": false,
201
+ "trust_remote_code": false,
202
+ "vocab_size": 32001
203
+ },
204
+ "non_tensor_state": {},
205
+ "paper_backbone_source_revision": "122366472a31e57982a2877eeee10bb115477713",
206
+ "parameter_counts": {
207
+ "total": 661315072,
208
+ "trainable": 661315072
209
+ },
210
+ "pipeline_parallel_size": 1,
211
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109",
212
+ "tensor_parallel_size": 1,
213
+ "tokenizer": {
214
+ "active_vocab_size": 32001,
215
+ "added_tokens": [
216
+ "<|assistant_end|>"
217
+ ],
218
+ "padded_vocab_size": 32064,
219
+ "repository": "NousResearch/Llama-2-7b-hf",
220
+ "revision": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d"
221
+ },
222
+ "training": {
223
+ "completed_run": true,
224
+ "consumed_input_tokens": 4194304000,
225
+ "consumed_train_samples": 2048000,
226
+ "final_checkpoint": false,
227
+ "global_batch_size": 128,
228
+ "micro_batch_size": 4,
229
+ "planned_input_tokens": 7000031232,
230
+ "resumed_from_step": 12000,
231
+ "seed": 43,
232
+ "sequence_length": 2048,
233
+ "train_iters": 26703
234
+ },
235
+ "training_code_repository": "https://github.com/FFishy-git/loopTF-workspace",
236
+ "training_code_revision": "3763dea5b6c0cb4496405eff8d7a83f103193769"
237
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/launch_config.env ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Look-ahead K3/LA2 matching vanilla/476M_7b_FBW0_K3.env's feedback depth and training recipe.
2
+ # LA2 names the existing two-stage design: one real plus one pseudo backbone forward per pass.
3
+ # See configs/lookahead/README.md for the additional pseudo/refiner computation.
4
+ TRAIN_ARCHITECTURE=lookahead
5
+ BACKBONE_PROFILE=paper2604_vanilla
6
+ TRAINING_RECIPE=paper2604_21106
7
+ RECIPE_OVERRIDES='{}'
8
+ # Use the installed Transformers release; the cluster's dev checkout is incompatible.
9
+ TRANSFORMERS_PATH=''
10
+ RUN_NAME=paper2604_lookahead_476m_7b_online_K3_LA2
11
+ RESUME_POLICY=fresh
12
+ REQUIRE_CHECKPOINT=false
13
+
14
+ # Online FineWeb-Edu; no prepared .bin/.idx dataset is needed.
15
+ # The launcher saves the pinned Llama-2 + assistant_end tokenizer under DATA_ROOT.
16
+ DATASET_NAME=paper2604_fineweb_edu_online_llama2_32001_t2049
17
+ ONLINE_DATA=true
18
+ # Match FBW0_K3: use the complete local raw cache when available.
19
+ ONLINE_SOURCE_MODE=auto
20
+ ONLINE_DATASET=HuggingFaceFW/fineweb-edu
21
+ ONLINE_DATASET_SUBSET=sample-100BT
22
+ ONLINE_DATASET_REVISION=87f09149ef4734204d70ed1d046ddc9ca3f2b8f9
23
+ ONLINE_SOURCE_SPLIT=train
24
+ ONLINE_TEXT_COLUMN=text
25
+ ONLINE_VALIDATION_FRACTION=0.001
26
+ ONLINE_SPLIT_SEED=260421106
27
+ TOKENIZER_MODEL=NousResearch/Llama-2-7b-hf
28
+ ONLINE_TOKENIZER_REVISION=8efe6c9b93655b934e27bd9981e3ec13e55aee9d
29
+ ONLINE_TOKENIZER_BATCH_SIZE=256
30
+ ONLINE_SHUFFLE_BUFFER_RECORDS=128
31
+ NUM_WORKERS=0
32
+ DATA_PREFLIGHT=false
33
+ EXPECTED_RECORD_LENGTH=2049
34
+ EXPECTED_INPUT_LENGTH=2048
35
+ MIN_MODEL_INPUT_TOKENS=7000000000
36
+
37
+ # Match FBW0_K3's data stream: four nodes, TP=PP=1, DP=32.
38
+ # The multi-node launcher supplies the node rank; preflight can override NNODES.
39
+ NNODES=4
40
+ GPUS_PER_NODE=8
41
+ TP=1
42
+ PP=1
43
+ # Four accumulation rounds on 8 GPUs, one on 32 GPUs (TP=PP=1).
44
+ MICRO_BATCH_SIZE=4
45
+ GLOBAL_BATCH_SIZE=128
46
+ SEQ_LENGTH=2048
47
+ MAX_POSITION_EMBEDDINGS=2048
48
+ # ceil(7_000_000_000 / 262_144) = 26_703 => 7_000_031_232 physical input tokens.
49
+ TRAIN_ITERS=26703
50
+
51
+ NUM_LAYERS=20
52
+ HIDDEN_SIZE=1408
53
+ FFN_HIDDEN_SIZE=5632
54
+ NUM_ATTENTION_HEADS=11
55
+ NUM_QUERY_GROUPS=11
56
+ GROUP_QUERY_ATTENTION=false
57
+ ATTENTION_OUTPUT_GATE=false
58
+ QK_LAYERNORM=false # Profile supplies parameter-free QK RMSNorm AFTER RoPE.
59
+ SWIGLU=false # Profile supplies squared-ReLU.
60
+ DISABLE_BIAS_LINEAR=true
61
+ NORMALIZATION=RMSNorm
62
+ LAYERNORM_EPSILON=0.000001
63
+ HIDDEN_DROPOUT=0
64
+ ATTENTION_DROPOUT=0
65
+ WINDOW_SIZE=none
66
+ WINDOW_ATTN_SKIP_FREQ=1
67
+ POSITION_EMBEDDING_TYPE=rope
68
+ ROTARY_BASE=10000
69
+ UNTIE_EMBEDDINGS=true
70
+ TOKENIZER_TYPE=HuggingFaceTokenizer
71
+ VOCAB_SIZE=32001
72
+ MAKE_VOCAB_SIZE_DIVISIBLE_BY=64
73
+ PRECISION=bf16
74
+ ENABLE_RECOMPUTE=true # Recompute backbone layers; preserves the model and data budget.
75
+ MEGATRON_EXTRA_ARGS=''
76
+
77
+ # Three complete real/pseudo/refiner passes on every update and during evaluation.
78
+ # Includes one seed and two feedback passes; loss = L1 + (L2 + L3) / 2.
79
+ LOOKAHEAD_MODE=parallel
80
+ LOOKAHEAD_NUM_PASSES=3
81
+ LOOKAHEAD_FEEDBACK_LOSS_WEIGHT=1
82
+ LOOKAHEAD_ATTENTION_BACKEND=sdpa_auto
83
+ LOOKAHEAD_CHECKPOINT_REFINER=true
84
+ LOOKAHEAD_REFINER_FFN_SIZE=5632
85
+ LOOKAHEAD_REFINER_GATE_BIAS=-2
86
+ WANDB_TAGS=product,lookahead,paper2604,476m,7b,k3,la2
87
+ WANDB_RUN_GROUP=lookahead_476m_7b_K3_LA2
88
+
89
+ # Frequent logs and a short sampled evaluation for the initial training check.
90
+ WANDB_ENTITY=LoopTF-4-CSPs
91
+ WANDB_PROJECT=loopTF-workspace
92
+ WANDB_MODE=online
93
+ WANDB_RESUME=never
94
+ SAVE_INTERVAL=4000
95
+ EVAL_AT_START=true
96
+ EVAL_INTERVAL=100
97
+ EVAL_ITERS=2
98
+ LOG_INTERVAL=1
99
+ CKPT_FORMAT=torch
100
+ SEED=42
101
+
102
+ # Pinned R3 single-node objective-strength experiment. No architecture changes.
103
+ LOOKAHEAD_FUTURE_LOSS_WEIGHT=0.0
104
+ SEED=43
105
+ NNODES=1
106
+ GPUS_PER_NODE=8
107
+ TP=1
108
+ PP=1
109
+ MICRO_BATCH_SIZE=4
110
+ GLOBAL_BATCH_SIZE=128
111
+ TRAIN_ITERS=26703
112
+ EXIT_INTERVAL=16000
113
+ SAVE_INTERVAL=4000
114
+ SAVE_RETAIN_INTERVAL=4000
115
+ ENABLE_RECOMPUTE=false
116
+ LOOKAHEAD_CHECKPOINT_REFINER=false
117
+ EVAL_AT_START=true
118
+ FINAL_EVAL_ITERS=270
119
+ LOG_INTERVAL=1
120
+ RESUME_POLICY=fresh
121
+ REQUIRE_CHECKPOINT=false
122
+ WANDB_TAGS=product,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300
123
+ WANDB_RUN_GROUP=r3_lookahead_future_grounding_20260918
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/manifest.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ {
4
+ "path": "README.md",
5
+ "sha256": "2759094b2b3e6649ec56b17b2674144884f6cba9a2114c0997539c729daa6e48",
6
+ "size": 2352
7
+ },
8
+ {
9
+ "path": "config.json",
10
+ "sha256": "15826e3ae8ecfaa74cc08baeaf202aecfef75ce20d1f60db11d9b51a235c319b",
11
+ "size": 10068
12
+ },
13
+ {
14
+ "path": "launch_config.env",
15
+ "sha256": "80859d2281685349d081b93773a1b92627e58c6b170b77d51090d928841bed26",
16
+ "size": 3907
17
+ },
18
+ {
19
+ "path": "model.safetensors",
20
+ "sha256": "4d66347d78097750130c50e659f02a134eed43c90fd1e6d8779c8788795998e9",
21
+ "size": 1322796152
22
+ },
23
+ {
24
+ "path": "training_recipe.json",
25
+ "sha256": "d3c0c45e3bd3d5c1b8fa1c7c242ded1251d6459482b1fea675e3ae19ecfccca6",
26
+ "size": 4352
27
+ }
28
+ ],
29
+ "format": "safetensors_native_megatron_state_dict",
30
+ "iteration": 16000,
31
+ "note": "This manifest does not hash itself.",
32
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109"
33
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d66347d78097750130c50e659f02a134eed43c90fd1e6d8779c8788795998e9
3
+ size 1322796152
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_16000/training_recipe.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recipe": "paper2604_21106",
3
+ "width": 1408,
4
+ "total_tokens": 7000031232,
5
+ "batch_tokens": 262144,
6
+ "reference_width": 640,
7
+ "reference_tokens": 983315200,
8
+ "reference_batch_tokens": 262144,
9
+ "base_lrs": {
10
+ "matrix": 0.014,
11
+ "embedding": 0.3,
12
+ "unembedding": 0.004,
13
+ "norm": 0.005,
14
+ "other": 0.005
15
+ },
16
+ "peak_lrs": {
17
+ "matrix": 0.007470638533717786,
18
+ "embedding": 0.2022599587389726,
19
+ "unembedding": 0.0026967994498529684,
20
+ "norm": 0.00337099931231621,
21
+ "other": 0.00337099931231621
22
+ },
23
+ "reference": "paper vanilla 0-20-0 at width 640; configurable token anchor",
24
+ "tied_embedding_policy": "unembedding (one AdamW update)",
25
+ "other_parameter_policy": "norm LR (extension for non-paper scalars/biases)",
26
+ "weight_decay": 0.0,
27
+ "warmup_steps": 0,
28
+ "final_lr_fraction": 0.1,
29
+ "optimizer": {
30
+ "name": "muonh",
31
+ "matrix_lr": 0.014,
32
+ "scalar_lr": null,
33
+ "matrix_weight_decay": 0.0,
34
+ "scalar_weight_decay": 0.0,
35
+ "embedding_lr": 0.3,
36
+ "unembedding_lr": 0.004,
37
+ "norm_lr": 0.005,
38
+ "other_lr": 0.005,
39
+ "betas": [
40
+ 0.8,
41
+ 0.95
42
+ ],
43
+ "eps": 1e-10,
44
+ "normuon_momentum": 0.95,
45
+ "normuon_beta2": 0.95,
46
+ "normuon_nesterov": true,
47
+ "normuon_adjust_lr": "spectral_norm",
48
+ "max_grad_norm": null
49
+ },
50
+ "schedule": {
51
+ "kind": "linear",
52
+ "warmup_steps": 0,
53
+ "cooldown_fraction": 0.0,
54
+ "cooldown_style": "linear",
55
+ "final_lr_fraction": 0.1,
56
+ "z_loss_coefficient": 0.0,
57
+ "adamc_weight_decay": false
58
+ },
59
+ "group_weight_decay": {
60
+ "matrix": 0.0,
61
+ "embedding": 0.0,
62
+ "unembedding": 0.0,
63
+ "norm": 0.0,
64
+ "other": 0.0
65
+ },
66
+ "recipe_overrides": {},
67
+ "requested_batch_tokens": 262144,
68
+ "sequence_length": 2048,
69
+ "batch_assumptions": {
70
+ "global_batch_tokens": 262144,
71
+ "sequence_length": 2048,
72
+ "round_up": false
73
+ },
74
+ "lr_transfer": "mup_hyperp_released_source",
75
+ "assumptions": [],
76
+ "backend_kernel_assumptions": {},
77
+ "paper_settings_overridden": false,
78
+ "model": {
79
+ "backbone_profile": "paper2604_vanilla",
80
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
81
+ "width_scale": 22,
82
+ "hidden_size": 1408,
83
+ "num_layers": 20,
84
+ "head_dim": 128,
85
+ "num_attention_heads": 11,
86
+ "num_kv_heads": 11,
87
+ "ffn_hidden_size": 5632,
88
+ "activation": "squared_relu",
89
+ "attention": "full_causal",
90
+ "attention_output_gate": false,
91
+ "qk_norm": "functional_rmsnorm_after_rope",
92
+ "norm_epsilon": 1e-06,
93
+ "model_level_norms": [
94
+ "embedding",
95
+ "recur",
96
+ "final"
97
+ ],
98
+ "rope_base": 10000.0,
99
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
100
+ "bias": false,
101
+ "dropout": 0.0,
102
+ "residual_multiplier": 1.0,
103
+ "residual_and_norm_scale_dtype": "float32",
104
+ "projection_dtype": "bfloat16 (production)",
105
+ "tied_embeddings": false,
106
+ "vocab_size": 32001,
107
+ "padded_vocab_size": 32064,
108
+ "logit_softcap": 15.0,
109
+ "crop_padding_before_loss": true,
110
+ "initialization": {
111
+ "embedding_normal_std": 1.0,
112
+ "head_normal_std": 0.001,
113
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
114
+ "norm_scale": 1.0
115
+ },
116
+ "parameter_counts": {
117
+ "non_embedding_matrix_formula": 475791360,
118
+ "non_embedding_paper_N": 475851904,
119
+ "total_trainable": 661315072,
120
+ "feedback_parameters": 3964928,
121
+ "backbone_total_trainable": 566144128,
122
+ "lookahead_parameters": 95170944,
123
+ "total_parameters": 661315072
124
+ },
125
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
126
+ "execution_architecture": "lookahead",
127
+ "objective": "lookahead_parallel_next_token",
128
+ "lookahead_mode": "parallel",
129
+ "train_passes": 3,
130
+ "feedback_loss_weight": 1.0,
131
+ "cache_layer_indices": [
132
+ 0,
133
+ 10,
134
+ 19
135
+ ],
136
+ "refiner_activation": "silu_gated",
137
+ "pseudo_backend": "sdpa_auto",
138
+ "activation_checkpointing": false,
139
+ "checkpoint_refiner": false,
140
+ "block_application_multiplier": 6.449999999999999,
141
+ "future_loss_weight": 0.0,
142
+ "future_gradient_mode": "all",
143
+ "draft_loss_weight": 0.0,
144
+ "pseudo_initializer": "A0",
145
+ "pseudo_top_k": 128,
146
+ "pseudo_temperature": 1.0,
147
+ "refiner_variant": "R0",
148
+ "allow_objective_change_on_resume": false
149
+ }
150
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # r3_b300_alpha0p0-seed43_product_20260918-170109 — step 20000
2
+
3
+ Native model weights from the completed Lookahead K3/LA2 alpha=0, seed=43 experiment.
4
+ Training finished at update 26703 (7000031232 input tokens); this checkpoint is an intermediate retained checkpoint.
5
+ This checkpoint consumed 5242880000 input tokens. TP=1 / PP=1, DP=8. Parameter count: 661315072 total and trainable.
6
+ The H200 continuation restored the original B300 checkpoint at step 12000. The existing step_12000 folder retains its full native resume bundle.
7
+
8
+ Training source: https://github.com/FFishy-git/loopTF-workspace/tree/3763dea5b6c0cb4496405eff8d7a83f103193769
9
+ Megatron revision: d046b0de593b1802c78a7664765174c031eb452c. Python 3.13.11 / PyTorch 2.14.0+cu132.
10
+ W&B: https://wandb.ai/LoopTF-4-CSPs/loopTF-workspace/runs/bapl3lfs
11
+ Access to the code repository is required. Paper backbone source revision is separately recorded in config.json.
12
+
13
+ ## Loading
14
+
15
+ Use the pinned repository and its dependencies, with its src directory on PYTHONPATH.
16
+ These safetensors preserve the native Megatron state-dict names and mixed dtypes; they are not an AutoModel.from_pretrained conversion.
17
+
18
+ ```python
19
+ import json, torch
20
+ from safetensors.torch import load_file
21
+ from lookahead_tf.hf.config import ModelConfig
22
+ from lookahead_tf.hf.model import LookaheadTransformer
23
+ from lookahead_tf.policy import LookaheadConfig
24
+
25
+ cfg = json.load(open("config.json"))
26
+ with torch.device("meta"):
27
+ model = LookaheadTransformer(ModelConfig(**cfg["model_config"]),
28
+ LookaheadConfig(**cfg["lookahead_config"]))
29
+ state = load_file("model.safetensors")
30
+ state.update(cfg["non_tensor_state"])
31
+ assert all(k.startswith("model.") for k in state)
32
+ model.load_state_dict({k[len("model."):]: v for k, v in state.items()},
33
+ strict=True, assign=True)
34
+ model.eval()
35
+ ```
36
+
37
+ K3 means three complete passes including the seed. LA2 labels the existing real/pseudo design per pass.
38
+ The saved base launch_config.env differs from effective resume settings; use config.json's effective_launch_settings and constructor arguments.
39
+ Weights, configuration and integrity manifest only; optimizer, scheduler, RNG, dataloader state and training data are excluded from this export.
40
+ No final-checkpoint evaluation score is claimed here; the last periodic evaluation occurred at step26700.
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/config.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "lookahead",
3
+ "backbone_profile": "paper2604_vanilla",
4
+ "checkpoint_format": "safetensors_native_megatron_state_dict",
5
+ "checkpoint_version": 3.0,
6
+ "data_parallel_size": 8,
7
+ "effective_launch_settings": {
8
+ "ADAM_BETA1": "0.8",
9
+ "ADAM_BETA2": "0.95",
10
+ "ADAM_EPS": "1e-10",
11
+ "ATTENTION_DROPOUT": "0",
12
+ "ATTENTION_OUTPUT_GATE": "false",
13
+ "AUX_MTP_HORIZON": "1",
14
+ "AUX_MTP_LOSS_WEIGHT": "0.3",
15
+ "AUX_MTP_RANK": "128",
16
+ "BACKBONE_PROFILE": "paper2604_vanilla",
17
+ "CKPT_FORMAT": "torch",
18
+ "CLIP_GRAD": "0.0",
19
+ "DATALOADER_SAVE": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/dataloader",
20
+ "DATASET_NAME": "paper2604_fineweb_edu_online_llama2_32001_t2049",
21
+ "DATA_DIR": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049",
22
+ "DATA_PREFLIGHT": "false",
23
+ "DATA_ROOT": "/root/dl/runtime/script/loopTF-workspace/data",
24
+ "DISABLE_BIAS_LINEAR": "true",
25
+ "DISABLE_WANDB": "false",
26
+ "ENABLE_RECOMPUTE": "false",
27
+ "EVAL_AT_START": "true",
28
+ "EVAL_INTERVAL": "100",
29
+ "EVAL_ITERS": "2",
30
+ "EVAL_ONLY": "false",
31
+ "EXIT_INTERVAL": "26703",
32
+ "EXIT_SIGNAL_HANDLER": "false",
33
+ "EXPECTED_INPUT_LENGTH": "2048",
34
+ "EXPECTED_RECORD_LENGTH": "2049",
35
+ "FEEDBACK_EVAL_PASSES": "",
36
+ "FEEDBACK_JITTER_SIGMA": "0.02",
37
+ "FEEDBACK_LOG_HIDDEN_CHANGE": "false",
38
+ "FEEDBACK_LOSS_WEIGHT": "1.0",
39
+ "FEEDBACK_NORMUON_BETA2": "0.95",
40
+ "FEEDBACK_PASS_MIXTURE": "1:0.75,2:0.22,3:0.03",
41
+ "FEEDBACK_PREFIX_MIXIN": "true",
42
+ "FEEDBACK_PROGRESSIVE_STAGES": "[{\"start_fraction\":0.0,\"mixture\":{\"1\":1.0}},{\"start_fraction\":0.75,\"mixture\":{\"2\":0.88,\"3\":0.12}}]",
43
+ "FEEDBACK_SCALAR_LR": "0.0005",
44
+ "FEEDBACK_SCALAR_WEIGHT_DECAY": "0.0",
45
+ "FEEDBACK_Z_LOSS_COEFFICIENT": "0.0",
46
+ "FEEDBACK_Z_LOSS_START_FRACTION": "1.0",
47
+ "FFN_HIDDEN_SIZE": "5632",
48
+ "FINAL_EVAL_ITERS": "270",
49
+ "GLOBAL_BATCH_SIZE": "128",
50
+ "GPUS_PER_NODE": "8",
51
+ "GROUP_QUERY_ATTENTION": "false",
52
+ "HIDDEN_DROPOUT": "0",
53
+ "HIDDEN_SIZE": "1408",
54
+ "LAYERNORM_EPSILON": "0.000001",
55
+ "LOAD_PATH": "/root/dl/runtime/script/loopTF-workspace/output/checkpoint-downloads/r3_b300_alpha0p0-seed43_product_20260918-170109/step_12000/checkpoints",
56
+ "LOG_INTERVAL": "1",
57
+ "LOOKAHEAD_ATTENTION_BACKEND": "sdpa_auto",
58
+ "LOOKAHEAD_CHECKPOINT_REFINER": "false",
59
+ "LOOKAHEAD_FEEDBACK_LOSS_WEIGHT": "1",
60
+ "LOOKAHEAD_FUTURE_GRADIENT_MODE": "all",
61
+ "LOOKAHEAD_FUTURE_LOSS_WEIGHT": "0.0",
62
+ "LOOKAHEAD_MODE": "parallel",
63
+ "LOOKAHEAD_NUM_PASSES": "3",
64
+ "LOOKAHEAD_REFINER_FFN_SIZE": "5632",
65
+ "LOOKAHEAD_REFINER_GATE_BIAS": "-2",
66
+ "LR": "0.014",
67
+ "LR_DECAY_STYLE": "linear",
68
+ "LR_WSD_DECAY_STYLE": "linear",
69
+ "MAKE_VOCAB_SIZE_DIVISIBLE_BY": "64",
70
+ "MAX_POSITION_EMBEDDINGS": "2048",
71
+ "MEGATRON_EXTRA_ARGS": "",
72
+ "MICRO_BATCH_SIZE": "4",
73
+ "MIN_LR": "0.0007470638533717787",
74
+ "MIN_MODEL_INPUT_TOKENS": "7000000000",
75
+ "MUON_MOMENTUM": "0.95",
76
+ "MUON_NESTEROV": "true",
77
+ "NORMALIZATION": "RMSNorm",
78
+ "NUM_ATTENTION_HEADS": "11",
79
+ "NUM_LAYERS": "20",
80
+ "NUM_QUERY_GROUPS": "11",
81
+ "NUM_WORKERS": "0",
82
+ "ONLINE_DATA": "true",
83
+ "ONLINE_DATASET": "HuggingFaceFW/fineweb-edu",
84
+ "ONLINE_DATASET_REVISION": "87f09149ef4734204d70ed1d046ddc9ca3f2b8f9",
85
+ "ONLINE_DATASET_SUBSET": "sample-100BT",
86
+ "ONLINE_DATA_CACHE_DIR": "/root/dl/runtime/script/loopTF-workspace/data/cache/huggingface",
87
+ "ONLINE_LATENCY_LOG_DIR": "",
88
+ "ONLINE_PACK_SEQUENCES": "false",
89
+ "ONLINE_PREFETCH_BATCHES": "16",
90
+ "ONLINE_RAW_MANIFEST": "/root/dl/runtime/script/loopTF-workspace/data/raw/fineweb-edu-100BT/manifest.json",
91
+ "ONLINE_SHUFFLE_BUFFER_RECORDS": "128",
92
+ "ONLINE_SOURCE_MODE": "local",
93
+ "ONLINE_SOURCE_RETRY_LIMIT": "8",
94
+ "ONLINE_SOURCE_SPLIT": "train",
95
+ "ONLINE_SPLIT_SEED": "260421106",
96
+ "ONLINE_TEXT_COLUMN": "text",
97
+ "ONLINE_TOKENIZER_BATCH_SIZE": "256",
98
+ "ONLINE_TOKENIZER_REVISION": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d",
99
+ "ONLINE_VALIDATION_FRACTION": "0.001",
100
+ "ONLINE_VALIDATION_MANIFEST": "",
101
+ "OPTIMIZER": "muonh",
102
+ "OUTPUT_ROOT": "/root/dl/runtime/script/loopTF-workspace/output",
103
+ "PAPER_EMBEDDING_LR": "0.3",
104
+ "PAPER_NORM_LR": "0.005",
105
+ "PAPER_OTHER_LR": "0.005",
106
+ "PAPER_REFERENCE_BATCH_TOKENS": "262144",
107
+ "PAPER_REFERENCE_TOKENS": "983315200",
108
+ "PAPER_REFERENCE_WIDTH": "640",
109
+ "PAPER_UNEMBEDDING_LR": "0.004",
110
+ "POSITION_EMBEDDING_TYPE": "rope",
111
+ "PP": "1",
112
+ "PRECISION": "bf16",
113
+ "QK_LAYERNORM": "false",
114
+ "RECIPE_OVERRIDES": "{}",
115
+ "RECIPE_REQUESTED_BATCH_TOKENS": "262144",
116
+ "RECOMPUTE_GRANULARITY": "full",
117
+ "RECOMPUTE_METHOD": "uniform",
118
+ "RECOMPUTE_NUM_LAYERS": "1",
119
+ "REQUIRE_CHECKPOINT": "true",
120
+ "RESUME_POLICY": "auto",
121
+ "ROTARY_BASE": "10000",
122
+ "RUN_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847",
123
+ "RUN_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
124
+ "SAVE_INTERVAL": "4000",
125
+ "SAVE_PATH": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/checkpoints",
126
+ "SAVE_RETAIN_INTERVAL": "4000",
127
+ "SEED": "43",
128
+ "SEQ_LENGTH": "2048",
129
+ "SWIGLU": "false",
130
+ "TENSORBOARD_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/tensorboard",
131
+ "TEST_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
132
+ "TOKENIZER_MODEL": "/taijifs_wzbd31/rentTest/hunyuan/kenanchen/loopTF-workspace/data/tokenizers/paper2604_llama2_32001_3cfa8358de44148a",
133
+ "TOKENIZER_TYPE": "HuggingFaceTokenizer",
134
+ "TP": "1",
135
+ "TRAINING_RECIPE": "paper2604_21106",
136
+ "TRAIN_ARCHITECTURE": "lookahead",
137
+ "TRAIN_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/train_text_document",
138
+ "TRAIN_ITERS": "26703",
139
+ "UNTIE_EMBEDDINGS": "true",
140
+ "VALID_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
141
+ "VOCAB_SIZE": "32001",
142
+ "WANDB_ENTITY": "LoopTF-4-CSPs",
143
+ "WANDB_EXP_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
144
+ "WANDB_MODE": "online",
145
+ "WANDB_PROJECT": "loopTF-workspace",
146
+ "WANDB_RESUME": "must",
147
+ "WANDB_RUN_GROUP": "r3_lookahead_future_grounding_20260918",
148
+ "WANDB_RUN_ID": "bapl3lfs",
149
+ "WANDB_SAVE_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/wandb",
150
+ "WANDB_TAGS": "product,resume,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300,h200",
151
+ "WARMUP_ITERS": "0",
152
+ "WEIGHT_DECAY": "0.0",
153
+ "WINDOW_ATTN_SKIP_FREQ": "1",
154
+ "WINDOW_SIZE": "none",
155
+ "WSD_DECAY_ITERS": "0"
156
+ },
157
+ "iteration": 20000,
158
+ "launch_snapshot_note": "launch_config.env is the original base snapshot; effective_launch_settings and constructor configs capture resume overrides.",
159
+ "loading": "Use the pinned source LookaheadTransformer; remove exactly the model. key prefix; strict=True, assign=True on a meta-constructed model preserves checkpoint dtypes. Not Transformers AutoModel format.",
160
+ "lookahead_config": {
161
+ "allow_objective_change_on_resume": false,
162
+ "attention_backend": "sdpa_auto",
163
+ "cache_layer_indices": null,
164
+ "checkpoint_refiner": false,
165
+ "draft_loss_weight": 0.0,
166
+ "feedback_loss_weight": 1.0,
167
+ "future_gradient_mode": "all",
168
+ "future_loss_weight": 0.0,
169
+ "mode": "parallel",
170
+ "num_passes": 3,
171
+ "pseudo_initializer": "A0",
172
+ "pseudo_temperature": 1.0,
173
+ "pseudo_top_k": 128,
174
+ "refiner_gate_bias": -2.0,
175
+ "refiner_intermediate_size": 5632,
176
+ "refiner_variant": "R0"
177
+ },
178
+ "megatron_revision": "d046b0de593b1802c78a7664765174c031eb452c",
179
+ "model_config": {
180
+ "attention_dropout": 0.0,
181
+ "attn_implementation": "sdpa",
182
+ "backbone_profile": "paper2604_vanilla",
183
+ "gradient_checkpointing": false,
184
+ "hf_config_overrides": {},
185
+ "hidden_size": 1408,
186
+ "initializer_range": 0.02,
187
+ "intermediate_size": 5632,
188
+ "max_position_embeddings": 2048,
189
+ "model_type": "full_bandwidth",
190
+ "num_attention_heads": 11,
191
+ "num_hidden_layers": 20,
192
+ "num_key_value_heads": 11,
193
+ "padded_vocab_size": 32064,
194
+ "paper_full_attention_interval": 6,
195
+ "paper_sliding_window": 2048,
196
+ "pretrained_model_name_or_path": null,
197
+ "revision": null,
198
+ "rms_norm_eps": 1e-06,
199
+ "rope_theta": 10000,
200
+ "tie_word_embeddings": false,
201
+ "trust_remote_code": false,
202
+ "vocab_size": 32001
203
+ },
204
+ "non_tensor_state": {},
205
+ "paper_backbone_source_revision": "122366472a31e57982a2877eeee10bb115477713",
206
+ "parameter_counts": {
207
+ "total": 661315072,
208
+ "trainable": 661315072
209
+ },
210
+ "pipeline_parallel_size": 1,
211
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109",
212
+ "tensor_parallel_size": 1,
213
+ "tokenizer": {
214
+ "active_vocab_size": 32001,
215
+ "added_tokens": [
216
+ "<|assistant_end|>"
217
+ ],
218
+ "padded_vocab_size": 32064,
219
+ "repository": "NousResearch/Llama-2-7b-hf",
220
+ "revision": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d"
221
+ },
222
+ "training": {
223
+ "completed_run": true,
224
+ "consumed_input_tokens": 5242880000,
225
+ "consumed_train_samples": 2560000,
226
+ "final_checkpoint": false,
227
+ "global_batch_size": 128,
228
+ "micro_batch_size": 4,
229
+ "planned_input_tokens": 7000031232,
230
+ "resumed_from_step": 12000,
231
+ "seed": 43,
232
+ "sequence_length": 2048,
233
+ "train_iters": 26703
234
+ },
235
+ "training_code_repository": "https://github.com/FFishy-git/loopTF-workspace",
236
+ "training_code_revision": "3763dea5b6c0cb4496405eff8d7a83f103193769"
237
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/launch_config.env ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Look-ahead K3/LA2 matching vanilla/476M_7b_FBW0_K3.env's feedback depth and training recipe.
2
+ # LA2 names the existing two-stage design: one real plus one pseudo backbone forward per pass.
3
+ # See configs/lookahead/README.md for the additional pseudo/refiner computation.
4
+ TRAIN_ARCHITECTURE=lookahead
5
+ BACKBONE_PROFILE=paper2604_vanilla
6
+ TRAINING_RECIPE=paper2604_21106
7
+ RECIPE_OVERRIDES='{}'
8
+ # Use the installed Transformers release; the cluster's dev checkout is incompatible.
9
+ TRANSFORMERS_PATH=''
10
+ RUN_NAME=paper2604_lookahead_476m_7b_online_K3_LA2
11
+ RESUME_POLICY=fresh
12
+ REQUIRE_CHECKPOINT=false
13
+
14
+ # Online FineWeb-Edu; no prepared .bin/.idx dataset is needed.
15
+ # The launcher saves the pinned Llama-2 + assistant_end tokenizer under DATA_ROOT.
16
+ DATASET_NAME=paper2604_fineweb_edu_online_llama2_32001_t2049
17
+ ONLINE_DATA=true
18
+ # Match FBW0_K3: use the complete local raw cache when available.
19
+ ONLINE_SOURCE_MODE=auto
20
+ ONLINE_DATASET=HuggingFaceFW/fineweb-edu
21
+ ONLINE_DATASET_SUBSET=sample-100BT
22
+ ONLINE_DATASET_REVISION=87f09149ef4734204d70ed1d046ddc9ca3f2b8f9
23
+ ONLINE_SOURCE_SPLIT=train
24
+ ONLINE_TEXT_COLUMN=text
25
+ ONLINE_VALIDATION_FRACTION=0.001
26
+ ONLINE_SPLIT_SEED=260421106
27
+ TOKENIZER_MODEL=NousResearch/Llama-2-7b-hf
28
+ ONLINE_TOKENIZER_REVISION=8efe6c9b93655b934e27bd9981e3ec13e55aee9d
29
+ ONLINE_TOKENIZER_BATCH_SIZE=256
30
+ ONLINE_SHUFFLE_BUFFER_RECORDS=128
31
+ NUM_WORKERS=0
32
+ DATA_PREFLIGHT=false
33
+ EXPECTED_RECORD_LENGTH=2049
34
+ EXPECTED_INPUT_LENGTH=2048
35
+ MIN_MODEL_INPUT_TOKENS=7000000000
36
+
37
+ # Match FBW0_K3's data stream: four nodes, TP=PP=1, DP=32.
38
+ # The multi-node launcher supplies the node rank; preflight can override NNODES.
39
+ NNODES=4
40
+ GPUS_PER_NODE=8
41
+ TP=1
42
+ PP=1
43
+ # Four accumulation rounds on 8 GPUs, one on 32 GPUs (TP=PP=1).
44
+ MICRO_BATCH_SIZE=4
45
+ GLOBAL_BATCH_SIZE=128
46
+ SEQ_LENGTH=2048
47
+ MAX_POSITION_EMBEDDINGS=2048
48
+ # ceil(7_000_000_000 / 262_144) = 26_703 => 7_000_031_232 physical input tokens.
49
+ TRAIN_ITERS=26703
50
+
51
+ NUM_LAYERS=20
52
+ HIDDEN_SIZE=1408
53
+ FFN_HIDDEN_SIZE=5632
54
+ NUM_ATTENTION_HEADS=11
55
+ NUM_QUERY_GROUPS=11
56
+ GROUP_QUERY_ATTENTION=false
57
+ ATTENTION_OUTPUT_GATE=false
58
+ QK_LAYERNORM=false # Profile supplies parameter-free QK RMSNorm AFTER RoPE.
59
+ SWIGLU=false # Profile supplies squared-ReLU.
60
+ DISABLE_BIAS_LINEAR=true
61
+ NORMALIZATION=RMSNorm
62
+ LAYERNORM_EPSILON=0.000001
63
+ HIDDEN_DROPOUT=0
64
+ ATTENTION_DROPOUT=0
65
+ WINDOW_SIZE=none
66
+ WINDOW_ATTN_SKIP_FREQ=1
67
+ POSITION_EMBEDDING_TYPE=rope
68
+ ROTARY_BASE=10000
69
+ UNTIE_EMBEDDINGS=true
70
+ TOKENIZER_TYPE=HuggingFaceTokenizer
71
+ VOCAB_SIZE=32001
72
+ MAKE_VOCAB_SIZE_DIVISIBLE_BY=64
73
+ PRECISION=bf16
74
+ ENABLE_RECOMPUTE=true # Recompute backbone layers; preserves the model and data budget.
75
+ MEGATRON_EXTRA_ARGS=''
76
+
77
+ # Three complete real/pseudo/refiner passes on every update and during evaluation.
78
+ # Includes one seed and two feedback passes; loss = L1 + (L2 + L3) / 2.
79
+ LOOKAHEAD_MODE=parallel
80
+ LOOKAHEAD_NUM_PASSES=3
81
+ LOOKAHEAD_FEEDBACK_LOSS_WEIGHT=1
82
+ LOOKAHEAD_ATTENTION_BACKEND=sdpa_auto
83
+ LOOKAHEAD_CHECKPOINT_REFINER=true
84
+ LOOKAHEAD_REFINER_FFN_SIZE=5632
85
+ LOOKAHEAD_REFINER_GATE_BIAS=-2
86
+ WANDB_TAGS=product,lookahead,paper2604,476m,7b,k3,la2
87
+ WANDB_RUN_GROUP=lookahead_476m_7b_K3_LA2
88
+
89
+ # Frequent logs and a short sampled evaluation for the initial training check.
90
+ WANDB_ENTITY=LoopTF-4-CSPs
91
+ WANDB_PROJECT=loopTF-workspace
92
+ WANDB_MODE=online
93
+ WANDB_RESUME=never
94
+ SAVE_INTERVAL=4000
95
+ EVAL_AT_START=true
96
+ EVAL_INTERVAL=100
97
+ EVAL_ITERS=2
98
+ LOG_INTERVAL=1
99
+ CKPT_FORMAT=torch
100
+ SEED=42
101
+
102
+ # Pinned R3 single-node objective-strength experiment. No architecture changes.
103
+ LOOKAHEAD_FUTURE_LOSS_WEIGHT=0.0
104
+ SEED=43
105
+ NNODES=1
106
+ GPUS_PER_NODE=8
107
+ TP=1
108
+ PP=1
109
+ MICRO_BATCH_SIZE=4
110
+ GLOBAL_BATCH_SIZE=128
111
+ TRAIN_ITERS=26703
112
+ EXIT_INTERVAL=16000
113
+ SAVE_INTERVAL=4000
114
+ SAVE_RETAIN_INTERVAL=4000
115
+ ENABLE_RECOMPUTE=false
116
+ LOOKAHEAD_CHECKPOINT_REFINER=false
117
+ EVAL_AT_START=true
118
+ FINAL_EVAL_ITERS=270
119
+ LOG_INTERVAL=1
120
+ RESUME_POLICY=fresh
121
+ REQUIRE_CHECKPOINT=false
122
+ WANDB_TAGS=product,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300
123
+ WANDB_RUN_GROUP=r3_lookahead_future_grounding_20260918
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/manifest.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ {
4
+ "path": "README.md",
5
+ "sha256": "306b3f2228014d8fabf82bcd4365ffefc3b43db8a2796f3c44d9f9997a9d9f28",
6
+ "size": 2352
7
+ },
8
+ {
9
+ "path": "config.json",
10
+ "sha256": "a6be34edaa2940c5ca6fca659333ffeb081347394208c841b0bc95f8f08b3e40",
11
+ "size": 10068
12
+ },
13
+ {
14
+ "path": "launch_config.env",
15
+ "sha256": "80859d2281685349d081b93773a1b92627e58c6b170b77d51090d928841bed26",
16
+ "size": 3907
17
+ },
18
+ {
19
+ "path": "model.safetensors",
20
+ "sha256": "9a9789ee2c00ea0bfa583a11b86d8f4cb48bc7821a6cdf907048823acaee1176",
21
+ "size": 1322796152
22
+ },
23
+ {
24
+ "path": "training_recipe.json",
25
+ "sha256": "d3c0c45e3bd3d5c1b8fa1c7c242ded1251d6459482b1fea675e3ae19ecfccca6",
26
+ "size": 4352
27
+ }
28
+ ],
29
+ "format": "safetensors_native_megatron_state_dict",
30
+ "iteration": 20000,
31
+ "note": "This manifest does not hash itself.",
32
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109"
33
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a9789ee2c00ea0bfa583a11b86d8f4cb48bc7821a6cdf907048823acaee1176
3
+ size 1322796152
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_20000/training_recipe.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recipe": "paper2604_21106",
3
+ "width": 1408,
4
+ "total_tokens": 7000031232,
5
+ "batch_tokens": 262144,
6
+ "reference_width": 640,
7
+ "reference_tokens": 983315200,
8
+ "reference_batch_tokens": 262144,
9
+ "base_lrs": {
10
+ "matrix": 0.014,
11
+ "embedding": 0.3,
12
+ "unembedding": 0.004,
13
+ "norm": 0.005,
14
+ "other": 0.005
15
+ },
16
+ "peak_lrs": {
17
+ "matrix": 0.007470638533717786,
18
+ "embedding": 0.2022599587389726,
19
+ "unembedding": 0.0026967994498529684,
20
+ "norm": 0.00337099931231621,
21
+ "other": 0.00337099931231621
22
+ },
23
+ "reference": "paper vanilla 0-20-0 at width 640; configurable token anchor",
24
+ "tied_embedding_policy": "unembedding (one AdamW update)",
25
+ "other_parameter_policy": "norm LR (extension for non-paper scalars/biases)",
26
+ "weight_decay": 0.0,
27
+ "warmup_steps": 0,
28
+ "final_lr_fraction": 0.1,
29
+ "optimizer": {
30
+ "name": "muonh",
31
+ "matrix_lr": 0.014,
32
+ "scalar_lr": null,
33
+ "matrix_weight_decay": 0.0,
34
+ "scalar_weight_decay": 0.0,
35
+ "embedding_lr": 0.3,
36
+ "unembedding_lr": 0.004,
37
+ "norm_lr": 0.005,
38
+ "other_lr": 0.005,
39
+ "betas": [
40
+ 0.8,
41
+ 0.95
42
+ ],
43
+ "eps": 1e-10,
44
+ "normuon_momentum": 0.95,
45
+ "normuon_beta2": 0.95,
46
+ "normuon_nesterov": true,
47
+ "normuon_adjust_lr": "spectral_norm",
48
+ "max_grad_norm": null
49
+ },
50
+ "schedule": {
51
+ "kind": "linear",
52
+ "warmup_steps": 0,
53
+ "cooldown_fraction": 0.0,
54
+ "cooldown_style": "linear",
55
+ "final_lr_fraction": 0.1,
56
+ "z_loss_coefficient": 0.0,
57
+ "adamc_weight_decay": false
58
+ },
59
+ "group_weight_decay": {
60
+ "matrix": 0.0,
61
+ "embedding": 0.0,
62
+ "unembedding": 0.0,
63
+ "norm": 0.0,
64
+ "other": 0.0
65
+ },
66
+ "recipe_overrides": {},
67
+ "requested_batch_tokens": 262144,
68
+ "sequence_length": 2048,
69
+ "batch_assumptions": {
70
+ "global_batch_tokens": 262144,
71
+ "sequence_length": 2048,
72
+ "round_up": false
73
+ },
74
+ "lr_transfer": "mup_hyperp_released_source",
75
+ "assumptions": [],
76
+ "backend_kernel_assumptions": {},
77
+ "paper_settings_overridden": false,
78
+ "model": {
79
+ "backbone_profile": "paper2604_vanilla",
80
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
81
+ "width_scale": 22,
82
+ "hidden_size": 1408,
83
+ "num_layers": 20,
84
+ "head_dim": 128,
85
+ "num_attention_heads": 11,
86
+ "num_kv_heads": 11,
87
+ "ffn_hidden_size": 5632,
88
+ "activation": "squared_relu",
89
+ "attention": "full_causal",
90
+ "attention_output_gate": false,
91
+ "qk_norm": "functional_rmsnorm_after_rope",
92
+ "norm_epsilon": 1e-06,
93
+ "model_level_norms": [
94
+ "embedding",
95
+ "recur",
96
+ "final"
97
+ ],
98
+ "rope_base": 10000.0,
99
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
100
+ "bias": false,
101
+ "dropout": 0.0,
102
+ "residual_multiplier": 1.0,
103
+ "residual_and_norm_scale_dtype": "float32",
104
+ "projection_dtype": "bfloat16 (production)",
105
+ "tied_embeddings": false,
106
+ "vocab_size": 32001,
107
+ "padded_vocab_size": 32064,
108
+ "logit_softcap": 15.0,
109
+ "crop_padding_before_loss": true,
110
+ "initialization": {
111
+ "embedding_normal_std": 1.0,
112
+ "head_normal_std": 0.001,
113
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
114
+ "norm_scale": 1.0
115
+ },
116
+ "parameter_counts": {
117
+ "non_embedding_matrix_formula": 475791360,
118
+ "non_embedding_paper_N": 475851904,
119
+ "total_trainable": 661315072,
120
+ "feedback_parameters": 3964928,
121
+ "backbone_total_trainable": 566144128,
122
+ "lookahead_parameters": 95170944,
123
+ "total_parameters": 661315072
124
+ },
125
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
126
+ "execution_architecture": "lookahead",
127
+ "objective": "lookahead_parallel_next_token",
128
+ "lookahead_mode": "parallel",
129
+ "train_passes": 3,
130
+ "feedback_loss_weight": 1.0,
131
+ "cache_layer_indices": [
132
+ 0,
133
+ 10,
134
+ 19
135
+ ],
136
+ "refiner_activation": "silu_gated",
137
+ "pseudo_backend": "sdpa_auto",
138
+ "activation_checkpointing": false,
139
+ "checkpoint_refiner": false,
140
+ "block_application_multiplier": 6.449999999999999,
141
+ "future_loss_weight": 0.0,
142
+ "future_gradient_mode": "all",
143
+ "draft_loss_weight": 0.0,
144
+ "pseudo_initializer": "A0",
145
+ "pseudo_top_k": 128,
146
+ "pseudo_temperature": 1.0,
147
+ "refiner_variant": "R0",
148
+ "allow_objective_change_on_resume": false
149
+ }
150
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # r3_b300_alpha0p0-seed43_product_20260918-170109 — step 24000
2
+
3
+ Native model weights from the completed Lookahead K3/LA2 alpha=0, seed=43 experiment.
4
+ Training finished at update 26703 (7000031232 input tokens); this checkpoint is an intermediate retained checkpoint.
5
+ This checkpoint consumed 6291456000 input tokens. TP=1 / PP=1, DP=8. Parameter count: 661315072 total and trainable.
6
+ The H200 continuation restored the original B300 checkpoint at step 12000. The existing step_12000 folder retains its full native resume bundle.
7
+
8
+ Training source: https://github.com/FFishy-git/loopTF-workspace/tree/3763dea5b6c0cb4496405eff8d7a83f103193769
9
+ Megatron revision: d046b0de593b1802c78a7664765174c031eb452c. Python 3.13.11 / PyTorch 2.14.0+cu132.
10
+ W&B: https://wandb.ai/LoopTF-4-CSPs/loopTF-workspace/runs/bapl3lfs
11
+ Access to the code repository is required. Paper backbone source revision is separately recorded in config.json.
12
+
13
+ ## Loading
14
+
15
+ Use the pinned repository and its dependencies, with its src directory on PYTHONPATH.
16
+ These safetensors preserve the native Megatron state-dict names and mixed dtypes; they are not an AutoModel.from_pretrained conversion.
17
+
18
+ ```python
19
+ import json, torch
20
+ from safetensors.torch import load_file
21
+ from lookahead_tf.hf.config import ModelConfig
22
+ from lookahead_tf.hf.model import LookaheadTransformer
23
+ from lookahead_tf.policy import LookaheadConfig
24
+
25
+ cfg = json.load(open("config.json"))
26
+ with torch.device("meta"):
27
+ model = LookaheadTransformer(ModelConfig(**cfg["model_config"]),
28
+ LookaheadConfig(**cfg["lookahead_config"]))
29
+ state = load_file("model.safetensors")
30
+ state.update(cfg["non_tensor_state"])
31
+ assert all(k.startswith("model.") for k in state)
32
+ model.load_state_dict({k[len("model."):]: v for k, v in state.items()},
33
+ strict=True, assign=True)
34
+ model.eval()
35
+ ```
36
+
37
+ K3 means three complete passes including the seed. LA2 labels the existing real/pseudo design per pass.
38
+ The saved base launch_config.env differs from effective resume settings; use config.json's effective_launch_settings and constructor arguments.
39
+ Weights, configuration and integrity manifest only; optimizer, scheduler, RNG, dataloader state and training data are excluded from this export.
40
+ No final-checkpoint evaluation score is claimed here; the last periodic evaluation occurred at step26700.
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/config.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "lookahead",
3
+ "backbone_profile": "paper2604_vanilla",
4
+ "checkpoint_format": "safetensors_native_megatron_state_dict",
5
+ "checkpoint_version": 3.0,
6
+ "data_parallel_size": 8,
7
+ "effective_launch_settings": {
8
+ "ADAM_BETA1": "0.8",
9
+ "ADAM_BETA2": "0.95",
10
+ "ADAM_EPS": "1e-10",
11
+ "ATTENTION_DROPOUT": "0",
12
+ "ATTENTION_OUTPUT_GATE": "false",
13
+ "AUX_MTP_HORIZON": "1",
14
+ "AUX_MTP_LOSS_WEIGHT": "0.3",
15
+ "AUX_MTP_RANK": "128",
16
+ "BACKBONE_PROFILE": "paper2604_vanilla",
17
+ "CKPT_FORMAT": "torch",
18
+ "CLIP_GRAD": "0.0",
19
+ "DATALOADER_SAVE": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/dataloader",
20
+ "DATASET_NAME": "paper2604_fineweb_edu_online_llama2_32001_t2049",
21
+ "DATA_DIR": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049",
22
+ "DATA_PREFLIGHT": "false",
23
+ "DATA_ROOT": "/root/dl/runtime/script/loopTF-workspace/data",
24
+ "DISABLE_BIAS_LINEAR": "true",
25
+ "DISABLE_WANDB": "false",
26
+ "ENABLE_RECOMPUTE": "false",
27
+ "EVAL_AT_START": "true",
28
+ "EVAL_INTERVAL": "100",
29
+ "EVAL_ITERS": "2",
30
+ "EVAL_ONLY": "false",
31
+ "EXIT_INTERVAL": "26703",
32
+ "EXIT_SIGNAL_HANDLER": "false",
33
+ "EXPECTED_INPUT_LENGTH": "2048",
34
+ "EXPECTED_RECORD_LENGTH": "2049",
35
+ "FEEDBACK_EVAL_PASSES": "",
36
+ "FEEDBACK_JITTER_SIGMA": "0.02",
37
+ "FEEDBACK_LOG_HIDDEN_CHANGE": "false",
38
+ "FEEDBACK_LOSS_WEIGHT": "1.0",
39
+ "FEEDBACK_NORMUON_BETA2": "0.95",
40
+ "FEEDBACK_PASS_MIXTURE": "1:0.75,2:0.22,3:0.03",
41
+ "FEEDBACK_PREFIX_MIXIN": "true",
42
+ "FEEDBACK_PROGRESSIVE_STAGES": "[{\"start_fraction\":0.0,\"mixture\":{\"1\":1.0}},{\"start_fraction\":0.75,\"mixture\":{\"2\":0.88,\"3\":0.12}}]",
43
+ "FEEDBACK_SCALAR_LR": "0.0005",
44
+ "FEEDBACK_SCALAR_WEIGHT_DECAY": "0.0",
45
+ "FEEDBACK_Z_LOSS_COEFFICIENT": "0.0",
46
+ "FEEDBACK_Z_LOSS_START_FRACTION": "1.0",
47
+ "FFN_HIDDEN_SIZE": "5632",
48
+ "FINAL_EVAL_ITERS": "270",
49
+ "GLOBAL_BATCH_SIZE": "128",
50
+ "GPUS_PER_NODE": "8",
51
+ "GROUP_QUERY_ATTENTION": "false",
52
+ "HIDDEN_DROPOUT": "0",
53
+ "HIDDEN_SIZE": "1408",
54
+ "LAYERNORM_EPSILON": "0.000001",
55
+ "LOAD_PATH": "/root/dl/runtime/script/loopTF-workspace/output/checkpoint-downloads/r3_b300_alpha0p0-seed43_product_20260918-170109/step_12000/checkpoints",
56
+ "LOG_INTERVAL": "1",
57
+ "LOOKAHEAD_ATTENTION_BACKEND": "sdpa_auto",
58
+ "LOOKAHEAD_CHECKPOINT_REFINER": "false",
59
+ "LOOKAHEAD_FEEDBACK_LOSS_WEIGHT": "1",
60
+ "LOOKAHEAD_FUTURE_GRADIENT_MODE": "all",
61
+ "LOOKAHEAD_FUTURE_LOSS_WEIGHT": "0.0",
62
+ "LOOKAHEAD_MODE": "parallel",
63
+ "LOOKAHEAD_NUM_PASSES": "3",
64
+ "LOOKAHEAD_REFINER_FFN_SIZE": "5632",
65
+ "LOOKAHEAD_REFINER_GATE_BIAS": "-2",
66
+ "LR": "0.014",
67
+ "LR_DECAY_STYLE": "linear",
68
+ "LR_WSD_DECAY_STYLE": "linear",
69
+ "MAKE_VOCAB_SIZE_DIVISIBLE_BY": "64",
70
+ "MAX_POSITION_EMBEDDINGS": "2048",
71
+ "MEGATRON_EXTRA_ARGS": "",
72
+ "MICRO_BATCH_SIZE": "4",
73
+ "MIN_LR": "0.0007470638533717787",
74
+ "MIN_MODEL_INPUT_TOKENS": "7000000000",
75
+ "MUON_MOMENTUM": "0.95",
76
+ "MUON_NESTEROV": "true",
77
+ "NORMALIZATION": "RMSNorm",
78
+ "NUM_ATTENTION_HEADS": "11",
79
+ "NUM_LAYERS": "20",
80
+ "NUM_QUERY_GROUPS": "11",
81
+ "NUM_WORKERS": "0",
82
+ "ONLINE_DATA": "true",
83
+ "ONLINE_DATASET": "HuggingFaceFW/fineweb-edu",
84
+ "ONLINE_DATASET_REVISION": "87f09149ef4734204d70ed1d046ddc9ca3f2b8f9",
85
+ "ONLINE_DATASET_SUBSET": "sample-100BT",
86
+ "ONLINE_DATA_CACHE_DIR": "/root/dl/runtime/script/loopTF-workspace/data/cache/huggingface",
87
+ "ONLINE_LATENCY_LOG_DIR": "",
88
+ "ONLINE_PACK_SEQUENCES": "false",
89
+ "ONLINE_PREFETCH_BATCHES": "16",
90
+ "ONLINE_RAW_MANIFEST": "/root/dl/runtime/script/loopTF-workspace/data/raw/fineweb-edu-100BT/manifest.json",
91
+ "ONLINE_SHUFFLE_BUFFER_RECORDS": "128",
92
+ "ONLINE_SOURCE_MODE": "local",
93
+ "ONLINE_SOURCE_RETRY_LIMIT": "8",
94
+ "ONLINE_SOURCE_SPLIT": "train",
95
+ "ONLINE_SPLIT_SEED": "260421106",
96
+ "ONLINE_TEXT_COLUMN": "text",
97
+ "ONLINE_TOKENIZER_BATCH_SIZE": "256",
98
+ "ONLINE_TOKENIZER_REVISION": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d",
99
+ "ONLINE_VALIDATION_FRACTION": "0.001",
100
+ "ONLINE_VALIDATION_MANIFEST": "",
101
+ "OPTIMIZER": "muonh",
102
+ "OUTPUT_ROOT": "/root/dl/runtime/script/loopTF-workspace/output",
103
+ "PAPER_EMBEDDING_LR": "0.3",
104
+ "PAPER_NORM_LR": "0.005",
105
+ "PAPER_OTHER_LR": "0.005",
106
+ "PAPER_REFERENCE_BATCH_TOKENS": "262144",
107
+ "PAPER_REFERENCE_TOKENS": "983315200",
108
+ "PAPER_REFERENCE_WIDTH": "640",
109
+ "PAPER_UNEMBEDDING_LR": "0.004",
110
+ "POSITION_EMBEDDING_TYPE": "rope",
111
+ "PP": "1",
112
+ "PRECISION": "bf16",
113
+ "QK_LAYERNORM": "false",
114
+ "RECIPE_OVERRIDES": "{}",
115
+ "RECIPE_REQUESTED_BATCH_TOKENS": "262144",
116
+ "RECOMPUTE_GRANULARITY": "full",
117
+ "RECOMPUTE_METHOD": "uniform",
118
+ "RECOMPUTE_NUM_LAYERS": "1",
119
+ "REQUIRE_CHECKPOINT": "true",
120
+ "RESUME_POLICY": "auto",
121
+ "ROTARY_BASE": "10000",
122
+ "RUN_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847",
123
+ "RUN_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
124
+ "SAVE_INTERVAL": "4000",
125
+ "SAVE_PATH": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/checkpoints",
126
+ "SAVE_RETAIN_INTERVAL": "4000",
127
+ "SEED": "43",
128
+ "SEQ_LENGTH": "2048",
129
+ "SWIGLU": "false",
130
+ "TENSORBOARD_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/tensorboard",
131
+ "TEST_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
132
+ "TOKENIZER_MODEL": "/taijifs_wzbd31/rentTest/hunyuan/kenanchen/loopTF-workspace/data/tokenizers/paper2604_llama2_32001_3cfa8358de44148a",
133
+ "TOKENIZER_TYPE": "HuggingFaceTokenizer",
134
+ "TP": "1",
135
+ "TRAINING_RECIPE": "paper2604_21106",
136
+ "TRAIN_ARCHITECTURE": "lookahead",
137
+ "TRAIN_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/train_text_document",
138
+ "TRAIN_ITERS": "26703",
139
+ "UNTIE_EMBEDDINGS": "true",
140
+ "VALID_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
141
+ "VOCAB_SIZE": "32001",
142
+ "WANDB_ENTITY": "LoopTF-4-CSPs",
143
+ "WANDB_EXP_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
144
+ "WANDB_MODE": "online",
145
+ "WANDB_PROJECT": "loopTF-workspace",
146
+ "WANDB_RESUME": "must",
147
+ "WANDB_RUN_GROUP": "r3_lookahead_future_grounding_20260918",
148
+ "WANDB_RUN_ID": "bapl3lfs",
149
+ "WANDB_SAVE_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/wandb",
150
+ "WANDB_TAGS": "product,resume,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300,h200",
151
+ "WARMUP_ITERS": "0",
152
+ "WEIGHT_DECAY": "0.0",
153
+ "WINDOW_ATTN_SKIP_FREQ": "1",
154
+ "WINDOW_SIZE": "none",
155
+ "WSD_DECAY_ITERS": "0"
156
+ },
157
+ "iteration": 24000,
158
+ "launch_snapshot_note": "launch_config.env is the original base snapshot; effective_launch_settings and constructor configs capture resume overrides.",
159
+ "loading": "Use the pinned source LookaheadTransformer; remove exactly the model. key prefix; strict=True, assign=True on a meta-constructed model preserves checkpoint dtypes. Not Transformers AutoModel format.",
160
+ "lookahead_config": {
161
+ "allow_objective_change_on_resume": false,
162
+ "attention_backend": "sdpa_auto",
163
+ "cache_layer_indices": null,
164
+ "checkpoint_refiner": false,
165
+ "draft_loss_weight": 0.0,
166
+ "feedback_loss_weight": 1.0,
167
+ "future_gradient_mode": "all",
168
+ "future_loss_weight": 0.0,
169
+ "mode": "parallel",
170
+ "num_passes": 3,
171
+ "pseudo_initializer": "A0",
172
+ "pseudo_temperature": 1.0,
173
+ "pseudo_top_k": 128,
174
+ "refiner_gate_bias": -2.0,
175
+ "refiner_intermediate_size": 5632,
176
+ "refiner_variant": "R0"
177
+ },
178
+ "megatron_revision": "d046b0de593b1802c78a7664765174c031eb452c",
179
+ "model_config": {
180
+ "attention_dropout": 0.0,
181
+ "attn_implementation": "sdpa",
182
+ "backbone_profile": "paper2604_vanilla",
183
+ "gradient_checkpointing": false,
184
+ "hf_config_overrides": {},
185
+ "hidden_size": 1408,
186
+ "initializer_range": 0.02,
187
+ "intermediate_size": 5632,
188
+ "max_position_embeddings": 2048,
189
+ "model_type": "full_bandwidth",
190
+ "num_attention_heads": 11,
191
+ "num_hidden_layers": 20,
192
+ "num_key_value_heads": 11,
193
+ "padded_vocab_size": 32064,
194
+ "paper_full_attention_interval": 6,
195
+ "paper_sliding_window": 2048,
196
+ "pretrained_model_name_or_path": null,
197
+ "revision": null,
198
+ "rms_norm_eps": 1e-06,
199
+ "rope_theta": 10000,
200
+ "tie_word_embeddings": false,
201
+ "trust_remote_code": false,
202
+ "vocab_size": 32001
203
+ },
204
+ "non_tensor_state": {},
205
+ "paper_backbone_source_revision": "122366472a31e57982a2877eeee10bb115477713",
206
+ "parameter_counts": {
207
+ "total": 661315072,
208
+ "trainable": 661315072
209
+ },
210
+ "pipeline_parallel_size": 1,
211
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109",
212
+ "tensor_parallel_size": 1,
213
+ "tokenizer": {
214
+ "active_vocab_size": 32001,
215
+ "added_tokens": [
216
+ "<|assistant_end|>"
217
+ ],
218
+ "padded_vocab_size": 32064,
219
+ "repository": "NousResearch/Llama-2-7b-hf",
220
+ "revision": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d"
221
+ },
222
+ "training": {
223
+ "completed_run": true,
224
+ "consumed_input_tokens": 6291456000,
225
+ "consumed_train_samples": 3072000,
226
+ "final_checkpoint": false,
227
+ "global_batch_size": 128,
228
+ "micro_batch_size": 4,
229
+ "planned_input_tokens": 7000031232,
230
+ "resumed_from_step": 12000,
231
+ "seed": 43,
232
+ "sequence_length": 2048,
233
+ "train_iters": 26703
234
+ },
235
+ "training_code_repository": "https://github.com/FFishy-git/loopTF-workspace",
236
+ "training_code_revision": "3763dea5b6c0cb4496405eff8d7a83f103193769"
237
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/launch_config.env ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Look-ahead K3/LA2 matching vanilla/476M_7b_FBW0_K3.env's feedback depth and training recipe.
2
+ # LA2 names the existing two-stage design: one real plus one pseudo backbone forward per pass.
3
+ # See configs/lookahead/README.md for the additional pseudo/refiner computation.
4
+ TRAIN_ARCHITECTURE=lookahead
5
+ BACKBONE_PROFILE=paper2604_vanilla
6
+ TRAINING_RECIPE=paper2604_21106
7
+ RECIPE_OVERRIDES='{}'
8
+ # Use the installed Transformers release; the cluster's dev checkout is incompatible.
9
+ TRANSFORMERS_PATH=''
10
+ RUN_NAME=paper2604_lookahead_476m_7b_online_K3_LA2
11
+ RESUME_POLICY=fresh
12
+ REQUIRE_CHECKPOINT=false
13
+
14
+ # Online FineWeb-Edu; no prepared .bin/.idx dataset is needed.
15
+ # The launcher saves the pinned Llama-2 + assistant_end tokenizer under DATA_ROOT.
16
+ DATASET_NAME=paper2604_fineweb_edu_online_llama2_32001_t2049
17
+ ONLINE_DATA=true
18
+ # Match FBW0_K3: use the complete local raw cache when available.
19
+ ONLINE_SOURCE_MODE=auto
20
+ ONLINE_DATASET=HuggingFaceFW/fineweb-edu
21
+ ONLINE_DATASET_SUBSET=sample-100BT
22
+ ONLINE_DATASET_REVISION=87f09149ef4734204d70ed1d046ddc9ca3f2b8f9
23
+ ONLINE_SOURCE_SPLIT=train
24
+ ONLINE_TEXT_COLUMN=text
25
+ ONLINE_VALIDATION_FRACTION=0.001
26
+ ONLINE_SPLIT_SEED=260421106
27
+ TOKENIZER_MODEL=NousResearch/Llama-2-7b-hf
28
+ ONLINE_TOKENIZER_REVISION=8efe6c9b93655b934e27bd9981e3ec13e55aee9d
29
+ ONLINE_TOKENIZER_BATCH_SIZE=256
30
+ ONLINE_SHUFFLE_BUFFER_RECORDS=128
31
+ NUM_WORKERS=0
32
+ DATA_PREFLIGHT=false
33
+ EXPECTED_RECORD_LENGTH=2049
34
+ EXPECTED_INPUT_LENGTH=2048
35
+ MIN_MODEL_INPUT_TOKENS=7000000000
36
+
37
+ # Match FBW0_K3's data stream: four nodes, TP=PP=1, DP=32.
38
+ # The multi-node launcher supplies the node rank; preflight can override NNODES.
39
+ NNODES=4
40
+ GPUS_PER_NODE=8
41
+ TP=1
42
+ PP=1
43
+ # Four accumulation rounds on 8 GPUs, one on 32 GPUs (TP=PP=1).
44
+ MICRO_BATCH_SIZE=4
45
+ GLOBAL_BATCH_SIZE=128
46
+ SEQ_LENGTH=2048
47
+ MAX_POSITION_EMBEDDINGS=2048
48
+ # ceil(7_000_000_000 / 262_144) = 26_703 => 7_000_031_232 physical input tokens.
49
+ TRAIN_ITERS=26703
50
+
51
+ NUM_LAYERS=20
52
+ HIDDEN_SIZE=1408
53
+ FFN_HIDDEN_SIZE=5632
54
+ NUM_ATTENTION_HEADS=11
55
+ NUM_QUERY_GROUPS=11
56
+ GROUP_QUERY_ATTENTION=false
57
+ ATTENTION_OUTPUT_GATE=false
58
+ QK_LAYERNORM=false # Profile supplies parameter-free QK RMSNorm AFTER RoPE.
59
+ SWIGLU=false # Profile supplies squared-ReLU.
60
+ DISABLE_BIAS_LINEAR=true
61
+ NORMALIZATION=RMSNorm
62
+ LAYERNORM_EPSILON=0.000001
63
+ HIDDEN_DROPOUT=0
64
+ ATTENTION_DROPOUT=0
65
+ WINDOW_SIZE=none
66
+ WINDOW_ATTN_SKIP_FREQ=1
67
+ POSITION_EMBEDDING_TYPE=rope
68
+ ROTARY_BASE=10000
69
+ UNTIE_EMBEDDINGS=true
70
+ TOKENIZER_TYPE=HuggingFaceTokenizer
71
+ VOCAB_SIZE=32001
72
+ MAKE_VOCAB_SIZE_DIVISIBLE_BY=64
73
+ PRECISION=bf16
74
+ ENABLE_RECOMPUTE=true # Recompute backbone layers; preserves the model and data budget.
75
+ MEGATRON_EXTRA_ARGS=''
76
+
77
+ # Three complete real/pseudo/refiner passes on every update and during evaluation.
78
+ # Includes one seed and two feedback passes; loss = L1 + (L2 + L3) / 2.
79
+ LOOKAHEAD_MODE=parallel
80
+ LOOKAHEAD_NUM_PASSES=3
81
+ LOOKAHEAD_FEEDBACK_LOSS_WEIGHT=1
82
+ LOOKAHEAD_ATTENTION_BACKEND=sdpa_auto
83
+ LOOKAHEAD_CHECKPOINT_REFINER=true
84
+ LOOKAHEAD_REFINER_FFN_SIZE=5632
85
+ LOOKAHEAD_REFINER_GATE_BIAS=-2
86
+ WANDB_TAGS=product,lookahead,paper2604,476m,7b,k3,la2
87
+ WANDB_RUN_GROUP=lookahead_476m_7b_K3_LA2
88
+
89
+ # Frequent logs and a short sampled evaluation for the initial training check.
90
+ WANDB_ENTITY=LoopTF-4-CSPs
91
+ WANDB_PROJECT=loopTF-workspace
92
+ WANDB_MODE=online
93
+ WANDB_RESUME=never
94
+ SAVE_INTERVAL=4000
95
+ EVAL_AT_START=true
96
+ EVAL_INTERVAL=100
97
+ EVAL_ITERS=2
98
+ LOG_INTERVAL=1
99
+ CKPT_FORMAT=torch
100
+ SEED=42
101
+
102
+ # Pinned R3 single-node objective-strength experiment. No architecture changes.
103
+ LOOKAHEAD_FUTURE_LOSS_WEIGHT=0.0
104
+ SEED=43
105
+ NNODES=1
106
+ GPUS_PER_NODE=8
107
+ TP=1
108
+ PP=1
109
+ MICRO_BATCH_SIZE=4
110
+ GLOBAL_BATCH_SIZE=128
111
+ TRAIN_ITERS=26703
112
+ EXIT_INTERVAL=16000
113
+ SAVE_INTERVAL=4000
114
+ SAVE_RETAIN_INTERVAL=4000
115
+ ENABLE_RECOMPUTE=false
116
+ LOOKAHEAD_CHECKPOINT_REFINER=false
117
+ EVAL_AT_START=true
118
+ FINAL_EVAL_ITERS=270
119
+ LOG_INTERVAL=1
120
+ RESUME_POLICY=fresh
121
+ REQUIRE_CHECKPOINT=false
122
+ WANDB_TAGS=product,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300
123
+ WANDB_RUN_GROUP=r3_lookahead_future_grounding_20260918
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/manifest.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ {
4
+ "path": "README.md",
5
+ "sha256": "4f3f67f7cd0fbcff1a600f749e19594a449c14f16d26a275d95d0792579627b7",
6
+ "size": 2352
7
+ },
8
+ {
9
+ "path": "config.json",
10
+ "sha256": "40aa54a4e499638a7a319a26923e2d2d1ffb881ad97ef32417ff450d96682693",
11
+ "size": 10068
12
+ },
13
+ {
14
+ "path": "launch_config.env",
15
+ "sha256": "80859d2281685349d081b93773a1b92627e58c6b170b77d51090d928841bed26",
16
+ "size": 3907
17
+ },
18
+ {
19
+ "path": "model.safetensors",
20
+ "sha256": "d66f32b66871e65a15bee0dade243f1c77c5924f2732e0afe75a11b25a15fb3b",
21
+ "size": 1322796152
22
+ },
23
+ {
24
+ "path": "training_recipe.json",
25
+ "sha256": "d3c0c45e3bd3d5c1b8fa1c7c242ded1251d6459482b1fea675e3ae19ecfccca6",
26
+ "size": 4352
27
+ }
28
+ ],
29
+ "format": "safetensors_native_megatron_state_dict",
30
+ "iteration": 24000,
31
+ "note": "This manifest does not hash itself.",
32
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109"
33
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d66f32b66871e65a15bee0dade243f1c77c5924f2732e0afe75a11b25a15fb3b
3
+ size 1322796152
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_24000/training_recipe.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recipe": "paper2604_21106",
3
+ "width": 1408,
4
+ "total_tokens": 7000031232,
5
+ "batch_tokens": 262144,
6
+ "reference_width": 640,
7
+ "reference_tokens": 983315200,
8
+ "reference_batch_tokens": 262144,
9
+ "base_lrs": {
10
+ "matrix": 0.014,
11
+ "embedding": 0.3,
12
+ "unembedding": 0.004,
13
+ "norm": 0.005,
14
+ "other": 0.005
15
+ },
16
+ "peak_lrs": {
17
+ "matrix": 0.007470638533717786,
18
+ "embedding": 0.2022599587389726,
19
+ "unembedding": 0.0026967994498529684,
20
+ "norm": 0.00337099931231621,
21
+ "other": 0.00337099931231621
22
+ },
23
+ "reference": "paper vanilla 0-20-0 at width 640; configurable token anchor",
24
+ "tied_embedding_policy": "unembedding (one AdamW update)",
25
+ "other_parameter_policy": "norm LR (extension for non-paper scalars/biases)",
26
+ "weight_decay": 0.0,
27
+ "warmup_steps": 0,
28
+ "final_lr_fraction": 0.1,
29
+ "optimizer": {
30
+ "name": "muonh",
31
+ "matrix_lr": 0.014,
32
+ "scalar_lr": null,
33
+ "matrix_weight_decay": 0.0,
34
+ "scalar_weight_decay": 0.0,
35
+ "embedding_lr": 0.3,
36
+ "unembedding_lr": 0.004,
37
+ "norm_lr": 0.005,
38
+ "other_lr": 0.005,
39
+ "betas": [
40
+ 0.8,
41
+ 0.95
42
+ ],
43
+ "eps": 1e-10,
44
+ "normuon_momentum": 0.95,
45
+ "normuon_beta2": 0.95,
46
+ "normuon_nesterov": true,
47
+ "normuon_adjust_lr": "spectral_norm",
48
+ "max_grad_norm": null
49
+ },
50
+ "schedule": {
51
+ "kind": "linear",
52
+ "warmup_steps": 0,
53
+ "cooldown_fraction": 0.0,
54
+ "cooldown_style": "linear",
55
+ "final_lr_fraction": 0.1,
56
+ "z_loss_coefficient": 0.0,
57
+ "adamc_weight_decay": false
58
+ },
59
+ "group_weight_decay": {
60
+ "matrix": 0.0,
61
+ "embedding": 0.0,
62
+ "unembedding": 0.0,
63
+ "norm": 0.0,
64
+ "other": 0.0
65
+ },
66
+ "recipe_overrides": {},
67
+ "requested_batch_tokens": 262144,
68
+ "sequence_length": 2048,
69
+ "batch_assumptions": {
70
+ "global_batch_tokens": 262144,
71
+ "sequence_length": 2048,
72
+ "round_up": false
73
+ },
74
+ "lr_transfer": "mup_hyperp_released_source",
75
+ "assumptions": [],
76
+ "backend_kernel_assumptions": {},
77
+ "paper_settings_overridden": false,
78
+ "model": {
79
+ "backbone_profile": "paper2604_vanilla",
80
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
81
+ "width_scale": 22,
82
+ "hidden_size": 1408,
83
+ "num_layers": 20,
84
+ "head_dim": 128,
85
+ "num_attention_heads": 11,
86
+ "num_kv_heads": 11,
87
+ "ffn_hidden_size": 5632,
88
+ "activation": "squared_relu",
89
+ "attention": "full_causal",
90
+ "attention_output_gate": false,
91
+ "qk_norm": "functional_rmsnorm_after_rope",
92
+ "norm_epsilon": 1e-06,
93
+ "model_level_norms": [
94
+ "embedding",
95
+ "recur",
96
+ "final"
97
+ ],
98
+ "rope_base": 10000.0,
99
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
100
+ "bias": false,
101
+ "dropout": 0.0,
102
+ "residual_multiplier": 1.0,
103
+ "residual_and_norm_scale_dtype": "float32",
104
+ "projection_dtype": "bfloat16 (production)",
105
+ "tied_embeddings": false,
106
+ "vocab_size": 32001,
107
+ "padded_vocab_size": 32064,
108
+ "logit_softcap": 15.0,
109
+ "crop_padding_before_loss": true,
110
+ "initialization": {
111
+ "embedding_normal_std": 1.0,
112
+ "head_normal_std": 0.001,
113
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
114
+ "norm_scale": 1.0
115
+ },
116
+ "parameter_counts": {
117
+ "non_embedding_matrix_formula": 475791360,
118
+ "non_embedding_paper_N": 475851904,
119
+ "total_trainable": 661315072,
120
+ "feedback_parameters": 3964928,
121
+ "backbone_total_trainable": 566144128,
122
+ "lookahead_parameters": 95170944,
123
+ "total_parameters": 661315072
124
+ },
125
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
126
+ "execution_architecture": "lookahead",
127
+ "objective": "lookahead_parallel_next_token",
128
+ "lookahead_mode": "parallel",
129
+ "train_passes": 3,
130
+ "feedback_loss_weight": 1.0,
131
+ "cache_layer_indices": [
132
+ 0,
133
+ 10,
134
+ 19
135
+ ],
136
+ "refiner_activation": "silu_gated",
137
+ "pseudo_backend": "sdpa_auto",
138
+ "activation_checkpointing": false,
139
+ "checkpoint_refiner": false,
140
+ "block_application_multiplier": 6.449999999999999,
141
+ "future_loss_weight": 0.0,
142
+ "future_gradient_mode": "all",
143
+ "draft_loss_weight": 0.0,
144
+ "pseudo_initializer": "A0",
145
+ "pseudo_top_k": 128,
146
+ "pseudo_temperature": 1.0,
147
+ "refiner_variant": "R0",
148
+ "allow_objective_change_on_resume": false
149
+ }
150
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # r3_b300_alpha0p0-seed43_product_20260918-170109 — step 26703
2
+
3
+ Native model weights from the completed Lookahead K3/LA2 alpha=0, seed=43 experiment.
4
+ Training finished at update 26703 (7000031232 input tokens); this checkpoint is the final checkpoint.
5
+ This checkpoint consumed 7000031232 input tokens. TP=1 / PP=1, DP=8. Parameter count: 661315072 total and trainable.
6
+ The H200 continuation restored the original B300 checkpoint at step 12000. The existing step_12000 folder retains its full native resume bundle.
7
+
8
+ Training source: https://github.com/FFishy-git/loopTF-workspace/tree/3763dea5b6c0cb4496405eff8d7a83f103193769
9
+ Megatron revision: d046b0de593b1802c78a7664765174c031eb452c. Python 3.13.11 / PyTorch 2.14.0+cu132.
10
+ W&B: https://wandb.ai/LoopTF-4-CSPs/loopTF-workspace/runs/bapl3lfs
11
+ Access to the code repository is required. Paper backbone source revision is separately recorded in config.json.
12
+
13
+ ## Loading
14
+
15
+ Use the pinned repository and its dependencies, with its src directory on PYTHONPATH.
16
+ These safetensors preserve the native Megatron state-dict names and mixed dtypes; they are not an AutoModel.from_pretrained conversion.
17
+
18
+ ```python
19
+ import json, torch
20
+ from safetensors.torch import load_file
21
+ from lookahead_tf.hf.config import ModelConfig
22
+ from lookahead_tf.hf.model import LookaheadTransformer
23
+ from lookahead_tf.policy import LookaheadConfig
24
+
25
+ cfg = json.load(open("config.json"))
26
+ with torch.device("meta"):
27
+ model = LookaheadTransformer(ModelConfig(**cfg["model_config"]),
28
+ LookaheadConfig(**cfg["lookahead_config"]))
29
+ state = load_file("model.safetensors")
30
+ state.update(cfg["non_tensor_state"])
31
+ assert all(k.startswith("model.") for k in state)
32
+ model.load_state_dict({k[len("model."):]: v for k, v in state.items()},
33
+ strict=True, assign=True)
34
+ model.eval()
35
+ ```
36
+
37
+ K3 means three complete passes including the seed. LA2 labels the existing real/pseudo design per pass.
38
+ The saved base launch_config.env differs from effective resume settings; use config.json's effective_launch_settings and constructor arguments.
39
+ Weights, configuration and integrity manifest only; optimizer, scheduler, RNG, dataloader state and training data are excluded from this export.
40
+ No final-checkpoint evaluation score is claimed here; the last periodic evaluation occurred at step26700.
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/config.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "lookahead",
3
+ "backbone_profile": "paper2604_vanilla",
4
+ "checkpoint_format": "safetensors_native_megatron_state_dict",
5
+ "checkpoint_version": 3.0,
6
+ "data_parallel_size": 8,
7
+ "effective_launch_settings": {
8
+ "ADAM_BETA1": "0.8",
9
+ "ADAM_BETA2": "0.95",
10
+ "ADAM_EPS": "1e-10",
11
+ "ATTENTION_DROPOUT": "0",
12
+ "ATTENTION_OUTPUT_GATE": "false",
13
+ "AUX_MTP_HORIZON": "1",
14
+ "AUX_MTP_LOSS_WEIGHT": "0.3",
15
+ "AUX_MTP_RANK": "128",
16
+ "BACKBONE_PROFILE": "paper2604_vanilla",
17
+ "CKPT_FORMAT": "torch",
18
+ "CLIP_GRAD": "0.0",
19
+ "DATALOADER_SAVE": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/dataloader",
20
+ "DATASET_NAME": "paper2604_fineweb_edu_online_llama2_32001_t2049",
21
+ "DATA_DIR": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049",
22
+ "DATA_PREFLIGHT": "false",
23
+ "DATA_ROOT": "/root/dl/runtime/script/loopTF-workspace/data",
24
+ "DISABLE_BIAS_LINEAR": "true",
25
+ "DISABLE_WANDB": "false",
26
+ "ENABLE_RECOMPUTE": "false",
27
+ "EVAL_AT_START": "true",
28
+ "EVAL_INTERVAL": "100",
29
+ "EVAL_ITERS": "2",
30
+ "EVAL_ONLY": "false",
31
+ "EXIT_INTERVAL": "26703",
32
+ "EXIT_SIGNAL_HANDLER": "false",
33
+ "EXPECTED_INPUT_LENGTH": "2048",
34
+ "EXPECTED_RECORD_LENGTH": "2049",
35
+ "FEEDBACK_EVAL_PASSES": "",
36
+ "FEEDBACK_JITTER_SIGMA": "0.02",
37
+ "FEEDBACK_LOG_HIDDEN_CHANGE": "false",
38
+ "FEEDBACK_LOSS_WEIGHT": "1.0",
39
+ "FEEDBACK_NORMUON_BETA2": "0.95",
40
+ "FEEDBACK_PASS_MIXTURE": "1:0.75,2:0.22,3:0.03",
41
+ "FEEDBACK_PREFIX_MIXIN": "true",
42
+ "FEEDBACK_PROGRESSIVE_STAGES": "[{\"start_fraction\":0.0,\"mixture\":{\"1\":1.0}},{\"start_fraction\":0.75,\"mixture\":{\"2\":0.88,\"3\":0.12}}]",
43
+ "FEEDBACK_SCALAR_LR": "0.0005",
44
+ "FEEDBACK_SCALAR_WEIGHT_DECAY": "0.0",
45
+ "FEEDBACK_Z_LOSS_COEFFICIENT": "0.0",
46
+ "FEEDBACK_Z_LOSS_START_FRACTION": "1.0",
47
+ "FFN_HIDDEN_SIZE": "5632",
48
+ "FINAL_EVAL_ITERS": "270",
49
+ "GLOBAL_BATCH_SIZE": "128",
50
+ "GPUS_PER_NODE": "8",
51
+ "GROUP_QUERY_ATTENTION": "false",
52
+ "HIDDEN_DROPOUT": "0",
53
+ "HIDDEN_SIZE": "1408",
54
+ "LAYERNORM_EPSILON": "0.000001",
55
+ "LOAD_PATH": "/root/dl/runtime/script/loopTF-workspace/output/checkpoint-downloads/r3_b300_alpha0p0-seed43_product_20260918-170109/step_12000/checkpoints",
56
+ "LOG_INTERVAL": "1",
57
+ "LOOKAHEAD_ATTENTION_BACKEND": "sdpa_auto",
58
+ "LOOKAHEAD_CHECKPOINT_REFINER": "false",
59
+ "LOOKAHEAD_FEEDBACK_LOSS_WEIGHT": "1",
60
+ "LOOKAHEAD_FUTURE_GRADIENT_MODE": "all",
61
+ "LOOKAHEAD_FUTURE_LOSS_WEIGHT": "0.0",
62
+ "LOOKAHEAD_MODE": "parallel",
63
+ "LOOKAHEAD_NUM_PASSES": "3",
64
+ "LOOKAHEAD_REFINER_FFN_SIZE": "5632",
65
+ "LOOKAHEAD_REFINER_GATE_BIAS": "-2",
66
+ "LR": "0.014",
67
+ "LR_DECAY_STYLE": "linear",
68
+ "LR_WSD_DECAY_STYLE": "linear",
69
+ "MAKE_VOCAB_SIZE_DIVISIBLE_BY": "64",
70
+ "MAX_POSITION_EMBEDDINGS": "2048",
71
+ "MEGATRON_EXTRA_ARGS": "",
72
+ "MICRO_BATCH_SIZE": "4",
73
+ "MIN_LR": "0.0007470638533717787",
74
+ "MIN_MODEL_INPUT_TOKENS": "7000000000",
75
+ "MUON_MOMENTUM": "0.95",
76
+ "MUON_NESTEROV": "true",
77
+ "NORMALIZATION": "RMSNorm",
78
+ "NUM_ATTENTION_HEADS": "11",
79
+ "NUM_LAYERS": "20",
80
+ "NUM_QUERY_GROUPS": "11",
81
+ "NUM_WORKERS": "0",
82
+ "ONLINE_DATA": "true",
83
+ "ONLINE_DATASET": "HuggingFaceFW/fineweb-edu",
84
+ "ONLINE_DATASET_REVISION": "87f09149ef4734204d70ed1d046ddc9ca3f2b8f9",
85
+ "ONLINE_DATASET_SUBSET": "sample-100BT",
86
+ "ONLINE_DATA_CACHE_DIR": "/root/dl/runtime/script/loopTF-workspace/data/cache/huggingface",
87
+ "ONLINE_LATENCY_LOG_DIR": "",
88
+ "ONLINE_PACK_SEQUENCES": "false",
89
+ "ONLINE_PREFETCH_BATCHES": "16",
90
+ "ONLINE_RAW_MANIFEST": "/root/dl/runtime/script/loopTF-workspace/data/raw/fineweb-edu-100BT/manifest.json",
91
+ "ONLINE_SHUFFLE_BUFFER_RECORDS": "128",
92
+ "ONLINE_SOURCE_MODE": "local",
93
+ "ONLINE_SOURCE_RETRY_LIMIT": "8",
94
+ "ONLINE_SOURCE_SPLIT": "train",
95
+ "ONLINE_SPLIT_SEED": "260421106",
96
+ "ONLINE_TEXT_COLUMN": "text",
97
+ "ONLINE_TOKENIZER_BATCH_SIZE": "256",
98
+ "ONLINE_TOKENIZER_REVISION": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d",
99
+ "ONLINE_VALIDATION_FRACTION": "0.001",
100
+ "ONLINE_VALIDATION_MANIFEST": "",
101
+ "OPTIMIZER": "muonh",
102
+ "OUTPUT_ROOT": "/root/dl/runtime/script/loopTF-workspace/output",
103
+ "PAPER_EMBEDDING_LR": "0.3",
104
+ "PAPER_NORM_LR": "0.005",
105
+ "PAPER_OTHER_LR": "0.005",
106
+ "PAPER_REFERENCE_BATCH_TOKENS": "262144",
107
+ "PAPER_REFERENCE_TOKENS": "983315200",
108
+ "PAPER_REFERENCE_WIDTH": "640",
109
+ "PAPER_UNEMBEDDING_LR": "0.004",
110
+ "POSITION_EMBEDDING_TYPE": "rope",
111
+ "PP": "1",
112
+ "PRECISION": "bf16",
113
+ "QK_LAYERNORM": "false",
114
+ "RECIPE_OVERRIDES": "{}",
115
+ "RECIPE_REQUESTED_BATCH_TOKENS": "262144",
116
+ "RECOMPUTE_GRANULARITY": "full",
117
+ "RECOMPUTE_METHOD": "uniform",
118
+ "RECOMPUTE_NUM_LAYERS": "1",
119
+ "REQUIRE_CHECKPOINT": "true",
120
+ "RESUME_POLICY": "auto",
121
+ "ROTARY_BASE": "10000",
122
+ "RUN_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847",
123
+ "RUN_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
124
+ "SAVE_INTERVAL": "4000",
125
+ "SAVE_PATH": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/checkpoints",
126
+ "SAVE_RETAIN_INTERVAL": "4000",
127
+ "SEED": "43",
128
+ "SEQ_LENGTH": "2048",
129
+ "SWIGLU": "false",
130
+ "TENSORBOARD_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/tensorboard",
131
+ "TEST_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
132
+ "TOKENIZER_MODEL": "/taijifs_wzbd31/rentTest/hunyuan/kenanchen/loopTF-workspace/data/tokenizers/paper2604_llama2_32001_3cfa8358de44148a",
133
+ "TOKENIZER_TYPE": "HuggingFaceTokenizer",
134
+ "TP": "1",
135
+ "TRAINING_RECIPE": "paper2604_21106",
136
+ "TRAIN_ARCHITECTURE": "lookahead",
137
+ "TRAIN_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/train_text_document",
138
+ "TRAIN_ITERS": "26703",
139
+ "UNTIE_EMBEDDINGS": "true",
140
+ "VALID_DATA_PATH": "/root/dl/runtime/script/loopTF-workspace/data/paper2604_fineweb_edu_online_llama2_32001_t2049/validation_text_document",
141
+ "VOCAB_SIZE": "32001",
142
+ "WANDB_ENTITY": "LoopTF-4-CSPs",
143
+ "WANDB_EXP_NAME": "r3_b300_alpha0p0-seed43_product_20260918-170109",
144
+ "WANDB_MODE": "online",
145
+ "WANDB_PROJECT": "loopTF-workspace",
146
+ "WANDB_RESUME": "must",
147
+ "WANDB_RUN_GROUP": "r3_lookahead_future_grounding_20260918",
148
+ "WANDB_RUN_ID": "bapl3lfs",
149
+ "WANDB_SAVE_DIR": "/root/dl/runtime/script/loopTF-workspace/output/research/R3_lookahead_improve/r3_b300_alpha0p0-seed43_product_20260918-170109_h200_resume_20260919-152847/wandb",
150
+ "WANDB_TAGS": "product,resume,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300,h200",
151
+ "WARMUP_ITERS": "0",
152
+ "WEIGHT_DECAY": "0.0",
153
+ "WINDOW_ATTN_SKIP_FREQ": "1",
154
+ "WINDOW_SIZE": "none",
155
+ "WSD_DECAY_ITERS": "0"
156
+ },
157
+ "iteration": 26703,
158
+ "launch_snapshot_note": "launch_config.env is the original base snapshot; effective_launch_settings and constructor configs capture resume overrides.",
159
+ "loading": "Use the pinned source LookaheadTransformer; remove exactly the model. key prefix; strict=True, assign=True on a meta-constructed model preserves checkpoint dtypes. Not Transformers AutoModel format.",
160
+ "lookahead_config": {
161
+ "allow_objective_change_on_resume": false,
162
+ "attention_backend": "sdpa_auto",
163
+ "cache_layer_indices": null,
164
+ "checkpoint_refiner": false,
165
+ "draft_loss_weight": 0.0,
166
+ "feedback_loss_weight": 1.0,
167
+ "future_gradient_mode": "all",
168
+ "future_loss_weight": 0.0,
169
+ "mode": "parallel",
170
+ "num_passes": 3,
171
+ "pseudo_initializer": "A0",
172
+ "pseudo_temperature": 1.0,
173
+ "pseudo_top_k": 128,
174
+ "refiner_gate_bias": -2.0,
175
+ "refiner_intermediate_size": 5632,
176
+ "refiner_variant": "R0"
177
+ },
178
+ "megatron_revision": "d046b0de593b1802c78a7664765174c031eb452c",
179
+ "model_config": {
180
+ "attention_dropout": 0.0,
181
+ "attn_implementation": "sdpa",
182
+ "backbone_profile": "paper2604_vanilla",
183
+ "gradient_checkpointing": false,
184
+ "hf_config_overrides": {},
185
+ "hidden_size": 1408,
186
+ "initializer_range": 0.02,
187
+ "intermediate_size": 5632,
188
+ "max_position_embeddings": 2048,
189
+ "model_type": "full_bandwidth",
190
+ "num_attention_heads": 11,
191
+ "num_hidden_layers": 20,
192
+ "num_key_value_heads": 11,
193
+ "padded_vocab_size": 32064,
194
+ "paper_full_attention_interval": 6,
195
+ "paper_sliding_window": 2048,
196
+ "pretrained_model_name_or_path": null,
197
+ "revision": null,
198
+ "rms_norm_eps": 1e-06,
199
+ "rope_theta": 10000,
200
+ "tie_word_embeddings": false,
201
+ "trust_remote_code": false,
202
+ "vocab_size": 32001
203
+ },
204
+ "non_tensor_state": {},
205
+ "paper_backbone_source_revision": "122366472a31e57982a2877eeee10bb115477713",
206
+ "parameter_counts": {
207
+ "total": 661315072,
208
+ "trainable": 661315072
209
+ },
210
+ "pipeline_parallel_size": 1,
211
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109",
212
+ "tensor_parallel_size": 1,
213
+ "tokenizer": {
214
+ "active_vocab_size": 32001,
215
+ "added_tokens": [
216
+ "<|assistant_end|>"
217
+ ],
218
+ "padded_vocab_size": 32064,
219
+ "repository": "NousResearch/Llama-2-7b-hf",
220
+ "revision": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d"
221
+ },
222
+ "training": {
223
+ "completed_run": true,
224
+ "consumed_input_tokens": 7000031232,
225
+ "consumed_train_samples": 3417984,
226
+ "final_checkpoint": true,
227
+ "global_batch_size": 128,
228
+ "micro_batch_size": 4,
229
+ "planned_input_tokens": 7000031232,
230
+ "resumed_from_step": 12000,
231
+ "seed": 43,
232
+ "sequence_length": 2048,
233
+ "train_iters": 26703
234
+ },
235
+ "training_code_repository": "https://github.com/FFishy-git/loopTF-workspace",
236
+ "training_code_revision": "3763dea5b6c0cb4496405eff8d7a83f103193769"
237
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/launch_config.env ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Look-ahead K3/LA2 matching vanilla/476M_7b_FBW0_K3.env's feedback depth and training recipe.
2
+ # LA2 names the existing two-stage design: one real plus one pseudo backbone forward per pass.
3
+ # See configs/lookahead/README.md for the additional pseudo/refiner computation.
4
+ TRAIN_ARCHITECTURE=lookahead
5
+ BACKBONE_PROFILE=paper2604_vanilla
6
+ TRAINING_RECIPE=paper2604_21106
7
+ RECIPE_OVERRIDES='{}'
8
+ # Use the installed Transformers release; the cluster's dev checkout is incompatible.
9
+ TRANSFORMERS_PATH=''
10
+ RUN_NAME=paper2604_lookahead_476m_7b_online_K3_LA2
11
+ RESUME_POLICY=fresh
12
+ REQUIRE_CHECKPOINT=false
13
+
14
+ # Online FineWeb-Edu; no prepared .bin/.idx dataset is needed.
15
+ # The launcher saves the pinned Llama-2 + assistant_end tokenizer under DATA_ROOT.
16
+ DATASET_NAME=paper2604_fineweb_edu_online_llama2_32001_t2049
17
+ ONLINE_DATA=true
18
+ # Match FBW0_K3: use the complete local raw cache when available.
19
+ ONLINE_SOURCE_MODE=auto
20
+ ONLINE_DATASET=HuggingFaceFW/fineweb-edu
21
+ ONLINE_DATASET_SUBSET=sample-100BT
22
+ ONLINE_DATASET_REVISION=87f09149ef4734204d70ed1d046ddc9ca3f2b8f9
23
+ ONLINE_SOURCE_SPLIT=train
24
+ ONLINE_TEXT_COLUMN=text
25
+ ONLINE_VALIDATION_FRACTION=0.001
26
+ ONLINE_SPLIT_SEED=260421106
27
+ TOKENIZER_MODEL=NousResearch/Llama-2-7b-hf
28
+ ONLINE_TOKENIZER_REVISION=8efe6c9b93655b934e27bd9981e3ec13e55aee9d
29
+ ONLINE_TOKENIZER_BATCH_SIZE=256
30
+ ONLINE_SHUFFLE_BUFFER_RECORDS=128
31
+ NUM_WORKERS=0
32
+ DATA_PREFLIGHT=false
33
+ EXPECTED_RECORD_LENGTH=2049
34
+ EXPECTED_INPUT_LENGTH=2048
35
+ MIN_MODEL_INPUT_TOKENS=7000000000
36
+
37
+ # Match FBW0_K3's data stream: four nodes, TP=PP=1, DP=32.
38
+ # The multi-node launcher supplies the node rank; preflight can override NNODES.
39
+ NNODES=4
40
+ GPUS_PER_NODE=8
41
+ TP=1
42
+ PP=1
43
+ # Four accumulation rounds on 8 GPUs, one on 32 GPUs (TP=PP=1).
44
+ MICRO_BATCH_SIZE=4
45
+ GLOBAL_BATCH_SIZE=128
46
+ SEQ_LENGTH=2048
47
+ MAX_POSITION_EMBEDDINGS=2048
48
+ # ceil(7_000_000_000 / 262_144) = 26_703 => 7_000_031_232 physical input tokens.
49
+ TRAIN_ITERS=26703
50
+
51
+ NUM_LAYERS=20
52
+ HIDDEN_SIZE=1408
53
+ FFN_HIDDEN_SIZE=5632
54
+ NUM_ATTENTION_HEADS=11
55
+ NUM_QUERY_GROUPS=11
56
+ GROUP_QUERY_ATTENTION=false
57
+ ATTENTION_OUTPUT_GATE=false
58
+ QK_LAYERNORM=false # Profile supplies parameter-free QK RMSNorm AFTER RoPE.
59
+ SWIGLU=false # Profile supplies squared-ReLU.
60
+ DISABLE_BIAS_LINEAR=true
61
+ NORMALIZATION=RMSNorm
62
+ LAYERNORM_EPSILON=0.000001
63
+ HIDDEN_DROPOUT=0
64
+ ATTENTION_DROPOUT=0
65
+ WINDOW_SIZE=none
66
+ WINDOW_ATTN_SKIP_FREQ=1
67
+ POSITION_EMBEDDING_TYPE=rope
68
+ ROTARY_BASE=10000
69
+ UNTIE_EMBEDDINGS=true
70
+ TOKENIZER_TYPE=HuggingFaceTokenizer
71
+ VOCAB_SIZE=32001
72
+ MAKE_VOCAB_SIZE_DIVISIBLE_BY=64
73
+ PRECISION=bf16
74
+ ENABLE_RECOMPUTE=true # Recompute backbone layers; preserves the model and data budget.
75
+ MEGATRON_EXTRA_ARGS=''
76
+
77
+ # Three complete real/pseudo/refiner passes on every update and during evaluation.
78
+ # Includes one seed and two feedback passes; loss = L1 + (L2 + L3) / 2.
79
+ LOOKAHEAD_MODE=parallel
80
+ LOOKAHEAD_NUM_PASSES=3
81
+ LOOKAHEAD_FEEDBACK_LOSS_WEIGHT=1
82
+ LOOKAHEAD_ATTENTION_BACKEND=sdpa_auto
83
+ LOOKAHEAD_CHECKPOINT_REFINER=true
84
+ LOOKAHEAD_REFINER_FFN_SIZE=5632
85
+ LOOKAHEAD_REFINER_GATE_BIAS=-2
86
+ WANDB_TAGS=product,lookahead,paper2604,476m,7b,k3,la2
87
+ WANDB_RUN_GROUP=lookahead_476m_7b_K3_LA2
88
+
89
+ # Frequent logs and a short sampled evaluation for the initial training check.
90
+ WANDB_ENTITY=LoopTF-4-CSPs
91
+ WANDB_PROJECT=loopTF-workspace
92
+ WANDB_MODE=online
93
+ WANDB_RESUME=never
94
+ SAVE_INTERVAL=4000
95
+ EVAL_AT_START=true
96
+ EVAL_INTERVAL=100
97
+ EVAL_ITERS=2
98
+ LOG_INTERVAL=1
99
+ CKPT_FORMAT=torch
100
+ SEED=42
101
+
102
+ # Pinned R3 single-node objective-strength experiment. No architecture changes.
103
+ LOOKAHEAD_FUTURE_LOSS_WEIGHT=0.0
104
+ SEED=43
105
+ NNODES=1
106
+ GPUS_PER_NODE=8
107
+ TP=1
108
+ PP=1
109
+ MICRO_BATCH_SIZE=4
110
+ GLOBAL_BATCH_SIZE=128
111
+ TRAIN_ITERS=26703
112
+ EXIT_INTERVAL=16000
113
+ SAVE_INTERVAL=4000
114
+ SAVE_RETAIN_INTERVAL=4000
115
+ ENABLE_RECOMPUTE=false
116
+ LOOKAHEAD_CHECKPOINT_REFINER=false
117
+ EVAL_AT_START=true
118
+ FINAL_EVAL_ITERS=270
119
+ LOG_INTERVAL=1
120
+ RESUME_POLICY=fresh
121
+ REQUIRE_CHECKPOINT=false
122
+ WANDB_TAGS=product,r3,lookahead,k3,la2,alpha0p0-seed43,pod32xb300
123
+ WANDB_RUN_GROUP=r3_lookahead_future_grounding_20260918
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/manifest.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ {
4
+ "path": "README.md",
5
+ "sha256": "3ed67538dda6cad8421469dc3b1c69a82e79677c02a41b07ae48b28d04ecf876",
6
+ "size": 2337
7
+ },
8
+ {
9
+ "path": "config.json",
10
+ "sha256": "73e86c7512e69d623c01aa788317b26a0c8da4c3a40cb6b6e62dd580e18238fe",
11
+ "size": 10067
12
+ },
13
+ {
14
+ "path": "launch_config.env",
15
+ "sha256": "80859d2281685349d081b93773a1b92627e58c6b170b77d51090d928841bed26",
16
+ "size": 3907
17
+ },
18
+ {
19
+ "path": "model.safetensors",
20
+ "sha256": "db283fc16f1512d9fa2fe9037dc2fc1e2ac821580d426fe452e04c3f0b3eea65",
21
+ "size": 1322796152
22
+ },
23
+ {
24
+ "path": "training_recipe.json",
25
+ "sha256": "d3c0c45e3bd3d5c1b8fa1c7c242ded1251d6459482b1fea675e3ae19ecfccca6",
26
+ "size": 4352
27
+ }
28
+ ],
29
+ "format": "safetensors_native_megatron_state_dict",
30
+ "iteration": 26703,
31
+ "note": "This manifest does not hash itself.",
32
+ "run_name": "r3_b300_alpha0p0-seed43_product_20260918-170109"
33
+ }
Lookahead-K3-LA2-A0-R0-D0-P0-F0-seed43-7b--bapl3lfs/step_26703/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db283fc16f1512d9fa2fe9037dc2fc1e2ac821580d426fe452e04c3f0b3eea65
3
+ size 1322796152