HRM-Text-checkpoints / code /config /arch /net /gated_loop.yaml
fhyfhy's picture
Add code, tokenizer and README
23c39b5 verified
Raw History Blame Contribute Delete
441 Bytes
name: baselines.gated_loop@GatedLoopTransformer
head: lm_head@LMHead
# Looped transformer with a gated loop channel between cycles:
# z_0 = token embeddings x, h_i = core(z_i),
# z_{i+1} = W1(h_i) * silu(W2(x)) (W1, W2 shared d*d matrices across cycles).
cycles: 4
# BP warmup: same schedule as ut.yaml/looped_tf.yaml — ramp bp_cycles
# 2 -> 4 (FULL backprop) over the first 20% of training steps.
bp_warmup_ratio: 0.2
bp_min_cycles: 2