OpenTransformer commited on
Commit
0ad185b
·
verified ·
1 Parent(s): 583e8a2

Document learned DBlock router 20260614T044233Z

Browse files
training/agillm43_shared/notes/dblock_learned_router_20260614T044233Z.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AGILLM4.3 DBlock Learned Router - 20260614T044233Z
2
+
3
+ The master DBlock scheduler now supports an opt-in tiny transformer router for layer-band selection.
4
+
5
+ Live launcher setting:
6
+
7
+ ```bash
8
+ --dblock_blocks 4 --dblock_schedule loss_balanced --dblock_router transformer --dblock_router_blend 0.35 --dblock_router_ramp_steps 256
9
+ ```
10
+
11
+ Behavior:
12
+
13
+ - The model layers remain partitioned into four bands: 0-6, 7-13, 14-20, and 21-27.
14
+ - Hard coverage guards still run first: warmup coverage, stale-block forcing, and max count-skew forcing.
15
+ - After warmup, the tiny CPU-side transformer predicts per-band training value from EMA loss, stale age, sample counts, sigma band, and position features.
16
+ - The learned score ramps in gradually and blends with the existing heuristic instead of replacing it outright.
17
+ - The router is runtime-only and does not change the AGILLM checkpoint format.
18
+
19
+ Validation performed:
20
+
21
+ - `python3 -m py_compile agillm41.py`
22
+ - In-process smoke test of `_dblock_init`, `_choose_block`, and `_update_stats` with the transformer router enabled.
23
+ - Live hotpatch restarted the 4090 trainer from checkpoint `pretrain_step01738407.pt` with `--dblock_router transformer`.